Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/include/linux/
H A Dsemaphore.h18 struct list_head wait_list; member
25 .wait_list = LIST_HEAD_INIT((name).wait_list), \
H A Drwsem.h48 struct list_head wait_list; member
110 .wait_list = LIST_HEAD_INIT((name).wait_list), \
135 return !list_empty(&sem->wait_list); in rwsem_is_contended()
H A Dmutex.h60 struct list_head wait_list; member
137 , .wait_list = LIST_HEAD_INIT(lockname.wait_list) \
/OK3568_Linux_fs/kernel/kernel/locking/
H A Drwsem.c113 list_empty(&(sem)->wait_list) ? "" : "not ")) \
346 INIT_LIST_HEAD(&sem->wait_list); in __init_rwsem()
356 list_first_entry(&sem->wait_list, struct rwsem_waiter, list)
498 list_for_each_entry_safe(waiter, tmp, &sem->wait_list, list) { in rwsem_mark_wake()
515 if (list_empty(&sem->wait_list)) { in rwsem_mark_wake()
585 if (list_is_singular(&sem->wait_list)) in rwsem_try_write_lock()
1022 if (!list_empty(&sem->wait_list)) in rwsem_down_read_slowpath()
1042 if (list_empty(&sem->wait_list)) { in rwsem_down_read_slowpath()
1064 list_add_tail(&waiter.list, &sem->wait_list); in rwsem_down_read_slowpath()
1118 if (list_empty(&sem->wait_list)) { in rwsem_down_read_slowpath()
[all …]
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 Dmutex.c46 INIT_LIST_HEAD(&lock->wait_list); in __mutex_init()
204 return list_first_entry(&lock->wait_list, struct mutex_waiter, list) == waiter; in __mutex_waiter_is_first()
229 if (likely(list_empty(&lock->wait_list))) in __mutex_remove_waiter()
467 list_for_each_entry(cur, &lock->wait_list, list) { in __ww_mutex_check_waiters()
848 list_for_each_entry_continue_reverse(cur, &lock->wait_list, list) { in __ww_mutex_check_kill()
879 __mutex_add_waiter(lock, waiter, &lock->wait_list); in __ww_mutex_add_waiter()
892 pos = &lock->wait_list; in __ww_mutex_add_waiter()
893 list_for_each_entry_reverse(cur, &lock->wait_list, list) { in __ww_mutex_add_waiter()
1006 __mutex_add_waiter(lock, &waiter, &lock->wait_list); in __mutex_lock_common()
1282 if (!list_empty(&lock->wait_list)) { in __mutex_unlock_slowpath()
[all …]
H A Dsemaphore.c183 if (likely(list_empty(&sem->wait_list))) in up()
209 list_add_tail(&waiter.list, &sem->wait_list); in __down_common()
257 struct semaphore_waiter *waiter = list_first_entry(&sem->wait_list, in __up()
/OK3568_Linux_fs/kernel/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()
242 list_for_each_entry_safe(wait, n, &priv->wait_list, node) { in omap_irq_handler()
274 INIT_LIST_HEAD(&priv->wait_list); in omap_drm_irq_install()
H A Domap_drv.h77 struct list_head wait_list; /* list of omap_irq_wait */ member
/OK3568_Linux_fs/kernel/drivers/md/bcache/
H A Dclosure.c60 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()
/OK3568_Linux_fs/kernel/drivers/nvme/target/
H A Drdma.c75 struct list_head wait_list; member
528 struct nvmet_rdma_rsp, wait_list); in nvmet_rdma_process_wr_wait_list()
529 list_del(&rsp->wait_list); in nvmet_rdma_process_wr_wait_list()
536 list_add(&rsp->wait_list, &queue->rsp_wr_wait_list); in nvmet_rdma_process_wr_wait_list()
997 list_add_tail(&cmd->wait_list, &queue->rsp_wr_wait_list); in nvmet_rdma_handle_command()
1053 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()
/OK3568_Linux_fs/kernel/fs/xfs/
H A Dxfs_buf.c2143 struct list_head *wait_list) in xfs_buf_delwri_submit_buffers() argument
2153 if (!wait_list) { in xfs_buf_delwri_submit_buffers()
2186 if (wait_list) { in xfs_buf_delwri_submit_buffers()
2188 list_move_tail(&bp->b_list, wait_list); in xfs_buf_delwri_submit_buffers()
2235 LIST_HEAD (wait_list); in xfs_buf_delwri_submit()
2239 xfs_buf_delwri_submit_buffers(buffer_list, &wait_list); in xfs_buf_delwri_submit()
2242 while (!list_empty(&wait_list)) { in xfs_buf_delwri_submit()
2243 bp = list_first_entry(&wait_list, struct xfs_buf, b_list); in xfs_buf_delwri_submit()
/OK3568_Linux_fs/kernel/drivers/infiniband/ulp/rtrs/
H A Drtrs-srv.h59 struct list_head wait_list; member
H A Drtrs-srv.c548 list_add_tail(&id->wait_list, &con->rsp_wr_wait_list); in rtrs_srv_resp_rdma()
1166 struct rtrs_srv_op, wait_list); in rtrs_rdma_process_wr_wait_list()
1167 list_del(&id->wait_list); in rtrs_rdma_process_wr_wait_list()
1174 list_add(&id->wait_list, &con->rsp_wr_wait_list); in rtrs_rdma_process_wr_wait_list()
/OK3568_Linux_fs/kernel/drivers/infiniband/core/
H A Dmad.c399 INIT_LIST_HEAD(&mad_agent_priv->wait_list); in ib_register_mad_agent()
1750 list_for_each_entry(wr, &mad_agent_priv->wait_list, agent_list) { in ib_find_send_mad()
2164 if (list_empty(&mad_agent_priv->wait_list)) { in adjust_timeout()
2167 mad_send_wr = list_entry(mad_agent_priv->wait_list.next, in adjust_timeout()
2197 list_for_each_prev(list_item, &mad_agent_priv->wait_list) { in wait_for_response()
2207 list_item = &mad_agent_priv->wait_list; in wait_for_response()
2211 if (mad_agent_priv->wait_list.next == &mad_send_wr->agent_list) in wait_for_response()
2428 list_splice_init(&mad_agent_priv->wait_list, &cancel_list); in cancel_mads()
2451 list_for_each_entry(mad_send_wr, &mad_agent_priv->wait_list, in find_send_wr()
2644 while (!list_empty(&mad_agent_priv->wait_list)) { in timeout_sends()
[all …]
H A Dmad_priv.h98 struct list_head wait_list; member
/OK3568_Linux_fs/kernel/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()
245 while (!list_empty(&t_list->wait_list)) { in qlcnic_sriov_cleanup_list()
246 trans = list_first_entry(&t_list->wait_list, in qlcnic_sriov_cleanup_list()
1064 trans = list_first_entry(&vf->rcv_act.wait_list, in qlcnic_sriov_process_bc_cmd()
1124 list_add_tail(&trans->list, &t_list->wait_list); in __qlcnic_sriov_add_act_list()
1156 list_for_each(node, &vf->rcv_pend.wait_list) { in qlcnic_sriov_handle_pending_trans()
1257 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
/OK3568_Linux_fs/kernel/drivers/infiniband/ulp/srpt/
H A Dib_srpt.h185 struct list_head wait_list; member
H A Dib_srpt.c1638 if (!list_empty(&recv_ioctx->wait_list)) { in srpt_handle_new_iu()
1640 list_del_init(&recv_ioctx->wait_list); in srpt_handle_new_iu()
1675 if (list_empty(&recv_ioctx->wait_list)) { in srpt_handle_new_iu()
1677 list_add_tail(&recv_ioctx->wait_list, &ch->cmd_wait_list); in srpt_handle_new_iu()
1719 wait_list) { in srpt_process_wait_list()
2289 INIT_LIST_HEAD(&ch->ioctx_recv_ring[i]->wait_list); in srpt_cm_req_recv()
3090 INIT_LIST_HEAD(&sdev->ioctx_ring[i]->wait_list); in srpt_alloc_srq()
3349 WARN_ON_ONCE(!list_empty(&recv_ioctx->wait_list)); in srpt_release_cmd()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/
H A Dphl_fsm.h155 struct fsm_obj *wait_list[PHL_FSM_MAX_WAIT_OCUNT]; member
H A Dphl_fsm.c1600 if (obj->my_gbl_req.wait_list[i]) in phl_fsm_gbl_msg_announce()
1605 obj->my_gbl_req.wait_list[i]), in phl_fsm_gbl_msg_announce()
1690 param->wait_list[param->count] = NULL; in phl_fsm_gbl_not_reply_num()
1747 param->wait_list[param->count] = obj; in phl_fsm_gbl_msg_hold()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/
H A Dphl_fsm.h155 struct fsm_obj *wait_list[PHL_FSM_MAX_WAIT_OCUNT]; member
H A Dphl_fsm.c1600 if (obj->my_gbl_req.wait_list[i]) in phl_fsm_gbl_msg_announce()
1605 obj->my_gbl_req.wait_list[i]), in phl_fsm_gbl_msg_announce()
1690 param->wait_list[param->count] = NULL; in phl_fsm_gbl_not_reply_num()
1747 param->wait_list[param->count] = obj; in phl_fsm_gbl_msg_hold()
/OK3568_Linux_fs/kernel/drivers/md/
H A Ddm-integrity.c216 struct list_head wait_list; member
1124 list_for_each_entry(range, &ic->wait_list, wait_entry) { in add_new_range()
1154 while (unlikely(!list_empty(&ic->wait_list))) { in remove_range_unlocked()
1156 list_first_entry(&ic->wait_list, struct dm_integrity_range, wait_entry); in remove_range_unlocked()
1162 list_add(&last_range->wait_entry, &ic->wait_list); in remove_range_unlocked()
1182 list_add_tail(&new_range->wait_entry, &ic->wait_list); in wait_and_add_new_range()
3845 INIT_LIST_HEAD(&ic->wait_list); in dm_integrity_ctr()
4389 BUG_ON(!list_empty(&ic->wait_list)); in dm_integrity_dtr()

12