Lines Matching refs:wqe_shift
197 wq->wqe_shift, buflen, in mlx5_ib_read_user_wqe_sq()
222 wq->wqe_cnt, wq->wqe_shift, in mlx5_ib_read_user_wqe_sq()
259 wq->wqe_shift, buflen, in mlx5_ib_read_user_wqe_rq()
274 size_t wqe_size = 1 << wq->wqe_shift; in mlx5_ib_read_wqe_rq()
293 srq->msrq.max, srq->msrq.wqe_shift, in mlx5_ib_read_user_wqe_srq()
306 size_t wqe_size = 1 << srq->msrq.wqe_shift; in mlx5_ib_read_wqe_srq()
446 qp->rq.wqe_shift = 0; in set_rq_size()
456 qp->rq.wqe_shift = ucmd->rq_wqe_shift; in set_rq_size()
457 if ((1 << qp->rq.wqe_shift) / in set_rq_size()
462 (1 << qp->rq.wqe_shift) / in set_rq_size()
482 qp->rq.wqe_shift = ilog2(wqe_size); in set_rq_size()
484 (1 << qp->rq.wqe_shift) / in set_rq_size()
624 qp->sq.wqe_shift = ilog2(MLX5_SEND_WQE_BB); in calc_sq_size()
642 int desc_sz = 1 << qp->sq.wqe_shift; in set_user_buf_size()
667 base->ubuffer.buf_size = qp->rq.wqe_cnt << qp->rq.wqe_shift; in set_user_buf_size()
670 base->ubuffer.buf_size = (qp->rq.wqe_cnt << qp->rq.wqe_shift) + in set_user_buf_size()
994 qp->sq.wqe_shift = ilog2(MLX5_SEND_WQE_BB); in _create_user_qp()
995 qp->sq.offset = qp->rq.wqe_cnt << qp->rq.wqe_shift; in _create_user_qp()
1128 qp->sq.offset = qp->rq.wqe_cnt << qp->rq.wqe_shift; in _create_kernel_qp()
1129 base->ubuffer.buf_size = err + (qp->rq.wqe_cnt << qp->rq.wqe_shift); in _create_kernel_qp()
1139 mlx5_init_fbc(qp->buf.frags, qp->rq.wqe_shift, in _create_kernel_qp()
2109 if (ucmd->rq_wqe_shift != qp->rq.wqe_shift || in create_dci()
2146 MLX5_SET(qpc, qpc, log_rq_stride, qp->rq.wqe_shift - 4); in create_dci()
2276 if (ucmd->rq_wqe_shift != qp->rq.wqe_shift || in create_user_qp()
2334 MLX5_SET(qpc, qpc, log_rq_stride, qp->rq.wqe_shift - 4); in create_user_qp()
2492 MLX5_SET(qpc, qpc, log_rq_stride, qp->rq.wqe_shift - 4); in create_kernel_qp()
5322 rwq->wqe_shift = ucmd->rq_wqe_shift; in set_user_rq_size()
5323 if (check_shl_overflow(rwq->wqe_count, rwq->wqe_shift, &rwq->buf_size)) in set_user_rq_size()
5326 rwq->log_rq_stride = rwq->wqe_shift; in set_user_rq_size()