/openbmc/linux/include/linux/ |
H A D | kthread.h | 150 #define KTHREAD_DELAYED_WORK_INIT(dwork, fn) { \ argument 151 .work = KTHREAD_WORK_INIT((dwork).work, (fn)), \ 159 #define DEFINE_KTHREAD_DELAYED_WORK(dwork, fn) \ argument 160 struct kthread_delayed_work dwork = \ 161 KTHREAD_DELAYED_WORK_INIT(dwork, fn) 179 #define kthread_init_delayed_work(dwork, fn) \ argument 181 kthread_init_work(&(dwork)->work, (fn)); \ 182 timer_setup(&(dwork)->timer, \ 201 struct kthread_delayed_work *dwork, 205 struct kthread_delayed_work *dwork,
|
H A D | workqueue.h | 503 struct delayed_work *dwork, unsigned long delay); 517 extern bool flush_delayed_work(struct delayed_work *dwork); 518 extern bool cancel_delayed_work(struct delayed_work *dwork); 519 extern bool cancel_delayed_work_sync(struct delayed_work *dwork); 574 struct delayed_work *dwork, in queue_delayed_work() argument 577 return queue_delayed_work_on(WORK_CPU_UNBOUND, wq, dwork, delay); in queue_delayed_work() 589 struct delayed_work *dwork, in mod_delayed_work() argument 592 return mod_delayed_work_on(WORK_CPU_UNBOUND, wq, dwork, delay); in mod_delayed_work() 674 static inline bool schedule_delayed_work_on(int cpu, struct delayed_work *dwork, in schedule_delayed_work_on() argument 677 return queue_delayed_work_on(cpu, system_wq, dwork, delay); in schedule_delayed_work_on() [all …]
|
/openbmc/linux/block/ |
H 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() 313 struct delayed_work *dwork = to_delayed_work(work); in disk_events_workfn() local 314 struct disk_events *ev = container_of(dwork, struct disk_events, dwork); in disk_events_workfn() 455 INIT_DELAYED_WORK(&ev->dwork, disk_events_workfn); in disk_alloc_events()
|
/openbmc/linux/drivers/leds/trigger/ |
H A D | ledtrig-tty.c | 14 struct delayed_work dwork; member 23 schedule_delayed_work(&trigger_data->dwork, 0); in ledtrig_tty_restart() 84 container_of(work, struct ledtrig_tty_data, dwork.work); in ledtrig_tty_work() 138 schedule_delayed_work(&trigger_data->dwork, in ledtrig_tty_work() 158 INIT_DELAYED_WORK(&trigger_data->dwork, ledtrig_tty_work); in ledtrig_tty_activate() 169 cancel_delayed_work_sync(&trigger_data->dwork); in ledtrig_tty_deactivate()
|
/openbmc/linux/drivers/media/platform/nvidia/tegra-vde/ |
H 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()
|
/openbmc/linux/drivers/staging/most/i2c/ |
H A D | i2c.c | 39 struct delayed_work dwork; member 134 cancel_delayed_work_sync(&dev->rx.dwork); in enqueue() 137 pending_rx_work(&dev->rx.dwork.work); in enqueue() 178 cancel_delayed_work_sync(&dev->rx.dwork); in poison_channel() 237 struct hdm_i2c *dev = container_of(work, struct hdm_i2c, rx.dwork.work); in pending_rx_work() 245 schedule_delayed_work(&dev->rx.dwork, dev->rx.delay); in pending_rx_work() 276 schedule_delayed_work(&dev->rx.dwork, 0); in most_irq_handler() 323 INIT_DELAYED_WORK(&dev->rx.dwork, pending_rx_work); in i2c_probe()
|
/openbmc/linux/drivers/staging/greybus/ |
H 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()
|
H 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()
|
/openbmc/linux/drivers/pci/controller/mobiveil/ |
H A D | pcie-layerscape-gen4.c | 41 struct delayed_work dwork; member 146 schedule_delayed_work(&pcie->dwork, msecs_to_jiffies(1)); in ls_g4_pcie_isr() 177 struct delayed_work *dwork = container_of(work, struct delayed_work, in ls_g4_pcie_reset() local 179 struct ls_g4_pcie *pcie = container_of(dwork, struct ls_g4_pcie, dwork); in ls_g4_pcie_reset() 229 INIT_DELAYED_WORK(&pcie->dwork, ls_g4_pcie_reset); in ls_g4_pcie_probe()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ipsec.c | 61 struct mlx5e_ipsec_dwork *dwork = in mlx5e_ipsec_handle_tx_limit() local 62 container_of(_work, struct mlx5e_ipsec_dwork, dwork.work); in mlx5e_ipsec_handle_tx_limit() 63 struct mlx5e_ipsec_sa_entry *sa_entry = dwork->sa_entry; in mlx5e_ipsec_handle_tx_limit() 86 queue_delayed_work(sa_entry->ipsec->wq, &dwork->dwork, in mlx5e_ipsec_handle_tx_limit() 662 struct mlx5e_ipsec_dwork *dwork; in mlx5e_ipsec_create_dwork() local 674 dwork = kzalloc(sizeof(*dwork), GFP_KERNEL); in mlx5e_ipsec_create_dwork() 675 if (!dwork) in mlx5e_ipsec_create_dwork() 678 dwork->sa_entry = sa_entry; in mlx5e_ipsec_create_dwork() 679 INIT_DELAYED_WORK(&dwork->dwork, mlx5e_ipsec_handle_tx_limit); in mlx5e_ipsec_create_dwork() 680 sa_entry->dwork = dwork; in mlx5e_ipsec_create_dwork() [all …]
|
/openbmc/linux/net/netfilter/ |
H A D | nf_conntrack_ecache.c | 108 struct nf_conntrack_net *cnet = container_of(work, struct nf_conntrack_net, ecache.dwork.work); in ecache_work() 124 schedule_delayed_work(&cnet->ecache.dwork, delay); in ecache_work() 289 !delayed_work_pending(&cnet->ecache.dwork)) { in nf_conntrack_ecache_work() 290 schedule_delayed_work(&cnet->ecache.dwork, HZ); in nf_conntrack_ecache_work() 294 mod_delayed_work(system_wq, &cnet->ecache.dwork, 0); in nf_conntrack_ecache_work() 346 INIT_DELAYED_WORK(&cnet->ecache.dwork, ecache_work); in nf_conntrack_ecache_pernet_init() 357 cancel_delayed_work_sync(&cnet->ecache.dwork); in nf_conntrack_ecache_pernet_fini()
|
/openbmc/linux/kernel/ |
H A D | kthread.c | 1049 struct kthread_delayed_work *dwork = from_timer(dwork, t, timer); in kthread_delayed_work_timer_fn() local 1050 struct kthread_work *work = &dwork->work; in kthread_delayed_work_timer_fn() 1076 struct kthread_delayed_work *dwork, in __kthread_queue_delayed_work() argument 1079 struct timer_list *timer = &dwork->timer; in __kthread_queue_delayed_work() 1080 struct kthread_work *work = &dwork->work; in __kthread_queue_delayed_work() 1120 struct kthread_delayed_work *dwork, in kthread_queue_delayed_work() argument 1123 struct kthread_work *work = &dwork->work; in kthread_queue_delayed_work() 1130 __kthread_queue_delayed_work(worker, dwork, delay); in kthread_queue_delayed_work() 1199 struct kthread_delayed_work *dwork = in kthread_cancel_delayed_work_timer() local 1211 del_timer_sync(&dwork->timer); in kthread_cancel_delayed_work_timer() [all …]
|
H A D | workqueue.c | 1561 struct delayed_work *dwork = to_delayed_work(work); in try_to_grab_pending() local 1568 if (likely(del_timer(&dwork->timer))) in try_to_grab_pending() 1926 struct delayed_work *dwork = from_timer(dwork, t, timer); in delayed_work_timer_fn() local 1929 __queue_work(dwork->cpu, dwork->wq, &dwork->work); in delayed_work_timer_fn() 1934 struct delayed_work *dwork, unsigned long delay) in __queue_delayed_work() argument 1936 struct timer_list *timer = &dwork->timer; in __queue_delayed_work() 1937 struct work_struct *work = &dwork->work; in __queue_delayed_work() 1951 __queue_work(cpu, wq, &dwork->work); in __queue_delayed_work() 1955 dwork->wq = wq; in __queue_delayed_work() 1956 dwork->cpu = cpu; in __queue_delayed_work() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H 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()
|
H 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()
|
/openbmc/linux/drivers/input/mouse/ |
H 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() 605 cancel_delayed_work_sync(&touch->dwork); in synaptics_i2c_suspend() 623 mod_delayed_work(system_wq, &touch->dwork, in synaptics_i2c_resume()
|
/openbmc/linux/drivers/net/wireless/ti/wl1251/ |
H 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()
|
/openbmc/linux/drivers/firmware/arm_scmi/ |
H A D | scmi_power_control.c | 179 struct delayed_work *dwork; in scmi_forceful_work_func() local 184 dwork = to_delayed_work(work); in scmi_forceful_work_func() 185 sc = dwork_to_sconf(dwork); in scmi_forceful_work_func()
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | ptp.c | 44 schedule_delayed_work(&mvm->ptp_data.dwork, IWL_PTP_WRAP_TIME); in iwl_mvm_ptp_update_new_read() 197 ptp_data.dwork.work); in iwl_mvm_ptp_work() 291 INIT_DELAYED_WORK(&mvm->ptp_data.dwork, iwl_mvm_ptp_work); in iwl_mvm_ptp_init() 324 cancel_delayed_work_sync(&mvm->ptp_data.dwork); in iwl_mvm_ptp_remove()
|
H 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()
|
/openbmc/linux/drivers/gpu/host1x/ |
H A D | fence.c | 100 struct delayed_work *dwork = (struct delayed_work *)work; in do_fence_timeout() local 102 container_of(dwork, struct host1x_syncpt_fence, timeout_work); in do_fence_timeout()
|
/openbmc/linux/net/wireless/ |
H A D | core.c | 1668 struct wiphy_delayed_work *dwork = from_timer(dwork, t, timer); in wiphy_delayed_work_timer() local 1670 wiphy_work_queue(dwork->wiphy, &dwork->work); in wiphy_delayed_work_timer() 1675 struct wiphy_delayed_work *dwork, in wiphy_delayed_work_queue() argument 1679 del_timer(&dwork->timer); in wiphy_delayed_work_queue() 1680 wiphy_work_queue(wiphy, &dwork->work); in wiphy_delayed_work_queue() 1684 dwork->wiphy = wiphy; in wiphy_delayed_work_queue() 1685 mod_timer(&dwork->timer, jiffies + delay); in wiphy_delayed_work_queue() 1690 struct wiphy_delayed_work *dwork) in wiphy_delayed_work_cancel() argument 1694 del_timer_sync(&dwork->timer); in wiphy_delayed_work_cancel() 1695 wiphy_work_cancel(wiphy, &dwork->work); in wiphy_delayed_work_cancel() [all …]
|
/openbmc/linux/drivers/misc/ |
H A D | vmw_balloon.c | 352 struct delayed_work dwork; member 1343 mod_delayed_work(system_freezable_wq, &b->dwork, 0); in vmballoon_doorbell() 1472 struct delayed_work *dwork = to_delayed_work(work); in vmballoon_work() local 1473 struct vmballoon *b = container_of(dwork, struct vmballoon, dwork); in vmballoon_work() 1508 dwork, round_jiffies_relative(HZ)); in vmballoon_work() 1882 INIT_DELAYED_WORK(&balloon.dwork, vmballoon_work); in vmballoon_init() 1903 queue_delayed_work(system_freezable_wq, &balloon.dwork, 0); in vmballoon_init() 1925 cancel_delayed_work_sync(&balloon.dwork); in vmballoon_exit()
|
/openbmc/linux/sound/soc/generic/ |
H 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() 559 INIT_DELAYED_WORK(&priv->dwork, test_component_dwork); in test_driver_probe()
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | hyperv_fb.c | 253 struct delayed_work dwork; member 488 schedule_delayed_work(&par->dwork, HVFB_UPDATE_DELAY); in synthvid_recv_sub() 712 struct hvfb_par *par = container_of(w, struct hvfb_par, dwork.work); in hvfb_update_work() 772 schedule_delayed_work(&par->dwork, in hvfb_ondemand_refresh_throttle() 1136 INIT_DELAYED_WORK(&par->dwork, hvfb_update_work); in hvfb_probe() 1230 cancel_delayed_work_sync(&par->dwork); in hvfb_probe() 1250 cancel_delayed_work_sync(&par->dwork); in hvfb_remove() 1269 cancel_delayed_work_sync(&par->dwork); in hvfb_suspend() 1305 schedule_delayed_work(&par->dwork, HVFB_UPDATE_DELAY); in hvfb_resume()
|