Lines Matching refs:cq
735 static inline int cxio_cq_in_error(struct t3_cq *cq) in cxio_cq_in_error() argument
738 &cq->queue[1 << cq->size_log2])->cq_err; in cxio_cq_in_error()
741 static inline void cxio_set_cq_in_error(struct t3_cq *cq) in cxio_set_cq_in_error() argument
744 &cq->queue[1 << cq->size_log2])->cq_err = 1; in cxio_set_cq_in_error()
767 static inline struct t3_cqe *cxio_next_hw_cqe(struct t3_cq *cq) in cxio_next_hw_cqe() argument
771 cqe = cq->queue + (Q_PTR2IDX(cq->rptr, cq->size_log2)); in cxio_next_hw_cqe()
772 if (CQ_VLD_ENTRY(cq->rptr, cq->size_log2, cqe)) in cxio_next_hw_cqe()
777 static inline struct t3_cqe *cxio_next_sw_cqe(struct t3_cq *cq) in cxio_next_sw_cqe() argument
781 if (!Q_EMPTY(cq->sw_rptr, cq->sw_wptr)) { in cxio_next_sw_cqe()
782 cqe = cq->sw_queue + (Q_PTR2IDX(cq->sw_rptr, cq->size_log2)); in cxio_next_sw_cqe()
788 static inline struct t3_cqe *cxio_next_cqe(struct t3_cq *cq) in cxio_next_cqe() argument
792 if (!Q_EMPTY(cq->sw_rptr, cq->sw_wptr)) { in cxio_next_cqe()
793 cqe = cq->sw_queue + (Q_PTR2IDX(cq->sw_rptr, cq->size_log2)); in cxio_next_cqe()
796 cqe = cq->queue + (Q_PTR2IDX(cq->rptr, cq->size_log2)); in cxio_next_cqe()
797 if (CQ_VLD_ENTRY(cq->rptr, cq->size_log2, cqe)) in cxio_next_cqe()