/linux-4.1.27/include/linux/ |
H A D | semaphore.h | 19 struct list_head wait_list; member in struct:semaphore 26 .wait_list = LIST_HEAD_INIT((name).wait_list), \
|
H A D | rwsem-spinlock.h | 21 * - if wait_list is not empty, then there are processes waiting for the semaphore 26 struct list_head wait_list; member in struct:rw_semaphore
|
H A D | rwsem.h | 29 struct list_head wait_list; member in struct:rw_semaphore 76 .wait_list = LIST_HEAD_INIT((name).wait_list), \ 102 return !list_empty(&sem->wait_list); rwsem_is_contended()
|
H A D | mutex.h | 54 struct list_head wait_list; member in struct:mutex 112 , .wait_list = LIST_HEAD_INIT(lockname.wait_list) \
|
/linux-4.1.27/kernel/locking/ |
H A D | rwsem-spinlock.c | 51 INIT_LIST_HEAD(&sem->wait_list); __init_rwsem() 71 waiter = list_entry(sem->wait_list.next, struct rwsem_waiter, list); __rwsem_do_wake() 100 if (next == &sem->wait_list) __rwsem_do_wake() 119 waiter = list_entry(sem->wait_list.next, struct rwsem_waiter, list); __rwsem_wake_one_writer() 136 if (sem->count >= 0 && list_empty(&sem->wait_list)) { __down_read() 151 list_add_tail(&waiter.list, &sem->wait_list); __down_read() 180 if (sem->count >= 0 && list_empty(&sem->wait_list)) { __down_read_trylock() 206 list_add_tail(&waiter.list, &sem->wait_list); __down_write_nested() 265 if (--sem->count == 0 && !list_empty(&sem->wait_list)) __up_read() 281 if (!list_empty(&sem->wait_list)) __up_write() 298 if (!list_empty(&sem->wait_list)) __downgrade_write()
|
H A D | rwsem-xadd.c | 85 INIT_LIST_HEAD(&sem->wait_list); __init_rwsem() 129 waiter = list_entry(sem->wait_list.next, struct rwsem_waiter, list); __rwsem_do_wake() 168 if (waiter->list.next == &sem->wait_list) __rwsem_do_wake() 184 next = sem->wait_list.next; __rwsem_do_wake() 203 sem->wait_list.next = next; __rwsem_do_wake() 204 next->prev = &sem->wait_list; __rwsem_do_wake() 226 if (list_empty(&sem->wait_list)) rwsem_down_read_failed() 228 list_add_tail(&waiter.list, &sem->wait_list); rwsem_down_read_failed() 267 if (!list_is_singular(&sem->wait_list)) rwsem_try_write_lock() 446 if (list_empty(&sem->wait_list)) rwsem_down_write_failed() 449 list_add_tail(&waiter.list, &sem->wait_list); rwsem_down_write_failed() 502 if (!list_empty(&sem->wait_list)) rwsem_wake() 524 if (!list_empty(&sem->wait_list)) rwsem_downgrade_wake()
|
H A D | mutex-debug.c | 40 DEBUG_LOCKS_WARN_ON(list_empty(&lock->wait_list)); debug_mutex_wake_waiter() 82 DEBUG_LOCKS_WARN_ON(!lock->wait_list.prev && !lock->wait_list.next); debug_mutex_unlock()
|
H A D | semaphore.c | 25 * semaphore. If it's zero, there may be tasks waiting on the wait_list. 183 if (likely(list_empty(&sem->wait_list))) up() 210 list_add_tail(&waiter.list, &sem->wait_list); __down_common() 258 struct semaphore_waiter *waiter = list_first_entry(&sem->wait_list, __up()
|
H A D | mutex.c | 54 INIT_LIST_HEAD(&lock->wait_list); __mutex_init() 187 list_for_each_entry(cur, &lock->base.wait_list, list) { ww_mutex_set_context_fastpath() 213 list_for_each_entry(cur, &lock->base.wait_list, list) { ww_mutex_set_context_slowpath() 542 list_add_tail(&waiter.list, &lock->wait_list); __mutex_lock_common() 588 if (likely(list_empty(&lock->wait_list))) __mutex_lock_common() 727 * mutex counter and wait_list. __mutex_unlock_common_slowpath() 741 if (!list_empty(&lock->wait_list)) { __mutex_unlock_common_slowpath() 744 list_entry(lock->wait_list.next, __mutex_unlock_common_slowpath() 880 if (likely(list_empty(&lock->wait_list))) __mutex_trylock_slowpath()
|
/linux-4.1.27/drivers/md/bcache/ |
H A D | closure.c | 64 void __closure_wake_up(struct closure_waitlist *wait_list) __closure_wake_up() argument 70 list = llist_del_all(&wait_list->list); __closure_wake_up()
|
/linux-4.1.27/drivers/infiniband/core/ |
H A D | mad_priv.h | 100 struct list_head wait_list; member in struct:ib_mad_agent_private
|
H A D | mad.c | 369 INIT_LIST_HEAD(&mad_agent_priv->wait_list); ib_register_mad_agent() 1822 list_for_each_entry(wr, &mad_agent_priv->wait_list, agent_list) { ib_find_send_mad() 2088 if (list_empty(&mad_agent_priv->wait_list)) { adjust_timeout() 2091 mad_send_wr = list_entry(mad_agent_priv->wait_list.next, adjust_timeout() 2121 list_for_each_prev(list_item, &mad_agent_priv->wait_list) { wait_for_response() 2131 list_item = &mad_agent_priv->wait_list; wait_for_response() 2135 if (mad_agent_priv->wait_list.next == &mad_send_wr->agent_list) wait_for_response() 2383 list_splice_init(&mad_agent_priv->wait_list, &cancel_list); cancel_mads() 2406 list_for_each_entry(mad_send_wr, &mad_agent_priv->wait_list, find_send_wr() 2591 while (!list_empty(&mad_agent_priv->wait_list)) { timeout_sends() 2592 mad_send_wr = list_entry(mad_agent_priv->wait_list.next, timeout_sends()
|
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_sriov_common.c | 187 INIT_LIST_HEAD(&vf->rcv_act.wait_list); qlcnic_sriov_init() 188 INIT_LIST_HEAD(&vf->rcv_pend.wait_list); qlcnic_sriov_init() 237 while (!list_empty(&t_list->wait_list)) { qlcnic_sriov_cleanup_list() 238 trans = list_first_entry(&t_list->wait_list, qlcnic_sriov_cleanup_list() 1060 trans = list_first_entry(&vf->rcv_act.wait_list, qlcnic_sriov_process_bc_cmd() 1120 list_add_tail(&trans->list, &t_list->wait_list); __qlcnic_sriov_add_act_list() 1152 list_for_each(node, &vf->rcv_pend.wait_list) { qlcnic_sriov_handle_pending_trans() 1253 list_add_tail(&trans->list, &vf->rcv_pend.wait_list); qlcnic_sriov_handle_bc_cmd()
|
H A D | qlcnic_sriov.h | 61 struct list_head wait_list; member in struct:qlcnic_trans_list
|
/linux-4.1.27/drivers/infiniband/ulp/srpt/ |
H A D | ib_srpt.h | 200 * @wait_list: Node for insertion in srpt_rdma_ch.cmd_wait_list. 204 struct list_head wait_list; member in struct:srpt_recv_ioctx
|
H A D | ib_srpt.c | 1829 list_add_tail(&recv_ioctx->wait_list, &ch->cmd_wait_list); srpt_handle_new_iu() 1841 list_add_tail(&recv_ioctx->wait_list, srpt_handle_new_iu() 1954 wait_list); srpt_process_send_completion() 1955 list_del(&recv_ioctx->wait_list); srpt_process_send_completion() 2646 wait_list) { srpt_cm_rtu_recv() 2647 list_del(&ioctx->wait_list); srpt_cm_rtu_recv()
|
/linux-4.1.27/net/tipc/ |
H A D | net.c | 96 * and 'wait_list', which is used to queue ports during congestion.
|
/linux-4.1.27/drivers/acpi/ |
H A D | osl.c | 1284 BUG_ON(!list_empty(&sem->wait_list)); acpi_os_delete_semaphore()
|
/linux-4.1.27/drivers/staging/lustre/lustre/llite/ |
H A D | llite_internal.h | 209 * struct list_head wait_list;
|