Lines Matching refs:qplqp
971 static u16 bnxt_re_setup_rwqe_size(struct bnxt_qplib_qp *qplqp, in bnxt_re_setup_rwqe_size() argument
974 if (qplqp->wqe_mode == BNXT_QPLIB_WQE_MODE_STATIC) in bnxt_re_setup_rwqe_size()
996 struct bnxt_qplib_qp *qplqp; in bnxt_re_setup_swqe_size() local
1002 qplqp = &qp->qplib_qp; in bnxt_re_setup_swqe_size()
1003 sq = &qplqp->sq; in bnxt_re_setup_swqe_size()
1012 if (qplqp->wqe_mode == BNXT_QPLIB_WQE_MODE_STATIC) { in bnxt_re_setup_swqe_size()
1022 qplqp->max_inline_data = sq->wqe_size - in bnxt_re_setup_swqe_size()
1024 init_attr->cap.max_inline_data = qplqp->max_inline_data; in bnxt_re_setup_swqe_size()
1216 struct bnxt_qplib_qp *qplqp; in bnxt_re_init_rq_attr() local
1222 qplqp = &qp->qplib_qp; in bnxt_re_init_rq_attr()
1223 rq = &qplqp->rq; in bnxt_re_init_rq_attr()
1230 qplqp->srq = &srq->qplib_srq; in bnxt_re_init_rq_attr()
1237 rq->wqe_size = bnxt_re_setup_rwqe_size(qplqp, rq->max_sge, in bnxt_re_init_rq_attr()
1256 struct bnxt_qplib_qp *qplqp; in bnxt_re_adjust_gsi_rq_attr() local
1260 qplqp = &qp->qplib_qp; in bnxt_re_adjust_gsi_rq_attr()
1264 qplqp->rq.max_sge = dev_attr->max_qp_sges; in bnxt_re_adjust_gsi_rq_attr()
1265 if (qplqp->rq.max_sge > dev_attr->max_qp_sges) in bnxt_re_adjust_gsi_rq_attr()
1266 qplqp->rq.max_sge = dev_attr->max_qp_sges; in bnxt_re_adjust_gsi_rq_attr()
1267 qplqp->rq.max_sge = 6; in bnxt_re_adjust_gsi_rq_attr()
1277 struct bnxt_qplib_qp *qplqp; in bnxt_re_init_sq_attr() local
1285 qplqp = &qp->qplib_qp; in bnxt_re_init_sq_attr()
1286 sq = &qplqp->sq; in bnxt_re_init_sq_attr()
1291 if (uctx && qplqp->wqe_mode == BNXT_QPLIB_WQE_MODE_VARIABLE) { in bnxt_re_init_sq_attr()
1306 diff = (qplqp->wqe_mode == BNXT_QPLIB_WQE_MODE_VARIABLE) ? in bnxt_re_init_sq_attr()
1310 if (qplqp->wqe_mode == BNXT_QPLIB_WQE_MODE_VARIABLE) in bnxt_re_init_sq_attr()
1311 sq->max_sw_wqe = bnxt_qplib_get_depth(sq, qplqp->wqe_mode, true); in bnxt_re_init_sq_attr()
1322 qplqp->sq.q_full_delta -= 1; in bnxt_re_init_sq_attr()
1323 qplqp->sq.sg_info.pgsize = PAGE_SIZE; in bnxt_re_init_sq_attr()
1324 qplqp->sq.sg_info.pgshft = PAGE_SHIFT; in bnxt_re_init_sq_attr()
1334 struct bnxt_qplib_qp *qplqp; in bnxt_re_adjust_gsi_sq_attr() local
1339 qplqp = &qp->qplib_qp; in bnxt_re_adjust_gsi_sq_attr()
1344 qplqp->sq.max_wqe = min_t(u32, entries, in bnxt_re_adjust_gsi_sq_attr()
1346 qplqp->sq.q_full_delta = qplqp->sq.max_wqe - in bnxt_re_adjust_gsi_sq_attr()
1348 qplqp->sq.max_sge++; /* Need one extra sge to put UD header */ in bnxt_re_adjust_gsi_sq_attr()
1349 if (qplqp->sq.max_sge > dev_attr->max_qp_sges) in bnxt_re_adjust_gsi_sq_attr()
1350 qplqp->sq.max_sge = dev_attr->max_qp_sges; in bnxt_re_adjust_gsi_sq_attr()
1382 struct bnxt_qplib_qp *qplqp; in bnxt_re_init_qp_attr() local
1388 qplqp = &qp->qplib_qp; in bnxt_re_init_qp_attr()
1392 ether_addr_copy(qplqp->smac, rdev->netdev->dev_addr); in bnxt_re_init_qp_attr()
1393 qplqp->pd = &pd->qplib_pd; in bnxt_re_init_qp_attr()
1394 qplqp->qp_handle = (u64)qplqp; in bnxt_re_init_qp_attr()
1395 qplqp->max_inline_data = init_attr->cap.max_inline_data; in bnxt_re_init_qp_attr()
1396 qplqp->sig_type = init_attr->sq_sig_type == IB_SIGNAL_ALL_WR; in bnxt_re_init_qp_attr()
1402 qplqp->type = (u8)qptype; in bnxt_re_init_qp_attr()
1403 qplqp->wqe_mode = bnxt_re_is_var_size_supported(rdev, uctx); in bnxt_re_init_qp_attr()
1405 qplqp->max_rd_atomic = dev_attr->max_qp_rd_atom; in bnxt_re_init_qp_attr()
1406 qplqp->max_dest_rd_atomic = dev_attr->max_qp_init_rd_atom; in bnxt_re_init_qp_attr()
1408 qplqp->mtu = ib_mtu_enum_to_int(iboe_get_mtu(rdev->netdev->mtu)); in bnxt_re_init_qp_attr()
1409 qplqp->dpi = &rdev->dpi_privileged; /* Doorbell page */ in bnxt_re_init_qp_attr()
1420 qplqp->scq = &cq->qplib_cq; in bnxt_re_init_qp_attr()
1426 qplqp->rcq = &cq->qplib_cq; in bnxt_re_init_qp_attr()
1499 struct bnxt_qplib_qp *qplqp; in bnxt_re_create_gsi_qp() local
1503 qplqp = &qp->qplib_qp; in bnxt_re_create_gsi_qp()
1505 qplqp->rq_hdr_buf_size = BNXT_QPLIB_MAX_QP1_RQ_HDR_SIZE_V2; in bnxt_re_create_gsi_qp()
1506 qplqp->sq_hdr_buf_size = BNXT_QPLIB_MAX_QP1_SQ_HDR_SIZE_V2; in bnxt_re_create_gsi_qp()
1508 rc = bnxt_qplib_create_qp1(&rdev->qplib_res, qplqp); in bnxt_re_create_gsi_qp()