Lines Matching refs:wait
84 void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait) in __prepare_to_swait() argument
86 wait->task = current; in __prepare_to_swait()
87 if (list_empty(&wait->task_list)) in __prepare_to_swait()
88 list_add_tail(&wait->task_list, &q->task_list); in __prepare_to_swait()
91 void prepare_to_swait_exclusive(struct swait_queue_head *q, struct swait_queue *wait, int state) in prepare_to_swait_exclusive() argument
96 __prepare_to_swait(q, wait); in prepare_to_swait_exclusive()
102 long prepare_to_swait_event(struct swait_queue_head *q, struct swait_queue *wait, int state) in prepare_to_swait_event() argument
113 list_del_init(&wait->task_list); in prepare_to_swait_event()
116 __prepare_to_swait(q, wait); in prepare_to_swait_event()
125 void __finish_swait(struct swait_queue_head *q, struct swait_queue *wait) in __finish_swait() argument
128 if (!list_empty(&wait->task_list)) in __finish_swait()
129 list_del_init(&wait->task_list); in __finish_swait()
132 void finish_swait(struct swait_queue_head *q, struct swait_queue *wait) in finish_swait() argument
138 if (!list_empty_careful(&wait->task_list)) { in finish_swait()
140 list_del_init(&wait->task_list); in finish_swait()