Searched refs:timer (Results 1 - 25 of 800) sorted by relevance

1234567891011>>

/drivers/clocksource/
H A Ddw_apb_timer.c52 static unsigned long apbt_readl(struct dw_apb_timer *timer, unsigned long offs) argument
54 return readl(timer->base + offs);
57 static void apbt_writel(struct dw_apb_timer *timer, unsigned long val, argument
60 writel(val, timer->base + offs);
63 static void apbt_disable_int(struct dw_apb_timer *timer) argument
65 unsigned long ctrl = apbt_readl(timer, APBTMR_N_CONTROL);
68 apbt_writel(timer, ctrl, APBTMR_N_CONTROL);
78 disable_irq(dw_ced->timer.irq);
79 apbt_disable_int(&dw_ced->timer);
82 static void apbt_eoi(struct dw_apb_timer *timer) argument
104 apbt_enable_int(struct dw_apb_timer *timer) argument
[all...]
H A Dcs5535-clockevt.c63 static void disable_timer(struct cs5535_mfgpt_timer *timer) argument
66 cs5535_mfgpt_write(timer, MFGPT_REG_SETUP,
71 static void start_timer(struct cs5535_mfgpt_timer *timer, uint16_t delta) argument
73 cs5535_mfgpt_write(timer, MFGPT_REG_CMP2, delta);
74 cs5535_mfgpt_write(timer, MFGPT_REG_COUNTER, 0);
76 cs5535_mfgpt_write(timer, MFGPT_REG_SETUP,
141 struct cs5535_mfgpt_timer *timer; local
145 timer = cs5535_mfgpt_alloc_timer(MFGPT_TIMER_ANY, MFGPT_DOMAIN_WORKING);
146 if (!timer) {
147 printk(KERN_ERR DRV_NAME ": Could not allocate MFPGT timer\
[all...]
/drivers/misc/
H A Dcs5535-mfgpt.c44 int cs5535_mfgpt_toggle_event(struct cs5535_mfgpt_timer *timer, int cmp, argument
50 if (!timer) {
67 mask = 1 << (timer->nr + 24);
72 mask = 1 << (timer->nr + shift);
77 mask = 1 << (timer->nr + shift);
96 int cs5535_mfgpt_set_irq(struct cs5535_mfgpt_timer *timer, int cmp, int *irq, argument
102 if (!timer) {
109 * is using the same CMP of the timer's Siamese twin, the IRQ is set to
116 shift = ((cmp == MFGPT_CMP1 ? 0 : 4) + timer->nr % 4) * 4;
134 if (cs5535_mfgpt_toggle_event(timer, cm
148 struct cs5535_mfgpt_timer *timer = NULL; local
211 cs5535_mfgpt_free_timer(struct cs5535_mfgpt_timer *timer) argument
228 cs5535_mfgpt_read(struct cs5535_mfgpt_timer *timer, uint16_t reg) argument
234 cs5535_mfgpt_write(struct cs5535_mfgpt_timer *timer, uint16_t reg, uint16_t value) argument
267 struct cs5535_mfgpt_timer timer = { .chip = mfgpt }; local
[all...]
/drivers/isdn/mISDN/
H A Dtimerdev.c3 * general timer device for using in ISDN stacks
23 #include <linux/timer.h>
75 struct mISDNtimer *timer, *next; local
79 list_for_each_entry_safe(timer, next, &dev->pending, list) {
80 del_timer(&timer->tl);
81 kfree(timer);
83 list_for_each_entry_safe(timer, next, &dev->expired, list) {
84 kfree(timer);
95 struct mISDNtimer *timer; local
117 timer
152 struct mISDNtimer *timer = (void *)data; local
166 struct mISDNtimer *timer; local
197 struct mISDNtimer *timer; local
[all...]
H A Dfsm.h23 #include <linux/timer.h>
/drivers/net/fddi/skfp/
H A Dsmttimer.c18 SMT timer
39 void smt_timer_stop(struct s_smc *smc, struct smt_timer *timer) argument
45 * remove timer from queue
47 timer->tm_active = FALSE ;
48 if (smc->t.st_queue == timer && !timer->tm_next) {
52 if (tm == timer) {
62 void smt_timer_start(struct s_smc *smc, struct smt_timer *timer, u_long time, argument
72 smt_timer_stop(smc,timer) ;
73 timer
[all...]
/drivers/leds/
H A Dledtrig-heartbeat.c6 * Based on Richard Purdie's ledtrig-timer.c and some arch's
18 #include <linux/timer.h>
26 struct timer_list timer; member in struct:heartbeat_trig_data
70 mod_timer(&heartbeat_data->timer, jiffies + delay);
82 setup_timer(&heartbeat_data->timer,
85 led_heartbeat_function(heartbeat_data->timer.data);
93 del_timer_sync(&heartbeat_data->timer);
/drivers/pcmcia/
H A Dbcm63xx_pcmcia.h5 #include <linux/timer.h>
48 /* timer used for socket status polling */
49 struct timer_list timer; member in struct:bcm63xx_pcmcia_socket
/drivers/staging/iio/trigger/
H A DMakefile8 obj-$(CONFIG_IIO_BFIN_TMR_TRIGGER) += iio-trig-bfin-timer.o
/drivers/isdn/sc/
H A DMakefile10 ioctl.o interrupt.o message.o timer.o
H A Dincludes.h14 #include <linux/timer.h>
/drivers/staging/line6/
H A Dtoneport.h44 struct timer_list timer; member in struct:usb_line6_toneport
/drivers/net/ethernet/mellanox/mlx4/
H A Dcatas.c84 mod_timer(&priv->catas_err.timer,
125 init_timer(&priv->catas_err.timer);
138 priv->catas_err.timer.data = (unsigned long) dev;
139 priv->catas_err.timer.function = poll_catas;
140 priv->catas_err.timer.expires =
142 add_timer(&priv->catas_err.timer);
149 del_timer_sync(&priv->catas_err.timer);
/drivers/staging/android/
H A Dtimed_gpio.c30 struct hrtimer timer; member in struct:timed_gpio_data
37 static enum hrtimer_restart gpio_timer_func(struct hrtimer *timer) argument
40 container_of(timer, struct timed_gpio_data, timer);
51 if (hrtimer_active(&data->timer)) {
52 ktime_t r = hrtimer_get_remaining(&data->timer);
67 /* cancel previous timer and set GPIO according to value */
68 hrtimer_cancel(&data->timer);
75 hrtimer_start(&data->timer,
102 hrtimer_init(&gpio_dat->timer, CLOCK_MONOTONI
[all...]
/drivers/usb/otg/
H A Dotg_fsm.h98 void (*add_timer)(void *timer);
99 void (*del_timer)(void *timer);
139 static inline void otg_add_timer(struct otg_fsm *fsm, void *timer) argument
141 fsm->ops->add_timer(timer);
144 static inline void otg_del_timer(struct otg_fsm *fsm, void *timer) argument
146 fsm->ops->del_timer(timer);
151 /* Defined by device specific driver, for different timer implementation */
/drivers/watchdog/
H A Dep93xx_wdt.c33 #include <linux/timer.h>
52 static struct timer_list timer; variable in typeref:struct:timer_list
66 /* Re-set the timer interval */
67 mod_timer(&timer, jiffies + WDT_INTERVAL);
75 mod_timer(&timer, jiffies + WDT_INTERVAL);
82 del_timer_sync(&timer);
146 setup_timer(&timer, ep93xx_wdt_timer_ping, 1);
/drivers/infiniband/hw/mthca/
H A Dmthca_catas.c35 #include <linux/timer.h>
144 mod_timer(&dev->catas_err.timer,
152 init_timer(&dev->catas_err.timer);
167 dev->catas_err.timer.data = (unsigned long) dev;
168 dev->catas_err.timer.function = poll_catas;
169 dev->catas_err.timer.expires = jiffies + MTHCA_CATAS_POLL_INTERVAL;
171 add_timer(&dev->catas_err.timer);
176 del_timer_sync(&dev->catas_err.timer);
/drivers/net/wireless/brcm80211/brcmsmac/
H A Dmac80211_if.h20 #include <linux/timer.h>
41 bool set; /* indicates if timer is active */
44 char *name; /* Description of the timer */
72 /* timer related fields */
74 struct brcms_timer *timers; /* timer cleanup queue */
96 /* timer functions */
100 extern void brcms_free_timer(struct brcms_timer *timer);
101 extern void brcms_add_timer(struct brcms_timer *timer, uint ms, int periodic);
102 extern bool brcms_del_timer(struct brcms_timer *timer);
/drivers/char/
H A Dhpet.c208 struct hpet_timer __iomem *timer; local
216 timer = devp->hd_timer;
219 v = readl(&timer->hpet_config);
222 writel(v, &timer->hpet_config);
226 v = (readq(&timer->hpet_config) & Tn_INT_ROUTE_CAP_MASK) >>
254 v = readl(&timer->hpet_config);
256 writel(v, &timer->hpet_config);
416 struct hpet_timer __iomem *timer; local
420 timer = devp->hd_timer;
424 writeq((readq(&timer
453 struct hpet_timer __iomem *timer; local
577 struct hpet_timer __iomem *timer; local
782 struct hpet_timer __iomem *timer = NULL; local
928 struct hpet_timer __iomem *timer; local
[all...]
/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);
76 /* A timer might have just expired */
117 /* A timer might have just expired */
554 * @timer: pointer to the pie mode hrtimer
560 enum hrtimer_restart rtc_pie_update_irq(struct hrtimer *timer) argument
565 rtc = container_of(timer, struct rtc_device, pie_timer);
568 count = hrtimer_forward_now(timer, period);
661 * We always cancel the timer here first, because otherwise
662 * we could run into BUG_ON(timer
763 rtc_timer_enqueue(struct rtc_device *rtc, struct rtc_timer *timer) argument
804 rtc_timer_remove(struct rtc_device *rtc, struct rtc_timer *timer) argument
837 struct rtc_timer *timer; local
892 rtc_timer_init(struct rtc_timer *timer, void (*f)(void* p), void* data) argument
908 rtc_timer_start(struct rtc_device *rtc, struct rtc_timer* timer, ktime_t expires, ktime_t period) argument
931 rtc_timer_cancel(struct rtc_device *rtc, struct rtc_timer* timer) argument
[all...]
/drivers/net/ethernet/dec/tulip/
H A Dpnic2.c91 mod_timer(&tp->timer, RUN_AT(next_tick));
326 del_timer_sync(&tp->timer);
328 tp->timer.expires = RUN_AT(3*HZ);
329 add_timer(&tp->timer);
351 del_timer_sync(&tp->timer);
353 tp->timer.expires = RUN_AT(3*HZ);
354 add_timer(&tp->timer);
375 del_timer_sync(&tp->timer);
377 tp->timer.expires = RUN_AT(3*HZ);
378 add_timer(&tp->timer);
[all...]
/drivers/pps/generators/
H A Dpps_gen_parport.c57 struct hrtimer timer; member in struct:pps_generator_pp
71 static enum hrtimer_restart hrtimer_event(struct hrtimer *timer) argument
92 expire_time = ktime_to_timespec(hrtimer_get_softexpires(timer));
93 dev = container_of(timer, struct pps_generator_pp, timer);
146 hrtimer_set_expires(timer,
217 hrtimer_init(&device.timer, CLOCK_REALTIME, HRTIMER_MODE_ABS);
218 device.timer.function = hrtimer_event;
219 hrtimer_start(&device.timer, next_intr_time(&device), HRTIMER_MODE_ABS);
232 hrtimer_cancel(&device.timer);
[all...]
/drivers/oprofile/
H A Doprof.c32 /* timer
34 1 - use the timer int mechanism regardless
36 static int timer = 0; variable
252 if (!timer && !oprofilefs_register())
257 /* setup timer mode: */
259 /* no nmi timer mode if oprofile.timer is set */
260 if (timer || op_nmi_timer_init(&oprofile_ops)) {
281 module_param_named(timer, timer, in
[all...]
/drivers/scsi/isci/
H A Disci.h153 * This member indicates interrupt coalescence timer may cause SAS
490 * Each timer is associated with a cancellation flag that is set when
491 * del_timer() is called and checked in the timer callback function. This
496 struct timer_list timer; member in struct:sci_timer
503 tmr->timer.function = fn;
504 tmr->timer.data = (unsigned long) tmr;
506 init_timer(&tmr->timer);
512 mod_timer(&tmr->timer, jiffies + msecs_to_jiffies(msec));
518 del_timer(&tmr->timer);
/drivers/input/mouse/
H A Dalps.h43 struct timer_list timer; member in struct:alps_data

Completed in 637 milliseconds

1234567891011>>