Lines Matching refs:wqe_shift
210 return qp->queue.direct.buf + (n << qp->rq.wqe_shift); in get_recv_wqe()
212 return qp->queue.page_list[(n << qp->rq.wqe_shift) >> PAGE_SHIFT].buf + in get_recv_wqe()
213 ((n << qp->rq.wqe_shift) & (PAGE_SIZE - 1)); in get_recv_wqe()
220 (n << qp->sq.wqe_shift); in get_send_wqe()
223 (n << qp->sq.wqe_shift)) >> in get_send_wqe()
225 ((qp->send_wqe_offset + (n << qp->sq.wqe_shift)) & in get_send_wqe()
612 qp_context->rq_size_stride |= qp->rq.wqe_shift - 4; in __mthca_modify_qp()
616 qp_context->sq_size_stride |= qp->sq.wqe_shift - 4; in __mthca_modify_qp()
963 1 << qp->sq.wqe_shift)); in mthca_adjust_qp_caps()
970 (min(dev->limits.max_desc_sz, 1 << qp->rq.wqe_shift) - in mthca_adjust_qp_caps()
995 for (qp->rq.wqe_shift = 6; 1 << qp->rq.wqe_shift < size; in mthca_alloc_wqe_buf()
996 qp->rq.wqe_shift++) in mthca_alloc_wqe_buf()
1039 for (qp->sq.wqe_shift = 6; 1 << qp->sq.wqe_shift < size; in mthca_alloc_wqe_buf()
1040 qp->sq.wqe_shift++) in mthca_alloc_wqe_buf()
1043 qp->send_wqe_offset = ALIGN(qp->rq.max << qp->rq.wqe_shift, in mthca_alloc_wqe_buf()
1044 1 << qp->sq.wqe_shift); in mthca_alloc_wqe_buf()
1055 (qp->sq.max << qp->sq.wqe_shift)); in mthca_alloc_wqe_buf()
1078 (qp->sq.max << qp->sq.wqe_shift)), in mthca_free_wqe_buf()
1212 qp->rq.wqe_shift); in mthca_alloc_qp_common()
1216 (void *) scatter < (void *) next + (1 << qp->rq.wqe_shift); in mthca_alloc_qp_common()
1224 qp->sq.wqe_shift) + in mthca_alloc_qp_common()
1231 qp->rq.wqe_shift) | 1); in mthca_alloc_qp_common()
1773 cpu_to_be32(((ind << qp->sq.wqe_shift) + in mthca_tavor_post_send()
1798 mthca_write64(((qp->sq.next_ind << qp->sq.wqe_shift) + in mthca_tavor_post_send()
1897 mthca_write64((qp->rq.next_ind << qp->rq.wqe_shift) | size0, in mthca_tavor_post_receive()
1910 mthca_write64((qp->rq.next_ind << qp->rq.wqe_shift) | size0, in mthca_tavor_post_receive()
2114 cpu_to_be32(((ind << qp->sq.wqe_shift) + in mthca_arbel_post_send()