/linux/include/linux/ |
A D | kthread.h | 127 #define KTHREAD_DELAYED_WORK_INIT(dwork, fn) { \ argument 128 .work = KTHREAD_WORK_INIT((dwork).work, (fn)), \ 139 #define DEFINE_KTHREAD_DELAYED_WORK(dwork, fn) \ argument 140 struct kthread_delayed_work dwork = \ 141 KTHREAD_DELAYED_WORK_INIT(dwork, fn) 172 #define kthread_init_delayed_work(dwork, fn) \ argument 174 kthread_init_work(&(dwork)->work, (fn)); \ 175 timer_setup(&(dwork)->timer, \ 194 struct kthread_delayed_work *dwork, 198 struct kthread_delayed_work *dwork,
|
A D | workqueue.h | 445 struct delayed_work *dwork, unsigned long delay); 458 extern bool flush_delayed_work(struct delayed_work *dwork); 459 extern bool cancel_delayed_work(struct delayed_work *dwork); 460 extern bool cancel_delayed_work_sync(struct delayed_work *dwork); 514 struct delayed_work *dwork, in queue_delayed_work() argument 517 return queue_delayed_work_on(WORK_CPU_UNBOUND, wq, dwork, delay); in queue_delayed_work() 529 struct delayed_work *dwork, in mod_delayed_work() argument 532 return mod_delayed_work_on(WORK_CPU_UNBOUND, wq, dwork, delay); in mod_delayed_work() 607 return queue_delayed_work_on(cpu, system_wq, dwork, delay); in schedule_delayed_work_on() 618 static inline bool schedule_delayed_work(struct delayed_work *dwork, in schedule_delayed_work() argument [all …]
|
/linux/block/ |
A D | disk-events.c | 21 struct delayed_work dwork; member 93 cancel_delayed_work_sync(&disk->ev->dwork); in disk_block_events() 115 &ev->dwork, 0); in __disk_unblock_events() 118 &ev->dwork, intv); in __disk_unblock_events() 162 &ev->dwork, 0); in disk_flush_events() 205 &ev->dwork, intv); in disk_check_events() 324 struct delayed_work *dwork = to_delayed_work(work); in disk_events_workfn() local 325 struct disk_events *ev = container_of(dwork, struct disk_events, dwork); in disk_events_workfn() 466 INIT_DELAYED_WORK(&ev->dwork, disk_events_workfn); in disk_alloc_events()
|
/linux/drivers/leds/trigger/ |
A D | ledtrig-tty.c | 12 struct delayed_work dwork; member 21 schedule_delayed_work(&trigger_data->dwork, 0); in ledtrig_tty_restart() 82 container_of(work, struct ledtrig_tty_data, dwork.work); in ledtrig_tty_work() 135 schedule_delayed_work(&trigger_data->dwork, msecs_to_jiffies(100)); in ledtrig_tty_work() 154 INIT_DELAYED_WORK(&trigger_data->dwork, ledtrig_tty_work); in ledtrig_tty_activate() 165 cancel_delayed_work_sync(&trigger_data->dwork); in ledtrig_tty_deactivate()
|
/linux/drivers/staging/media/tegra-vde/ |
A D | dmabuf-cache.c | 24 struct delayed_work dwork; member 55 dwork.work); in tegra_vde_delayed_unmap() 82 if (!cancel_delayed_work(&entry->dwork)) in tegra_vde_dmabuf_cache_map() 135 INIT_DELAYED_WORK(&entry->dwork, tegra_vde_delayed_unmap); in tegra_vde_dmabuf_cache_map() 182 schedule_delayed_work(&entry->dwork, 5 * HZ); in tegra_vde_dmabuf_cache_unmap() 200 if (!cancel_delayed_work(&entry->dwork)) in tegra_vde_dmabuf_cache_unmap_sync() 217 if (!cancel_delayed_work(&entry->dwork)) in tegra_vde_dmabuf_cache_unmap_all()
|
/linux/drivers/staging/most/i2c/ |
A D | i2c.c | 39 struct delayed_work dwork; member 131 cancel_delayed_work_sync(&dev->rx.dwork); in enqueue() 134 pending_rx_work(&dev->rx.dwork.work); in enqueue() 175 cancel_delayed_work_sync(&dev->rx.dwork); in poison_channel() 234 struct hdm_i2c *dev = container_of(work, struct hdm_i2c, rx.dwork.work); in pending_rx_work() 242 schedule_delayed_work(&dev->rx.dwork, dev->rx.delay); in pending_rx_work() 273 schedule_delayed_work(&dev->rx.dwork, 0); in most_irq_handler() 320 INIT_DELAYED_WORK(&dev->rx.dwork, pending_rx_work); in i2c_probe()
|
/linux/drivers/staging/greybus/ |
A D | fw-download.c | 29 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()
|
A D | bootrom.c | 39 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/drivers/pci/controller/mobiveil/ |
A D | pcie-layerscape-gen4.c | 41 struct delayed_work dwork; member 146 schedule_delayed_work(&pcie->dwork, msecs_to_jiffies(1)); in ls_pcie_g4_isr() 177 struct delayed_work *dwork = container_of(work, struct delayed_work, in ls_pcie_g4_reset() local 179 struct ls_pcie_g4 *pcie = container_of(dwork, struct ls_pcie_g4, dwork); in ls_pcie_g4_reset() 229 INIT_DELAYED_WORK(&pcie->dwork, ls_pcie_g4_reset); in ls_pcie_g4_probe()
|
/linux/kernel/ |
A D | kthread.c | 960 struct kthread_delayed_work *dwork = from_timer(dwork, t, timer); in kthread_delayed_work_timer_fn() local 961 struct kthread_work *work = &dwork->work; in kthread_delayed_work_timer_fn() 987 struct kthread_delayed_work *dwork, in __kthread_queue_delayed_work() argument 990 struct timer_list *timer = &dwork->timer; in __kthread_queue_delayed_work() 991 struct kthread_work *work = &dwork->work; in __kthread_queue_delayed_work() 1032 struct kthread_delayed_work *dwork, in kthread_queue_delayed_work() argument 1035 struct kthread_work *work = &dwork->work; in kthread_queue_delayed_work() 1111 struct kthread_delayed_work *dwork = in kthread_cancel_delayed_work_timer() local 1123 del_timer_sync(&dwork->timer); in kthread_cancel_delayed_work_timer() 1179 struct kthread_delayed_work *dwork, in kthread_mod_delayed_work() argument [all …]
|
A D | workqueue.c | 1271 if (likely(del_timer(&dwork->timer))) in try_to_grab_pending() 1642 struct delayed_work *dwork = from_timer(dwork, t, timer); in delayed_work_timer_fn() local 1645 __queue_work(dwork->cpu, dwork->wq, &dwork->work); in delayed_work_timer_fn() 1653 struct work_struct *work = &dwork->work; in __queue_delayed_work() 1667 __queue_work(cpu, wq, &dwork->work); in __queue_delayed_work() 1671 dwork->wq = wq; in __queue_delayed_work() 1672 dwork->cpu = cpu; in __queue_delayed_work() 1695 struct work_struct *work = &dwork->work; in queue_delayed_work_on() 3226 if (del_timer_sync(&dwork->timer)) in flush_delayed_work() 3227 __queue_work(dwork->cpu, dwork->wq, &dwork->work); in flush_delayed_work() [all …]
|
/linux/drivers/input/mouse/ |
A D | synaptics_i2c.c | 221 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/drivers/net/ethernet/mellanox/mlx5/core/en/ |
A D | mapping.c | 24 struct delayed_work dwork; member 106 schedule_delayed_work(&ctx->dwork, MAPPING_GRACE_PERIOD); in mapping_free_item() 167 ctx = container_of(work, struct mapping_ctx, dwork.work); in mapping_work_handler() 182 schedule_delayed_work(&ctx->dwork, abs(min_timeout - now)); in mapping_work_handler() 190 cancel_delayed_work_sync(&ctx->dwork); in mapping_flush_work() 207 INIT_DELAYED_WORK(&ctx->dwork, mapping_work_handler); in mapping_create()
|
A D | hv_vhca_stats.c | 61 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/drivers/input/keyboard/ |
A D | tca6416-keypad.c | 46 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()
|
A D | qt2160.c | 57 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/drivers/net/wireless/ti/wl1251/ |
A D | ps.c | 18 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/drivers/net/wireless/intel/iwlwifi/mvm/ |
A D | tdls.c | 237 mod_delayed_work(system_wq, &mvm->tdls_cs.dwork, in iwl_mvm_rx_tdls_notif() 461 mvm = container_of(work, struct iwl_mvm, tdls_cs.dwork.work); in iwl_mvm_tdls_ch_switch_work() 494 schedule_delayed_work(&mvm->tdls_cs.dwork, msecs_to_jiffies(delay)); in iwl_mvm_tdls_ch_switch_work() 556 mod_delayed_work(system_wq, &mvm->tdls_cs.dwork, in iwl_mvm_tdls_channel_switch() 611 flush_delayed_work(&mvm->tdls_cs.dwork); in iwl_mvm_tdls_cancel_channel_switch() 670 mod_delayed_work(system_wq, &mvm->tdls_cs.dwork, in iwl_mvm_tdls_recv_channel_switch()
|
/linux/sound/soc/generic/ |
A D | test-component.c | 26 struct delayed_work dwork; member 410 cancel_delayed_work(&priv->dwork); in test_component_timer_stop() 415 schedule_delayed_work(&priv->dwork, msecs_to_jiffies(10)); in test_component_timer_start() 420 struct test_priv *priv = container_of(work, struct test_priv, dwork.work); in test_component_dwork() 560 INIT_DELAYED_WORK(&priv->dwork, test_component_dwork); in test_driver_probe()
|
/linux/drivers/misc/ |
A D | vmw_balloon.c | 354 struct delayed_work dwork; member 1345 mod_delayed_work(system_freezable_wq, &b->dwork, 0); in vmballoon_doorbell() 1474 struct delayed_work *dwork = to_delayed_work(work); in vmballoon_work() local 1475 struct vmballoon *b = container_of(dwork, struct vmballoon, dwork); in vmballoon_work() 1510 dwork, round_jiffies_relative(HZ)); in vmballoon_work() 1931 INIT_DELAYED_WORK(&balloon.dwork, vmballoon_work); in vmballoon_init() 1954 queue_delayed_work(system_freezable_wq, &balloon.dwork, 0); in vmballoon_init() 1977 cancel_delayed_work_sync(&balloon.dwork); in vmballoon_exit()
|
/linux/drivers/gpu/host1x/ |
A D | fence.c | 128 struct delayed_work *dwork = (struct delayed_work *)work; in do_fence_timeout() local 130 container_of(dwork, struct host1x_syncpt_fence, timeout_work); in do_fence_timeout()
|
/linux/sound/soc/codecs/ |
A D | lpass-tx-macro.c | 242 struct delayed_work dwork; member 249 struct delayed_work dwork; member 657 hpf_work = container_of(hpf_delayed_work, struct hpf_work, dwork); in tx_macro_tx_hpf_corner_freq_callback() 700 tx_mute_dwork = container_of(delayed_work, struct tx_mute_work, dwork); in tx_macro_mute_update_callback() 898 &tx->tx_mute_dwork[decimator].dwork, in tx_macro_enable_dec() 902 &tx->tx_hpf_work[decimator].dwork, in tx_macro_enable_dec() 939 &tx->tx_hpf_work[decimator].dwork)) { in tx_macro_enable_dec() 969 cancel_delayed_work_sync(&tx->tx_mute_dwork[decimator].dwork); in tx_macro_enable_dec() 1663 INIT_DELAYED_WORK(&tx->tx_hpf_work[i].dwork, in tx_macro_component_probe() 1670 INIT_DELAYED_WORK(&tx->tx_mute_dwork[i].dwork, in tx_macro_component_probe()
|
/linux/drivers/video/fbdev/ |
A D | hyperv_fb.c | 261 struct delayed_work dwork; member 499 schedule_delayed_work(&par->dwork, HVFB_UPDATE_DELAY); in synthvid_recv_sub() 741 struct hvfb_par *par = container_of(w, struct hvfb_par, dwork.work); in hvfb_update_work() 801 schedule_delayed_work(&par->dwork, in hvfb_ondemand_refresh_throttle() 1181 INIT_DELAYED_WORK(&par->dwork, hvfb_update_work); in hvfb_probe() 1269 cancel_delayed_work_sync(&par->dwork); in hvfb_probe() 1290 cancel_delayed_work_sync(&par->dwork); in hvfb_remove() 1311 cancel_delayed_work_sync(&par->dwork); in hvfb_suspend() 1347 schedule_delayed_work(&par->dwork, HVFB_UPDATE_DELAY); in hvfb_resume()
|
/linux/drivers/ata/ |
A D | pata_arasan_cf.c | 215 struct delayed_work dwork; member 553 ata_sff_queue_delayed_work(&acdev->dwork, 1); in data_xfer() 577 dwork.work); in delayed_finish() 587 ata_sff_queue_delayed_work(&acdev->dwork, 1); in delayed_finish() 668 cancel_delayed_work_sync(&acdev->dwork); in arasan_cf_error_handler() 867 INIT_DELAYED_WORK(&acdev->dwork, delayed_finish); in arasan_cf_probe()
|
/linux/drivers/net/wireless/ti/wlcore/ |
A D | scan.c | 22 struct delayed_work *dwork; in wl1271_scan_complete_work() local 30 dwork = to_delayed_work(work); in wl1271_scan_complete_work() 31 wl = container_of(dwork, struct wl1271, scan_complete_work); in wl1271_scan_complete_work()
|