Lines Matching refs:size_log2
40 #define Q_FULL(rptr,wptr,size_log2) ( (((wptr)-(rptr))>>(size_log2)) && \
42 #define Q_GENBIT(ptr,size_log2) (!(((ptr)>>size_log2)&0x1))
43 #define Q_FREECNT(rptr,wptr,size_log2) ((1UL<<size_log2)-((wptr)-(rptr)))
45 #define Q_PTR2IDX(ptr,size_log2) (ptr & ((1UL<<size_log2)-1))
641 u32 size_log2; /* total wq size */
662 u32 size_log2;
670 #define CQ_VLD_ENTRY(ptr,size_log2,cqe) (Q_GENBIT(ptr,size_log2) == \
680 &cq->queue[1 << cq->size_log2])->cq_err;
686 &cq->queue[1 << cq->size_log2])->cq_err = 1;
698 cqe = cq->queue + (Q_PTR2IDX(cq->rptr, cq->size_log2));
699 if (CQ_VLD_ENTRY(cq->rptr, cq->size_log2, cqe))
709 cqe = cq->sw_queue + (Q_PTR2IDX(cq->sw_rptr, cq->size_log2));
720 cqe = cq->sw_queue + (Q_PTR2IDX(cq->sw_rptr, cq->size_log2));
723 cqe = cq->queue + (Q_PTR2IDX(cq->rptr, cq->size_log2));
724 if (CQ_VLD_ENTRY(cq->rptr, cq->size_log2, cqe))