Lines Matching refs:ind
1497 static int build_mlx_header(struct mthca_dev *dev, struct mthca_qp *qp, int ind, in build_mlx_header() argument
1555 ind * MTHCA_UD_HEADER_SIZE); in build_mlx_header()
1560 ind * MTHCA_UD_HEADER_SIZE); in build_mlx_header()
1643 int ind; in mthca_tavor_post_send() local
1650 ind = qp->sq.next_ind; in mthca_tavor_post_send()
1663 wqe = get_send_wqe(qp, ind); in mthca_tavor_post_send()
1738 dev, qp, ind, ud_wr(wr), in mthca_tavor_post_send()
1771 qp->wrid[ind + qp->rq.max] = wr->wr_id; in mthca_tavor_post_send()
1781 cpu_to_be32(((ind << qp->sq.wqe_shift) + in mthca_tavor_post_send()
1797 ++ind; in mthca_tavor_post_send()
1798 if (unlikely(ind >= qp->sq.max)) in mthca_tavor_post_send()
1799 ind -= qp->sq.max; in mthca_tavor_post_send()
1813 qp->sq.next_ind = ind; in mthca_tavor_post_send()
1838 int ind; in mthca_tavor_post_receive() local
1846 ind = qp->rq.next_ind; in mthca_tavor_post_receive()
1859 wqe = get_recv_wqe(qp, ind); in mthca_tavor_post_receive()
1882 qp->wrid[ind] = wr->wr_id; in mthca_tavor_post_receive()
1890 ++ind; in mthca_tavor_post_receive()
1891 if (unlikely(ind >= qp->rq.max)) in mthca_tavor_post_receive()
1892 ind -= qp->rq.max; in mthca_tavor_post_receive()
1904 qp->rq.next_ind = ind; in mthca_tavor_post_receive()
1918 qp->rq.next_ind = ind; in mthca_tavor_post_receive()
1947 int ind; in mthca_arbel_post_send() local
1954 ind = qp->sq.head & (qp->sq.max - 1); in mthca_arbel_post_send()
1993 wqe = get_send_wqe(qp, ind); in mthca_arbel_post_send()
2068 dev, qp, ind, ud_wr(wr), in mthca_arbel_post_send()
2101 qp->wrid[ind + qp->rq.max] = wr->wr_id; in mthca_arbel_post_send()
2111 cpu_to_be32(((ind << qp->sq.wqe_shift) + in mthca_arbel_post_send()
2127 ++ind; in mthca_arbel_post_send()
2128 if (unlikely(ind >= qp->sq.max)) in mthca_arbel_post_send()
2129 ind -= qp->sq.max; in mthca_arbel_post_send()
2167 int ind; in mthca_arbel_post_receive() local
2175 ind = qp->rq.head & (qp->rq.max - 1); in mthca_arbel_post_receive()
2188 wqe = get_recv_wqe(qp, ind); in mthca_arbel_post_receive()
2208 qp->wrid[ind] = wr->wr_id; in mthca_arbel_post_receive()
2210 ++ind; in mthca_arbel_post_receive()
2211 if (unlikely(ind >= qp->rq.max)) in mthca_arbel_post_receive()
2212 ind -= qp->rq.max; in mthca_arbel_post_receive()