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()
617 qp_context->rq_size_stride |= qp->rq.wqe_shift - 4; in __mthca_modify_qp()
621 qp_context->sq_size_stride |= qp->sq.wqe_shift - 4; in __mthca_modify_qp()
968 1 << qp->sq.wqe_shift)); in mthca_adjust_qp_caps()
975 (min(dev->limits.max_desc_sz, 1 << qp->rq.wqe_shift) - in mthca_adjust_qp_caps()
1001 for (qp->rq.wqe_shift = 6; 1 << qp->rq.wqe_shift < size; in mthca_alloc_wqe_buf()
1002 qp->rq.wqe_shift++) in mthca_alloc_wqe_buf()
1045 for (qp->sq.wqe_shift = 6; 1 << qp->sq.wqe_shift < size; in mthca_alloc_wqe_buf()
1046 qp->sq.wqe_shift++) in mthca_alloc_wqe_buf()
1049 qp->send_wqe_offset = ALIGN(qp->rq.max << qp->rq.wqe_shift, in mthca_alloc_wqe_buf()
1050 1 << qp->sq.wqe_shift); in mthca_alloc_wqe_buf()
1061 (qp->sq.max << qp->sq.wqe_shift)); in mthca_alloc_wqe_buf()
1084 (qp->sq.max << qp->sq.wqe_shift)), in mthca_free_wqe_buf()
1219 qp->rq.wqe_shift); in mthca_alloc_qp_common()
1223 (void *) scatter < (void *) next + (1 << qp->rq.wqe_shift); in mthca_alloc_qp_common()
1231 qp->sq.wqe_shift) + in mthca_alloc_qp_common()
1238 qp->rq.wqe_shift) | 1); in mthca_alloc_qp_common()
1781 cpu_to_be32(((ind << qp->sq.wqe_shift) + in mthca_tavor_post_send()
1806 mthca_write64(((qp->sq.next_ind << qp->sq.wqe_shift) + in mthca_tavor_post_send()
1900 mthca_write64((qp->rq.next_ind << qp->rq.wqe_shift) | size0, in mthca_tavor_post_receive()
1913 mthca_write64((qp->rq.next_ind << qp->rq.wqe_shift) | size0, in mthca_tavor_post_receive()
2111 cpu_to_be32(((ind << qp->sq.wqe_shift) + in mthca_arbel_post_send()