/drivers/block/drbd/ |
D | drbd_worker.c | 2069 static bool dequeue_work_batch(struct drbd_work_queue *queue, struct list_head *work_list) in dequeue_work_batch() argument 2072 list_splice_tail_init(&queue->q, work_list); in dequeue_work_batch() 2074 return !list_empty(work_list); in dequeue_work_batch() 2077 static void wait_for_work(struct drbd_connection *connection, struct list_head *work_list) in wait_for_work() argument 2083 dequeue_work_batch(&connection->sender_work, work_list); in wait_for_work() 2084 if (!list_empty(work_list)) in wait_for_work() 2110 list_splice_tail_init(&connection->sender_work.q, work_list); in wait_for_work() 2112 if (!list_empty(work_list) || signal_pending(current)) { in wait_for_work() 2167 LIST_HEAD(work_list); in drbd_worker() 2173 if (list_empty(&work_list)) { in drbd_worker() [all …]
|
D | drbd_receiver.c | 422 LIST_HEAD(work_list); in drbd_free_peer_reqs() 428 list_splice_init(list, &work_list); in drbd_free_peer_reqs() 431 list_for_each_entry_safe(peer_req, t, &work_list, w.list) { in drbd_free_peer_reqs() 443 LIST_HEAD(work_list); in drbd_finish_peer_reqs() 450 list_splice_init(&device->done_ee, &work_list); in drbd_finish_peer_reqs() 460 list_for_each_entry_safe(peer_req, t, &work_list, w.list) { in drbd_finish_peer_reqs()
|
/drivers/infiniband/core/ |
D | iwcm.c | 214 BUG_ON(!list_empty(&cm_id_priv->work_list)); in iwcm_deref_id() 261 INIT_LIST_HEAD(&cm_id_priv->work_list); in iw_create_cm_id() 1024 empty = list_empty(&cm_id_priv->work_list); in cm_work_handler() 1026 work = list_entry(cm_id_priv->work_list.next, in cm_work_handler() 1029 empty = list_empty(&cm_id_priv->work_list); in cm_work_handler() 1096 if (list_empty(&cm_id_priv->work_list)) { in cm_event_handler() 1097 list_add_tail(&work->list, &cm_id_priv->work_list); in cm_event_handler() 1100 list_add_tail(&work->list, &cm_id_priv->work_list); in cm_event_handler()
|
D | iwcm.h | 53 struct list_head work_list; member
|
D | cm.c | 303 struct list_head work_list; member 882 INIT_LIST_HEAD(&cm_id_priv->work_list); in ib_create_cm_id() 899 if (list_empty(&cm_id_priv->work_list)) in cm_dequeue_work() 902 work = list_entry(cm_id_priv->work_list.next, struct cm_work, list); in cm_dequeue_work() 2373 list_add_tail(&work->list, &cm_id_priv->work_list); in cm_rep_handler() 2406 list_add_tail(&work->list, &cm_id_priv->work_list); in cm_establish_handler() 2446 list_add_tail(&work->list, &cm_id_priv->work_list); in cm_rtu_handler() 2681 list_add_tail(&work->list, &cm_id_priv->work_list); in cm_dreq_handler() 2720 list_add_tail(&work->list, &cm_id_priv->work_list); in cm_drep_handler() 2898 list_add_tail(&work->list, &cm_id_priv->work_list); in cm_rej_handler() [all …]
|
/drivers/dma/ |
D | pl330.c | 422 struct list_head work_list; member 2035 list_for_each_entry(desc, &pch->work_list, node) { in fill_queue() 2067 list_for_each_entry_safe(desc, _dt, &pch->work_list, node) in pl330_tasklet() 2077 if (list_empty(&pch->work_list)) { in pl330_tasklet() 2100 list_move_tail(&desc->node, &pch->work_list); in pl330_tasklet() 2297 list_for_each_entry(desc, &pch->work_list , node) { in pl330_terminate_all() 2303 list_splice_tail_init(&pch->work_list, &pl330->desc_pool); in pl330_terminate_all() 2356 list_splice_tail_init(&pch->work_list, &pch->dmac->desc_pool); in pl330_free_chan_resources() 2418 list_for_each_entry(desc, &pch->work_list, node) { in pl330_tx_status() 2468 if (list_empty(&pch->work_list)) { in pl330_issue_pending() [all …]
|
/drivers/scsi/bnx2i/ |
D | bnx2i_init.c | 444 list_for_each_entry_safe(work, tmp, &p->work_list, list) { in bnx2i_cpu_offline() 496 INIT_LIST_HEAD(&p->work_list); in bnx2i_mod_init()
|
D | bnx2i_hwi.c | 1855 LIST_HEAD(work_list); in bnx2i_percpu_io_thread() 1861 while (!list_empty(&p->work_list)) { in bnx2i_percpu_io_thread() 1862 list_splice_init(&p->work_list, &work_list); in bnx2i_percpu_io_thread() 1865 list_for_each_entry_safe(work, tmp, &work_list, list) { in bnx2i_percpu_io_thread() 1931 list_add_tail(&bnx2i_work->list, &p->work_list); in bnx2i_queue_scsi_cmd_resp()
|
D | bnx2i.h | 779 struct list_head work_list; member
|
D | bnx2i_iscsi.c | 1495 &p->work_list, list) { in bnx2i_conn_destroy()
|
/drivers/scsi/qedi/ |
D | qedi_main.c | 1171 list_add_tail(&qedi_cmd->cqe_work.list, &p->work_list); in qedi_queue_cqe() 1186 list_add_tail(&qedi_work->list, &p->work_list); in qedi_queue_cqe() 1862 LIST_HEAD(work_list); in qedi_percpu_io_thread() 1868 while (!list_empty(&p->work_list)) { in qedi_percpu_io_thread() 1869 list_splice_init(&p->work_list, &work_list); in qedi_percpu_io_thread() 1872 list_for_each_entry_safe(work, tmp, &work_list, list) { in qedi_percpu_io_thread() 1917 list_for_each_entry_safe(work, tmp, &p->work_list, list) { in qedi_cpu_offline() 2726 INIT_LIST_HEAD(&p->work_list); in qedi_init()
|
D | qedi.h | 370 struct list_head work_list; member
|
/drivers/scsi/bnx2fc/ |
D | bnx2fc_fcoe.c | 650 LIST_HEAD(work_list); in bnx2fc_percpu_io_thread() 657 while (!list_empty(&p->work_list)) { in bnx2fc_percpu_io_thread() 658 list_splice_init(&p->work_list, &work_list); in bnx2fc_percpu_io_thread() 661 list_for_each_entry_safe(work, tmp, &work_list, list) { in bnx2fc_percpu_io_thread() 2656 list_for_each_entry_safe(work, tmp, &p->work_list, list) { in bnx2fc_cpu_offline() 2736 INIT_LIST_HEAD(&p->work_list); in bnx2fc_mod_init()
|
D | bnx2fc.h | 174 struct list_head work_list; member
|
D | bnx2fc_hwi.c | 1015 list_add_tail(&work->list, &fps->work_list); in bnx2fc_pending_work()
|
/drivers/vhost/ |
D | vhost.h | 165 struct llist_head work_list; member
|
D | vhost.c | 266 llist_add(&work->node, &dev->work_list); in vhost_work_queue() 275 return !llist_empty(&dev->work_list); in vhost_has_work() 351 node = llist_del_all(&dev->work_list); in vhost_worker() 476 init_llist_head(&dev->work_list); in vhost_dev_init() 686 WARN_ON(!llist_empty(&dev->work_list)); in vhost_dev_cleanup()
|
/drivers/scsi/qla4xxx/ |
D | ql4_def.h | 801 struct list_head work_list; member
|
D | ql4_os.c | 4555 if (!list_empty(&ha->work_list)) in qla4xxx_timer() 5189 list_add_tail(&e->list, &ha->work_list); in qla4xxx_post_work() 5240 list_splice_init(&ha->work_list, &work); in qla4xxx_do_work() 8684 INIT_LIST_HEAD(&ha->work_list); in qla4xxx_probe_adapter()
|
/drivers/scsi/lpfc/ |
D | lpfc.h | 902 struct list_head work_list; member
|
D | lpfc_hbadisc.c | 186 list_add_tail(&evtp->evt_listp, &phba->work_list); in lpfc_dev_loss_tmo_callbk() 526 while (!list_empty(&phba->work_list)) { in lpfc_work_list_done() 527 list_remove_head((&phba->work_list), evtp, typeof(*evtp), in lpfc_work_list_done() 798 list_add_tail(&evtp->evt_listp, &phba->work_list); in lpfc_workq_post_event()
|
D | lpfc_scsi.c | 3561 list_add_tail(&fast_path_evt->work_evt.evt_listp, &phba->work_list); in lpfc_send_scsi_error_event() 3933 &phba->work_list); in lpfc_scsi_cmd_iocb_cmpl()
|
D | lpfc_els.c | 3436 list_add_tail(&evtp->evt_listp, &phba->work_list); in lpfc_els_retry_delay()
|
/drivers/scsi/qla2xxx/ |
D | qla_os.c | 2738 while (!list_empty(&vha->work_list) && i > 0) { in qla2x00_iocb_work_fn() 4806 INIT_LIST_HEAD(&vha->work_list); in qla2x00_create_host() 4885 list_add_tail(&e->list, &vha->work_list); in qla2x00_post_work() 5217 list_splice_init(&vha->work_list, &work); in qla2x00_do_work() 5317 list_splice(&work, &vha->work_list); in qla2x00_do_work() 6654 if (!list_empty(&vha->work_list)) { in qla2x00_timer()
|
D | qla_def.h | 4331 struct list_head work_list; member
|