Lines Matching refs:wqe_shift
211 return qp->queue.direct.buf + (n << qp->rq.wqe_shift); in get_recv_wqe()
213 return qp->queue.page_list[(n << qp->rq.wqe_shift) >> PAGE_SHIFT].buf + in get_recv_wqe()
214 ((n << qp->rq.wqe_shift) & (PAGE_SIZE - 1)); in get_recv_wqe()
221 (n << qp->sq.wqe_shift); in get_send_wqe()
224 (n << qp->sq.wqe_shift)) >> in get_send_wqe()
226 ((qp->send_wqe_offset + (n << qp->sq.wqe_shift)) & in get_send_wqe()
605 qp_context->rq_size_stride |= qp->rq.wqe_shift - 4; in __mthca_modify_qp()
609 qp_context->sq_size_stride |= qp->sq.wqe_shift - 4; in __mthca_modify_qp()
955 1 << qp->sq.wqe_shift)); in mthca_adjust_qp_caps()
962 (min(dev->limits.max_desc_sz, 1 << qp->rq.wqe_shift) - in mthca_adjust_qp_caps()
988 for (qp->rq.wqe_shift = 6; 1 << qp->rq.wqe_shift < size; in mthca_alloc_wqe_buf()
989 qp->rq.wqe_shift++) in mthca_alloc_wqe_buf()
1032 for (qp->sq.wqe_shift = 6; 1 << qp->sq.wqe_shift < size; in mthca_alloc_wqe_buf()
1033 qp->sq.wqe_shift++) in mthca_alloc_wqe_buf()
1036 qp->send_wqe_offset = ALIGN(qp->rq.max << qp->rq.wqe_shift, in mthca_alloc_wqe_buf()
1037 1 << qp->sq.wqe_shift); in mthca_alloc_wqe_buf()
1048 (qp->sq.max << qp->sq.wqe_shift)); in mthca_alloc_wqe_buf()
1071 (qp->sq.max << qp->sq.wqe_shift)), in mthca_free_wqe_buf()
1205 qp->rq.wqe_shift); in mthca_alloc_qp_common()
1209 (void *) scatter < (void *) next + (1 << qp->rq.wqe_shift); in mthca_alloc_qp_common()
1217 qp->sq.wqe_shift) + in mthca_alloc_qp_common()
1224 qp->rq.wqe_shift) | 1); in mthca_alloc_qp_common()
1767 cpu_to_be32(((ind << qp->sq.wqe_shift) + in mthca_tavor_post_send()
1792 mthca_write64(((qp->sq.next_ind << qp->sq.wqe_shift) + in mthca_tavor_post_send()
1891 mthca_write64((qp->rq.next_ind << qp->rq.wqe_shift) | size0, in mthca_tavor_post_receive()
1904 mthca_write64((qp->rq.next_ind << qp->rq.wqe_shift) | size0, in mthca_tavor_post_receive()
2108 cpu_to_be32(((ind << qp->sq.wqe_shift) + in mthca_arbel_post_send()