Lines Matching refs:ind
212 int ind; in stamp_send_wqe() local
220 ind = (i >> qp->sq.wqe_shift) + n; in stamp_send_wqe()
221 stamp = ind & qp->sq.wqe_cnt ? cpu_to_be32(0x7fffffff) : in stamp_send_wqe()
223 buf = get_send_wqe(qp, ind & (qp->sq.wqe_cnt - 1)); in stamp_send_wqe()
275 static inline unsigned pad_wraparound(struct mlx4_ib_qp *qp, int ind) in pad_wraparound() argument
277 unsigned s = qp->sq.wqe_cnt - (ind & (qp->sq.wqe_cnt - 1)); in pad_wraparound()
279 post_nop_wqe(qp, ind, s << qp->sq.wqe_shift); in pad_wraparound()
280 ind += s; in pad_wraparound()
282 return ind; in pad_wraparound()
2649 unsigned ind; in mlx4_ib_post_send() local
2668 ind = qp->sq_next_wqe; in mlx4_ib_post_send()
2686 ctrl = wqe = get_send_wqe(qp, ind & (qp->sq.wqe_cnt - 1)); in mlx4_ib_post_send()
2903 (ind & qp->sq.wqe_cnt ? cpu_to_be32(1 << 31) : 0) | blh; in mlx4_ib_post_send()
2905 stamp = ind + qp->sq_spare_wqes; in mlx4_ib_post_send()
2906 ind += DIV_ROUND_UP(size * 16, 1U << qp->sq.wqe_shift); in mlx4_ib_post_send()
2919 ind = pad_wraparound(qp, ind); in mlx4_ib_post_send()
2944 ind = pad_wraparound(qp, ind); in mlx4_ib_post_send()
2945 qp->sq_next_wqe = ind; in mlx4_ib_post_send()
2961 int ind; in mlx4_ib_post_recv() local
2976 ind = qp->rq.head & (qp->rq.wqe_cnt - 1); in mlx4_ib_post_recv()
2991 scat = get_recv_wqe(qp, ind); in mlx4_ib_post_recv()
2996 qp->sqp_proxy_rcv[ind].map, in mlx4_ib_post_recv()
3003 scat->addr = cpu_to_be64(qp->sqp_proxy_rcv[ind].map); in mlx4_ib_post_recv()
3017 qp->rq.wrid[ind] = wr->wr_id; in mlx4_ib_post_recv()
3019 ind = (ind + 1) & (qp->rq.wqe_cnt - 1); in mlx4_ib_post_recv()