Home
last modified time | relevance | path

Searched refs:work_q (Results 1 – 25 of 31) sorted by relevance

12

/drivers/scsi/
Dscsi_error.c333 struct list_head *work_q) in scsi_eh_prt_fail_stats() argument
343 list_for_each_entry(scmd, work_q, eh_entry) { in scsi_eh_prt_fail_stats()
1156 int scsi_eh_get_sense(struct list_head *work_q, in scsi_eh_get_sense() argument
1167 list_for_each_entry_safe(scmd, next, work_q, eh_entry) { in scsi_eh_get_sense()
1219 return list_empty(work_q); in scsi_eh_get_sense()
1268 struct list_head *work_q, in scsi_eh_test_devices() argument
1282 list_splice_init(cmd_list, work_q); in scsi_eh_test_devices()
1303 list_move_tail(&scmd->eh_entry, work_q); in scsi_eh_test_devices()
1306 return list_empty(work_q); in scsi_eh_test_devices()
1322 static int scsi_eh_abort_cmds(struct list_head *work_q, in scsi_eh_abort_cmds() argument
[all …]
Dhosts.c286 shost->work_q = create_singlethread_workqueue( in scsi_add_host_with_dma()
288 if (!shost->work_q) { in scsi_add_host_with_dma()
303 if (shost->work_q) in scsi_add_host_with_dma()
304 destroy_workqueue(shost->work_q); in scsi_add_host_with_dma()
338 if (shost->work_q) in scsi_host_dev_release()
339 destroy_workqueue(shost->work_q); in scsi_host_dev_release()
646 if (unlikely(!shost->work_q)) { in scsi_queue_work()
655 return queue_work(shost->work_q, work); in scsi_queue_work()
665 if (!shost->work_q) { in scsi_flush_work()
673 flush_workqueue(shost->work_q); in scsi_flush_work()
Dscsi_priv.h77 struct list_head *work_q,
79 int scsi_eh_get_sense(struct list_head *work_q,
DNCR5380.c508 hostdata->work_q = alloc_workqueue("ncr5380_%d", in NCR5380_init()
511 if (!hostdata->work_q) in NCR5380_init()
602 destroy_workqueue(hostdata->work_q); in NCR5380_exit()
686 queue_work(hostdata->work_q, &hostdata->main_task); in NCR5380_queue_command()
967 queue_work(hostdata->work_q, &hostdata->main_task); in NCR5380_intr()
982 queue_work(hostdata->work_q, &hostdata->main_task); in NCR5380_intr()
2374 queue_work(hostdata->work_q, &hostdata->main_task); in NCR5380_abort()
2455 queue_work(hostdata->work_q, &hostdata->main_task); in NCR5380_bus_reset()
Dstex.c330 struct workqueue_struct *work_q; member
886 queue_work(hba->work_q, &hba->reset_work); in stex_intr()
984 queue_work(hba->work_q, &hba->reset_work); in stex_ss_intr()
1675 hba->work_q = create_singlethread_workqueue(hba->work_q_name); in stex_probe()
1676 if (!hba->work_q) { in stex_probe()
1711 destroy_workqueue(hba->work_q); in stex_probe()
1797 destroy_workqueue(hba->work_q); in stex_hba_free()
Dscsi_transport_fc.c443 fc_host->work_q = alloc_workqueue("%s", 0, 0, fc_host->work_q_name); in fc_host_setup()
444 if (!fc_host->work_q) in fc_host_setup()
454 destroy_workqueue(fc_host->work_q); in fc_host_setup()
455 fc_host->work_q = NULL; in fc_host_setup()
2442 struct workqueue_struct *work_q; in fc_remove_host() local
2473 if (fc_host->work_q) { in fc_remove_host()
2474 work_q = fc_host->work_q; in fc_remove_host()
2475 fc_host->work_q = NULL; in fc_remove_host()
2476 destroy_workqueue(work_q); in fc_remove_host()
2481 work_q = fc_host->devloss_work_q; in fc_remove_host()
[all …]
DNCR5380.h241 struct workqueue_struct *work_q; member
Dmvumi.h172 struct work_struct work_q; member
Dipr.c1449 schedule_work(&ioa_cfg->work_q); in ipr_handle_config_change()
1456 schedule_work(&ioa_cfg->work_q); in ipr_handle_config_change()
2611 schedule_work(&ioa_cfg->work_q); in ipr_process_error()
3289 container_of(work, struct ipr_ioa_cfg, work_q); in ipr_worker_thread()
4342 schedule_work(&ioa_cfg->work_q); in ipr_alloc_dump()
7135 schedule_work(&ioa_cfg->work_q); in ipr_ioa_reset_done()
7163 schedule_work(&ioa_cfg->work_q); in ipr_ioa_reset_done()
8496 schedule_work(&ioa_cfg->work_q); in ipr_dump_mailbox_wait()
9811 INIT_WORK(&ioa_cfg->work_q, ipr_worker_thread); in ipr_init_ioa_cfg()
10409 flush_work(&ioa_cfg->work_q); in __ipr_remove()
[all …]
/drivers/scsi/libsas/
Dsas_scsi_host.c573 static void sas_eh_handle_sas_errors(struct Scsi_Host *shost, struct list_head *work_q) in sas_eh_handle_sas_errors() argument
584 list_for_each_entry_safe(cmd, n, work_q, eh_entry) { in sas_eh_handle_sas_errors()
601 list_for_each_entry_safe(cmd, n, work_q, eh_entry) { in sas_eh_handle_sas_errors()
642 sas_scsi_clear_queue_lu(work_q, cmd); in sas_eh_handle_sas_errors()
657 sas_scsi_clear_queue_I_T(work_q, dev); in sas_eh_handle_sas_errors()
671 sas_scsi_clear_queue_port(work_q, in sas_eh_handle_sas_errors()
700 list_splice_tail(&done, work_q); in sas_eh_handle_sas_errors()
701 list_splice_tail_init(&ha->eh_ata_q, work_q); in sas_eh_handle_sas_errors()
706 list_for_each_entry_safe(cmd, n, work_q, eh_entry) in sas_eh_handle_sas_errors()
Dsas_event.c59 struct workqueue_struct *wq = ha->core.shost->work_q; in __sas_drain_work()
Dsas_ata.c790 void sas_ata_eh(struct Scsi_Host *shost, struct list_head *work_q, in sas_ata_eh() argument
800 list_for_each_entry_safe(cmd, n, work_q, eh_entry) { in sas_ata_eh()
/drivers/scsi/fcoe/
Dfcoe_sysfs.c62 ((x)->work_q)
740 ctlr->work_q = create_singlethread_workqueue( in fcoe_ctlr_device_add()
742 if (!ctlr->work_q) in fcoe_ctlr_device_add()
764 destroy_workqueue(ctlr->work_q); in fcoe_ctlr_device_add()
765 ctlr->work_q = NULL; in fcoe_ctlr_device_add()
810 destroy_workqueue(ctlr->work_q); in fcoe_ctlr_device_delete()
811 ctlr->work_q = NULL; in fcoe_ctlr_device_delete()
/drivers/scsi/snic/
Dsnic_main.c317 SNIC_BUG_ON(shost->work_q != NULL); in snic_add_host()
320 shost->work_q = create_singlethread_workqueue(shost->work_q_name); in snic_add_host()
321 if (!shost->work_q) { in snic_add_host()
333 if (!shost->work_q) in snic_del_host()
336 destroy_workqueue(shost->work_q); in snic_del_host()
337 shost->work_q = NULL; in snic_del_host()
/drivers/scsi/cxlflash/
Dcommon.h104 struct work_struct work_q; member
Dmain.c372 schedule_work(&cfg->work_q); in send_cmd()
863 cancel_work_sync(&cfg->work_q); in cxlflash_remove()
1384 schedule_work(&cfg->work_q); in cxlflash_async_err_irq()
1405 schedule_work(&cfg->work_q); in cxlflash_async_err_irq()
2421 work_q); in cxlflash_worker_thread()
2529 INIT_WORK(&cfg->work_q, cxlflash_worker_thread); in cxlflash_probe()
/drivers/scsi/ibmvscsi_tgt/
Dibmvscsi_tgt.h290 struct workqueue_struct *work_q; member
Dibmvscsi_tgt.c601 (void)queue_work(vscsi->work_q, &vscsi->proc_work); in ibmvscsis_post_disconnect()
2301 queue_work(vscsi->work_q, &cmd->work); in ibmvscsis_srp_cmd()
2315 queue_work(vscsi->work_q, &cmd->work); in ibmvscsis_srp_cmd()
3431 vscsi->work_q = create_workqueue(wq_name); in ibmvscsis_probe()
3432 if (!vscsi->work_q) { in ibmvscsis_probe()
3452 destroy_workqueue(vscsi->work_q); in ibmvscsis_probe()
3492 destroy_workqueue(vscsi->work_q); in ibmvscsis_remove()
/drivers/net/ethernet/brocade/bna/
Dbnad.c1131 queue_delayed_work(bnad->work_q, &tx_info->tx_cleanup_work, in bnad_tx_cleanup()
1154 queue_delayed_work(bnad->work_q, &tx_info->tx_cleanup_work, 0); in bnad_cb_tx_cleanup()
1236 queue_work(bnad->work_q, &rx_info->rx_cleanup_work); in bnad_cb_rx_cleanup()
3519 bnad->work_q = create_singlethread_workqueue(bnad->wq_name); in bnad_init()
3520 if (!bnad->work_q) { in bnad_init()
3536 if (bnad->work_q) { in bnad_uninit()
3537 flush_workqueue(bnad->work_q); in bnad_uninit()
3538 destroy_workqueue(bnad->work_q); in bnad_uninit()
3539 bnad->work_q = NULL; in bnad_uninit()
Dbnad.h350 struct workqueue_struct *work_q; member
/drivers/message/fusion/
Dmptfc.c1503 struct workqueue_struct *work_q; in mptfc_remove() local
1508 if ((work_q=ioc->fc_rescan_work_q)) { in mptfc_remove()
1512 destroy_workqueue(work_q); in mptfc_remove()
/drivers/net/wan/
Dfarsync.c573 static void fst_process_tx_work_q(unsigned long work_q);
574 static void fst_process_int_work_q(unsigned long work_q);
607 fst_process_tx_work_q(unsigned long /*void **/work_q) in fst_process_tx_work_q() argument
637 fst_process_int_work_q(unsigned long /*void **/work_q) in fst_process_int_work_q() argument
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_83xx_hw.c843 flush_workqueue(ahw->mailbox->work_q); in qlcnic_83xx_poll_for_mbx_completion()
876 flush_workqueue(mbx->work_q); in qlcnic_83xx_issue_cmd()
3828 destroy_workqueue(mbx->work_q); in qlcnic_83xx_free_mailbox()
3954 flush_workqueue(mbx->work_q); in qlcnic_83xx_detach_mailbox_work()
3975 queue_work(mbx->work_q, &mbx->work); in qlcnic_83xx_enqueue_mbx_cmd()
4132 mbx->work_q = create_singlethread_workqueue("qlcnic_mailbox"); in qlcnic_83xx_init_mailbox_work()
4133 if (mbx->work_q == NULL) { in qlcnic_83xx_init_mailbox_work()
/drivers/scsi/mvsas/
Dmv_sas.h430 struct delayed_work work_q; member
Dmv_sas.c1896 struct mvs_wq *mwq = container_of(dw, struct mvs_wq, work_q); in mvs_work_queue()
1948 MV_INIT_DELAYED_WORK(&mwq->work_q, mvs_work_queue, mwq); in mvs_handle_event()
1950 schedule_delayed_work(&mwq->work_q, HZ * 2); in mvs_handle_event()

12