Lines Matching refs:wait
22 void wait_queue_sleep_with_node(wait_queue_head_t *q, wait_queue_node_t *wait) in wait_queue_sleep_with_node() argument
24 BUG_ON(wait->pcb == NULL); in wait_queue_sleep_with_node()
26 wait->pcb->state = PROC_UNINTERRUPTIBLE; in wait_queue_sleep_with_node()
27 list_append(&q->wait_list, &wait->wait_list); in wait_queue_sleep_with_node()
37 void wait_queue_sleep_with_node_unlock(wait_queue_head_t *q, wait_queue_node_t *wait, void *lock) in wait_queue_sleep_with_node_unlock() argument
39 BUG_ON(wait->pcb == NULL); in wait_queue_sleep_with_node_unlock()
41 wait->pcb->state = PROC_UNINTERRUPTIBLE; in wait_queue_sleep_with_node_unlock()
42 list_append(&q->wait_list, &wait->wait_list); in wait_queue_sleep_with_node_unlock()
53 void wait_queue_sleep_with_node_interriptible(wait_queue_head_t *q, wait_queue_node_t *wait) in wait_queue_sleep_with_node_interriptible() argument
55 BUG_ON(wait->pcb == NULL); in wait_queue_sleep_with_node_interriptible()
57 wait->pcb->state = PROC_INTERRUPTIBLE; in wait_queue_sleep_with_node_interriptible()
58 list_append(&q->wait_list, &wait->wait_list); in wait_queue_sleep_with_node_interriptible()
74 wait_queue_node_t *wait = container_of(list_next(&q->wait_list), wait_queue_node_t, wait_list); in wait_queue_wakeup_on_stack() local
77 if (wait->pcb->state & state) in wait_queue_wakeup_on_stack()
79 list_del_init(&wait->wait_list); in wait_queue_wakeup_on_stack()
80 process_wakeup(wait->pcb); in wait_queue_wakeup_on_stack()