Lines Matching defs:state
43 const char *wmesg, int timeout, int state)
47 MPASS((state & ~(TASK_PARKED | TASK_NORMAL)) == 0);
49 flags = SLEEPQ_SLEEP | ((state & TASK_INTERRUPTIBLE) != 0 ?
57 if ((state & TASK_INTERRUPTIBLE) != 0) {
99 wake_up_task(struct task_struct *task, unsigned int state)
105 if ((atomic_read(&task->state) & state) != 0) {
144 linux_signal_pending_state(long state, struct task_struct *task)
147 MPASS((state & ~TASK_NORMAL) == 0);
149 if ((state & TASK_INTERRUPTIBLE) == 0)
166 autoremove_wake_function(wait_queue_t *wq, unsigned int state, int flags,
173 if ((ret = wake_up_task(task, state)) != 0)
179 default_wake_function(wait_queue_t *wq, unsigned int state, int flags,
182 return (wake_up_task(wq->private, state));
197 linux_wake_up(wait_queue_head_t *wqh, unsigned int state, int nr, bool locked)
205 if (wake_up_task(pos->private, state) != 0 && --nr == 0)
208 if (pos->func(pos, state, 0, NULL) != 0 && --nr == 0)
217 linux_prepare_to_wait(wait_queue_head_t *wqh, wait_queue_t *wq, int state)
223 set_task_state(current, state);
253 unsigned int state, spinlock_t *lock)
270 if (atomic_read(&task->state) != TASK_WAKING) {
272 state);
288 int state;
302 state = atomic_read(&task->state);
303 if (state != TASK_WAKING) {
305 state);
346 linux_wait_on_bit_timeout(unsigned long *word, int bit, unsigned int state,
368 set_task_state(task, state);
370 state);
387 linux_wait_on_atomic_t(atomic_t *a, unsigned int state)
402 set_task_state(task, state);
403 ret = linux_add_to_sleepqueue(wchan, task, "watomic", 0, state);
413 linux_wake_up_state(struct task_struct *task, unsigned int state)
416 return (wake_up_task(task, state) != 0);