Home
last modified time | relevance | path

Searched refs:dwork (Results 1 – 25 of 108) sorted by relevance

12345

/Linux-v5.4/include/linux/
Dkthread.h119 #define KTHREAD_DELAYED_WORK_INIT(dwork, fn) { \ argument
120 .work = KTHREAD_WORK_INIT((dwork).work, (fn)), \
131 #define DEFINE_KTHREAD_DELAYED_WORK(dwork, fn) \ argument
132 struct kthread_delayed_work dwork = \
133 KTHREAD_DELAYED_WORK_INIT(dwork, fn)
164 #define kthread_init_delayed_work(dwork, fn) \ argument
166 kthread_init_work(&(dwork)->work, (fn)); \
167 timer_setup(&(dwork)->timer, \
185 struct kthread_delayed_work *dwork,
189 struct kthread_delayed_work *dwork,
Dworkqueue.h451 struct delayed_work *dwork, unsigned long delay);
464 extern bool flush_delayed_work(struct delayed_work *dwork);
465 extern bool cancel_delayed_work(struct delayed_work *dwork);
466 extern bool cancel_delayed_work_sync(struct delayed_work *dwork);
506 struct delayed_work *dwork, in queue_delayed_work() argument
509 return queue_delayed_work_on(WORK_CPU_UNBOUND, wq, dwork, delay); in queue_delayed_work()
521 struct delayed_work *dwork, in mod_delayed_work() argument
524 return mod_delayed_work_on(WORK_CPU_UNBOUND, wq, dwork, delay); in mod_delayed_work()
593 static inline bool schedule_delayed_work_on(int cpu, struct delayed_work *dwork, in schedule_delayed_work_on() argument
596 return queue_delayed_work_on(cpu, system_wq, dwork, delay); in schedule_delayed_work_on()
[all …]
/Linux-v5.4/drivers/staging/media/tegra-vde/
Ddmabuf-cache.c21 struct delayed_work dwork; member
52 dwork.work); in tegra_vde_delayed_unmap()
79 if (!cancel_delayed_work(&entry->dwork)) in tegra_vde_dmabuf_cache_map()
132 INIT_DELAYED_WORK(&entry->dwork, tegra_vde_delayed_unmap); in tegra_vde_dmabuf_cache_map()
179 schedule_delayed_work(&entry->dwork, 5 * HZ); in tegra_vde_dmabuf_cache_unmap()
197 if (!cancel_delayed_work(&entry->dwork)) in tegra_vde_dmabuf_cache_unmap_sync()
214 if (!cancel_delayed_work(&entry->dwork)) in tegra_vde_dmabuf_cache_unmap_all()
/Linux-v5.4/drivers/staging/most/i2c/
Di2c.c40 struct delayed_work dwork; member
132 cancel_delayed_work_sync(&dev->rx.dwork); in enqueue()
135 pending_rx_work(&dev->rx.dwork.work); in enqueue()
176 cancel_delayed_work_sync(&dev->rx.dwork); in poison_channel()
235 struct hdm_i2c *dev = container_of(work, struct hdm_i2c, rx.dwork.work); in pending_rx_work()
243 schedule_delayed_work(&dev->rx.dwork, dev->rx.delay); in pending_rx_work()
274 schedule_delayed_work(&dev->rx.dwork, 0); in most_irq_handler()
321 INIT_DELAYED_WORK(&dev->rx.dwork, pending_rx_work); in i2c_probe()
/Linux-v5.4/drivers/staging/greybus/
Dfw-download.c29 struct delayed_work dwork; member
131 struct delayed_work *dwork = to_delayed_work(work); in fw_request_timedout() local
132 struct fw_request *fw_req = container_of(dwork, in fw_request_timedout()
133 struct fw_request, dwork); in fw_request_timedout()
209 INIT_DELAYED_WORK(&fw_req->dwork, fw_request_timedout); in find_firmware()
210 schedule_delayed_work(&fw_req->dwork, NEXT_REQ_TIMEOUT_J); in find_firmware()
301 cancel_delayed_work_sync(&fw_req->dwork); in fw_download_fetch_firmware()
344 schedule_delayed_work(&fw_req->dwork, NEXT_REQ_TIMEOUT_J); in fw_download_fetch_firmware()
377 cancel_delayed_work_sync(&fw_req->dwork); in fw_download_release_firmware()
459 cancel_delayed_work_sync(&fw_req->dwork); in gb_fw_download_connection_exit()
Dbootrom.c39 struct delayed_work dwork; member
54 struct delayed_work *dwork = to_delayed_work(work); in gb_bootrom_timedout() local
55 struct gb_bootrom *bootrom = container_of(dwork, in gb_bootrom_timedout()
56 struct gb_bootrom, dwork); in gb_bootrom_timedout()
93 schedule_delayed_work(&bootrom->dwork, msecs_to_jiffies(timeout)); in gb_bootrom_set_timeout()
98 cancel_delayed_work_sync(&bootrom->dwork); in gb_bootrom_cancel_timeout()
444 INIT_DELAYED_WORK(&bootrom->dwork, gb_bootrom_timedout); in gb_bootrom_probe()
/Linux-v5.4/kernel/
Dkthread.c844 struct kthread_delayed_work *dwork = from_timer(dwork, t, timer); in kthread_delayed_work_timer_fn() local
845 struct kthread_work *work = &dwork->work; in kthread_delayed_work_timer_fn()
870 struct kthread_delayed_work *dwork, in __kthread_queue_delayed_work() argument
873 struct timer_list *timer = &dwork->timer; in __kthread_queue_delayed_work()
874 struct kthread_work *work = &dwork->work; in __kthread_queue_delayed_work()
914 struct kthread_delayed_work *dwork, in kthread_queue_delayed_work() argument
917 struct kthread_work *work = &dwork->work; in kthread_queue_delayed_work()
924 __kthread_queue_delayed_work(worker, dwork, delay); in kthread_queue_delayed_work()
998 struct kthread_delayed_work *dwork = in __kthread_cancel_work() local
1010 del_timer_sync(&dwork->timer); in __kthread_cancel_work()
[all …]
Dworkqueue.c1244 struct delayed_work *dwork = to_delayed_work(work); in try_to_grab_pending() local
1251 if (likely(del_timer(&dwork->timer))) in try_to_grab_pending()
1613 struct delayed_work *dwork = from_timer(dwork, t, timer); in delayed_work_timer_fn() local
1616 __queue_work(dwork->cpu, dwork->wq, &dwork->work); in delayed_work_timer_fn()
1621 struct delayed_work *dwork, unsigned long delay) in __queue_delayed_work() argument
1623 struct timer_list *timer = &dwork->timer; in __queue_delayed_work()
1624 struct work_struct *work = &dwork->work; in __queue_delayed_work()
1638 __queue_work(cpu, wq, &dwork->work); in __queue_delayed_work()
1642 dwork->wq = wq; in __queue_delayed_work()
1643 dwork->cpu = cpu; in __queue_delayed_work()
[all …]
/Linux-v5.4/sound/firewire/digi00x/
Ddigi00x.c54 container_of(work, struct snd_dg00x, dwork.work); in do_registration()
127 INIT_DEFERRABLE_WORK(&dg00x->dwork, do_registration); in snd_dg00x_probe()
128 snd_fw_schedule_registration(unit, &dg00x->dwork); in snd_dg00x_probe()
139 snd_fw_schedule_registration(unit, &dg00x->dwork); in snd_dg00x_update()
163 cancel_delayed_work_sync(&dg00x->dwork); in snd_dg00x_remove()
/Linux-v5.4/sound/firewire/tascam/
Dtascam.c100 struct snd_tscm *tscm = container_of(work, struct snd_tscm, dwork.work); in do_registration()
166 INIT_DEFERRABLE_WORK(&tscm->dwork, do_registration); in snd_tscm_probe()
167 snd_fw_schedule_registration(unit, &tscm->dwork); in snd_tscm_probe()
178 snd_fw_schedule_registration(unit, &tscm->dwork); in snd_tscm_update()
202 cancel_delayed_work_sync(&tscm->dwork); in snd_tscm_remove()
/Linux-v5.4/sound/firewire/fireface/
Dff.c39 struct snd_ff *ff = container_of(work, struct snd_ff, dwork.work); in do_registration()
107 INIT_DEFERRABLE_WORK(&ff->dwork, do_registration); in snd_ff_probe()
108 snd_fw_schedule_registration(unit, &ff->dwork); in snd_ff_probe()
119 snd_fw_schedule_registration(unit, &ff->dwork); in snd_ff_update()
136 cancel_work_sync(&ff->dwork.work); in snd_ff_remove()
/Linux-v5.4/drivers/input/mouse/
Dsynaptics_i2c.c221 struct delayed_work dwork; member
375 mod_delayed_work(system_wq, &touch->dwork, 0); in synaptics_i2c_irq()
435 container_of(work, struct synaptics_i2c, dwork.work); in synaptics_i2c_work_handler()
451 mod_delayed_work(system_wq, &touch->dwork, delay); in synaptics_i2c_work_handler()
464 mod_delayed_work(system_wq, &touch->dwork, in synaptics_i2c_open()
477 cancel_delayed_work_sync(&touch->dwork); in synaptics_i2c_close()
519 INIT_DELAYED_WORK(&touch->dwork, synaptics_i2c_work_handler); in synaptics_i2c_touch_create()
608 cancel_delayed_work_sync(&touch->dwork); in synaptics_i2c_suspend()
626 mod_delayed_work(system_wq, &touch->dwork, in synaptics_i2c_resume()
/Linux-v5.4/sound/firewire/motu/
Dmotu.c64 struct snd_motu *motu = container_of(work, struct snd_motu, dwork.work); in do_registration()
137 INIT_DEFERRABLE_WORK(&motu->dwork, do_registration); in motu_probe()
138 snd_fw_schedule_registration(unit, &motu->dwork); in motu_probe()
152 cancel_delayed_work_sync(&motu->dwork); in motu_remove()
169 snd_fw_schedule_registration(unit, &motu->dwork); in motu_bus_update()
/Linux-v5.4/drivers/input/keyboard/
Dtca6416-keypad.c46 struct delayed_work dwork; member
135 container_of(work, struct tca6416_keypad_chip, dwork.work); in tca6416_keys_work_func()
138 schedule_delayed_work(&chip->dwork, msecs_to_jiffies(100)); in tca6416_keys_work_func()
149 schedule_delayed_work(&chip->dwork, msecs_to_jiffies(100)); in tca6416_keys_open()
161 cancel_delayed_work_sync(&chip->dwork); in tca6416_keys_close()
232 INIT_DELAYED_WORK(&chip->dwork, tca6416_keys_work_func); in tca6416_keypad_probe()
Dqt2160.c57 struct delayed_work dwork; member
202 mod_delayed_work(system_wq, &qt2160->dwork, 0); in qt2160_irq()
209 schedule_delayed_work(&qt2160->dwork, QT2160_CYCLE_INTERVAL); in qt2160_schedule_read()
215 container_of(work, struct qt2160_data, dwork.work); in qt2160_worker()
372 INIT_DELAYED_WORK(&qt2160->dwork, qt2160_worker); in qt2160_probe()
445 cancel_delayed_work_sync(&qt2160->dwork); in qt2160_remove()
/Linux-v5.4/drivers/input/touchscreen/
Dili210x.c40 struct delayed_work dwork; member
176 dwork.work); in ili210x_work()
201 schedule_delayed_work(&priv->dwork, in ili210x_work()
209 schedule_delayed_work(&priv->dwork, 0); in ili210x_irq()
260 cancel_delayed_work_sync(&priv->dwork); in ili210x_cancel_work()
309 INIT_DELAYED_WORK(&priv->dwork, ili210x_work); in ili210x_i2c_probe()
/Linux-v5.4/drivers/net/wireless/ti/wl1251/
Dps.c18 struct delayed_work *dwork; in wl1251_elp_work() local
21 dwork = to_delayed_work(work); in wl1251_elp_work()
22 wl = container_of(dwork, struct wl1251, elp_work); in wl1251_elp_work()
/Linux-v5.4/sound/firewire/dice/
Ddice.c137 struct snd_dice *dice = container_of(work, struct snd_dice, dwork.work); in do_registration()
227 INIT_DEFERRABLE_WORK(&dice->dwork, do_registration); in dice_probe()
228 snd_fw_schedule_registration(unit, &dice->dwork); in dice_probe()
242 cancel_delayed_work_sync(&dice->dwork); in dice_remove()
259 snd_fw_schedule_registration(unit, &dice->dwork); in dice_bus_reset()
/Linux-v5.4/sound/firewire/oxfw/
Doxfw.c184 struct snd_oxfw *oxfw = container_of(work, struct snd_oxfw, dwork.work); in do_registration()
261 INIT_DEFERRABLE_WORK(&oxfw->dwork, do_registration); in oxfw_probe()
262 snd_fw_schedule_registration(unit, &oxfw->dwork); in oxfw_probe()
272 snd_fw_schedule_registration(unit, &oxfw->dwork); in oxfw_bus_reset()
295 cancel_delayed_work_sync(&oxfw->dwork); in oxfw_remove()
/Linux-v5.4/sound/firewire/
Dlib.c85 struct delayed_work *dwork) in snd_fw_schedule_registration() argument
98 mod_delayed_work(system_wq, dwork, delay); in snd_fw_schedule_registration()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en/
Dhv_vhca_stats.c61 struct delayed_work *dwork; in mlx5e_hv_vhca_stats_work() local
66 dwork = to_delayed_work(work); in mlx5e_hv_vhca_stats_work()
67 sagent = container_of(dwork, struct mlx5e_hv_vhca_stats_agent, work); in mlx5e_hv_vhca_stats_work()
/Linux-v5.4/sound/firewire/fireworks/
Dfireworks.c202 struct snd_efw *efw = container_of(work, struct snd_efw, dwork.work); in do_registration()
297 INIT_DEFERRABLE_WORK(&efw->dwork, do_registration); in efw_probe()
298 snd_fw_schedule_registration(unit, &efw->dwork); in efw_probe()
309 snd_fw_schedule_registration(unit, &efw->dwork); in efw_update()
333 cancel_delayed_work_sync(&efw->dwork); in efw_remove()
/Linux-v5.4/sound/firewire/bebob/
Dbebob.c169 container_of(work, struct snd_bebob, dwork.work); in do_registration()
285 INIT_DEFERRABLE_WORK(&bebob->dwork, do_registration); in bebob_probe()
290 snd_fw_schedule_registration(unit, &bebob->dwork); in bebob_probe()
335 snd_fw_schedule_registration(unit, &bebob->dwork); in bebob_update()
352 cancel_delayed_work_sync(&bebob->dwork); in bebob_remove()
/Linux-v5.4/drivers/net/wireless/intel/iwlwifi/mvm/
Dtdls.c287 mod_delayed_work(system_wq, &mvm->tdls_cs.dwork, in iwl_mvm_rx_tdls_notif()
511 mvm = container_of(work, struct iwl_mvm, tdls_cs.dwork.work); in iwl_mvm_tdls_ch_switch_work()
544 schedule_delayed_work(&mvm->tdls_cs.dwork, msecs_to_jiffies(delay)); in iwl_mvm_tdls_ch_switch_work()
606 mod_delayed_work(system_wq, &mvm->tdls_cs.dwork, in iwl_mvm_tdls_channel_switch()
661 flush_delayed_work(&mvm->tdls_cs.dwork); in iwl_mvm_tdls_cancel_channel_switch()
720 mod_delayed_work(system_wq, &mvm->tdls_cs.dwork, in iwl_mvm_tdls_recv_channel_switch()
/Linux-v5.4/drivers/misc/
Dvmw_balloon.c358 struct delayed_work dwork; member
1349 mod_delayed_work(system_freezable_wq, &b->dwork, 0); in vmballoon_doorbell()
1478 struct delayed_work *dwork = to_delayed_work(work); in vmballoon_work() local
1479 struct vmballoon *b = container_of(dwork, struct vmballoon, dwork); in vmballoon_work()
1514 dwork, round_jiffies_relative(HZ)); in vmballoon_work()
1935 INIT_DELAYED_WORK(&balloon.dwork, vmballoon_work); in vmballoon_init()
1958 queue_delayed_work(system_freezable_wq, &balloon.dwork, 0); in vmballoon_init()
1981 cancel_delayed_work_sync(&balloon.dwork); in vmballoon_exit()

12345