Home
last modified time | relevance | path

Searched refs:workqueue (Results 1 – 25 of 156) sorted by relevance

1234567

/Linux-v5.4/include/trace/events/
Dworkqueue.h3 #define TRACE_SYSTEM workqueue
50 __field( void *, workqueue)
58 __entry->workqueue = pwq->wq;
64 __entry->work, __entry->function, __entry->workqueue,
/Linux-v5.4/net/mac802154/
Dmain.c148 local->workqueue = in ieee802154_register_hw()
150 if (!local->workqueue) { in ieee802154_register_hw()
201 destroy_workqueue(local->workqueue); in ieee802154_register_hw()
212 flush_workqueue(local->workqueue); in ieee802154_unregister_hw()
220 destroy_workqueue(local->workqueue); in ieee802154_unregister_hw()
/Linux-v5.4/drivers/misc/
Dtifm_core.c17 static struct workqueue_struct *workqueue; variable
223 flush_workqueue(workqueue); in tifm_remove_adapter()
310 queue_work(workqueue, work); in tifm_queue_work()
332 workqueue = create_freezable_workqueue("tifm"); in tifm_init()
333 if (!workqueue) in tifm_init()
348 destroy_workqueue(workqueue); in tifm_init()
357 destroy_workqueue(workqueue); in tifm_exit()
/Linux-v5.4/drivers/net/wireless/quantenna/qtnfmac/pcie/
Dpcie.c263 ipc_tx_reg, priv->workqueue, in qtnf_pcie_init_shm_ipc()
266 ipc_rx_reg, priv->workqueue, in qtnf_pcie_init_shm_ipc()
359 pcie_priv->workqueue = create_singlethread_workqueue("QTNF_PCIE"); in qtnf_pcie_probe()
360 if (!pcie_priv->workqueue) { in qtnf_pcie_probe()
388 flush_workqueue(pcie_priv->workqueue); in qtnf_pcie_probe()
389 destroy_workqueue(pcie_priv->workqueue); in qtnf_pcie_probe()
417 flush_workqueue(priv->workqueue); in qtnf_pcie_remove()
418 destroy_workqueue(priv->workqueue); in qtnf_pcie_remove()
/Linux-v5.4/drivers/staging/wusbcore/host/whci/
Dint.c16 queue_work(whc->workqueue, &whc->async_work); in transfer_done()
17 queue_work(whc->workqueue, &whc->periodic_work); in transfer_done()
44 queue_work(whc->workqueue, &whc->dn_work); in whc_int_handler()
Dinit.c57 whc->workqueue = alloc_ordered_workqueue(dev_name(&whc->umc->dev), 0); in whc_init()
58 if (whc->workqueue == NULL) { in whc_init()
175 if (whc->workqueue) in whc_clean_up()
176 destroy_workqueue(whc->workqueue); in whc_clean_up()
Dasl.c234 queue_work(whc->workqueue, &whc->async_work); in scan_async_work()
280 queue_work(whc->workqueue, &whc->async_work); in asl_urb_enqueue()
323 queue_work(whc->workqueue, &wurb->dequeue_work); in asl_urb_dequeue()
338 queue_work(whc->workqueue, &whc->async_work); in asl_qset_delete()
Dpzl.c262 queue_work(whc->workqueue, &whc->periodic_work); in scan_periodic_work()
308 queue_work(whc->workqueue, &whc->periodic_work); in pzl_urb_enqueue()
352 queue_work(whc->workqueue, &wurb->dequeue_work); in pzl_urb_dequeue()
367 queue_work(whc->workqueue, &whc->periodic_work); in pzl_qset_delete()
/Linux-v5.4/drivers/net/wireless/quantenna/qtnfmac/
Dshm_ipc.c62 queue_work(ipc->workqueue, &ipc->irq_work); in qtnf_shm_ipc_irq_inbound_handler()
83 struct workqueue_struct *workqueue, in qtnf_shm_ipc_init() argument
97 ipc->workqueue = workqueue; in qtnf_shm_ipc_init()
Dshm_ipc.h46 struct workqueue_struct *workqueue; member
54 struct workqueue_struct *workqueue,
Dcore.c171 queue_work(bus->workqueue, &vif->reset_work); in qtnf_netdev_tx_timeout()
623 bus->workqueue = alloc_ordered_workqueue("QTNF_BUS", 0); in qtnf_core_attach()
624 if (!bus->workqueue) { in qtnf_core_attach()
698 if (bus->workqueue) { in qtnf_core_detach()
699 flush_workqueue(bus->workqueue); in qtnf_core_detach()
700 destroy_workqueue(bus->workqueue); in qtnf_core_detach()
701 bus->workqueue = NULL; in qtnf_core_detach()
/Linux-v5.4/drivers/remoteproc/
Dkeystone_remoteproc.c66 struct work_struct workqueue; member
144 container_of(work, struct keystone_rproc, workqueue); in handle_event()
157 schedule_work(&ksproc->workqueue); in keystone_rproc_vring_interrupt()
174 INIT_WORK(&ksproc->workqueue, handle_event); in keystone_rproc_start()
202 flush_work(&ksproc->workqueue); in keystone_rproc_start()
220 flush_work(&ksproc->workqueue); in keystone_rproc_stop()
/Linux-v5.4/drivers/net/wireless/st/cw1200/
Dscan.c40 queue_delayed_work(priv->workqueue, &priv->scan.timeout, in cw1200_scan_start()
126 queue_work(priv->workqueue, &priv->scan.work); in cw1200_hw_scan()
267 queue_work(priv->workqueue, &priv->scan.work); in cw1200_scan_work()
281 if (queue_work(priv->workqueue, &priv->unjoin_work) <= 0) in cw1200_scan_restart_delayed()
292 queue_delayed_work(priv->workqueue, &priv->clear_recent_scan_work, HZ); in cw1200_scan_complete()
312 queue_delayed_work(priv->workqueue, &priv->scan.timeout, 0); in cw1200_scan_failed_cb()
326 queue_delayed_work(priv->workqueue, &priv->scan.timeout, 0); in cw1200_scan_complete_cb()
392 queue_delayed_work(priv->workqueue, &priv->scan.probe_work, in cw1200_probe_work()
Dtxrx.c672 if (queue_work(priv->workqueue, in cw1200_tx_h_rate_policy()
691 queue_work(priv->workqueue, in cw1200_tx_h_pm_state()
891 queue_work(priv->workqueue, in cw1200_tx_confirm_cb()
1179 queue_work(priv->workqueue, in cw1200_rx_cb()
1189 queue_work(priv->workqueue, in cw1200_rx_cb()
1281 flush_workqueue(priv->workqueue); in cw1200_link_id_reset()
1290 if (queue_work(priv->workqueue, in cw1200_link_id_reset()
1302 if (queue_work(priv->workqueue, &priv->link_id_work) <= 0) in cw1200_link_id_reset()
1304 flush_workqueue(priv->workqueue); in cw1200_link_id_reset()
1353 if (queue_work(priv->workqueue, &priv->link_id_work) <= 0) in cw1200_alloc_link_id()
[all …]
/Linux-v5.4/drivers/mfd/
Dezx-pcap.c45 struct workqueue_struct *workqueue; member
151 queue_work(pcap->workqueue, &pcap->msr_work); in pcap_mask_irq()
159 queue_work(pcap->workqueue, &pcap->msr_work); in pcap_unmask_irq()
212 queue_work(pcap->workqueue, &pcap->isr_work); in pcap_irq_handler()
414 destroy_workqueue(pcap->workqueue); in ezx_pcap_remove()
453 pcap->workqueue = create_singlethread_workqueue("pcapd"); in ezx_pcap_probe()
454 if (!pcap->workqueue) { in ezx_pcap_probe()
509 destroy_workqueue(pcap->workqueue); in ezx_pcap_probe()
/Linux-v5.4/Documentation/core-api/
Dworkqueue.rst14 is needed and the workqueue (wq) API is the most commonly used
20 queue is called workqueue and the thread is called worker.
22 While there are work items on the workqueue the worker executes the
24 there is no work item left on the workqueue the worker becomes idle.
58 * Maintain compatibility with the original workqueue API.
78 workqueue.
95 workqueue API functions as they see fit. They can influence some
97 workqueue they are putting the work item on. These flags include
102 When a work item is queued to a workqueue, the target worker-pool is
103 determined according to the queue parameters and workqueue attributes
[all …]
/Linux-v5.4/drivers/tty/serial/
Dmax3100.c120 struct workqueue_struct *workqueue; member
178 queue_work(s->workqueue, &s->work); in max3100_dowork()
559 if (s->workqueue) { in max3100_shutdown()
560 flush_workqueue(s->workqueue); in max3100_shutdown()
561 destroy_workqueue(s->workqueue); in max3100_shutdown()
562 s->workqueue = NULL; in max3100_shutdown()
599 s->workqueue = create_freezable_workqueue(b); in max3100_startup()
600 if (!s->workqueue) { in max3100_startup()
610 destroy_workqueue(s->workqueue); in max3100_startup()
611 s->workqueue = NULL; in max3100_startup()
[all …]
/Linux-v5.4/drivers/input/rmi4/
Drmi_f54.c107 struct workqueue_struct *workqueue; member
203 queue_delayed_work(f54->workqueue, &f54->work, 0); in rmi_f54_request_report()
590 queue_delayed_work(f54->workqueue, &f54->work, in rmi_f54_work()
677 f54->workqueue = create_singlethread_workqueue("rmi4-poller"); in rmi_f54_probe()
678 if (!f54->workqueue) in rmi_f54_probe()
722 flush_workqueue(f54->workqueue); in rmi_f54_probe()
723 destroy_workqueue(f54->workqueue); in rmi_f54_probe()
733 destroy_workqueue(f54->workqueue); in rmi_f54_remove()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/
Den_main.c208 queue_work(mdev->workqueue, &priv->linkstate_task); in mlx4_en_event()
240 flush_workqueue(mdev->workqueue); in mlx4_en_remove()
241 destroy_workqueue(mdev->workqueue); in mlx4_en_remove()
328 mdev->workqueue = create_singlethread_workqueue("mlx4_en"); in mlx4_en_add()
329 if (!mdev->workqueue) in mlx4_en_add()
/Linux-v5.4/drivers/memstick/core/
Dmemstick.c24 static struct workqueue_struct *workqueue; variable
209 queue_work(workqueue, &host->media_checker); in memstick_detect_change()
548 flush_workqueue(workqueue); in memstick_remove_host()
623 workqueue = create_freezable_workqueue("kmemstick"); in memstick_init()
624 if (!workqueue) in memstick_init()
640 destroy_workqueue(workqueue); in memstick_init()
649 destroy_workqueue(workqueue); in memstick_exit()
/Linux-v5.4/drivers/char/tpm/
Dtpm_vtpm_proxy.c53 static struct workqueue_struct *workqueue; variable
481 queue_work(workqueue, &proxy_dev->work); in vtpm_proxy_work_start()
716 workqueue = create_workqueue("tpm-vtpm"); in vtpm_module_init()
717 if (!workqueue) { in vtpm_module_init()
733 destroy_workqueue(workqueue); in vtpm_module_exit()
/Linux-v5.4/Documentation/driver-api/
Dbasics.rst61 .. kernel-doc:: include/linux/workqueue.h
64 .. kernel-doc:: kernel/workqueue.c
/Linux-v5.4/Documentation/fb/
Ddeferred_io.rst16 - schedule a workqueue task to be run after a delay
19 - the workqueue task comes in and mkcleans the pages on the list, then
70 from a workqueue.
/Linux-v5.4/drivers/net/wireless/marvell/libertas/
Dif_spi.c58 struct workqueue_struct *workqueue; member
981 queue_work(card->workqueue, &card->packet_work); in if_spi_host_to_card()
996 queue_work(card->workqueue, &card->packet_work); in if_spi_host_interrupt()
1153 card->workqueue = alloc_workqueue("libertas_spi", WQ_MEM_RECLAIM, 0); in if_spi_probe()
1154 if (!card->workqueue) { in if_spi_probe()
1185 destroy_workqueue(card->workqueue); in if_spi_probe()
1210 destroy_workqueue(card->workqueue); in libertas_spi_remove()
1225 flush_workqueue(card->workqueue); in if_spi_suspend()
/Linux-v5.4/drivers/bluetooth/
Dhci_qca.c96 struct workqueue_struct *workqueue; member
413 queue_work(qca->workqueue, &qca->ws_tx_vote_off); in hci_ibs_tx_idle_timeout()
488 qca->workqueue = alloc_ordered_workqueue("qca_wq", 0); in qca_open()
489 if (!qca->workqueue) { in qca_open()
523 destroy_workqueue(qca->workqueue); in qca_open()
617 destroy_workqueue(qca->workqueue); in qca_close()
656 queue_work(qca->workqueue, &qca->ws_awake_rx); in device_want_to_wakeup()
702 queue_work(qca->workqueue, &qca->ws_rx_vote_off); in device_want_to_sleep()
807 queue_work(qca->workqueue, &qca->ws_awake_device); in qca_enqueue()

1234567