Home
last modified time | relevance | path

Searched refs:wait_list (Results 1 – 25 of 26) sorted by relevance

12

/openbmc/linux/rust/kernel/sync/
H A Dcondvar.rs76 pub(crate) wait_list: Opaque<bindings::wait_queue_head>, field
100 wait_list <- Opaque::ffi_init(|slot| unsafe { in new()
114 bindings::prepare_to_wait_exclusive(self.wait_list.get(), wait.get(), wait_state as _) in wait_internal()
121 unsafe { bindings::finish_wait(self.wait_list.get(), wait.get()) }; in wait_internal()
151 self.wait_list.get(), in notify()
/openbmc/linux/include/linux/
H A Dsemaphore.h18 struct list_head wait_list; member
25 .wait_list = LIST_HEAD_INIT((name).wait_list), \
H A Drwsem.h60 struct list_head wait_list; member
97 .wait_list = LIST_HEAD_INIT((name).wait_list), \
122 return !list_empty(&sem->wait_list); in rwsem_is_contended()
H A Dmutex.h72 struct list_head wait_list; member
114 , .wait_list = LIST_HEAD_INIT(lockname.wait_list) \
/openbmc/linux/kernel/locking/
H A Dww_mutex.h13 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()
H A Dmutex-debug.c40 DEBUG_LOCKS_WARN_ON(list_empty(&lock->wait_list)); in debug_mutex_wake_waiter()
76 DEBUG_LOCKS_WARN_ON(!lock->wait_list.prev && !lock->wait_list.next); in debug_mutex_unlock()
H A Drwsem.c74 list_empty(&(sem)->wait_list) ? "" : "not ")) \
325 INIT_LIST_HEAD(&sem->wait_list); in __init_rwsem()
346 list_first_entry(&sem->wait_list, struct rwsem_waiter, list)
373 list_add_tail(&waiter->list, &sem->wait_list); in rwsem_add_waiter()
390 if (likely(!list_empty(&sem->wait_list))) in rwsem_del_waiter()
510 list_for_each_entry_safe(waiter, tmp, &sem->wait_list, list) { in rwsem_mark_wake()
528 if (list_empty(&sem->wait_list)) { in rwsem_mark_wake()
643 if (list_is_singular(&sem->wait_list)) in rwsem_try_write_lock()
1025 if (!list_empty(&sem->wait_list)) in rwsem_down_read_slowpath()
1041 if (list_empty(&sem->wait_list)) { in rwsem_down_read_slowpath()
[all …]
H A Dsemaphore.c188 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()
H A Dmutex.c50 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()
/openbmc/linux/drivers/gpu/drm/omapdrm/
H A Domap_irq.c27 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()
H A Domap_drv.h95 struct list_head wait_list; /* list of omap_irq_wait */ member
/openbmc/linux/drivers/md/bcache/
H A Dclosure.c66 void __closure_wake_up(struct closure_waitlist *wait_list) in __closure_wake_up() argument
72 list = llist_del_all(&wait_list->list); in __closure_wake_up()
/openbmc/linux/fs/xfs/
H A Dxfs_buf.c2191 struct list_head *wait_list) in xfs_buf_delwri_submit_buffers() argument
2201 if (!wait_list) { in xfs_buf_delwri_submit_buffers()
2235 if (wait_list) { in xfs_buf_delwri_submit_buffers()
2237 list_move_tail(&bp->b_list, wait_list); in xfs_buf_delwri_submit_buffers()
2284 LIST_HEAD (wait_list); in xfs_buf_delwri_submit()
2288 xfs_buf_delwri_submit_buffers(buffer_list, &wait_list); in xfs_buf_delwri_submit()
2291 while (!list_empty(&wait_list)) { in xfs_buf_delwri_submit()
2292 bp = list_first_entry(&wait_list, struct xfs_buf, b_list); in xfs_buf_delwri_submit()
/openbmc/linux/drivers/nvme/target/
H A Drdma.c76 struct list_head wait_list; member
521 struct nvmet_rdma_rsp, wait_list); in nvmet_rdma_process_wr_wait_list()
522 list_del(&rsp->wait_list); in nvmet_rdma_process_wr_wait_list()
529 list_add(&rsp->wait_list, &queue->rsp_wr_wait_list); in nvmet_rdma_process_wr_wait_list()
990 list_add_tail(&cmd->wait_list, &queue->rsp_wr_wait_list); in nvmet_rdma_handle_command()
1046 list_add_tail(&rsp->wait_list, &queue->rsp_wait_list); in nvmet_rdma_recv_done()
1621 struct nvmet_rdma_rsp, wait_list); in nvmet_rdma_queue_established()
1622 list_del(&cmd->wait_list); in nvmet_rdma_queue_established()
1648 wait_list); in __nvmet_rdma_queue_disconnect()
1649 list_del(&rsp->wait_list); in __nvmet_rdma_queue_disconnect()
/openbmc/linux/drivers/infiniband/ulp/rtrs/
H A Drtrs-srv.h58 struct list_head wait_list; member
H A Drtrs-srv.c514 list_add_tail(&id->wait_list, &con->rsp_wr_wait_list); in rtrs_srv_resp_rdma()
1198 struct rtrs_srv_op, wait_list); in rtrs_rdma_process_wr_wait_list()
1199 list_del(&id->wait_list); in rtrs_rdma_process_wr_wait_list()
1206 list_add(&id->wait_list, &con->rsp_wr_wait_list); in rtrs_rdma_process_wr_wait_list()
/openbmc/linux/drivers/infiniband/core/
H A Dmad_priv.h98 struct list_head wait_list; member
H A Dmad.c393 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()
2631 while (!list_empty(&mad_agent_priv->wait_list)) { in timeout_sends()
[all …]
/openbmc/linux/drivers/infiniband/ulp/srpt/
H A Dib_srpt.h185 struct list_head wait_list; member
H A Dib_srpt.c1710 if (!list_empty(&recv_ioctx->wait_list)) { in srpt_handle_new_iu()
1712 list_del_init(&recv_ioctx->wait_list); in srpt_handle_new_iu()
1747 if (list_empty(&recv_ioctx->wait_list)) { in srpt_handle_new_iu()
1749 list_add_tail(&recv_ioctx->wait_list, &ch->cmd_wait_list); in srpt_handle_new_iu()
1791 wait_list) { in srpt_process_wait_list()
2358 INIT_LIST_HEAD(&ch->ioctx_recv_ring[i]->wait_list); in srpt_cm_req_recv()
3157 INIT_LIST_HEAD(&sdev->ioctx_ring[i]->wait_list); in srpt_alloc_srq()
3406 WARN_ON_ONCE(!list_empty(&recv_ioctx->wait_list)); in srpt_release_cmd()
/openbmc/linux/drivers/net/ethernet/qlogic/qlcnic/
H A Dqlcnic_sriov_common.c195 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()
H A Dqlcnic_sriov.h61 struct list_head wait_list; member
/openbmc/linux/fs/f2fs/
H A Dsegment.c1214 struct list_head *wait_list, in __submit_zone_reset_cmd() argument
1234 list_move_tail(&dc->list, wait_list); in __submit_zone_reset_cmd()
1258 struct list_head *wait_list = (dpolicy->type == DPOLICY_FSTRIM) ? in __submit_discard_cmd() local
1259 &(dcc->fstrim_list) : &(dcc->wait_list); in __submit_discard_cmd()
1279 wait_list, issued); in __submit_discard_cmd()
1352 list_move_tail(&dc->list, wait_list); in __submit_discard_cmd()
1751 struct list_head *wait_list = (dpolicy->type == DPOLICY_FSTRIM) ? in __wait_discard_cmd_range() local
1752 &(dcc->fstrim_list) : &(dcc->wait_list); in __wait_discard_cmd_range()
1760 list_for_each_entry_safe(iter, tmp, wait_list, list) { in __wait_discard_cmd_range()
1827 &dcc->wait_list, NULL); in f2fs_wait_discard_bio()
[all …]
/openbmc/linux/drivers/md/
H A Ddm-integrity.c226 struct list_head wait_list; member
1226 list_for_each_entry(range, &ic->wait_list, wait_entry) { in add_new_range()
1255 while (unlikely(!list_empty(&ic->wait_list))) { in remove_range_unlocked()
1257 list_first_entry(&ic->wait_list, struct dm_integrity_range, wait_entry); in remove_range_unlocked()
1264 list_add(&last_range->wait_entry, &ic->wait_list); in remove_range_unlocked()
1284 list_add_tail(&new_range->wait_entry, &ic->wait_list); in wait_and_add_new_range()
4141 INIT_LIST_HEAD(&ic->wait_list); in dm_integrity_ctr()
4685 BUG_ON(!list_empty(&ic->wait_list)); in dm_integrity_dtr()
/openbmc/linux/drivers/acpi/
H A Dosl.c1234 BUG_ON(!list_empty(&sem->wait_list)); in acpi_os_delete_semaphore()

12