/linux-6.1.9/include/linux/ |
D | semaphore.h | 18 struct list_head wait_list; member 25 .wait_list = LIST_HEAD_INIT((name).wait_list), \
|
D | rwsem.h | 59 struct list_head wait_list; member 96 .wait_list = LIST_HEAD_INIT((name).wait_list), \ 121 return !list_empty(&sem->wait_list); in rwsem_is_contended()
|
D | mutex.h | 69 struct list_head wait_list; member 111 , .wait_list = LIST_HEAD_INIT(lockname.wait_list) \
|
/linux-6.1.9/kernel/locking/ |
D | ww_mutex.h | 13 w = list_first_entry(&lock->wait_list, struct mutex_waiter, list); in __ww_waiter_first() 14 if (list_entry_is_head(w, &lock->wait_list, list)) in __ww_waiter_first() 24 if (list_entry_is_head(w, &lock->wait_list, list)) in __ww_waiter_next() 34 if (list_entry_is_head(w, &lock->wait_list, list)) in __ww_waiter_prev() 45 w = list_last_entry(&lock->wait_list, struct mutex_waiter, list); in __ww_waiter_last() 46 if (list_entry_is_head(w, &lock->wait_list, list)) in __ww_waiter_last() 55 struct list_head *p = &lock->wait_list; in __ww_waiter_add()
|
D | mutex-debug.c | 39 DEBUG_LOCKS_WARN_ON(list_empty(&lock->wait_list)); in debug_mutex_wake_waiter() 75 DEBUG_LOCKS_WARN_ON(!lock->wait_list.prev && !lock->wait_list.next); in debug_mutex_unlock()
|
D | rwsem.c | 74 list_empty(&(sem)->wait_list) ? "" : "not ")) \ 328 INIT_LIST_HEAD(&sem->wait_list); in __init_rwsem() 349 list_first_entry(&sem->wait_list, struct rwsem_waiter, list) 376 list_add_tail(&waiter->list, &sem->wait_list); in rwsem_add_waiter() 393 if (likely(!list_empty(&sem->wait_list))) in rwsem_del_waiter() 513 list_for_each_entry_safe(waiter, tmp, &sem->wait_list, list) { in rwsem_mark_wake() 531 if (list_empty(&sem->wait_list)) { in rwsem_mark_wake() 648 if (list_is_singular(&sem->wait_list)) in rwsem_try_write_lock() 1034 if (!list_empty(&sem->wait_list)) in rwsem_down_read_slowpath() 1050 if (list_empty(&sem->wait_list)) { in rwsem_down_read_slowpath() [all …]
|
D | semaphore.c | 188 if (likely(list_empty(&sem->wait_list))) in up() 214 list_add_tail(&waiter.list, &sem->wait_list); in ___down_common() 274 struct semaphore_waiter *waiter = list_first_entry(&sem->wait_list, in __up()
|
D | mutex.c | 50 INIT_LIST_HEAD(&lock->wait_list); in __mutex_init() 197 return list_first_entry(&lock->wait_list, struct mutex_waiter, list) == waiter; in __mutex_waiter_is_first() 219 if (likely(list_empty(&lock->wait_list))) in __mutex_remove_waiter() 637 __mutex_add_waiter(lock, &waiter, &lock->wait_list); in __mutex_lock_common() 934 if (!list_empty(&lock->wait_list)) { in __mutex_unlock_slowpath() 937 list_first_entry(&lock->wait_list, in __mutex_unlock_slowpath()
|
/linux-6.1.9/drivers/gpu/drm/omapdrm/ |
D | omap_irq.c | 27 list_for_each_entry(wait, &priv->wait_list, node) in omap_irq_update() 53 list_add(&wait->node, &priv->wait_list); in omap_irq_wait_init() 240 list_for_each_entry_safe(wait, n, &priv->wait_list, node) { in omap_irq_handler() 265 INIT_LIST_HEAD(&priv->wait_list); in omap_drm_irq_install()
|
D | omap_drv.h | 98 struct list_head wait_list; /* list of omap_irq_wait */ member
|
/linux-6.1.9/drivers/md/bcache/ |
D | closure.c | 60 void __closure_wake_up(struct closure_waitlist *wait_list) in __closure_wake_up() argument 66 list = llist_del_all(&wait_list->list); in __closure_wake_up()
|
/linux-6.1.9/fs/xfs/ |
D | xfs_buf.c | 2145 struct list_head *wait_list) in xfs_buf_delwri_submit_buffers() argument 2155 if (!wait_list) { in xfs_buf_delwri_submit_buffers() 2189 if (wait_list) { in xfs_buf_delwri_submit_buffers() 2191 list_move_tail(&bp->b_list, wait_list); in xfs_buf_delwri_submit_buffers() 2238 LIST_HEAD (wait_list); in xfs_buf_delwri_submit() 2242 xfs_buf_delwri_submit_buffers(buffer_list, &wait_list); in xfs_buf_delwri_submit() 2245 while (!list_empty(&wait_list)) { in xfs_buf_delwri_submit() 2246 bp = list_first_entry(&wait_list, struct xfs_buf, b_list); in xfs_buf_delwri_submit()
|
/linux-6.1.9/drivers/nvme/target/ |
D | rdma.c | 76 struct list_head wait_list; member 529 struct nvmet_rdma_rsp, wait_list); in nvmet_rdma_process_wr_wait_list() 530 list_del(&rsp->wait_list); in nvmet_rdma_process_wr_wait_list() 537 list_add(&rsp->wait_list, &queue->rsp_wr_wait_list); in nvmet_rdma_process_wr_wait_list() 998 list_add_tail(&cmd->wait_list, &queue->rsp_wr_wait_list); in nvmet_rdma_handle_command() 1054 list_add_tail(&rsp->wait_list, &queue->rsp_wait_list); in nvmet_rdma_recv_done() 1629 struct nvmet_rdma_rsp, wait_list); in nvmet_rdma_queue_established() 1630 list_del(&cmd->wait_list); in nvmet_rdma_queue_established() 1656 wait_list); in __nvmet_rdma_queue_disconnect() 1657 list_del(&rsp->wait_list); in __nvmet_rdma_queue_disconnect()
|
/linux-6.1.9/drivers/infiniband/ulp/rtrs/ |
D | rtrs-srv.h | 58 struct list_head wait_list; member
|
D | rtrs-srv.c | 511 list_add_tail(&id->wait_list, &con->rsp_wr_wait_list); in rtrs_srv_resp_rdma() 1178 struct rtrs_srv_op, wait_list); in rtrs_rdma_process_wr_wait_list() 1179 list_del(&id->wait_list); in rtrs_rdma_process_wr_wait_list() 1186 list_add(&id->wait_list, &con->rsp_wr_wait_list); in rtrs_rdma_process_wr_wait_list()
|
/linux-6.1.9/drivers/infiniband/core/ |
D | mad_priv.h | 98 struct list_head wait_list; member
|
D | mad.c | 393 INIT_LIST_HEAD(&mad_agent_priv->wait_list); in ib_register_mad_agent() 1740 list_for_each_entry(wr, &mad_agent_priv->wait_list, agent_list) { in ib_find_send_mad() 2153 if (list_empty(&mad_agent_priv->wait_list)) { in adjust_timeout() 2156 mad_send_wr = list_entry(mad_agent_priv->wait_list.next, in adjust_timeout() 2186 list_for_each_prev(list_item, &mad_agent_priv->wait_list) { in wait_for_response() 2195 list_item = &mad_agent_priv->wait_list; in wait_for_response() 2201 if (mad_agent_priv->wait_list.next == &mad_send_wr->agent_list) in wait_for_response() 2418 list_splice_init(&mad_agent_priv->wait_list, &cancel_list); in cancel_mads() 2441 list_for_each_entry(mad_send_wr, &mad_agent_priv->wait_list, in find_send_wr() 2629 while (!list_empty(&mad_agent_priv->wait_list)) { in timeout_sends() [all …]
|
/linux-6.1.9/drivers/infiniband/ulp/srpt/ |
D | ib_srpt.h | 185 struct list_head wait_list; member
|
D | ib_srpt.c | 1642 if (!list_empty(&recv_ioctx->wait_list)) { in srpt_handle_new_iu() 1644 list_del_init(&recv_ioctx->wait_list); in srpt_handle_new_iu() 1679 if (list_empty(&recv_ioctx->wait_list)) { in srpt_handle_new_iu() 1681 list_add_tail(&recv_ioctx->wait_list, &ch->cmd_wait_list); in srpt_handle_new_iu() 1723 wait_list) { in srpt_process_wait_list() 2293 INIT_LIST_HEAD(&ch->ioctx_recv_ring[i]->wait_list); in srpt_cm_req_recv() 3093 INIT_LIST_HEAD(&sdev->ioctx_ring[i]->wait_list); in srpt_alloc_srq() 3353 WARN_ON_ONCE(!list_empty(&recv_ioctx->wait_list)); in srpt_release_cmd()
|
/linux-6.1.9/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_sriov_common.c | 195 INIT_LIST_HEAD(&vf->rcv_act.wait_list); in qlcnic_sriov_init() 196 INIT_LIST_HEAD(&vf->rcv_pend.wait_list); in qlcnic_sriov_init() 247 while (!list_empty(&t_list->wait_list)) { in qlcnic_sriov_cleanup_list() 248 trans = list_first_entry(&t_list->wait_list, in qlcnic_sriov_cleanup_list() 1065 trans = list_first_entry(&vf->rcv_act.wait_list, in qlcnic_sriov_process_bc_cmd() 1125 list_add_tail(&trans->list, &t_list->wait_list); in __qlcnic_sriov_add_act_list() 1157 list_for_each(node, &vf->rcv_pend.wait_list) { in qlcnic_sriov_handle_pending_trans() 1258 list_add_tail(&trans->list, &vf->rcv_pend.wait_list); in qlcnic_sriov_handle_bc_cmd()
|
D | qlcnic_sriov.h | 61 struct list_head wait_list; member
|
/linux-6.1.9/drivers/md/ |
D | dm-integrity.c | 225 struct list_head wait_list; member 1228 list_for_each_entry(range, &ic->wait_list, wait_entry) { in add_new_range() 1258 while (unlikely(!list_empty(&ic->wait_list))) { in remove_range_unlocked() 1260 list_first_entry(&ic->wait_list, struct dm_integrity_range, wait_entry); in remove_range_unlocked() 1266 list_add(&last_range->wait_entry, &ic->wait_list); in remove_range_unlocked() 1286 list_add_tail(&new_range->wait_entry, &ic->wait_list); in wait_and_add_new_range() 4008 INIT_LIST_HEAD(&ic->wait_list); in dm_integrity_ctr() 4559 BUG_ON(!list_empty(&ic->wait_list)); in dm_integrity_dtr()
|
/linux-6.1.9/fs/f2fs/ |
D | segment.c | 1089 struct list_head *wait_list = (dpolicy->type == DPOLICY_FSTRIM) ? in __submit_discard_cmd() local 1090 &(dcc->fstrim_list) : &(dcc->wait_list); in __submit_discard_cmd() 1161 list_move_tail(&dc->list, wait_list); in __submit_discard_cmd() 1552 struct list_head *wait_list = (dpolicy->type == DPOLICY_FSTRIM) ? in __wait_discard_cmd_range() local 1553 &(dcc->fstrim_list) : &(dcc->wait_list); in __wait_discard_cmd_range() 1561 list_for_each_entry_safe(iter, tmp, wait_list, list) { in __wait_discard_cmd_range() 2059 INIT_LIST_HEAD(&dcc->wait_list); in create_discard_cmd_control()
|
D | f2fs.h | 400 struct list_head wait_list; /* store on-flushing entries */ member
|
/linux-6.1.9/drivers/acpi/ |
D | osl.c | 1234 BUG_ON(!list_empty(&sem->wait_list)); in acpi_os_delete_semaphore()
|