Lines Matching refs:ind
221 int ind;
229 ind = (i >> qp->sq.wqe_shift) + n;
230 stamp = ind & qp->sq.wqe_cnt ? cpu_to_be32(0x7fffffff) :
232 buf = get_send_wqe(qp, ind & (qp->sq.wqe_cnt - 1));
284 static inline unsigned pad_wraparound(struct mlx4_ib_qp *qp, int ind)
286 unsigned s = qp->sq.wqe_cnt - (ind & (qp->sq.wqe_cnt - 1));
288 post_nop_wqe(qp, ind, s << qp->sq.wqe_shift);
289 ind += s;
291 return ind;
2941 unsigned ind;
2983 ind = qp->sq_next_wqe;
3001 ctrl = wqe = get_send_wqe(qp, ind & (qp->sq.wqe_cnt - 1));
3216 (ind & qp->sq.wqe_cnt ? cpu_to_be32(1U << 31) : 0) | blh;
3218 stamp = ind + qp->sq_spare_wqes;
3219 ind += DIV_ROUND_UP(size * 16, 1U << qp->sq.wqe_shift);
3232 ind = pad_wraparound(qp, ind);
3257 ind = pad_wraparound(qp, ind);
3258 qp->sq_next_wqe = ind;
3274 int ind;
3289 ind = qp->rq.head & (qp->rq.wqe_cnt - 1);
3304 scat = get_recv_wqe(qp, ind);
3309 qp->sqp_proxy_rcv[ind].map,
3316 scat->addr = cpu_to_be64(qp->sqp_proxy_rcv[ind].map);
3330 qp->rq.wrid[ind] = wr->wr_id;
3332 ind = (ind + 1) & (qp->rq.wqe_cnt - 1);