Lines Matching refs:ind
213 int ind; in stamp_send_wqe() local
221 ind = (i >> qp->sq.wqe_shift) + n; in stamp_send_wqe()
222 stamp = ind & qp->sq.wqe_cnt ? cpu_to_be32(0x7fffffff) : in stamp_send_wqe()
224 buf = get_send_wqe(qp, ind & (qp->sq.wqe_cnt - 1)); in stamp_send_wqe()
276 static inline unsigned pad_wraparound(struct mlx4_ib_qp *qp, int ind) in pad_wraparound() argument
278 unsigned s = qp->sq.wqe_cnt - (ind & (qp->sq.wqe_cnt - 1)); in pad_wraparound()
280 post_nop_wqe(qp, ind, s << qp->sq.wqe_shift); in pad_wraparound()
281 ind += s; in pad_wraparound()
283 return ind; in pad_wraparound()
2758 unsigned ind; in mlx4_ib_post_send() local
2777 ind = qp->sq_next_wqe; in mlx4_ib_post_send()
2795 ctrl = wqe = get_send_wqe(qp, ind & (qp->sq.wqe_cnt - 1)); in mlx4_ib_post_send()
3017 (ind & qp->sq.wqe_cnt ? cpu_to_be32(1 << 31) : 0) | blh; in mlx4_ib_post_send()
3019 stamp = ind + qp->sq_spare_wqes; in mlx4_ib_post_send()
3020 ind += DIV_ROUND_UP(size * 16, 1U << qp->sq.wqe_shift); in mlx4_ib_post_send()
3033 ind = pad_wraparound(qp, ind); in mlx4_ib_post_send()
3058 ind = pad_wraparound(qp, ind); in mlx4_ib_post_send()
3059 qp->sq_next_wqe = ind; in mlx4_ib_post_send()
3075 int ind; in mlx4_ib_post_recv() local
3090 ind = qp->rq.head & (qp->rq.wqe_cnt - 1); in mlx4_ib_post_recv()
3105 scat = get_recv_wqe(qp, ind); in mlx4_ib_post_recv()
3110 qp->sqp_proxy_rcv[ind].map, in mlx4_ib_post_recv()
3117 scat->addr = cpu_to_be64(qp->sqp_proxy_rcv[ind].map); in mlx4_ib_post_recv()
3131 qp->rq.wrid[ind] = wr->wr_id; in mlx4_ib_post_recv()
3133 ind = (ind + 1) & (qp->rq.wqe_cnt - 1); in mlx4_ib_post_recv()