Lines Matching refs:wait_queue
12 wait_queue_head_init(&x->wait_queue); in completion_init()
23 spin_lock(&x->wait_queue.lock); in complete()
27 wait_queue_wakeup_on_stack(&x->wait_queue, -1UL); // -1UL代表所有节点都满足条件,暂时这么写 in complete()
29 spin_unlock(&x->wait_queue.lock); in complete()
39 spin_lock(&x->wait_queue.lock); in complete_all()
42 while (!list_empty(&x->wait_queue.wait_list)) in complete_all()
43 wait_queue_wakeup_on_stack(&x->wait_queue, -1UL); // -1UL代表所有节点都满足条件,暂时这么写 in complete_all()
45 spin_unlock(&x->wait_queue.lock); in complete_all()
67 list_append(&x->wait_queue.wait_list, &wait.wait_list); in __wait_for_common()
70 spin_unlock(&x->wait_queue.lock); in __wait_for_common()
73 spin_lock(&x->wait_queue.lock); in __wait_for_common()
94 spin_lock(&x->wait_queue.lock); in wait_for_completion()
96 spin_unlock(&x->wait_queue.lock); in wait_for_completion()
109 spin_lock(&x->wait_queue.lock); in wait_for_completion_timeout()
111 spin_unlock(&x->wait_queue.lock); in wait_for_completion_timeout()
122 spin_lock(&x->wait_queue.lock); in wait_for_completion_interruptible()
124 spin_unlock(&x->wait_queue.lock); in wait_for_completion_interruptible()
138 spin_lock(&x->wait_queue.lock); in wait_for_completion_interruptible_timeout()
140 spin_unlock(&x->wait_queue.lock); in wait_for_completion_interruptible_timeout()
157 spin_lock(&x->wait_queue.lock); in try_wait_for_completion()
164 spin_unlock(&x->wait_queue.lock); in try_wait_for_completion()
182 spin_lock(&x->wait_queue.lock); in completion_done()
186 spin_unlock(&x->wait_queue.lock); in completion_done()
189 spin_unlock(&x->wait_queue.lock); in completion_done()