Searched refs:Q_PTR2IDX (Results 1 – 3 of 3) sorted by relevance
/drivers/infiniband/hw/cxgb3/ |
D | cxio_hal.c | 92 if (Q_PTR2IDX((cq->rptr), cq->size_log2) != ret) { in cxio_hal_cq_op() 101 while (Q_PTR2IDX((rptr+1), cq->size_log2) != ret) in cxio_hal_cq_op() 109 cqe = cq->queue + Q_PTR2IDX(rptr, cq->size_log2); in cxio_hal_cq_op() 364 *(cq->sw_queue + Q_PTR2IDX(cq->sw_wptr, cq->size_log2)) = cqe; in insert_recv_cqe() 403 *(cq->sw_queue + Q_PTR2IDX(cq->sw_wptr, cq->size_log2)) = cqe; in insert_sq_cqe() 411 struct t3_swsq *sqp = wq->sq + Q_PTR2IDX(wq->sq_rptr, wq->sq_size_log2); in cxio_flush_sq() 414 sqp = wq->sq + Q_PTR2IDX(ptr, wq->sq_size_log2); in cxio_flush_sq() 419 sqp = wq->sq + Q_PTR2IDX(ptr, wq->sq_size_log2); in cxio_flush_sq() 437 swcqe = cq->sw_queue + Q_PTR2IDX(cq->sw_wptr, cq->size_log2); in cxio_flush_hw_cq() 472 cqe = cq->sw_queue + (Q_PTR2IDX(ptr, cq->size_log2)); in cxio_count_scqes() [all …]
|
D | iwch_qp.c | 176 Q_PTR2IDX((wq->wptr+1), wq->size_log2)); in build_memreg() 281 qhp->wq.rq[Q_PTR2IDX(qhp->wq.rq_wptr, in build_rdma_recv() 283 qhp->wq.rq[Q_PTR2IDX(qhp->wq.rq_wptr, in build_rdma_recv() 344 qhp->wq.rq[Q_PTR2IDX(qhp->wq.rq_wptr, in build_zero_stag_recv() 346 qhp->wq.rq[Q_PTR2IDX(qhp->wq.rq_wptr, in build_zero_stag_recv() 385 idx = Q_PTR2IDX(qhp->wq.wptr, qhp->wq.size_log2); in iwch_post_send() 393 Q_PTR2IDX(qhp->wq.sq_wptr, qhp->wq.sq_size_log2); in iwch_post_send() 449 Q_PTR2IDX(qhp->wq.sq_wptr, qhp->wq.sq_size_log2), in iwch_post_send() 495 idx = Q_PTR2IDX(qhp->wq.wptr, qhp->wq.size_log2); in iwch_post_receive()
|
D | cxio_wr.h | 52 #define Q_PTR2IDX(ptr,size_log2) (ptr & ((1UL<<size_log2)-1)) macro 771 cqe = cq->queue + (Q_PTR2IDX(cq->rptr, cq->size_log2)); in cxio_next_hw_cqe() 782 cqe = cq->sw_queue + (Q_PTR2IDX(cq->sw_rptr, cq->size_log2)); in cxio_next_sw_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()
|