Searched refs:timer (Results 76 - 100 of 1561) sorted by relevance

1234567891011>>

/linux-master/drivers/iio/trigger/
H A Diio-trig-hrtimer.c27 struct hrtimer timer; member in struct:iio_hrtimer_info
98 static enum hrtimer_restart iio_hrtimer_trig_handler(struct hrtimer *timer) argument
102 info = container_of(timer, struct iio_hrtimer_info, timer);
104 hrtimer_forward_now(timer, info->period);
117 hrtimer_start(&trig_info->timer, trig_info->period,
120 hrtimer_cancel(&trig_info->timer);
148 hrtimer_init(&trig_info->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD);
149 trig_info->timer.function = iio_hrtimer_trig_handler;
176 /* cancel the timer afte
[all...]
H A DMakefile11 obj-$(CONFIG_IIO_STM32_TIMER_TRIGGER) += stm32-timer-trigger.o
/linux-master/arch/arm/lib/
H A Ddelay.c65 void __init register_current_timer_delay(const struct delay_timer *timer) argument
70 clocks_calc_mult_shift(&new_mult, &new_shift, timer->freq,
75 pr_err("Ignoring delay timer %ps, which has insufficient resolution of %lluns\n",
76 timer, res);
81 pr_info("Switching to timer-based delay loop, resolution %lluns\n", res);
82 delay_timer = timer;
83 lpj_fine = timer->freq / HZ;
/linux-master/drivers/gpu/drm/i915/selftests/
H A Dlib_sw_fence.c58 struct timed_fence *tf = from_timer(tf, t, timer);
67 timer_setup_on_stack(&tf->timer, timed_fence_wake, 0);
70 mod_timer(&tf->timer, expires);
77 if (del_timer_sync(&tf->timer))
80 destroy_timer_on_stack(&tf->timer);
/linux-master/drivers/clocksource/
H A Dtimer-cadence-ttc.c7 * based on arch/mips/kernel/time.c timer driver
29 * The input frequency to the timer module for emulation is 2.5MHz which is
30 * common to all the timer channels (T1, T2, and T3). With a pre-scaler of 32,
33 * The input frequency to the timer module in silicon is configurable and
67 * struct ttc_timer - This definition defines local timer structure
69 * @base_addr: Base address of timer
105 * ttc_set_interval - Set the timer interval value
107 * @timer: Pointer to the timer instance
110 static void ttc_set_interval(struct ttc_timer *timer, argument
142 struct ttc_timer *timer = &ttce->ttc; local
160 struct ttc_timer *timer = &to_ttc_timer_clksrc(cs)->ttc; local
183 struct ttc_timer *timer = &ttce->ttc; local
200 struct ttc_timer *timer = &ttce->ttc; local
218 struct ttc_timer *timer = &ttce->ttc; local
228 struct ttc_timer *timer = &ttce->ttc; local
488 struct device_node *timer = pdev->dev.of_node; local
[all...]
H A Dtimer-gxp.c48 struct gxp_timer *timer = to_gxp_timer(evt_dev); local
51 writeb_relaxed(MASK_TCS_TC, timer->control);
52 writel_relaxed(event, timer->counter);
53 writeb_relaxed(MASK_TCS_TC | MASK_TCS_ENABLE, timer->control);
60 struct gxp_timer *timer = (struct gxp_timer *)dev_id; local
62 if (!(readb_relaxed(timer->control) & MASK_TCS_TC))
65 writeb_relaxed(MASK_TCS_TC, timer->control);
67 timer->evt.event_handler(&timer->evt);
102 pr_err("Can't map timer bas
[all...]
H A Dtimer-msc313e.c3 * MStar timer driver
24 #include "timer-of.h"
93 struct timer_of *timer = to_timer_of(evt); local
95 msc313e_timer_stop(timer_of_base(timer));
102 struct timer_of *timer = to_timer_of(evt); local
104 msc313e_timer_stop(timer_of_base(timer));
105 msc313e_timer_start(timer_of_base(timer), false);
112 struct timer_of *timer = to_timer_of(evt); local
114 msc313e_timer_stop(timer_of_base(timer));
115 msc313e_timer_setup(timer_of_base(timer), timer_of_perio
123 struct timer_of *timer = to_timer_of(clkevt); local
[all...]
H A Dtimer-mediatek.c18 #include "timer-of.h"
50 /* system timer */
61 * - Start timer countdown.
118 /* Disable timer */
139 static void mtk_gpt_clkevt_time_stop(struct timer_of *to, u8 timer) argument
143 val = readl(timer_of_base(to) + GPT_CTRL_REG(timer));
145 GPT_CTRL_REG(timer));
149 unsigned long delay, u8 timer)
151 writel(delay, timer_of_base(to) + GPT_CMP_REG(timer));
155 bool periodic, u8 timer)
148 mtk_gpt_clkevt_time_setup(struct timer_of *to, unsigned long delay, u8 timer) argument
154 mtk_gpt_clkevt_time_start(struct timer_of *to, bool periodic, u8 timer) argument
219 mtk_gpt_setup(struct timer_of *to, u8 timer, u8 option) argument
233 mtk_gpt_enable_irq(struct timer_of *to, u8 timer) argument
[all...]
/linux-master/drivers/char/hw_random/
H A Dtimeriomem-rng.c38 struct hrtimer timer; member in struct:timeriomem_rng_private
86 hrtimer_forward_now(&priv->timer, priv->period);
87 hrtimer_restart(&priv->timer);
92 static enum hrtimer_restart timeriomem_rng_trigger(struct hrtimer *timer) argument
95 = container_of(timer, struct timeriomem_rng_private, timer);
155 hrtimer_init(&priv->timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
156 priv->timer.function = timeriomem_rng_trigger;
181 hrtimer_cancel(&priv->timer);
/linux-master/drivers/rtc/
H A Dinterface.c20 static int rtc_timer_enqueue(struct rtc_device *rtc, struct rtc_timer *timer);
21 static void rtc_timer_remove(struct rtc_device *rtc, struct rtc_timer *timer);
164 /* A timer might have just expired */
654 * @timer: pointer to the pie mode hrtimer
660 enum hrtimer_restart rtc_pie_update_irq(struct hrtimer *timer) argument
666 rtc = container_of(timer, struct rtc_device, pie_timer);
669 count = hrtimer_forward_now(timer, period);
724 * We always cancel the timer here first, because otherwise
725 * we could run into BUG_ON(timer->state != HRTIMER_STATE_CALLBACK);
726 * when we manage to start the timer befor
802 rtc_timer_enqueue(struct rtc_device *rtc, struct rtc_timer *timer) argument
865 rtc_timer_remove(struct rtc_device *rtc, struct rtc_timer *timer) argument
902 struct rtc_timer *timer; local
975 rtc_timer_init(struct rtc_timer *timer, void (*f)(struct rtc_device *r), struct rtc_device *rtc) argument
992 rtc_timer_start(struct rtc_device *rtc, struct rtc_timer *timer, ktime_t expires, ktime_t period) argument
1016 rtc_timer_cancel(struct rtc_device *rtc, struct rtc_timer *timer) argument
[all...]
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dclock.c179 struct mlx5_timer *timer = container_of(cc, struct mlx5_timer, cycles); local
180 struct mlx5_clock *clock = container_of(timer, struct mlx5_clock, timer);
191 struct mlx5_timer *timer; local
201 timer = &clock->timer;
202 clock_info->cycles = timer->tc.cycle_last;
203 clock_info->mult = timer->cycles.mult;
204 clock_info->nsec = timer->tc.nsec;
205 clock_info->frac = timer
244 struct mlx5_timer *timer; local
283 struct mlx5_timer *timer = &clock->timer; local
320 struct mlx5_timer *timer = &clock->timer; local
364 struct mlx5_timer *timer = &clock->timer; local
418 struct mlx5_timer *timer = &clock->timer; local
510 struct mlx5_timer *timer; local
935 struct mlx5_timer *timer = &clock->timer; local
954 struct mlx5_timer *timer = &clock->timer; local
989 struct mlx5_timer *timer; local
[all...]
/linux-master/kernel/time/
H A Dposix-timers.c7 * 2004-06-01 Fix CLOCK_REALTIME clock/timer TIMER_ABSTIME bug.
42 * constructed from current::signal and the timer ID and the timer is
43 * matched against current::signal and the timer ID when walking the hash
46 * This allows checkpoint/restore to reconstruct the exact timer IDs for
79 struct k_itimer *timer; local
81 hlist_for_each_entry_rcu(timer, head, t_hash, lockdep_is_held(&hash_lock)) {
82 /* timer->it_signal can be set concurrently */
83 if ((READ_ONCE(timer->it_signal) == sig) && (timer
97 posix_timer_add(struct k_itimer *timer) argument
245 struct hrtimer *timer = &timr->it.real.timer; local
310 posix_timer_fn(struct hrtimer *timer) argument
613 struct hrtimer *timer = &timr->it.real.timer; local
620 struct hrtimer *timer = &timr->it.real.timer; local
786 struct hrtimer *timer = &timr->it.real.timer; local
818 common_timer_wait_running(struct k_itimer *timer) argument
837 timer_wait_running(struct k_itimer *timer, unsigned long *flags) argument
985 common_timer_del(struct k_itimer *timer) argument
996 timer_delete_hook(struct k_itimer *timer) argument
1008 struct k_itimer *timer; local
1041 itimer_delete(struct k_itimer *timer) argument
[all...]
/linux-master/arch/sh/boards/
H A Dboard-secureedge5410.c16 #include <linux/timer.h>
23 #include <cpu/timer.h>
/linux-master/arch/mips/ralink/
H A DMakefile10 obj-y += clk.o timer.o
18 obj-$(CONFIG_MIPS_GIC) += irq-gic.o timer-gic.o
/linux-master/include/linux/
H A Ddw_apb_timer.h27 struct dw_apb_timer timer; member in struct:dw_apb_clock_event_device
32 struct dw_apb_timer timer; member in struct:dw_apb_clocksource
H A Dbcm47xx_wdt.h5 #include <linux/timer.h>
/linux-master/drivers/watchdog/
H A Dwatchdog_hrtimer_pretimeout.c12 static enum hrtimer_restart watchdog_hrtimer_pretimeout(struct hrtimer *timer) argument
16 wd_data = container_of(timer, struct watchdog_core_data, pretimeout_timer);
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtimer_crash.c8 struct bpf_timer timer; member in struct:map_elem
42 * check_and_free_timer_in_array, which will trigger the crash if timer
49 bpf_timer_cancel(&e->timer);
/linux-master/arch/powerpc/sysdev/
H A Dmpic_timer.c3 * MPIC timer driver
59 unsigned int timer_num; /* cascade control timer */
64 struct mpic_timer timer[TIMERS_PER_GROUP]; member in struct:timer_group_priv
74 /* cascade timer 0 and 1 */
76 /* cascade timer 1 and 2 */
78 /* cascade timer 2 and 3 */
106 /* detect whether there is a cascade timer available */
123 priv->timer[num].cascade_handle = casc_priv;
125 /* set timer busy */
128 return &priv->timer[nu
193 struct mpic_timer *timer; local
[all...]
/linux-master/arch/mips/include/asm/mach-rc32434/
H A Dtimer.h2 * Definitions for timer registers
43 struct timer { struct
/linux-master/sound/pci/ctxfi/
H A Dcttimer.h10 #include <linux/timer.h>
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
H A Dmac80211_if.h20 #include <linux/timer.h>
43 bool set; /* indicates if timer is active */
46 char *name; /* Description of the timer */
76 /* timer related fields */
78 struct brcms_timer *timers; /* timer cleanup queue */
102 /* timer functions */
106 void brcms_free_timer(struct brcms_timer *timer);
107 void brcms_add_timer(struct brcms_timer *timer, uint ms, int periodic);
108 bool brcms_del_timer(struct brcms_timer *timer);
/linux-master/drivers/gpu/drm/i915/gt/
H A Dmock_engine.h11 #include <linux/timer.h>
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dtimer.c4 #include "timer.skel.h"
24 static int timer(struct timer *timer_skel) function
59 /* check that there were no errors in timer execution */
85 struct timer *timer_skel = NULL;
92 err = timer(timer_skel);
93 ASSERT_OK(err, "timer");
/linux-master/drivers/net/wireguard/
H A Dtimers.c31 struct timer_list *timer,
37 mod_timer(timer, expires);
41 static void wg_expired_retransmit_handshake(struct timer_list *timer) argument
43 struct wg_peer *peer = from_timer(peer, timer,
57 /* We set a timer for destroying any residue that might be left
79 static void wg_expired_send_keepalive(struct timer_list *timer) argument
81 struct wg_peer *peer = from_timer(peer, timer, timer_send_keepalive);
91 static void wg_expired_new_handshake(struct timer_list *timer) argument
93 struct wg_peer *peer = from_timer(peer, timer, timer_new_handshake);
105 static void wg_expired_zero_key_material(struct timer_list *timer) argument
30 mod_peer_timer(struct wg_peer *peer, struct timer_list *timer, unsigned long expires) argument
135 wg_expired_send_persistent_keepalive(struct timer_list *timer) argument
[all...]

Completed in 572 milliseconds

1234567891011>>