Lines Matching refs:wait
72 static void __prepare_to_swait(struct swait_queue_head *q, struct swait_queue *wait) in __prepare_to_swait() argument
74 wait->task = current; in __prepare_to_swait()
75 if (list_empty(&wait->task_list)) in __prepare_to_swait()
76 list_add_tail(&wait->task_list, &q->task_list); in __prepare_to_swait()
79 void prepare_to_swait_exclusive(struct swait_queue_head *q, struct swait_queue *wait, int state) in prepare_to_swait_exclusive() argument
84 __prepare_to_swait(q, wait); in prepare_to_swait_exclusive()
90 long prepare_to_swait_event(struct swait_queue_head *q, struct swait_queue *wait, int state) in prepare_to_swait_event() argument
101 list_del_init(&wait->task_list); in prepare_to_swait_event()
104 __prepare_to_swait(q, wait); in prepare_to_swait_event()
113 void __finish_swait(struct swait_queue_head *q, struct swait_queue *wait) in __finish_swait() argument
116 if (!list_empty(&wait->task_list)) in __finish_swait()
117 list_del_init(&wait->task_list); in __finish_swait()
120 void finish_swait(struct swait_queue_head *q, struct swait_queue *wait) in finish_swait() argument
126 if (!list_empty_careful(&wait->task_list)) { in finish_swait()
128 list_del_init(&wait->task_list); in finish_swait()