Searched refs:queue_empty (Results 1 – 3 of 3) sorted by relevance
165 static inline int queue_empty(struct apm_queue *q) in queue_empty() function211 if (queue_empty(&as->queue) && fp->f_flags & O_NONBLOCK) in apm_read()214 wait_event_interruptible(apm_waitqueue, !queue_empty(&as->queue)); in apm_read()216 while ((i >= sizeof(event)) && !queue_empty(&as->queue)) { in apm_read()244 return queue_empty(&as->queue) ? 0 : EPOLLIN | EPOLLRDNORM; in apm_poll()472 !queue_empty(&kapmd_queue) || kthread_should_stop()); in kapmd()479 if (!queue_empty(&kapmd_queue)) in kapmd()
109 if (status.queue_empty) in ap_recv()156 if (!status.queue_empty || aq->queue_count <= 0) in ap_sm_recv()
91 static int queue_empty(struct ddcb_queue *queue) in queue_empty() function381 while (!queue_empty(queue) && (ddcbs_finished < queue->ddcb_max)) { in genwqe_check_ddcb_queue()988 if (queue_empty(queue)) { /* emtpy queue */ in genwqe_next_ddcb_ready()