/linux-6.14.4/net/tipc/ |
D | monitor.c | 73 * @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 …]
|
/linux-6.14.4/tools/power/cpupower/utils/idle_monitor/ |
D | cpupower-monitor.c | 1 // 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 …]
|
/linux-6.14.4/Documentation/devicetree/bindings/crypto/ |
D | fsl,sec-v4.0-mon.yaml | 1 # 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ă" <[email protected]>' 12 - Pankaj Gupta <[email protected]> 13 - Gaurav Jain <[email protected]> 23 - items: [all …]
|
/linux-6.14.4/tools/testing/selftests/timers/ |
D | raw_skew.c | 9 * $ gcc raw_skew.c -o raw_skew -lrt 34 __x < 0 ? -(-__x >> __s) : __x >> __s; \ 39 if (val < 0) in llabs() 40 val = -val; in llabs() 64 return end_ns - start_ns; in diff_timespec() 67 void get_monotonic_and_raw(struct timespec *mon, struct timespec *raw) in get_monotonic_and_raw() argument 70 long long diff = 0, tmp; in get_monotonic_and_raw() 73 for (i = 0; i < 3; i++) { in get_monotonic_and_raw() 81 if (diff == 0 || newdiff < diff) { in get_monotonic_and_raw() 85 *mon = nsec_to_ts(tmp); in get_monotonic_and_raw() [all …]
|
/linux-6.14.4/arch/arm/mach-shmobile/ |
D | regulator-quirk-rcar-gen2.c | 1 // 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 …]
|
/linux-6.14.4/arch/sh/boards/mach-sh03/ |
D | rtc.c | 1 // 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 …]
|
/linux-6.14.4/arch/m68k/bvme6000/ |
D | rtc.c | 1 // 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 …]
|
/linux-6.14.4/arch/x86/kernel/cpu/resctrl/ |
D | rdtgroup.c | 1 // SPDX-License-Identifier: GPL-2.0-only 109 list_for_each_entry(dom, &r->ctrl_domains, hdr.list) in rdt_staged_configs_clear() 110 memset(dom->staged_config, 0, sizeof(dom->staged_config)); in rdt_staged_configs_clear() 124 * - We give up some options in configuring resource groups across multi-socket 126 * - Our choices on how to configure each resource become progressively more 144 rdt_min_closid = min(rdt_min_closid, s->num_closid); in closid_init() 146 closid_free_map = BIT_MASK(rdt_min_closid) - 1; in closid_init() 163 if (cleanest_closid < 0) in closid_alloc() 168 if (closid == 0) in closid_alloc() 169 return -ENOSPC; in closid_alloc() [all …]
|
/linux-6.14.4/include/linux/mfd/ |
D | rohm-bd71828.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 8 #include <linux/mfd/rohm-generic.h> 9 #include <linux/mfd/rohm-shared.h> 30 #define BD71828_BUCK1267_VOLTS 0x100 31 #define BD71828_BUCK3_VOLTS 0x20 32 #define BD71828_BUCK4_VOLTS 0x40 33 #define BD71828_BUCK5_VOLTS 0x20 34 #define BD71828_LDO_VOLTS 0x40 41 #define BD71828_REG_PS_CTRL_1 0x04 42 #define BD71828_REG_PS_CTRL_2 0x05 [all …]
|
/linux-6.14.4/arch/m68k/atari/ |
D | time.c | 6 * Assembled of parts of former atari/config.c 97-12-18 by Roman Hodek 66 st_mfp.tim_ct_cd = (st_mfp.tim_ct_cd & 15) | 0x60; in atari_sched_init() 85 * the result may briefly stop changing after counter wrap-around. in atari_read_clk() 90 ticks = INT_TICKS - count; in atari_read_clk() 100 #define COPY(v) val->v=(mste_rtc.v & 0xf) in mste_read() 108 } while (val->sec_ones != (mste_rtc.sec_ones & 0xf)); in mste_read() 114 #define COPY(v) mste_rtc.v=val->v in mste_write() 122 } while (val->sec_ones != (mste_rtc.sec_ones & 0xf)); in mste_write() 137 } while(0) 145 int hr24=0; in atari_mste_hwclk() [all …]
|
/linux-6.14.4/drivers/mfd/ |
D | rohm-bd71828.c | 1 // 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, "bd70528-rtc-alm-0"), 36 DEFINE_RES_IRQ_NAMED(BD71815_INT_RTC1, "bd70528-rtc-alm-1"), 37 DEFINE_RES_IRQ_NAMED(BD71815_INT_RTC2, "bd70528-rtc-alm-2"), 41 DEFINE_RES_IRQ_NAMED(BD71828_INT_RTC0, "bd70528-rtc-alm-0"), [all …]
|
/linux-6.14.4/arch/powerpc/platforms/chrp/ |
D | time.c | 1 // SPDX-License-Identifier: GPL-2.0 33 #define NVRAM_AS0 0x74 34 #define NVRAM_AS1 0x75 35 #define NVRAM_DATA 0x77 49 rtcs = of_find_compatible_node(NULL, "rtc", "ds1385-rtc"); in chrp_time_init() 51 return 0; in chrp_time_init() 52 if (of_address_to_resource(rtcs, 0, &r)) { in chrp_time_init() 54 return 0; in chrp_time_init() 59 nvram_as1 = 0; in chrp_time_init() 63 return 0; in chrp_time_init() [all …]
|
/linux-6.14.4/arch/mips/include/asm/ |
D | mc146818-time.h | 35 int retval = 0; in mc146818_set_rtc_mmss() 57 if (((abs(real_minutes - cmos_minutes) + 15)/30) & 1) in mc146818_set_rtc_mmss() 61 if (abs(real_minutes - cmos_minutes) < 30) { in mc146818_set_rtc_mmss() 72 retval = -1; in mc146818_set_rtc_mmss() 80 * sheets anyway ... -- Markus Kuhn in mc146818_set_rtc_mmss() 91 unsigned int year, mon, day, hour, min, sec; in mc146818_get_cmos_time() local 101 mon = CMOS_READ(RTC_MONTH); in mc146818_get_cmos_time() 110 mon = bcd2bin(mon); in mc146818_get_cmos_time() 116 return mktime64(year, mon, day, hour, min, sec); in mc146818_get_cmos_time()
|
/linux-6.14.4/arch/mips/dec/ |
D | time.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * This file contains the time handling details for PC-style clocks as 15 #include <asm/cpu-features.h> 24 unsigned int year, mon, day, hour, min, sec, real_year; in read_persistent_clock64() local 34 mon = CMOS_READ(RTC_MONTH); in read_persistent_clock64() 51 mon = bcd2bin(mon); in read_persistent_clock64() 55 year += real_year - 72 + 2000; in read_persistent_clock64() 57 ts->tv_sec = mktime64(year, mon, day, hour, min, sec); in read_persistent_clock64() 58 ts->tv_nsec = 0; in read_persistent_clock64() 71 int retval = 0; in update_persistent_clock64() [all …]
|
/linux-6.14.4/arch/mips/sibyte/swarm/ |
D | rtc_xicor1241.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 27 #define X1241REG_SR_BAT 0x80 /* currently on battery power */ 28 #define X1241REG_SR_RWEL 0x04 /* r/w latch is enabled, can write RTC */ 29 #define X1241REG_SR_WEL 0x02 /* r/w latch is unlocked, can enable r/w now */ 30 #define X1241REG_SR_RTCF 0x01 /* clock failed */ 31 #define X1241REG_BL_BP2 0x80 /* block protect 2 */ 32 #define X1241REG_BL_BP1 0x40 /* block protect 1 */ 33 #define X1241REG_BL_BP0 0x20 /* block protect 0 */ 34 #define X1241REG_BL_WD1 0x10 35 #define X1241REG_BL_WD0 0x08 [all …]
|
D | rtc_m41t81.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 27 #define M41T81REG_SC_ST 0x80 /* stop bit */ 28 #define M41T81REG_HR_CB 0x40 /* century bit */ 29 #define M41T81REG_HR_CEB 0x80 /* century enable bit */ 30 #define M41T81REG_CTL_S 0x20 /* sign bit */ 31 #define M41T81REG_CTL_FT 0x40 /* frequency test bit */ 32 #define M41T81REG_CTL_OUT 0x80 /* output level */ 33 #define M41T81REG_WD_RB0 0x01 /* watchdog resolution bit 0 */ 34 #define M41T81REG_WD_RB1 0x02 /* watchdog resolution bit 1 */ 35 #define M41T81REG_WD_BMB0 0x04 /* watchdog multiplier bit 0 */ [all …]
|
/linux-6.14.4/drivers/rtc/ |
D | rtc-m48t35.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Driver for the SGS-Thomson M48T35 Timekeeper RAM chip 22 u8 pad[0x7ff8]; /* starts at 0x7ff8 */ 44 #define M48T35_RTC_SET 0x80 45 #define M48T35_RTC_READ 0x40 64 * by the RTC when initially set to a non-zero value. in m48t35_read_time() 66 spin_lock_irq(&priv->lock); in m48t35_read_time() 67 control = readb(&priv->reg->control); in m48t35_read_time() 68 writeb(control | M48T35_RTC_READ, &priv->reg->control); in m48t35_read_time() 69 tm->tm_sec = readb(&priv->reg->sec); in m48t35_read_time() [all …]
|
D | rtc-bq4802.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* rtc-bq4802.c: TI BQ4802 RTC driver. 32 return inb(p->ioport + off); in bq4802_read_io() 37 outb(val, p->ioport + off); in bq4802_write_io() 42 return readb(p->regs + off); in bq4802_read_mem() 47 writeb(val, p->regs + off); in bq4802_write_mem() 57 spin_lock_irqsave(&p->lock, flags); in bq4802_read_time() 59 val = p->read(p, 0x0e); in bq4802_read_time() 60 p->write(p, 0xe, val | 0x08); in bq4802_read_time() 62 tm->tm_sec = p->read(p, 0x00); in bq4802_read_time() [all …]
|
D | rtc-mc146818-lib.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 * Execute a function while the UIP (Update-in-progress) bit of the RTC is 29 for (i = 0; UIP_RECHECK_LOOPS_MS(i) < timeout; i++) { in mc146818_avoid_UIP() 91 * If the UIP (Update-in-progress) bit of the RTC is set for more then 119 * by the RTC when initially set to a non-zero value. in mc146818_get_time_callback() 121 p->time->tm_sec = seconds; in mc146818_get_time_callback() 122 p->time->tm_min = CMOS_READ(RTC_MINUTES); in mc146818_get_time_callback() 123 p->time->tm_hour = CMOS_READ(RTC_HOURS); in mc146818_get_time_callback() 124 p->time->tm_mday = CMOS_READ(RTC_DAY_OF_MONTH); in mc146818_get_time_callback() 125 p->time->tm_mon = CMOS_READ(RTC_MONTH); in mc146818_get_time_callback() [all …]
|
D | rtc-ds1511.c | 1 // SPDX-License-Identifier: GPL-2.0-only 25 #define DS1511_SEC 0x0 26 #define DS1511_MIN 0x1 27 #define DS1511_HOUR 0x2 28 #define DS1511_DOW 0x3 29 #define DS1511_DOM 0x4 30 #define DS1511_MONTH 0x5 31 #define DS1511_YEAR 0x6 32 #define DS1511_CENTURY 0x7 33 #define DS1511_AM1_SEC 0x8 [all …]
|
D | rtc-ds1286.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 27 return __raw_readl(&priv->rtcregs[reg]) & 0xff; in ds1286_rtc_read() 32 __raw_writel(data, &priv->rtcregs[reg]); in ds1286_rtc_write() 43 spin_lock_irqsave(&priv->lock, flags); in ds1286_alarm_irq_enable() 50 spin_unlock_irqrestore(&priv->lock, flags); in ds1286_alarm_irq_enable() 52 return 0; in ds1286_alarm_irq_enable() 66 spin_lock_irqsave(&priv->lock, flags); in ds1286_ioctl() 70 spin_unlock_irqrestore(&priv->lock, flags); in ds1286_ioctl() 74 spin_lock_irqsave(&priv->lock, flags); in ds1286_ioctl() 78 spin_unlock_irqrestore(&priv->lock, flags); in ds1286_ioctl() [all …]
|
/linux-6.14.4/tools/gpio/ |
D | gpio-event-mon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * gpio-event-mon - monitor GPIO line events from userspace 8 * gpio-event-mon -n <device-name> -o <offset> 26 #include "gpio-utils.h" 38 int i = 0; in monitor_device() 41 if (ret < 0) in monitor_device() 42 return -ENOMEM; in monitor_device() 44 cfd = open(chrdev_name, 0); in monitor_device() 45 if (cfd == -1) { in monitor_device() 46 ret = -errno; in monitor_device() [all …]
|
/linux-6.14.4/drivers/video/fbdev/ |
D | bw2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 48 #define BWTWO_REGISTER_OFFSET 0x400000 78 #define BWTWO_SR_RES_MASK 0x70 79 #define BWTWO_SR_1600_1280 0x50 80 #define BWTWO_SR_1152_900_76_A 0x40 81 #define BWTWO_SR_1152_900_76_B 0x60 82 #define BWTWO_SR_ID_MASK 0x0f 83 #define BWTWO_SR_ID_MONO 0x02 84 #define BWTWO_SR_ID_MONO_ECL 0x03 85 #define BWTWO_SR_ID_MSYNC 0x04 [all …]
|
/linux-6.14.4/arch/powerpc/boot/dts/fsl/ |
D | qoriq-sec5.2-0.dtsi | 2 * QorIQ Sec/Crypto 5.2 device tree stub [ controller @ offset 0x300000 ] 4 * Copyright 2011-2012 Freescale Semiconductor Inc. 36 compatible = "fsl,sec-v5.2", "fsl,sec-v5.0", "fsl,sec-v4.0"; 37 fsl,sec-era = <5>; 38 #address-cells = <1>; 39 #size-cells = <1>; 40 reg = <0x300000 0x10000>; 41 ranges = <0 0x300000 0x10000>; 42 interrupts = <92 2 0 0>; 45 compatible = "fsl,sec-v5.2-job-ring", [all …]
|
D | qoriq-sec5.3-0.dtsi | 2 * QorIQ Sec/Crypto 5.3 device tree stub [ controller @ offset 0x300000 ] 36 compatible = "fsl,sec-v5.3", "fsl,sec-v5.0", "fsl,sec-v4.0"; 37 fsl,sec-era = <4>; 38 #address-cells = <1>; 39 #size-cells = <1>; 40 reg = <0x300000 0x10000>; 41 ranges = <0 0x300000 0x10000>; 42 interrupts = <92 2 0 0>; 45 compatible = "fsl,sec-v5.3-job-ring", 46 "fsl,sec-v5.0-job-ring", [all …]
|