| /kernel/linux/linux-5.10/drivers/clocksource/ |
| D | timer-ti-dm.c | 34 #include <clocksource/timer-ti-dm.h> 48 * omap_dm_timer_read_reg - read timer registers in posted and non-posted mode 49 * @timer: timer pointer over which read operation to perform 56 static inline u32 omap_dm_timer_read_reg(struct omap_dm_timer *timer, u32 reg) in omap_dm_timer_read_reg() argument 59 return __omap_dm_timer_read(timer, reg, timer->posted); in omap_dm_timer_read_reg() 63 * omap_dm_timer_write_reg - write timer registers in posted and non-posted mode 64 * @timer: timer pointer over which write operation is to perform 72 static void omap_dm_timer_write_reg(struct omap_dm_timer *timer, u32 reg, in omap_dm_timer_write_reg() argument 76 __omap_dm_timer_write(timer, reg, value, timer->posted); in omap_dm_timer_write_reg() 79 static void omap_timer_restore_context(struct omap_dm_timer *timer) in omap_timer_restore_context() argument [all …]
|
| D | timer-zevio.c | 3 * linux/drivers/clocksource/zevio-timer.c 64 struct zevio_timer *timer = container_of(dev, struct zevio_timer, in zevio_timer_set_event() local 67 writel(delta, timer->timer1 + IO_CURRENT_VAL); in zevio_timer_set_event() 69 timer->timer1 + IO_CONTROL); in zevio_timer_set_event() 76 struct zevio_timer *timer = container_of(dev, struct zevio_timer, in zevio_timer_shutdown() local 79 /* Disable timer interrupts */ in zevio_timer_shutdown() 80 writel(0, timer->interrupt_regs + IO_INTR_MSK); in zevio_timer_shutdown() 81 writel(TIMER_INTR_ALL, timer->interrupt_regs + IO_INTR_ACK); in zevio_timer_shutdown() 82 /* Stop timer */ in zevio_timer_shutdown() 83 writel(CNTL_STOP_TIMER, timer->timer1 + IO_CONTROL); in zevio_timer_shutdown() [all …]
|
| D | Kconfig | 36 bool "BCM2835 timer driver" if COMPILE_TEST 39 Enables the support for the BCM2835 timer driver. 42 bool "BCM mobile timer driver" if COMPILE_TEST 45 Enables the support for the BCM Kona mobile timer driver. 48 bool "Texas Instruments DaVinci timer driver" if COMPILE_TEST 50 Enables the support for the TI DaVinci timer driver. 53 bool "Digicolor timer driver" if COMPILE_TEST 57 Enables the support for the digicolor timer driver. 60 bool "DW APB timer driver" if COMPILE_TEST 62 Enables the support for the dw_apb timer. [all …]
|
| D | Makefile | 2 obj-$(CONFIG_TIMER_OF) += timer-of.o 3 obj-$(CONFIG_TIMER_PROBE) += timer-probe.o 4 obj-$(CONFIG_ATMEL_PIT) += timer-atmel-pit.o 5 obj-$(CONFIG_ATMEL_ST) += timer-atmel-st.o 6 obj-$(CONFIG_ATMEL_TCB_CLKSRC) += timer-atmel-tcb.o 9 obj-$(CONFIG_CS5535_CLOCK_EVENT_SRC) += timer-cs5535.o 18 obj-$(CONFIG_DAVINCI_TIMER) += timer-davinci.o 19 obj-$(CONFIG_DIGICOLOR_TIMER) += timer-digicolor.o 20 obj-$(CONFIG_OMAP_DM_TIMER) += timer-ti-dm.o 21 obj-$(CONFIG_OMAP_DM_TIMER) += timer-ti-dm-systimer.o [all …]
|
| /kernel/linux/linux-6.6/drivers/clocksource/ |
| D | timer-ti-dm.c | 33 #include <clocksource/timer-ti-dm.h> 36 * timer errata flags 40 * timer counter register is never read. For more details please refer to 159 * dmtimer_read - read timer registers in posted and non-posted mode 160 * @timer: timer pointer over which read operation to perform 167 static inline u32 dmtimer_read(struct dmtimer *timer, u32 reg) in dmtimer_read() argument 175 if (wp && timer->posted) in dmtimer_read() 176 while (readl_relaxed(timer->pend) & wp) in dmtimer_read() 179 return readl_relaxed(timer->func_base + offset); in dmtimer_read() 183 * dmtimer_write - write timer registers in posted and non-posted mode [all …]
|
| D | timer-zevio.c | 3 * linux/drivers/clocksource/zevio-timer.c 64 struct zevio_timer *timer = container_of(dev, struct zevio_timer, in zevio_timer_set_event() local 67 writel(delta, timer->timer1 + IO_CURRENT_VAL); in zevio_timer_set_event() 69 timer->timer1 + IO_CONTROL); in zevio_timer_set_event() 76 struct zevio_timer *timer = container_of(dev, struct zevio_timer, in zevio_timer_shutdown() local 79 /* Disable timer interrupts */ in zevio_timer_shutdown() 80 writel(0, timer->interrupt_regs + IO_INTR_MSK); in zevio_timer_shutdown() 81 writel(TIMER_INTR_ALL, timer->interrupt_regs + IO_INTR_ACK); in zevio_timer_shutdown() 82 /* Stop timer */ in zevio_timer_shutdown() 83 writel(CNTL_STOP_TIMER, timer->timer1 + IO_CONTROL); in zevio_timer_shutdown() [all …]
|
| D | Kconfig | 36 bool "BCM2835 timer driver" if COMPILE_TEST 39 Enables the support for the BCM2835 timer driver. 42 bool "BCM mobile timer driver" if COMPILE_TEST 45 Enables the support for the BCM Kona mobile timer driver. 48 bool "Texas Instruments DaVinci timer driver" if COMPILE_TEST 50 Enables the support for the TI DaVinci timer driver. 53 bool "Digicolor timer driver" if COMPILE_TEST 57 Enables the support for the digicolor timer driver. 60 bool "OMAP dual-mode timer driver" if ARCH_K3 || COMPILE_TEST 64 Enables the support for the TI dual-mode timer driver. [all …]
|
| D | Makefile | 2 obj-$(CONFIG_TIMER_OF) += timer-of.o 3 obj-$(CONFIG_TIMER_PROBE) += timer-probe.o 4 obj-$(CONFIG_ATMEL_PIT) += timer-atmel-pit.o 5 obj-$(CONFIG_ATMEL_ST) += timer-atmel-st.o 6 obj-$(CONFIG_ATMEL_TCB_CLKSRC) += timer-atmel-tcb.o 9 obj-$(CONFIG_CS5535_CLOCK_EVENT_SRC) += timer-cs5535.o 18 obj-$(CONFIG_DAVINCI_TIMER) += timer-davinci.o 19 obj-$(CONFIG_DIGICOLOR_TIMER) += timer-digicolor.o 20 obj-$(CONFIG_OMAP_DM_TIMER) += timer-ti-dm.o 21 obj-$(CONFIG_OMAP_DM_SYSTIMER) += timer-ti-dm-systimer.o [all …]
|
| D | timer-microchip-pit64b.c | 3 * 64-bit Periodic Interval Timer driver 38 #define MCHP_PIT64B_TLSBR 0x20 /* Timer LSB Register */ 40 #define MCHP_PIT64B_TMSBR 0x24 /* Timer MSB Register */ 51 * struct mchp_pit64b_timer - PIT64B timer data structure 66 * @timer: PIT64B timer 70 struct mchp_pit64b_timer timer; member 80 * @timer: PIT64B timer 84 struct mchp_pit64b_timer timer; member 92 /* Base address for clocksource timer. */ 94 /* Default cycles for clockevent timer. */ [all …]
|
| /kernel/linux/linux-6.6/drivers/rtc/ |
| D | rtc-brcmstb-waketimer.c | 49 static inline bool brcmstb_waketmr_is_pending(struct brcmstb_waketmr *timer) in brcmstb_waketmr_is_pending() argument 53 reg = readl_relaxed(timer->base + BRCMSTB_WKTMR_EVENT); in brcmstb_waketmr_is_pending() 57 static inline void brcmstb_waketmr_clear_alarm(struct brcmstb_waketmr *timer) in brcmstb_waketmr_clear_alarm() argument 61 if (timer->alarm_en && timer->alarm_irq) in brcmstb_waketmr_clear_alarm() 62 disable_irq(timer->alarm_irq); in brcmstb_waketmr_clear_alarm() 63 timer->alarm_en = false; in brcmstb_waketmr_clear_alarm() 64 reg = readl_relaxed(timer->base + BRCMSTB_WKTMR_COUNTER); in brcmstb_waketmr_clear_alarm() 65 writel_relaxed(reg - 1, timer->base + BRCMSTB_WKTMR_ALARM); in brcmstb_waketmr_clear_alarm() 66 writel_relaxed(WKTMR_ALARM_EVENT, timer->base + BRCMSTB_WKTMR_EVENT); in brcmstb_waketmr_clear_alarm() 67 (void)readl_relaxed(timer->base + BRCMSTB_WKTMR_EVENT); in brcmstb_waketmr_clear_alarm() [all …]
|
| /kernel/linux/linux-6.6/include/linux/ |
| D | hrtimer.h | 21 #include <linux/timer.h> 32 * HRTIMER_MODE_PINNED - Timer is bound to CPU (is only considered 33 * when starting the timer) 34 * HRTIMER_MODE_SOFT - Timer callback function will be executed in 36 * HRTIMER_MODE_HARD - Timer callback function will be executed in 66 HRTIMER_NORESTART, /* Timer is not restarted */ 67 HRTIMER_RESTART, /* Timer must be restarted */ 71 * Values to track state of the timer 78 * The callback state is not part of the timer->state because clearing it would 79 * mean touching the timer after the callback, this makes it impossible to free [all …]
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | hrtimer.h | 21 #include <linux/timer.h> 32 * HRTIMER_MODE_PINNED - Timer is bound to CPU (is only considered 33 * when starting the timer) 34 * HRTIMER_MODE_SOFT - Timer callback function will be executed in 36 * HRTIMER_MODE_HARD - Timer callback function will be executed in 66 HRTIMER_NORESTART, /* Timer is not restarted */ 67 HRTIMER_RESTART, /* Timer must be restarted */ 71 * Values to track state of the timer 77 * 0x02 timer is pinned to a cpu 79 * The callback state is not part of the timer->state because clearing it would [all …]
|
| /kernel/linux/linux-5.10/drivers/rtc/ |
| D | rtc-brcmstb-waketimer.c | 44 static inline void brcmstb_waketmr_clear_alarm(struct brcmstb_waketmr *timer) in brcmstb_waketmr_clear_alarm() argument 46 writel_relaxed(1, timer->base + BRCMSTB_WKTMR_EVENT); in brcmstb_waketmr_clear_alarm() 47 (void)readl_relaxed(timer->base + BRCMSTB_WKTMR_EVENT); in brcmstb_waketmr_clear_alarm() 50 static void brcmstb_waketmr_set_alarm(struct brcmstb_waketmr *timer, in brcmstb_waketmr_set_alarm() argument 53 brcmstb_waketmr_clear_alarm(timer); in brcmstb_waketmr_set_alarm() 56 writel_relaxed(timer->rate, timer->base + BRCMSTB_WKTMR_PRESCALER); in brcmstb_waketmr_set_alarm() 58 writel_relaxed(secs + 1, timer->base + BRCMSTB_WKTMR_ALARM); in brcmstb_waketmr_set_alarm() 63 struct brcmstb_waketmr *timer = data; in brcmstb_waketmr_irq() local 65 pm_wakeup_event(timer->dev, 0); in brcmstb_waketmr_irq() 75 static void wktmr_read(struct brcmstb_waketmr *timer, in wktmr_read() argument [all …]
|
| /kernel/linux/linux-6.6/net/netfilter/ |
| D | xt_IDLETIMER.c | 5 * Netfilter module to trigger a timer when packet matches. 6 * After timer expires a kevent will be sent. 20 #include <linux/timer.h> 35 struct timer_list timer; member 66 struct idletimer_tg *timer; in idletimer_tg_show() local 73 timer = __idletimer_tg_find_by_label(attr->attr.name); in idletimer_tg_show() 74 if (timer) { in idletimer_tg_show() 75 if (timer->timer_type & XT_IDLETIMER_ALARM) { in idletimer_tg_show() 76 ktime_t expires_alarm = alarm_expires_remaining(&timer->alarm); in idletimer_tg_show() 80 expires = timer->timer.expires; in idletimer_tg_show() [all …]
|
| /kernel/linux/linux-5.10/net/netfilter/ |
| D | xt_IDLETIMER.c | 5 * Netfilter module to trigger a timer when packet matches. 6 * After timer expires a kevent will be sent. 20 #include <linux/timer.h> 35 struct timer_list timer; member 66 struct idletimer_tg *timer; in idletimer_tg_show() local 73 timer = __idletimer_tg_find_by_label(attr->attr.name); in idletimer_tg_show() 74 if (timer) { in idletimer_tg_show() 75 if (timer->timer_type & XT_IDLETIMER_ALARM) { in idletimer_tg_show() 76 ktime_t expires_alarm = alarm_expires_remaining(&timer->alarm); in idletimer_tg_show() 80 expires = timer->timer.expires; in idletimer_tg_show() [all …]
|
| /kernel/linux/linux-5.10/arch/s390/kernel/ |
| D | vtime.c | 3 * Virtual cpu timer based timer functions. 38 u64 timer; in get_vtimer() local 40 asm volatile("stpt %0" : "=Q" (timer)); in get_vtimer() 41 return timer; in get_vtimer() 46 u64 timer; in set_vtimer() local 49 " stpt %0\n" /* Store current cpu timer value */ in set_vtimer() 51 : "=Q" (timer) : "Q" (expires)); in set_vtimer() 52 S390_lowcore.system_timer += S390_lowcore.last_update_timer - timer; in set_vtimer() 127 u64 timer, clock, user, guest, system, hardirq, softirq; in do_account_vtime() local 129 timer = S390_lowcore.last_update_timer; in do_account_vtime() [all …]
|
| /kernel/liteos_a/kernel/include/ |
| D | los_swtmr.h | 33 * @defgroup los_swtmr Software timer 52 * Software timer error code: The timeout handling function is NULL. 62 * Software timer error code: The expiration time is 0. 72 * Software timer error code: Invalid software timer mode. 82 * Software timer error code: The passed-in software timer ID is NULL. 86 * Solution: Define the software timer ID before passing it in. 92 …* Software timer error code: The number of software timers exceeds the configured permitted maximu… 96 …e-configure the permitted maximum number of software timers, or wait for a software timer to become 103 * Software timer error code: Invalid software timer ID. 107 * Solution: Pass in a valid software timer ID. [all …]
|
| /kernel/linux/linux-6.6/arch/s390/kernel/ |
| D | vtime.c | 3 * Virtual cpu timer based timer functions. 38 u64 timer; in get_vtimer() local 40 asm volatile("stpt %0" : "=Q" (timer)); in get_vtimer() 41 return timer; in get_vtimer() 46 u64 timer; in set_vtimer() local 49 " stpt %0\n" /* Store current cpu timer value */ in set_vtimer() 51 : "=Q" (timer) : "Q" (expires)); in set_vtimer() 52 S390_lowcore.system_timer += S390_lowcore.last_update_timer - timer; in set_vtimer() 127 u64 timer, clock, user, guest, system, hardirq, softirq; in do_account_vtime() local 129 timer = S390_lowcore.last_update_timer; in do_account_vtime() [all …]
|
| /kernel/liteos_m/kernel/include/ |
| D | los_swtmr.h | 33 * @defgroup los_swtmr Software timer 51 * Software timer error code: The timeout handling function is NULL. 61 * Software timer error code: The expiration time is 0. 71 * Software timer error code: Invalid software timer mode. 81 * Software timer error code: The passed-in software timer ID is NULL. 85 * Solution: Define the software timer ID before passing it in. 91 …* Software timer error code: The number of software timers exceeds the configured permitted maximu… 95 …e-configure the permitted maximum number of software timers, or wait for a software timer to become 102 * Software timer error code: Invalid software timer ID. 106 * Solution: Pass in a valid software timer ID. [all …]
|
| /kernel/linux/linux-6.6/sound/core/ |
| D | timer.c | 17 #include <sound/timer.h> 37 MODULE_DESCRIPTION("ALSA timer interface"); 45 MODULE_ALIAS("devname:snd/timer"); 128 static int snd_timer_free(struct snd_timer *timer); 133 static void snd_timer_reschedule(struct snd_timer * timer, unsigned long ticks_left); 136 * create a timer instance with the given owner string. 172 * find a timer instance from the given timer id 176 struct snd_timer *timer; in snd_timer_find() local 178 list_for_each_entry(timer, &snd_timer_list, device_list) { in snd_timer_find() 179 if (timer->tmr_class != tid->dev_class) in snd_timer_find() [all …]
|
| /kernel/linux/linux-5.10/sound/core/ |
| D | timer.c | 17 #include <sound/timer.h> 37 MODULE_DESCRIPTION("ALSA timer interface"); 45 MODULE_ALIAS("devname:snd/timer"); 128 static int snd_timer_free(struct snd_timer *timer); 133 static void snd_timer_reschedule(struct snd_timer * timer, unsigned long ticks_left); 136 * create a timer instance with the given owner string. 172 * find a timer instance from the given timer id 176 struct snd_timer *timer; in snd_timer_find() local 178 list_for_each_entry(timer, &snd_timer_list, device_list) { in snd_timer_find() 179 if (timer->tmr_class != tid->dev_class) in snd_timer_find() [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/timer/ |
| D | ti,timer-dm.yaml | 4 $id: http://devicetree.org/schemas/timer/ti,timer-dm.yaml# 7 title: TI dual-mode timer 13 The TI dual-mode timer is a general purpose timer with PWM capabilities. 20 - ti,am335x-timer 21 - ti,am335x-timer-1ms 22 - ti,am654-timer 23 - ti,dm814-timer 24 - ti,dm816-timer 25 - ti,omap2420-timer 26 - ti,omap3430-timer [all …]
|
| /kernel/linux/linux-6.6/kernel/time/ |
| D | timer.c | 16 * 2000-10-05 Implemented scalable SMP per-CPU timer handling. 58 #include <trace/events/timer.h> 65 * The timer wheel has LVL_DEPTH array levels. Each level provides an array of 72 * The array level of a newly armed timer depends on the relative expiry 76 * Contrary to the original timer wheel implementation, which aims for 'exact' 78 * the timers into the lower array levels. The previous 'classic' timer wheel 83 * This is an optimization of the original timer wheel implementation for the 84 * majority of the timer wheel use cases: timeouts. The vast majority of 318 * due to delays of the timer irq, long irq off times etc etc) then in round_jiffies_common() 501 static inline unsigned int timer_get_idx(struct timer_list *timer) in timer_get_idx() argument [all …]
|
| /kernel/linux/linux-5.10/sound/isa/gus/ |
| D | gus_timer.c | 14 * Timer 1 - 80us 17 static int snd_gf1_timer1_start(struct snd_timer * timer) in snd_gf1_timer1_start() argument 24 gus = snd_timer_chip(timer); in snd_gf1_timer1_start() 26 ticks = timer->sticks; in snd_gf1_timer1_start() 28 snd_gf1_write8(gus, SNDRV_GF1_GB_ADLIB_TIMER_1, 256 - ticks); /* timer 1 count */ in snd_gf1_timer1_start() 29 snd_gf1_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, tmp); /* enable timer 1 IRQ */ in snd_gf1_timer1_start() 30 snd_gf1_adlib_write(gus, 0x04, tmp >> 2); /* timer 2 start */ in snd_gf1_timer1_start() 35 static int snd_gf1_timer1_stop(struct snd_timer * timer) in snd_gf1_timer1_stop() argument 41 gus = snd_timer_chip(timer); in snd_gf1_timer1_stop() 44 snd_gf1_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, tmp); /* disable timer #1 */ in snd_gf1_timer1_stop() [all …]
|
| /kernel/linux/linux-6.6/sound/isa/gus/ |
| D | gus_timer.c | 14 * Timer 1 - 80us 17 static int snd_gf1_timer1_start(struct snd_timer * timer) in snd_gf1_timer1_start() argument 24 gus = snd_timer_chip(timer); in snd_gf1_timer1_start() 26 ticks = timer->sticks; in snd_gf1_timer1_start() 28 snd_gf1_write8(gus, SNDRV_GF1_GB_ADLIB_TIMER_1, 256 - ticks); /* timer 1 count */ in snd_gf1_timer1_start() 29 snd_gf1_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, tmp); /* enable timer 1 IRQ */ in snd_gf1_timer1_start() 30 snd_gf1_adlib_write(gus, 0x04, tmp >> 2); /* timer 2 start */ in snd_gf1_timer1_start() 35 static int snd_gf1_timer1_stop(struct snd_timer * timer) in snd_gf1_timer1_stop() argument 41 gus = snd_timer_chip(timer); in snd_gf1_timer1_stop() 44 snd_gf1_write8(gus, SNDRV_GF1_GB_SOUND_BLASTER_CONTROL, tmp); /* disable timer #1 */ in snd_gf1_timer1_stop() [all …]
|