Lines Matching refs:pwq
122 void poll_initwait(struct poll_wqueues *pwq) in poll_initwait() argument
124 init_poll_funcptr(&pwq->pt, __pollwait); in poll_initwait()
125 pwq->polling_task = current; in poll_initwait()
126 pwq->triggered = 0; in poll_initwait()
127 pwq->error = 0; in poll_initwait()
128 pwq->table = NULL; in poll_initwait()
129 pwq->inline_index = 0; in poll_initwait()
139 void poll_freewait(struct poll_wqueues *pwq) in poll_freewait() argument
141 struct poll_table_page * p = pwq->table; in poll_freewait()
143 for (i = 0; i < pwq->inline_index; i++) in poll_freewait()
144 free_poll_entry(pwq->inline_entries + i); in poll_freewait()
187 struct poll_wqueues *pwq = wait->private; in __pollwake() local
188 DECLARE_WAITQUEUE(dummy_wait, pwq->polling_task); in __pollwake()
198 pwq->triggered = 1; in __pollwake()
225 struct poll_wqueues *pwq = container_of(p, struct poll_wqueues, pt); in __pollwait() local
226 struct poll_table_entry *entry = poll_get_entry(pwq); in __pollwait()
233 entry->wait.private = pwq; in __pollwait()
237 static int poll_schedule_timeout(struct poll_wqueues *pwq, int state, in poll_schedule_timeout() argument
243 if (!pwq->triggered) in poll_schedule_timeout()
258 smp_store_mb(pwq->triggered, 0); in poll_schedule_timeout()