Searched refs:queue_empty (Results 1 – 4 of 4) sorted by relevance
177 static inline int queue_empty(struct apm_queue *q) in queue_empty() function223 if (queue_empty(&as->queue) && fp->f_flags & O_NONBLOCK) in apm_read()226 wait_event_interruptible(apm_waitqueue, !queue_empty(&as->queue)); in apm_read()228 while ((i >= sizeof(event)) && !queue_empty(&as->queue)) { in apm_read()256 return queue_empty(&as->queue) ? 0 : POLLIN | POLLRDNORM; in apm_poll()505 !queue_empty(&kapmd_queue) || kthread_should_stop()); in kapmd()512 if (!queue_empty(&kapmd_queue)) in kapmd()
68 unsigned int queue_empty : 1; member
444 if (status.queue_empty) in ap_recv()522 if (status.queue_empty) in ap_init_queue()1281 if (status.queue_empty) { in ap_poll_read()
1159 static int queue_empty(struct apm_user *as) in queue_empty() function1473 if ((queue_empty(as)) && (fp->f_flags & O_NONBLOCK)) in do_read()1475 wait_event_interruptible(apm_waitqueue, !queue_empty(as)); in do_read()1477 while ((i >= sizeof(event)) && !queue_empty(as)) { in do_read()1513 if (!queue_empty(as)) in do_poll()