Home
last modified time | relevance | path

Searched refs:ptimer (Results 1 – 16 of 16) sorted by relevance

/drivers/gpu/drm/nouveau/core/subdev/timer/
Dbase.c30 struct nouveau_timer *ptimer = nouveau_timer(obj); in nouveau_timer_wait_eq() local
33 time0 = ptimer->read(ptimer); in nouveau_timer_wait_eq()
42 } while (ptimer->read(ptimer) - time0 < nsec); in nouveau_timer_wait_eq()
50 struct nouveau_timer *ptimer = nouveau_timer(obj); in nouveau_timer_wait_ne() local
53 time0 = ptimer->read(ptimer); in nouveau_timer_wait_ne()
62 } while (ptimer->read(ptimer) - time0 < nsec); in nouveau_timer_wait_ne()
70 struct nouveau_timer *ptimer = nouveau_timer(obj); in nouveau_timer_wait_cb() local
73 time0 = ptimer->read(ptimer); in nouveau_timer_wait_cb()
77 } while (ptimer->read(ptimer) - time0 < nsec); in nouveau_timer_wait_cb()
85 struct nouveau_timer *ptimer = nouveau_timer(obj); in nouveau_timer_alarm() local
[all …]
Dnv04.c28 nv04_timer_read(struct nouveau_timer *ptimer) in nv04_timer_read() argument
30 struct nv04_timer_priv *priv = (void *)ptimer; in nv04_timer_read()
42 nv04_timer_alarm_trigger(struct nouveau_timer *ptimer) in nv04_timer_alarm_trigger() argument
44 struct nv04_timer_priv *priv = (void *)ptimer; in nv04_timer_alarm_trigger()
52 if (alarm->timestamp <= ptimer->read(ptimer)) in nv04_timer_alarm_trigger()
74 nv04_timer_alarm(struct nouveau_timer *ptimer, u64 time, in nv04_timer_alarm() argument
77 struct nv04_timer_priv *priv = (void *)ptimer; in nv04_timer_alarm()
81 alarm->timestamp = ptimer->read(ptimer) + time; in nv04_timer_alarm()
98 nv04_timer_alarm_trigger(ptimer); in nv04_timer_alarm()
102 nv04_timer_alarm_cancel(struct nouveau_timer *ptimer, in nv04_timer_alarm_cancel() argument
[all …]
/drivers/staging/rtl8712/
Dosdep_service.h63 static inline void _init_timer(struct timer_list *ptimer, in _init_timer() argument
67 ptimer->function = pfunc; in _init_timer()
68 ptimer->data = (addr_t)cntx; in _init_timer()
69 init_timer(ptimer); in _init_timer()
72 static inline void _set_timer(struct timer_list *ptimer, u32 delay_time) in _set_timer() argument
74 mod_timer(ptimer, (jiffies+(delay_time*HZ/1000))); in _set_timer()
77 static inline void _cancel_timer(struct timer_list *ptimer, u8 *bcancelled) in _cancel_timer() argument
79 del_timer(ptimer); in _cancel_timer()
116 static inline unsigned char _cancel_timer_ex(struct timer_list *ptimer) in _cancel_timer_ex() argument
118 return del_timer(ptimer); in _cancel_timer_ex()
/drivers/gpu/drm/nouveau/core/subdev/therm/
Dfan.c41 struct nouveau_timer *ptimer = nouveau_timer(priv); in nouveau_fan_update() local
103 ptimer->alarm(ptimer, delay * 1000 * 1000, &fan->alarm); in nouveau_fan_update()
134 struct nouveau_timer *ptimer = nouveau_timer(therm); in nouveau_therm_fan_sense() local
146 start = ptimer->read(ptimer); in nouveau_therm_fan_sense()
155 start = ptimer->read(ptimer); in nouveau_therm_fan_sense()
159 } while (cycles < 5 && ptimer->read(ptimer) - start < 250000000); in nouveau_therm_fan_sense()
160 end = ptimer->read(ptimer); in nouveau_therm_fan_sense()
225 struct nouveau_timer *ptimer = nouveau_timer(therm); in nouveau_therm_fan_fini() local
228 ptimer->alarm_cancel(ptimer, &priv->fan->alarm); in nouveau_therm_fan_fini()
Dtemp.c177 struct nouveau_timer *ptimer = nouveau_timer(priv); in alarm_timer_callback() local
199 ptimer->alarm(ptimer, 1000000000ULL, alarm); in alarm_timer_callback()
231 struct nouveau_timer *ptimer = nouveau_timer(therm); in nouveau_therm_sensor_fini() local
234 ptimer->alarm_cancel(ptimer, &priv->sensor.therm_poll_alarm); in nouveau_therm_sensor_fini()
Dbase.c92 struct nouveau_timer *ptimer = nouveau_timer(therm); in nouveau_therm_update() local
106 ptimer->alarm_cancel(ptimer, &priv->alarm); in nouveau_therm_update()
130 ptimer->alarm_cancel(ptimer, &priv->alarm); in nouveau_therm_update()
135 ptimer->alarm(ptimer, 1000000000ULL, &priv->alarm); in nouveau_therm_update()
Dfantog.c46 struct nouveau_timer *ptimer = nouveau_timer(tpriv); in nouveau_fantog_update() local
63 ptimer->alarm(ptimer, next_change * 1000, &priv->alarm); in nouveau_fantog_update()
/drivers/staging/rtl8188eu/include/
Dosdep_service.h79 static inline void _init_timer(struct timer_list *ptimer, in _init_timer() argument
83 ptimer->function = pfunc; in _init_timer()
84 ptimer->data = (unsigned long)cntx; in _init_timer()
85 init_timer(ptimer); in _init_timer()
88 static inline void _set_timer(struct timer_list *ptimer, u32 delay_time) in _set_timer() argument
90 mod_timer(ptimer , (jiffies+(delay_time*HZ/1000))); in _set_timer()
/drivers/staging/rtl8192e/
Drtllib_module.c60 void _setup_timer(struct timer_list *ptimer, void *fun, unsigned long data) in _setup_timer() argument
62 ptimer->function = fun; in _setup_timer()
63 ptimer->data = data; in _setup_timer()
64 init_timer(ptimer); in _setup_timer()
/drivers/isdn/act2000/
Dmodule.c238 mod_timer(&card->ptimer, jiffies + 3); in act2000_poll()
267 card->ptimer.expires = jiffies + 3; in act2000_command()
268 card->ptimer.function = act2000_poll; in act2000_command()
269 card->ptimer.data = (unsigned long)card; in act2000_command()
270 add_timer(&card->ptimer); in act2000_command()
589 init_timer(&card->ptimer); in act2000_alloccard()
799 del_timer_sync(&card->ptimer); in act2000_exit()
Dact2000.h167 struct timer_list ptimer; /* Poll timer */ member
/drivers/gpu/drm/nouveau/core/engine/graph/
Dnv50.c251 struct nouveau_timer *ptimer = nouveau_timer(engine); in nv84_graph_tlb_flush() local
261 start = ptimer->read(ptimer); in nv84_graph_tlb_flush()
280 !(timeout = ptimer->read(ptimer) - start > 2000000000)); in nv84_graph_tlb_flush()
/drivers/gpu/drm/nouveau/dispnv04/
Ddac.c69 struct nouveau_timer *ptimer = nvkm_timer(device); in sample_load_twice() local
83 if (!nouveau_timer_wait_eq(ptimer, 10000000, in sample_load_twice()
87 if (!nouveau_timer_wait_eq(ptimer, 10000000, in sample_load_twice()
91 if (!nouveau_timer_wait_eq(ptimer, 10000000, in sample_load_twice()
Dhw.c664 struct nouveau_timer *ptimer = nvkm_timer(device); in nv_load_state_ext() local
744 nouveau_timer_wait_eq(ptimer, 650000000, NV_PRMCIO_INP0__COLOR, 0x8, 0x8); in nv_load_state_ext()
745 nouveau_timer_wait_eq(ptimer, 650000000, NV_PRMCIO_INP0__COLOR, 0x8, 0x0); in nv_load_state_ext()
/drivers/staging/lustre/lnet/selftest/
Dconrpc.c1168 stt_timer_t *ptimer = (stt_timer_t *)arg; in lstcon_rpc_pinger() local
1277 ptimer->stt_expires = (unsigned long)(get_seconds() + LST_PING_INTERVAL); in lstcon_rpc_pinger()
1278 stt_add_timer(ptimer); in lstcon_rpc_pinger()
1286 stt_timer_t *ptimer; in lstcon_rpc_pinger_start() local
1299 ptimer = &console_session.ses_ping_timer; in lstcon_rpc_pinger_start()
1300 ptimer->stt_expires = (unsigned long)(get_seconds() + LST_PING_INTERVAL); in lstcon_rpc_pinger_start()
1302 stt_add_timer(ptimer); in lstcon_rpc_pinger_start()
/drivers/gpu/drm/nouveau/
Dnouveau_abi16.c167 struct nouveau_timer *ptimer = nvkm_timer(device); in nouveau_abi16_ioctl_getparam() local
209 getparam->value = ptimer->read(ptimer); in nouveau_abi16_ioctl_getparam()