Lines Matching defs:wait
134 remove_wait_queue(entry->wait_address, &entry->wait);
184 static int __pollwake(wait_queue_entry_t *wait, unsigned mode, int sync, void *key)
186 struct poll_wqueues *pwq = wait->private;
210 static int pollwake(wait_queue_entry_t *wait, unsigned mode, int sync, void *key)
214 entry = container_of(wait, struct poll_table_entry, wait);
217 return __pollwake(wait, mode, sync, key);
231 init_waitqueue_func_entry(&entry->wait, pollwake);
232 entry->wait.private = pwq;
233 add_wait_queue(wait_address, &entry->wait);
467 static inline void wait_key_set(poll_table *wait, unsigned long in,
471 wait->_key = POLLEX_SET | ll_flag;
473 wait->_key |= POLLIN_SET;
475 wait->_key |= POLLOUT_SET;
482 poll_table *wait;
497 wait = &table.pt;
499 wait->_qproc = NULL;
535 wait_key_set(wait, in, out, bit,
537 mask = vfs_poll(f.file, wait);
544 wait->_qproc = NULL;
549 wait->_qproc = NULL;
554 wait->_qproc = NULL;
577 wait->_qproc = NULL;
884 static int do_poll(struct poll_list *list, struct poll_wqueues *wait,
887 poll_table* pt = &wait->pt;
894 /* Optimise the no-wait case */
936 count = wait->error;
964 if (!poll_schedule_timeout(wait, TASK_INTERRUPTIBLE, to, slack))