Searched refs:queue_empty (Results 1 – 7 of 7) sorted by relevance
172 static inline int queue_empty(struct apm_queue *q) in queue_empty() function218 if (queue_empty(&as->queue) && fp->f_flags & O_NONBLOCK) in apm_read()221 wait_event_interruptible(apm_waitqueue, !queue_empty(&as->queue)); in apm_read()223 while ((i >= sizeof(event)) && !queue_empty(&as->queue)) { in apm_read()251 return queue_empty(&as->queue) ? 0 : POLLIN | POLLRDNORM; in apm_poll()492 !queue_empty(&kapmd_queue) || kthread_should_stop()); in kapmd()499 if (!queue_empty(&kapmd_queue)) in kapmd()
110 static inline int queue_empty(struct rxe_queue *q) in queue_empty() function177 return queue_empty(q) ? NULL : consumer_addr(q); in queue_head()
155 if (!queue_empty(q) && (num_elem < queue_count(q))) in resize_finish()158 while (!queue_empty(q)) { in resize_finish()
66 unsigned int queue_empty : 1; member
478 if (status.queue_empty) in ap_recv()597 if (!status.queue_empty || ap_dev->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()
684 static bool queue_empty(struct arm_smmu_queue *q) in queue_empty() function731 while (queue_sync_cons(q), (drain ? !queue_empty(q) : queue_full(q))) { in queue_poll_cons()774 if (queue_empty(q)) in queue_remove_raw()1175 } while (!queue_empty(q)); in arm_smmu_evtq_thread()1232 } while (!queue_empty(q)); in arm_smmu_priq_thread()