Searched refs:queue_empty (Results 1 – 13 of 13) sorted by relevance
166 static inline int queue_empty(struct apm_queue *q) in queue_empty() function212 if (queue_empty(&as->queue) && fp->f_flags & O_NONBLOCK) in apm_read()215 wait_event_interruptible(apm_waitqueue, !queue_empty(&as->queue)); in apm_read()217 while ((i >= sizeof(event)) && !queue_empty(&as->queue)) { in apm_read()245 return queue_empty(&as->queue) ? 0 : EPOLLIN | EPOLLRDNORM; in apm_poll()473 !queue_empty(&kapmd_queue) || kthread_should_stop()); in kapmd()480 if (!queue_empty(&kapmd_queue)) in kapmd()
143 static inline int queue_empty(struct rxe_queue *q, enum queue_type type) in queue_empty() function257 return queue_empty(q, type) ? NULL : queue_consumer_addr(q, type); in queue_head()
119 if (!queue_empty(q, q->type) && (num_elem < queue_count(q, type))) in resize_finish()
883 empty = queue_empty(cq->queue, QUEUE_TYPE_FROM_DRIVER); in rxe_req_notify_cq()
125 u8 queue_empty, queue_pending; in rtl8723bs_xmit_buf_handler() local152 queue_empty = rtl8723_dequeue_writeport(padapter); in rtl8723bs_xmit_buf_handler()154 } while (!queue_empty); in rtl8723bs_xmit_buf_handler()
1171 static int queue_empty(struct apm_user *as) in queue_empty() function1480 if ((queue_empty(as)) && (fp->f_flags & O_NONBLOCK)) in do_read()1482 wait_event_interruptible(apm_waitqueue, !queue_empty(as)); in do_read()1484 while ((i >= sizeof(event)) && !queue_empty(as)) { in do_read()1520 if (!queue_empty(as)) in do_poll()
43 unsigned int queue_empty : 1; member
109 if (status.queue_empty) in ap_recv()160 if (!status.queue_empty && !aq->queue_count) in ap_sm_recv()186 if (!status.queue_empty || aq->queue_count <= 0) in ap_sm_recv()
1633 if (status.queue_empty && !status.irq_enabled) in vfio_ap_mdev_reset_queue()
82 static int queue_empty(struct ddcb_queue *queue) in queue_empty() function375 while (!queue_empty(queue) && (ddcbs_finished < queue->ddcb_max)) { in genwqe_check_ddcb_queue()985 if (queue_empty(queue)) { /* empty queue */ in genwqe_next_ddcb_ready()
1763 ctlr->queue_empty = true; in __spi_pump_messages()1787 ctlr->queue_empty = true; in __spi_pump_messages()1942 ctlr->queue_empty = true; in spi_init_queue()2143 ctlr->queue_empty = false; in __spi_queued_transfer()4108 if (READ_ONCE(ctlr->queue_empty) && !ctlr->must_async) { in __spi_sync()
697 bool queue_empty; member
125 static bool queue_empty(struct arm_smmu_ll_queue *q) in queue_empty() function225 if (queue_empty(&q->llq)) in queue_remove_raw()1577 } while (!queue_empty(llq)); in arm_smmu_evtq_thread()1636 } while (!queue_empty(llq)); in arm_smmu_priq_thread()