/linux-4.4.14/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.4.14/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 | 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 | 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() 460 if (list_empty(&sem->wait_list)) rwsem_down_write_failed() 463 list_add_tail(&waiter.list, &sem->wait_list); rwsem_down_write_failed() 547 if (!list_empty(&sem->wait_list)) rwsem_wake() 569 if (!list_empty(&sem->wait_list)) rwsem_downgrade_wake()
|
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() 540 list_add_tail(&waiter.list, &lock->wait_list); __mutex_lock_common() 586 if (likely(list_empty(&lock->wait_list))) __mutex_lock_common() 725 * mutex counter and wait_list. __mutex_unlock_common_slowpath() 739 if (!list_empty(&lock->wait_list)) { __mutex_unlock_common_slowpath() 742 list_entry(lock->wait_list.next, __mutex_unlock_common_slowpath() 878 if (likely(list_empty(&lock->wait_list))) __mutex_trylock_slowpath()
|
/linux-4.4.14/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.4.14/drivers/infiniband/core/ |
H A D | mad_priv.h | 98 struct list_head wait_list; member in struct:ib_mad_agent_private
|
H A D | mad.c | 362 INIT_LIST_HEAD(&mad_agent_priv->wait_list); ib_register_mad_agent() 1913 list_for_each_entry(wr, &mad_agent_priv->wait_list, agent_list) { ib_find_send_mad() 2304 if (list_empty(&mad_agent_priv->wait_list)) { adjust_timeout() 2307 mad_send_wr = list_entry(mad_agent_priv->wait_list.next, adjust_timeout() 2337 list_for_each_prev(list_item, &mad_agent_priv->wait_list) { wait_for_response() 2347 list_item = &mad_agent_priv->wait_list; wait_for_response() 2351 if (mad_agent_priv->wait_list.next == &mad_send_wr->agent_list) wait_for_response() 2599 list_splice_init(&mad_agent_priv->wait_list, &cancel_list); cancel_mads() 2622 list_for_each_entry(mad_send_wr, &mad_agent_priv->wait_list, find_send_wr() 2822 while (!list_empty(&mad_agent_priv->wait_list)) { timeout_sends() 2823 mad_send_wr = list_entry(mad_agent_priv->wait_list.next, timeout_sends()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_sriov_common.c | 188 INIT_LIST_HEAD(&vf->rcv_act.wait_list); qlcnic_sriov_init() 189 INIT_LIST_HEAD(&vf->rcv_pend.wait_list); qlcnic_sriov_init() 238 while (!list_empty(&t_list->wait_list)) { qlcnic_sriov_cleanup_list() 239 trans = list_first_entry(&t_list->wait_list, qlcnic_sriov_cleanup_list() 1059 trans = list_first_entry(&vf->rcv_act.wait_list, qlcnic_sriov_process_bc_cmd() 1119 list_add_tail(&trans->list, &t_list->wait_list); __qlcnic_sriov_add_act_list() 1151 list_for_each(node, &vf->rcv_pend.wait_list) { qlcnic_sriov_handle_pending_trans() 1252 list_add_tail(&trans->list, &vf->rcv_pend.wait_list); qlcnic_sriov_handle_bc_cmd()
|
H A D | qlcnic_sriov.h | 62 struct list_head wait_list; member in struct:qlcnic_trans_list
|
/linux-4.4.14/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 | 1824 list_add_tail(&recv_ioctx->wait_list, &ch->cmd_wait_list); srpt_handle_new_iu() 1836 list_add_tail(&recv_ioctx->wait_list, srpt_handle_new_iu() 1949 wait_list); srpt_process_send_completion() 1950 list_del(&recv_ioctx->wait_list); srpt_process_send_completion() 2639 wait_list) { srpt_cm_rtu_recv() 2640 list_del(&ioctx->wait_list); srpt_cm_rtu_recv()
|
/linux-4.4.14/net/tipc/ |
H A D | net.c | 97 * and 'wait_list', which is used to queue ports during congestion.
|
/linux-4.4.14/drivers/staging/lustre/lustre/llite/ |
H A D | llite_internal.h | 201 * struct list_head wait_list;
|
/linux-4.4.14/drivers/acpi/ |
H A D | osl.c | 1273 BUG_ON(!list_empty(&sem->wait_list)); acpi_os_delete_semaphore()
|