Lines Matching refs:wqe_cnt
183 wq->offset, wq->wqe_cnt, in mlx5_ib_read_user_wqe_sq()
209 wq->wqe_cnt, wq->wqe_shift, in mlx5_ib_read_user_wqe_sq()
245 wq->offset, wq->wqe_cnt, in mlx5_ib_read_user_wqe_rq()
363 qp->rq.wqe_cnt = 0; in set_rq_size()
371 qp->rq.wqe_cnt = ucmd->rq_wqe_count; in set_rq_size()
383 qp->rq.max_post = qp->rq.wqe_cnt; in set_rq_size()
392 qp->rq.wqe_cnt = wq_size / wqe_size; in set_rq_size()
405 qp->rq.max_post = qp->rq.wqe_cnt; in set_rq_size()
534 qp->sq.wqe_cnt = wq_size / MLX5_SEND_WQE_BB; in calc_sq_size()
535 if (qp->sq.wqe_cnt > (1 << MLX5_CAP_GEN(dev->mdev, log_max_qp_sz))) { in calc_sq_size()
538 qp->sq.wqe_cnt, in calc_sq_size()
574 qp->sq.wqe_cnt = ucmd->sq_wqe_count; in set_user_buf_size()
576 if (qp->sq.wqe_cnt > (1 << MLX5_CAP_GEN(dev->mdev, log_max_qp_sz))) { in set_user_buf_size()
578 qp->sq.wqe_cnt, in set_user_buf_size()
585 base->ubuffer.buf_size = qp->rq.wqe_cnt << qp->rq.wqe_shift; in set_user_buf_size()
586 qp->raw_packet_qp.sq.ubuffer.buf_size = qp->sq.wqe_cnt << 6; in set_user_buf_size()
588 base->ubuffer.buf_size = (qp->rq.wqe_cnt << qp->rq.wqe_shift) + in set_user_buf_size()
589 (qp->sq.wqe_cnt << 6); in set_user_buf_size()
912 qp->sq.offset = qp->rq.wqe_cnt << qp->rq.wqe_shift; in _create_user_qp()
1045 qp->sq.offset = qp->rq.wqe_cnt << qp->rq.wqe_shift; in _create_kernel_qp()
1046 base->ubuffer.buf_size = err + (qp->rq.wqe_cnt << qp->rq.wqe_shift); in _create_kernel_qp()
1055 if (qp->rq.wqe_cnt) in _create_kernel_qp()
1057 ilog2(qp->rq.wqe_cnt), &qp->rq.fbc); in _create_kernel_qp()
1059 if (qp->sq.wqe_cnt) { in _create_kernel_qp()
1065 ilog2(qp->sq.wqe_cnt), in _create_kernel_qp()
1101 qp->sq.wrid = kvmalloc_array(qp->sq.wqe_cnt, in _create_kernel_qp()
1103 qp->sq.wr_data = kvmalloc_array(qp->sq.wqe_cnt, in _create_kernel_qp()
1105 qp->rq.wrid = kvmalloc_array(qp->rq.wqe_cnt, in _create_kernel_qp()
1107 qp->sq.w_list = kvmalloc_array(qp->sq.wqe_cnt, in _create_kernel_qp()
1109 qp->sq.wqe_head = kvmalloc_array(qp->sq.wqe_cnt, in _create_kernel_qp()
1499 if (!qp->sq.wqe_cnt && !qp->rq.wqe_cnt) in create_raw_packet_qp()
1501 if (qp->sq.wqe_cnt) { in create_raw_packet_qp()
1522 if (qp->rq.wqe_cnt) { in create_raw_packet_qp()
1562 qp->trans_qp.base.mqp.qpn = qp->sq.wqe_cnt ? sq->base.mqp.qpn : in create_raw_packet_qp()
1569 if (!qp->sq.wqe_cnt) in create_raw_packet_qp()
1585 if (qp->rq.wqe_cnt) { in destroy_raw_packet_qp()
1590 if (qp->sq.wqe_cnt) { in destroy_raw_packet_qp()
2024 ucmd->rq_wqe_count != qp->rq.wqe_cnt) in create_dci()
2059 if (qp->rq.wqe_cnt) { in create_dci()
2061 MLX5_SET(qpc, qpc, log_rq_size, ilog2(qp->rq.wqe_cnt)); in create_dci()
2074 MLX5_SET(qpc, qpc, log_sq_size, ilog2(qp->sq.wqe_cnt)); in create_dci()
2191 ucmd->rq_wqe_count != qp->rq.wqe_cnt) in create_user_qp()
2247 if (qp->rq.wqe_cnt) { in create_user_qp()
2249 MLX5_SET(qpc, qpc, log_rq_size, ilog2(qp->rq.wqe_cnt)); in create_user_qp()
2257 if (qp->sq.wqe_cnt) { in create_user_qp()
2258 MLX5_SET(qpc, qpc, log_sq_size, ilog2(qp->sq.wqe_cnt)); in create_user_qp()
2405 if (qp->rq.wqe_cnt) { in create_kernel_qp()
2407 MLX5_SET(qpc, qpc, log_rq_size, ilog2(qp->rq.wqe_cnt)); in create_kernel_qp()
2412 if (qp->sq.wqe_cnt) in create_kernel_qp()
2413 MLX5_SET(qpc, qpc, log_sq_size, ilog2(qp->sq.wqe_cnt)); in create_kernel_qp()
3501 if ((qp->type == IB_QPT_RAW_PACKET) && qp->sq.wqe_cnt) in mlx5_set_path()
3815 int modify_rq = !!qp->rq.wqe_cnt; in modify_raw_packet_qp()
3816 int modify_sq = !!qp->sq.wqe_cnt; in modify_raw_packet_qp()
4182 if (qp->rq.wqe_cnt && cur_state == IB_QPS_RESET && new_state == IB_QPS_INIT) in __mlx5_ib_modify_qp()
4303 if (qp->sq.wqe_cnt) in __mlx5_ib_modify_qp()
4778 if (qp->sq.wqe_cnt) { in query_raw_packet_qp_state()
4784 if (qp->rq.wqe_cnt) { in query_raw_packet_qp_state()
4962 qp_attr->cap.max_recv_wr = qp->rq.wqe_cnt; in mlx5_ib_query_qp()