Lines Matching refs:rptr
114 u32 rptr;
132 if (Q_PTR2IDX((cq->rptr), cq->size_log2) != ret) {
135 rptr = cq->rptr;
138 * Keep the generation correct by bumping rptr until it
141 while (Q_PTR2IDX((rptr+1), cq->size_log2) != ret)
142 rptr++;
145 * Now rptr is the index for the (last) cqe that was
149 cqe = cq->queue + Q_PTR2IDX(rptr, cq->size_log2);
150 while (!CQ_VLD_ENTRY(rptr, cq->size_log2, cqe)) {
471 CTR3(KTR_IW_CXGB, "%s flushing hwcq rptr 0x%x to swcq wptr 0x%x",
472 __FUNCTION__, cq->rptr, cq->sw_wptr);
477 cq->rptr++;
642 CTR6(KTR_IW_CXGB, "cxio_hal_ctrl_qp_write_mem wptr 0x%x rptr 0x%x len %d, nr_wqe %d data %p addr 0x%0x",
643 rdev_p->ctrl_qp.wptr, rdev_p->ctrl_qp.rptr, len,
647 if (Q_FULL(rdev_p->ctrl_qp.rptr, rdev_p->ctrl_qp.wptr,
649 CTR4(KTR_IW_CXGB, "%s ctrl_qp full wtpr 0x%0x rptr 0x%0x, "
651 rdev_p->ctrl_qp.wptr, rdev_p->ctrl_qp.rptr, i);
654 !Q_FULL(rdev_p->ctrl_qp.rptr,
795 SEQ32_GE(rdev_p->ctrl_qp.rptr, wptr)))
820 SEQ32_GE(rdev_p->ctrl_qp.rptr, wptr)))
948 rdev_p->ctrl_qp.rptr = CQE_WRID_LOW(rsp_msg->cqe) + 1;
1125 u32 rptr = wq->oldest_read - wq->sq + 1;
1128 while (Q_PTR2IDX(rptr, wq->sq_size_log2) != wptr) {
1129 wq->oldest_read = wq->sq + Q_PTR2IDX(rptr, wq->sq_size_log2);
1133 rptr++;
1324 CTR4(KTR_IW_CXGB, "%s cq %p cqid 0x%x skip hw cqe rptr 0x%x",
1325 __FUNCTION__, cq, cq->cqid, cq->rptr);
1326 ++cq->rptr;
1331 if (((cq->rptr - cq->wptr) > (1 << (cq->size_log2 - 1)))
1332 || ((cq->rptr - cq->wptr) >= 128)) {
1333 *credit = cq->rptr - cq->wptr;
1334 cq->wptr = cq->rptr;