Home
last modified time | relevance | path

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

12345678910>>...15

/kernel/linux/linux-6.6/net/tipc/
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()
148 int i = 0; in dom_size()
168 return list_last_entry(&peer->list, struct tipc_peer, list); in peer_prev()
173 return list_first_entry(&peer->list, struct tipc_peer, list); in peer_nxt()
178 while (!peer->is_head) in peer_head()
183 static struct tipc_peer *get_peer(struct tipc_monitor *mon, u32 addr) in get_peer() argument
188 hlist_for_each_entry(peer, &mon->peers[thash], hash) { in get_peer()
189 if (peer->addr == addr) in get_peer()
197 struct tipc_monitor *mon = tipc_monitor(net, bearer_id); in get_self() local
[all …]
/kernel/linux/linux-5.10/net/tipc/
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 …]
/kernel/linux/linux-6.6/tools/power/cpupower/utils/idle_monitor/
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 …]
/kernel/linux/linux-5.10/tools/power/cpupower/utils/idle_monitor/
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 …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/crypto/
Dfsl,sec-v4.0-mon.yaml1 # SPDX-License-Identifier: GPL-2.0
2 # Copyright (C) 2008-2011 Freescale Semiconductor Inc.
4 ---
5 $id: http://devicetree.org/schemas/crypto/fsl,sec-v4.0-mon.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Freescale Secure Non-Volatile Storage (SNVS)
11 - '"Horia Geantă" <horia.geanta@nxp.com>'
12 - Pankaj Gupta <pankaj.gupta@nxp.com>
13 - Gaurav Jain <gaurav.jain@nxp.com>
23 - items:
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/timers/
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 …]
/kernel/linux/linux-6.6/tools/testing/selftests/timers/
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 …]
/kernel/linux/linux-6.6/arch/arm/mach-shmobile/
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 …]
/kernel/linux/linux-5.10/arch/arm/mach-shmobile/
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 …]
/kernel/linux/linux-6.6/arch/sh/boards/mach-sh03/
Drtc.c1 // SPDX-License-Identifier: GPL-2.0
3 * linux/arch/sh/boards/sh03/rtc.c -- CTP/PCI-SH03 on-chip RTC support
19 #define RTC_BASE 0xb0000000
20 #define RTC_SEC1 (RTC_BASE + 0)
43 unsigned int year, mon, day, hour, min, sec; in sh03_rtc_gettimeofday() local
48 sec = (__raw_readb(RTC_SEC1) & 0xf) + (__raw_readb(RTC_SEC10) & 0x7) * 10; in sh03_rtc_gettimeofday()
49 min = (__raw_readb(RTC_MIN1) & 0xf) + (__raw_readb(RTC_MIN10) & 0xf) * 10; in sh03_rtc_gettimeofday()
50 hour = (__raw_readb(RTC_HOU1) & 0xf) + (__raw_readb(RTC_HOU10) & 0xf) * 10; in sh03_rtc_gettimeofday()
51 day = (__raw_readb(RTC_DAY1) & 0xf) + (__raw_readb(RTC_DAY10) & 0xf) * 10; in sh03_rtc_gettimeofday()
52 mon = (__raw_readb(RTC_MON1) & 0xf) + (__raw_readb(RTC_MON10) & 0xf) * 10; in sh03_rtc_gettimeofday()
[all …]
/kernel/linux/linux-5.10/arch/sh/boards/mach-sh03/
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 …]
/kernel/linux/linux-6.6/arch/m68k/bvme6000/
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 …]
/kernel/linux/linux-5.10/arch/m68k/bvme6000/
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 …]
/kernel/linux/linux-5.10/arch/x86/kernel/cpu/resctrl/
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 …]
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 …]
/kernel/linux/linux-6.6/arch/x86/kernel/cpu/resctrl/
Drdtgroup.c1 // SPDX-License-Identifier: GPL-2.0-only
89 list_for_each_entry(dom, &r->domains, list) in rdt_staged_configs_clear()
90 memset(dom->staged_config, 0, sizeof(dom->staged_config)); in rdt_staged_configs_clear()
100 * + We can simply set "current->closid" to assign a task to a resource
104 * - We give up some options in configuring resource groups across multi-socket
106 * - Our choices on how to configure each resource become progressively more
124 rdt_min_closid = min(rdt_min_closid, s->num_closid); in closid_init()
126 closid_free_map = BIT_MASK(rdt_min_closid) - 1; in closid_init()
128 /* CLOSID 0 is always reserved for the default group */ in closid_init()
137 if (closid == 0) in closid_alloc()
[all …]
/kernel/linux/linux-5.10/arch/m68k/mvme16x/
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 …]
/kernel/linux/linux-6.6/arch/m68k/mvme16x/
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 …]
/kernel/linux/linux-6.6/include/linux/mfd/
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 …]
/kernel/linux/linux-5.10/include/linux/mfd/
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 …]
/kernel/linux/linux-6.6/drivers/mfd/
Drohm-bd71828.c1 // SPDX-License-Identifier: GPL-2.0-only
14 #include <linux/mfd/rohm-bd71815.h>
15 #include <linux/mfd/rohm-bd71828.h>
16 #include <linux/mfd/rohm-generic.h>
24 .gpio = -1,
31 .name = "bd71828-pwrkey",
35 DEFINE_RES_IRQ_NAMED(BD71815_INT_RTC0, "bd71815-rtc-alm-0"),
36 DEFINE_RES_IRQ_NAMED(BD71815_INT_RTC1, "bd71815-rtc-alm-1"),
37 DEFINE_RES_IRQ_NAMED(BD71815_INT_RTC2, "bd71815-rtc-alm-2"),
41 DEFINE_RES_IRQ_NAMED(BD71828_INT_RTC0, "bd71828-rtc-alm-0"),
[all …]
/kernel/linux/linux-5.10/arch/m68k/atari/
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 …]
/kernel/linux/linux-6.6/arch/m68k/atari/
Dtime.c6 * Assembled of parts of former atari/config.c 97-12-18 by Roman Hodek
64 st_mfp.tim_ct_cd = (st_mfp.tim_ct_cd & 15) | 0x60; in atari_sched_init()
83 * the result may briefly stop changing after counter wrap-around. in atari_read_clk()
88 ticks = INT_TICKS - count; in atari_read_clk()
98 #define COPY(v) val->v=(mste_rtc.v & 0xf) in mste_read()
106 } while (val->sec_ones != (mste_rtc.sec_ones & 0xf)); in mste_read()
112 #define COPY(v) mste_rtc.v=val->v in mste_write()
120 } while (val->sec_ones != (mste_rtc.sec_ones & 0xf)); in mste_write()
135 } while(0)
143 int hr24=0; in atari_mste_hwclk()
[all …]
/kernel/linux/linux-5.10/arch/loongarch/loongson64/
Drtc.c1 // SPDX-License-Identifier: GPL-2.0
11 #define RTC_TOYREAD0 0x2C
12 #define RTC_YEAR 0x30
16 unsigned int year, mon, day, hour, min, sec; in loongson_get_rtc_time() local
20 sec = (value >> 4) & 0x3f; in loongson_get_rtc_time()
21 min = (value >> 10) & 0x3f; in loongson_get_rtc_time()
22 hour = (value >> 16) & 0x1f; in loongson_get_rtc_time()
23 day = (value >> 21) & 0x1f; in loongson_get_rtc_time()
24 mon = (value >> 26) & 0x3f; in loongson_get_rtc_time()
29 return mktime64(year, mon, day, hour, min, sec); in loongson_get_rtc_time()
[all …]
/kernel/linux/linux-5.10/arch/x86/platform/intel-mid/
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 …]

12345678910>>...15