Home
last modified time | relevance | path

Searched +full:0 +full:- +full:mon (Results 1 – 25 of 1059) sorted by relevance

12345678910>>...43

/OK3568_Linux_fs/kernel/net/tipc/
H A Dmonitor.c73 * @down_cnt: - numbers of other peers which have reported this on lost
102 return tipc_net(net)->monitors[bearer_id]; in tipc_monitor()
111 return ((void *)&dom->members - (void *)dom) + (mcnt * sizeof(u32)); in dom_rec_len()
118 int i = 0; in dom_size()
138 return list_last_entry(&peer->list, struct tipc_peer, list); in peer_prev()
143 return list_first_entry(&peer->list, struct tipc_peer, list); in peer_nxt()
148 while (!peer->is_head) in peer_head()
153 static struct tipc_peer *get_peer(struct tipc_monitor *mon, u32 addr) in get_peer() argument
158 hlist_for_each_entry(peer, &mon->peers[thash], hash) { in get_peer()
159 if (peer->addr == addr) in get_peer()
[all …]
/OK3568_Linux_fs/kernel/tools/power/cpupower/utils/idle_monitor/
H A Dcpupower-monitor.c1 // SPDX-License-Identifier: GPL-2.0-only
19 #include "idle_monitor/cpupower-monitor.h"
27 0
56 if ((end.tv_nsec - start.tv_nsec) < 0) { in timespec_diff_us()
57 temp.tv_sec = end.tv_sec - start.tv_sec - 1; in timespec_diff_us()
58 temp.tv_nsec = 1000000000 + end.tv_nsec - start.tv_nsec; in timespec_diff_us()
60 temp.tv_sec = end.tv_sec - start.tv_sec; in timespec_diff_us()
61 temp.tv_nsec = end.tv_nsec - start.tv_nsec; in timespec_diff_us()
69 for (x = 0; x < n; x++) in print_n_spaces()
82 return -1; in fill_string_with_spaces()
[all …]
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-support/syslog-ng/files/
H A DCVE-2022-38725-0006.patch1 From 09f489c89c826293ff8cbd282cfc866ab56054c4 Mon Sep 17 00:00:00 2001
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 CVE: CVE-2022-38725
11 Upstream-Status: Backport
12 [https://github.com/syslog-ng/syslog-ng/commit/09f489c89c826293ff8cbd282cfc866ab56054c4]
14 Signed-off-by: László Várady <laszlo.varady@protonmail.com>
16 Signed-off-by: Yogita Urade <yogita.urade@windriver.com>
17 ---
[all …]
/OK3568_Linux_fs/external/xserver/hw/xfree86/ddc/
H A Dinterpret_edid.c2 * Copyright 1998 by Egbert Eich <Egbert.Eich@Physik.TU-Darmstadt.DE>
28 #include <xorg-config.h>
61 if (det->type == DS_RANGES && det->section.ranges.max_clock) in find_ranges_section()
62 *(struct monitor_ranges **) ranges = &det->section.ranges; in find_ranges_section()
68 if (det->type == DT) { in find_max_detailed_clock()
69 *(int *) ret = max(*((int *) ret), det->section.d_timings.clock); in find_max_detailed_clock()
85 /* Try to find Monitor Range and max clock, then re-set range value */ in handle_edid_quirks()
87 if (ranges && ranges->max_clock) { in handle_edid_quirks()
88 int clock = 0; in handle_edid_quirks()
91 if (clock && (ranges->max_clock * 1e6 < clock)) { in handle_edid_quirks()
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/timers/
H A Draw_skew.c9 * $ gcc raw_skew.c -o raw_skew -lrt
36 __x < 0 ? -(-__x >> __s) : __x >> __s; \
41 if (val < 0) in llabs()
42 val = -val; in llabs()
66 return end_ns - start_ns; in diff_timespec()
69 void get_monotonic_and_raw(struct timespec *mon, struct timespec *raw) in get_monotonic_and_raw() argument
72 long long diff = 0, tmp; in get_monotonic_and_raw()
75 for (i = 0; i < 3; i++) { in get_monotonic_and_raw()
83 if (diff == 0 || newdiff < diff) { in get_monotonic_and_raw()
87 *mon = nsec_to_ts(tmp); in get_monotonic_and_raw()
[all …]
/OK3568_Linux_fs/kernel/arch/x86/kernel/cpu/resctrl/
H A Drdtgroup.c1 // SPDX-License-Identifier: GPL-2.0-only
84 * + We can simply set "current->closid" to assign a task to a resource
88 * - We give up some options in configuring resource groups across multi-socket
90 * - Our choices on how to configure each resource become progressively more
108 rdt_min_closid = min(rdt_min_closid, r->num_closid); in closid_init()
110 closid_free_map = BIT_MASK(rdt_min_closid) - 1; in closid_init()
112 /* CLOSID 0 is always reserved for the default group */ in closid_init()
121 if (closid == 0) in closid_alloc()
122 return -ENOSPC; in closid_alloc()
123 closid--; in closid_alloc()
[all …]
H A Dmonitor.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * - Monitoring code
46 * @rmid_entry - The entry in the limbo and free lists.
63 * RMID available for re-allocation.
72 WARN_ON(entry->rmid != rmid); in __rmid_entry()
82 * As per the SDM, when IA32_QM_EVTSEL.EvtID (bits 7:0) is configured in __rmid_read()
85 * IA32_QM_CTR.data (bits 61:0) reports the monitored data. in __rmid_read()
97 u64 val = __rmid_read(entry->rmid, QOS_L3_OCCUP_EVENT_ID); in rmid_dirty()
117 * Skip RMID 0 and start from RMID 1 and check all the RMIDs that in __check_limbo()
120 * RMID and move it to the free list when the counter reaches 0. in __check_limbo()
[all …]
/OK3568_Linux_fs/kernel/arch/arm/mach-shmobile/
H A Dregulator-quirk-rcar-gen2.c1 // SPDX-License-Identifier: GPL-2.0
3 * R-Car Generation 2 da9063(L)/da9210 regulator quirk
9 * After cold boot or da9063-induced restart, both the da9063 and da9210 seem
32 #define IRQC_BASE 0xe61c0000
33 #define IRQC_MONITOR 0x104 /* IRQn Signal Level Monitor Register */
38 #define DA9210_REG_MASK_A 0x54
53 static u8 da9063_irq_clr[] = { DA9063_REG_IRQ_MASK_A, 0xff, 0xff, 0xff, 0xff };
54 static u8 da9210_irq_clr[] = { DA9210_REG_MASK_A, 0xff, 0xff };
81 u32 mon; in regulator_quirk_notify() local
84 return 0; in regulator_quirk_notify()
[all …]
/OK3568_Linux_fs/u-boot/drivers/rtc/
H A Ds3c24x0_rtc.c5 * SPDX-License-Identifier: GPL-2.0+
9 * Date & Time support for the built-in Samsung S3C24X0 RTC
35 writeb(readb(&rtc->rtccon) | 0x01, &rtc->rtccon); in SetRTC_Access()
39 writeb(readb(&rtc->rtccon) & ~0x01, &rtc->rtccon); in SetRTC_Access()
44 /* ------------------------------------------------------------------------- */
49 uchar sec, min, hour, mday, wday, mon, year; in rtc_get() local
58 sec = readb(&rtc->bcdsec); in rtc_get()
59 min = readb(&rtc->bcdmin); in rtc_get()
60 hour = readb(&rtc->bcdhour); in rtc_get()
61 mday = readb(&rtc->bcddate); in rtc_get()
[all …]
H A Ddate.c5 * SPDX-License-Identifier: GPL-2.0+
19 #define leapyear(year) ((year) % 4 == 0)
21 #define days_in_month(a) (month_days[(a) - 1])
28 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334
32 * This only works for the Gregorian calendar - i.e. after 1752 (in the UK)
40 if (tm->tm_year < 1753) in rtc_calc_weekday()
41 return -1; in rtc_calc_weekday()
42 last_year = tm->tm_year - 1; in rtc_calc_weekday()
45 leaps_to_date = last_year / 4 - last_year / 100 + last_year / 400; in rtc_calc_weekday()
53 if (tm->tm_year % 4 == 0 && in rtc_calc_weekday()
[all …]
H A Dds1556.c8 * Based on MontaVista DS1743 code and U-Boot mc146818 code
10 * SPDX-License-Identifier: GPL-2.0+
30 #define RTC_YEAR ( RTC_BASE + 0xf )
31 #define RTC_MONTH ( RTC_BASE + 0xe )
32 #define RTC_DAY_OF_MONTH ( RTC_BASE + 0xd )
33 #define RTC_DAY_OF_WEEK ( RTC_BASE + 0xc )
34 #define RTC_HOURS ( RTC_BASE + 0xb )
35 #define RTC_MINUTES ( RTC_BASE + 0xa )
36 #define RTC_SECONDS ( RTC_BASE + 0x9 )
37 #define RTC_CENTURY ( RTC_BASE + 0x8 )
[all …]
H A Dmax6900.c5 * SPDX-License-Identifier: GPL-2.0+
22 #define CONFIG_SYS_I2C_RTC_ADDR 0x50
25 /* ------------------------------------------------------------------------- */
38 /* ------------------------------------------------------------------------- */
42 uchar sec, min, hour, mday, wday, mon, cent, year; in rtc_get() local
46 sec = rtc_read (0x80); in rtc_get()
47 min = rtc_read (0x82); in rtc_get()
48 hour = rtc_read (0x84); in rtc_get()
49 mday = rtc_read (0x86); in rtc_get()
50 mon = rtc_read (0x88); in rtc_get()
[all …]
H A Dpt7c4338.c6 * SPDX-License-Identifier: GPL-2.0+
15 * It is a serial real-time clock which provides
16 * 1)Low-power clock/calendar.
17 * 2)Programmable square-wave output.
27 #define RTC_SEC_REG_ADDR 0x0
28 #define RTC_MIN_REG_ADDR 0x1
29 #define RTC_HR_REG_ADDR 0x2
30 #define RTC_DAY_REG_ADDR 0x3
31 #define RTC_DATE_REG_ADDR 0x4
32 #define RTC_MON_REG_ADDR 0x5
[all …]
H A Disl1208.c7 * SPDX-License-Identifier: GPL-2.0+
20 /*---------------------------------------------------------------------*/
26 /*---------------------------------------------------------------------*/
32 #define RTC_SEC_REG_ADDR 0x0
33 #define RTC_MIN_REG_ADDR 0x1
34 #define RTC_HR_REG_ADDR 0x2
35 #define RTC_DATE_REG_ADDR 0x3
36 #define RTC_MON_REG_ADDR 0x4
37 #define RTC_YR_REG_ADDR 0x5
38 #define RTC_DAY_REG_ADDR 0x6
[all …]
/OK3568_Linux_fs/kernel/arch/sh/boards/mach-sh03/
H A Drtc.c1 // SPDX-License-Identifier: GPL-2.0
3 * linux/arch/sh/boards/sh03/rtc.c -- CTP/PCI-SH03 on-chip RTC support
20 #define RTC_BASE 0xb0000000
21 #define RTC_SEC1 (RTC_BASE + 0)
44 unsigned int year, mon, day, hour, min, sec; in sh03_rtc_gettimeofday() local
49 sec = (__raw_readb(RTC_SEC1) & 0xf) + (__raw_readb(RTC_SEC10) & 0x7) * 10; in sh03_rtc_gettimeofday()
50 min = (__raw_readb(RTC_MIN1) & 0xf) + (__raw_readb(RTC_MIN10) & 0xf) * 10; in sh03_rtc_gettimeofday()
51 hour = (__raw_readb(RTC_HOU1) & 0xf) + (__raw_readb(RTC_HOU10) & 0xf) * 10; in sh03_rtc_gettimeofday()
52 day = (__raw_readb(RTC_DAY1) & 0xf) + (__raw_readb(RTC_DAY10) & 0xf) * 10; in sh03_rtc_gettimeofday()
53 mon = (__raw_readb(RTC_MON1) & 0xf) + (__raw_readb(RTC_MON10) & 0xf) * 10; in sh03_rtc_gettimeofday()
[all …]
/OK3568_Linux_fs/kernel/arch/m68k/bvme6000/
H A Drtc.c1 // SPDX-License-Identifier: GPL-2.0
35 {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
51 /* Ensure clock and real-time-mode-register are accessible */ in rtc_ioctl()
52 msr = rtc->msr & 0xc0; in rtc_ioctl()
53 rtc->msr = 0x40; in rtc_ioctl()
54 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl()
56 wtime.tm_sec = bcd2bin(rtc->bcd_sec); in rtc_ioctl()
57 wtime.tm_min = bcd2bin(rtc->bcd_min); in rtc_ioctl()
58 wtime.tm_hour = bcd2bin(rtc->bcd_hr); in rtc_ioctl()
59 wtime.tm_mday = bcd2bin(rtc->bcd_dom); in rtc_ioctl()
[all …]
/OK3568_Linux_fs/buildroot/dl/qt5location/git/tests/auto/qgeoareamonitor/
H A Dtst_qgeoareamonitor.cpp8 ** $QT_BEGIN_LICENSE:GPL-EXCEPT$
14 ** and conditions see https://www.qt.io/terms-conditions. For further
15 ** information use the contact form at https://www.qt.io/contact-us.
20 ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
23 ** be met: https://www.gnu.org/licenses/gpl-3.0.html.
100 …GeoAreaMonitorSource *obj = QGeoAreaMonitorSource::createSource(QStringLiteral("positionpoll"), 0); in cleanup()
101 QVERIFY(obj != 0); in cleanup()
102 QCOMPARE(obj->sourceName(), QStringLiteral("positionpoll")); in cleanup()
104 QList<QGeoAreaMonitorInfo> list = obj->activeMonitors(); in cleanup()
105 if (list.count() > 0) { in cleanup()
[all …]
/OK3568_Linux_fs/kernel/include/linux/mfd/
H A Drohm-bd71828.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
7 #include <linux/mfd/rohm-generic.h>
8 #include <linux/mfd/rohm-shared.h>
29 #define BD71828_BUCK1267_VOLTS 0x100
30 #define BD71828_BUCK3_VOLTS 0x20
31 #define BD71828_BUCK4_VOLTS 0x40
32 #define BD71828_BUCK5_VOLTS 0x20
33 #define BD71828_LDO_VOLTS 0x40
40 #define BD71828_REG_PS_CTRL_1 0x04
41 #define BD71828_REG_PS_CTRL_2 0x05
[all …]
/OK3568_Linux_fs/kernel/arch/m68k/atari/
H A Dtime.c6 * Assembled of parts of former atari/config.c 97-12-18 by Roman Hodek
51 timer_routine(0, NULL); in mfp_timer_c_handler()
63 st_mfp.tim_ct_cd = (st_mfp.tim_ct_cd & 15) | 0x60; in atari_sched_init()
82 * the result may briefly stop changing after counter wrap-around. in atari_read_clk()
87 ticks = INT_TICKS - count; in atari_read_clk()
97 #define COPY(v) val->v=(mste_rtc.v & 0xf) in mste_read()
105 } while (val->sec_ones != (mste_rtc.sec_ones & 0xf)); in mste_read()
111 #define COPY(v) mste_rtc.v=val->v in mste_write()
119 } while (val->sec_ones != (mste_rtc.sec_ones & 0xf)); in mste_write()
134 } while(0)
[all …]
/OK3568_Linux_fs/kernel/arch/m68k/mvme16x/
H A Drtc.c1 // SPDX-License-Identifier: GPL-2.0
34 {0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
49 /* Ensure clock and real-time-mode-register are accessible */ in rtc_ioctl()
50 rtc->ctrl = RTC_READ; in rtc_ioctl()
51 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl()
52 wtime.tm_sec = bcd2bin(rtc->bcd_sec); in rtc_ioctl()
53 wtime.tm_min = bcd2bin(rtc->bcd_min); in rtc_ioctl()
54 wtime.tm_hour = bcd2bin(rtc->bcd_hr); in rtc_ioctl()
55 wtime.tm_mday = bcd2bin(rtc->bcd_dom); in rtc_ioctl()
56 wtime.tm_mon = bcd2bin(rtc->bcd_mth)-1; in rtc_ioctl()
[all …]
/OK3568_Linux_fs/external/xserver/randr/
H A Drrmonitor.c31 if (crtc->numOutputs) { in RRMonitorCrtcName()
32 RROutputPtr output = crtc->outputs[0]; in RRMonitorCrtcName()
33 return MakeAtom(output->name, output->nameLength, TRUE); in RRMonitorCrtcName()
35 sprintf(name, "Monitor-%08lx", (unsigned long int)crtc->id); in RRMonitorCrtcName()
42 ScreenPtr screen = crtc->pScreen; in RRMonitorCrtcPrimary()
46 for (o = 0; o < crtc->numOutputs; o++) in RRMonitorCrtcPrimary()
47 if (crtc->outputs[o] == pScrPriv->primaryOutput) in RRMonitorCrtcPrimary()
57 ScreenPtr screen = crtc->pScreen; in RRMonitorGetCrtcGeometry()
62 if (pScrPriv && pScrPriv->rrGetPanning && in RRMonitorGetCrtcGeometry()
63 pScrPriv->rrGetPanning(screen, crtc, &panned_area, NULL, NULL) && in RRMonitorGetCrtcGeometry()
[all …]
/OK3568_Linux_fs/kernel/arch/x86/platform/intel-mid/
H A Dintel_mid_vrtc.c1 // SPDX-License-Identifier: GPL-2.0-only
23 #include <asm/intel-mid.h>
34 /* vRTC's registers range from 0x0 to 0xD */ in vrtc_cmos_read()
35 if (reg > 0xd || !vrtc_virt_base) in vrtc_cmos_read()
36 return 0xff; in vrtc_cmos_read()
47 if (reg > 0xd || !vrtc_virt_base) in vrtc_cmos_write()
58 u8 sec, min, hour, mday, mon; in vrtc_get_time() local
71 mon = vrtc_cmos_read(RTC_MONTH); in vrtc_get_time()
80 "mon: %d year: %d\n", sec, min, hour, mday, mon, year); in vrtc_get_time()
82 now->tv_sec = mktime64(year, mon, mday, hour, min, sec); in vrtc_get_time()
[all …]
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/chrp/
H A Dtime.c1 // SPDX-License-Identifier: GPL-2.0
35 #define NVRAM_AS0 0x74
36 #define NVRAM_AS1 0x75
37 #define NVRAM_DATA 0x77
51 rtcs = of_find_compatible_node(NULL, "rtc", "ds1385-rtc"); in chrp_time_init()
53 return 0; in chrp_time_init()
54 if (of_address_to_resource(rtcs, 0, &r)) { in chrp_time_init()
56 return 0; in chrp_time_init()
61 nvram_as1 = 0; in chrp_time_init()
65 return 0; in chrp_time_init()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/
H A Dwl_linux_mon.c1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (C) 1999-2017, Broadcom Corporation
26 * <<Broadcom-WL-IPTag/Open:>>
28 * $Id: wl_linux_mon.c 576195 2015-08-01 18:21:54Z $
49 MONITOR_STATE_DEINIT = 0x0,
50 MONITOR_STATE_INIT = 0x1,
51 MONITOR_STATE_INTERFACE_ADDED = 0x2,
52 MONITOR_STATE_INTERFACE_DELETED = 0x4
66 #define MON_PRINT(format, ...) printk("DHD-MON: %s " format, __func__, ##__VA_ARGS__)
96 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0))
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/
H A Dwl_linux_mon.c6 * Copyright (C) 1999-2017, Broadcom Corporation
27 * <<Broadcom-WL-IPTag/Open:>>
29 * $Id: wl_linux_mon.c 576195 2015-08-01 18:21:54Z $
50 MONITOR_STATE_DEINIT = 0x0,
51 MONITOR_STATE_INIT = 0x1,
52 MONITOR_STATE_INTERFACE_ADDED = 0x2,
53 MONITOR_STATE_INTERFACE_DELETED = 0x4
67 #define MON_PRINT(format, ...) printk("DHD-MON: %s " format, __func__, ##__VA_ARGS__)
97 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 2, 0))
109 /* Look up dhd's net device table to find a match (e.g. interface "eth0" is a match for "mon.eth0"
[all …]

12345678910>>...43