Lines Matching defs:wait
135 remove_wait_queue(entry->wait_address, &entry->wait);
185 static int __pollwake(wait_queue_entry_t *wait, unsigned mode, int sync, void *key)
187 struct poll_wqueues *pwq = wait->private;
211 static int pollwake(wait_queue_entry_t *wait, unsigned mode, int sync, void *key)
215 entry = container_of(wait, struct poll_table_entry, wait);
218 return __pollwake(wait, mode, sync, key);
232 init_waitqueue_func_entry(&entry->wait, pollwake);
233 entry->wait.private = pwq;
234 add_wait_queue(wait_address, &entry->wait);
468 static inline void wait_key_set(poll_table *wait, unsigned long in,
472 wait->_key = POLLEX_SET | ll_flag;
474 wait->_key |= POLLIN_SET;
476 wait->_key |= POLLOUT_SET;
483 poll_table *wait;
498 wait = &table.pt;
500 wait->_qproc = NULL;
536 wait_key_set(wait, in, out, bit,
538 mask = vfs_poll(f.file, wait);
545 wait->_qproc = NULL;
550 wait->_qproc = NULL;
555 wait->_qproc = NULL;
578 wait->_qproc = NULL;
885 static int do_poll(struct poll_list *list, struct poll_wqueues *wait,
888 poll_table* pt = &wait->pt;
895 /* Optimise the no-wait case */
937 count = wait->error;
965 if (!poll_schedule_timeout(wait, TASK_INTERRUPTIBLE, to, slack))