Lines Matching refs:qplqp
1026 static u16 bnxt_re_setup_rwqe_size(struct bnxt_qplib_qp *qplqp, in bnxt_re_setup_rwqe_size() argument
1029 if (qplqp->wqe_mode == BNXT_QPLIB_WQE_MODE_STATIC) in bnxt_re_setup_rwqe_size()
1051 struct bnxt_qplib_qp *qplqp; in bnxt_re_setup_swqe_size() local
1057 qplqp = &qp->qplib_qp; in bnxt_re_setup_swqe_size()
1058 sq = &qplqp->sq; in bnxt_re_setup_swqe_size()
1067 if (qplqp->wqe_mode == BNXT_QPLIB_WQE_MODE_STATIC) { in bnxt_re_setup_swqe_size()
1077 qplqp->max_inline_data = sq->wqe_size - in bnxt_re_setup_swqe_size()
1079 init_attr->cap.max_inline_data = qplqp->max_inline_data; in bnxt_re_setup_swqe_size()
1271 struct bnxt_qplib_qp *qplqp; in bnxt_re_init_rq_attr() local
1277 qplqp = &qp->qplib_qp; in bnxt_re_init_rq_attr()
1278 rq = &qplqp->rq; in bnxt_re_init_rq_attr()
1285 qplqp->srq = &srq->qplib_srq; in bnxt_re_init_rq_attr()
1292 rq->wqe_size = bnxt_re_setup_rwqe_size(qplqp, rq->max_sge, in bnxt_re_init_rq_attr()
1311 struct bnxt_qplib_qp *qplqp; in bnxt_re_adjust_gsi_rq_attr() local
1315 qplqp = &qp->qplib_qp; in bnxt_re_adjust_gsi_rq_attr()
1319 qplqp->rq.max_sge = dev_attr->max_qp_sges; in bnxt_re_adjust_gsi_rq_attr()
1320 if (qplqp->rq.max_sge > dev_attr->max_qp_sges) in bnxt_re_adjust_gsi_rq_attr()
1321 qplqp->rq.max_sge = dev_attr->max_qp_sges; in bnxt_re_adjust_gsi_rq_attr()
1322 qplqp->rq.max_sge = 6; in bnxt_re_adjust_gsi_rq_attr()
1332 struct bnxt_qplib_qp *qplqp; in bnxt_re_init_sq_attr() local
1340 qplqp = &qp->qplib_qp; in bnxt_re_init_sq_attr()
1341 sq = &qplqp->sq; in bnxt_re_init_sq_attr()
1346 if (uctx && qplqp->wqe_mode == BNXT_QPLIB_WQE_MODE_VARIABLE) { in bnxt_re_init_sq_attr()
1361 diff = (qplqp->wqe_mode == BNXT_QPLIB_WQE_MODE_VARIABLE) ? in bnxt_re_init_sq_attr()
1365 if (qplqp->wqe_mode == BNXT_QPLIB_WQE_MODE_VARIABLE) in bnxt_re_init_sq_attr()
1366 sq->max_sw_wqe = bnxt_qplib_get_depth(sq, qplqp->wqe_mode, true); in bnxt_re_init_sq_attr()
1377 qplqp->sq.q_full_delta -= 1; in bnxt_re_init_sq_attr()
1378 qplqp->sq.sg_info.pgsize = PAGE_SIZE; in bnxt_re_init_sq_attr()
1379 qplqp->sq.sg_info.pgshft = PAGE_SHIFT; in bnxt_re_init_sq_attr()
1389 struct bnxt_qplib_qp *qplqp; in bnxt_re_adjust_gsi_sq_attr() local
1394 qplqp = &qp->qplib_qp; in bnxt_re_adjust_gsi_sq_attr()
1399 qplqp->sq.max_wqe = min_t(u32, entries, in bnxt_re_adjust_gsi_sq_attr()
1401 qplqp->sq.q_full_delta = qplqp->sq.max_wqe - in bnxt_re_adjust_gsi_sq_attr()
1403 qplqp->sq.max_sge++; /* Need one extra sge to put UD header */ in bnxt_re_adjust_gsi_sq_attr()
1404 if (qplqp->sq.max_sge > dev_attr->max_qp_sges) in bnxt_re_adjust_gsi_sq_attr()
1405 qplqp->sq.max_sge = dev_attr->max_qp_sges; in bnxt_re_adjust_gsi_sq_attr()
1437 struct bnxt_qplib_qp *qplqp; in bnxt_re_init_qp_attr() local
1443 qplqp = &qp->qplib_qp; in bnxt_re_init_qp_attr()
1447 ether_addr_copy(qplqp->smac, rdev->netdev->dev_addr); in bnxt_re_init_qp_attr()
1448 qplqp->pd = &pd->qplib_pd; in bnxt_re_init_qp_attr()
1449 qplqp->qp_handle = (u64)qplqp; in bnxt_re_init_qp_attr()
1450 qplqp->max_inline_data = init_attr->cap.max_inline_data; in bnxt_re_init_qp_attr()
1451 qplqp->sig_type = init_attr->sq_sig_type == IB_SIGNAL_ALL_WR; in bnxt_re_init_qp_attr()
1457 qplqp->type = (u8)qptype; in bnxt_re_init_qp_attr()
1458 qplqp->wqe_mode = bnxt_re_is_var_size_supported(rdev, uctx); in bnxt_re_init_qp_attr()
1460 qplqp->max_rd_atomic = dev_attr->max_qp_rd_atom; in bnxt_re_init_qp_attr()
1461 qplqp->max_dest_rd_atomic = dev_attr->max_qp_init_rd_atom; in bnxt_re_init_qp_attr()
1463 qplqp->mtu = ib_mtu_enum_to_int(iboe_get_mtu(rdev->netdev->mtu)); in bnxt_re_init_qp_attr()
1464 qplqp->dpi = &rdev->dpi_privileged; /* Doorbell page */ in bnxt_re_init_qp_attr()
1475 qplqp->scq = &cq->qplib_cq; in bnxt_re_init_qp_attr()
1481 qplqp->rcq = &cq->qplib_cq; in bnxt_re_init_qp_attr()
1554 struct bnxt_qplib_qp *qplqp; in bnxt_re_create_gsi_qp() local
1558 qplqp = &qp->qplib_qp; in bnxt_re_create_gsi_qp()
1560 qplqp->rq_hdr_buf_size = BNXT_QPLIB_MAX_QP1_RQ_HDR_SIZE_V2; in bnxt_re_create_gsi_qp()
1561 qplqp->sq_hdr_buf_size = BNXT_QPLIB_MAX_QP1_SQ_HDR_SIZE_V2; in bnxt_re_create_gsi_qp()
1563 rc = bnxt_qplib_create_qp1(&rdev->qplib_res, qplqp); in bnxt_re_create_gsi_qp()