Home
last modified time | relevance | path

Searched +full:timer +full:- (Results 1 – 25 of 1122) sorted by relevance

12345678910>>...45

/kernel/linux/linux-5.10/drivers/clocksource/
Dtimer-ti-dm.c1 // SPDX-License-Identifier: GPL-2.0+
3 * linux/arch/arm/plat-omap/dmtimer.c
5 * OMAP Dual-Mode Timers
7 * Copyright (C) 2010 Texas Instruments Incorporated - https://www.ti.com/
18 * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com>
22 #include <linux/clk-provider.h>
32 #include <linux/platform_data/dmtimer-omap.h>
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
[all …]
Dtimer-zevio.c1 // SPDX-License-Identifier: GPL-2.0-only
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()
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
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
[all …]
DMakefile1 # SPDX-License-Identifier: GPL-2.0
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
7 obj-$(CONFIG_X86_PM_TIMER) += acpi_pm.o
8 obj-$(CONFIG_SCx200HR_TIMER) += scx200_hrt.o
9 obj-$(CONFIG_CS5535_CLOCK_EVENT_SRC) += timer-cs5535.o
10 obj-$(CONFIG_CLKSRC_JCORE_PIT) += jcore-pit.o
[all …]
/kernel/linux/linux-6.6/drivers/clocksource/
Dtimer-ti-dm.c1 // SPDX-License-Identifier: GPL-2.0+
3 * linux/arch/arm/plat-omap/dmtimer.c
5 * OMAP Dual-Mode Timers
7 * Copyright (C) 2010 Texas Instruments Incorporated - https://www.ti.com/
18 * Added OMAP4 support - Santosh Shilimkar <santosh.shilimkar@ti.com>
22 #include <linux/clk-provider.h>
31 #include <linux/platform_data/dmtimer-omap.h>
33 #include <clocksource/timer-ti-dm.h>
36 * timer errata flags
40 * timer counter register is never read. For more details please refer to
[all …]
Dtimer-zevio.c1 // SPDX-License-Identifier: GPL-2.0-only
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()
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
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
[all …]
DMakefile1 # SPDX-License-Identifier: GPL-2.0
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
7 obj-$(CONFIG_X86_PM_TIMER) += acpi_pm.o
8 obj-$(CONFIG_SCx200HR_TIMER) += scx200_hrt.o
9 obj-$(CONFIG_CS5535_CLOCK_EVENT_SRC) += timer-cs5535.o
10 obj-$(CONFIG_CLKSRC_JCORE_PIT) += jcore-pit.o
[all …]
Dtimer-microchip-pit64b.c1 // SPDX-License-Identifier: GPL-2.0
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
65 * struct mchp_pit64b_clkevt - PIT64B clockevent data structure
66 * @timer: PIT64B timer
70 struct mchp_pit64b_timer timer; member
79 * struct mchp_pit64b_clksrc - PIT64B clocksource data structure
80 * @timer: PIT64B timer
[all …]
/kernel/linux/linux-6.6/drivers/rtc/
Drtc-brcmstb-waketimer.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright © 2014-2023 Broadcom
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()
[all …]
/kernel/linux/linux-6.6/include/linux/
Dhrtimer.h1 // SPDX-License-Identifier: GPL-2.0
3 * hrtimers - High-resolution kernel timers
21 #include <linux/timer.h>
30 * HRTIMER_MODE_ABS - Time value is absolute
31 * HRTIMER_MODE_REL - Time value is relative to now
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 */
[all …]
/kernel/linux/linux-5.10/include/linux/
Dhrtimer.h1 // SPDX-License-Identifier: GPL-2.0
3 * hrtimers - High-resolution kernel timers
21 #include <linux/timer.h>
30 * HRTIMER_MODE_ABS - Time value is absolute
31 * HRTIMER_MODE_REL - Time value is relative to now
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 */
[all …]
/kernel/linux/linux-6.6/net/netfilter/
Dxt_IDLETIMER.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Netfilter module to trigger a timer when packet matches.
6 * After timer expires a kevent will be sent.
9 * Written by Timo Teras <ext-timo.teras@nokia.com>
20 #include <linux/timer.h>
35 struct timer_list timer; member
56 if (!strcmp(label, entry->attr.attr.name)) in __idletimer_tg_find_by_label()
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()
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dxt_IDLETIMER.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Netfilter module to trigger a timer when packet matches.
6 * After timer expires a kevent will be sent.
9 * Written by Timo Teras <ext-timo.teras@nokia.com>
20 #include <linux/timer.h>
35 struct timer_list timer; member
56 if (!strcmp(label, entry->attr.attr.name)) in __idletimer_tg_find_by_label()
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()
[all …]
/kernel/linux/linux-5.10/drivers/rtc/
Drtc-brcmstb-waketimer.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright © 2014-2017 Broadcom
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
[all …]
/kernel/linux/linux-5.10/arch/s390/kernel/
Dvtime.c1 // SPDX-License-Identifier: GPL-2.0
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()
77 delta = cycles_new[i] - cycles_old[i]; in update_mt_scaling()
[all …]
/kernel/linux/linux-6.6/arch/s390/kernel/
Dvtime.c1 // SPDX-License-Identifier: GPL-2.0
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()
77 delta = cycles_new[i] - cycles_old[i]; in update_mt_scaling()
[all …]
/kernel/liteos_a/kernel/include/
Dlos_swtmr.h2 * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3 * Copyright (c) 2020-2023 Huawei Device Co., Ltd. All rights reserved.
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.
66 * Solution: Re-define the expiration time.
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…
[all …]
/kernel/linux/linux-6.6/sound/core/
Dtimer.c1 // SPDX-License-Identifier: GPL-2.0-or-later
17 #include <sound/timer.h>
37 MODULE_DESCRIPTION("ALSA timer interface");
45 MODULE_ALIAS("devname:snd/timer");
91 s32 tstamp_sec; /* Timestamp - last update */
103 s64 tstamp_sec; /* Timestamp - last update */
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.
145 timeri->owner = kstrdup(owner, GFP_KERNEL); in snd_timer_instance_new()
[all …]
/kernel/linux/linux-5.10/sound/core/
Dtimer.c1 // SPDX-License-Identifier: GPL-2.0-or-later
17 #include <sound/timer.h>
37 MODULE_DESCRIPTION("ALSA timer interface");
45 MODULE_ALIAS("devname:snd/timer");
91 s32 tstamp_sec; /* Timestamp - last update */
103 s64 tstamp_sec; /* Timestamp - last update */
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.
145 timeri->owner = kstrdup(owner, GFP_KERNEL); in snd_timer_instance_new()
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/timer/
Dti,timer-dm.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/timer/ti,timer-dm.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: TI dual-mode timer
10 - Tony Lindgren <tony@atomide.com>
13 The TI dual-mode timer is a general purpose timer with PWM capabilities.
18 - items:
19 - enum:
20 - ti,am335x-timer
[all …]
/kernel/linux/linux-6.6/kernel/time/
Dtimer.c1 // SPDX-License-Identifier: GPL-2.0
7 * 1997-01-28 Modified by Finn Arne Gangstad to make timers scale better.
9 * 1997-09-10 Updated NTP code according to technical memorandum Jan '96
11 * 1998-12-24 Fixed a xtime SMP race (we need the xtime_lock rw spinlock to
14 * 1999-03-10 Improved NTP compatibility by Ulrich Windl
15 * 2002-05-31 Move sys_sysinfo here and make its locking sane, Robert Love
16 * 2000-10-05 Implemented scalable SMP per-CPU timer handling.
33 #include <linux/posix-timers.h>
55 #include "tick-internal.h"
58 #include <trace/events/timer.h>
[all …]
/kernel/linux/linux-5.10/sound/isa/gus/
Dgus_timer.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Routines for Gravis UltraSound soundcards - Timers
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()
25 spin_lock_irqsave(&gus->reg_lock, flags); in snd_gf1_timer1_start()
26 ticks = timer->sticks; in snd_gf1_timer1_start()
27 tmp = (gus->gf1.timer_enabled |= 4); 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()
[all …]
/kernel/linux/linux-6.6/sound/isa/gus/
Dgus_timer.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Routines for Gravis UltraSound soundcards - Timers
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()
25 spin_lock_irqsave(&gus->reg_lock, flags); in snd_gf1_timer1_start()
26 ticks = timer->sticks; in snd_gf1_timer1_start()
27 tmp = (gus->gf1.timer_enabled |= 4); 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()
[all …]
/kernel/liteos_m/kernel/include/
Dlos_swtmr.h2 * Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
3 * Copyright (c) 2020-2021 Huawei Device Co., Ltd. All rights reserved.
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.
65 * Solution: Re-define the expiration time.
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…
[all …]

12345678910>>...45