Lines Matching refs:qplqp

1120 static u16 bnxt_re_get_rwqe_size(struct bnxt_qplib_qp *qplqp,  in bnxt_re_get_rwqe_size()  argument
1123 if (qplqp->wqe_mode == BNXT_QPLIB_WQE_MODE_STATIC) in bnxt_re_get_rwqe_size()
1603 struct bnxt_qplib_qp *qplqp; in bnxt_re_setup_swqe_size() local
1609 qplqp = &qp->qplib_qp; in bnxt_re_setup_swqe_size()
1610 sq = &qplqp->sq; in bnxt_re_setup_swqe_size()
1623 qplqp->wqe_mode == BNXT_QPLIB_WQE_MODE_STATIC) in bnxt_re_setup_swqe_size()
1627 qplqp->max_inline_data = sq->wqe_size - in bnxt_re_setup_swqe_size()
1629 init_attr->cap.max_inline_data = qplqp->max_inline_data; in bnxt_re_setup_swqe_size()
1630 if (qplqp->wqe_mode == BNXT_QPLIB_WQE_MODE_STATIC) in bnxt_re_setup_swqe_size()
1631 sq->max_sge = qplqp->max_inline_data / in bnxt_re_setup_swqe_size()
1910 struct bnxt_qplib_qp *qplqp; in bnxt_re_init_rq_attr() local
1916 qplqp = &qp->qplib_qp; in bnxt_re_init_rq_attr()
1917 rq = &qplqp->rq; in bnxt_re_init_rq_attr()
1928 qplqp->srq = &srq->qplib_srq; in bnxt_re_init_rq_attr()
1935 rq->wqe_size = bnxt_re_get_rwqe_size(qplqp, rq->max_sge, in bnxt_re_init_rq_attr()
1954 struct bnxt_qplib_qp *qplqp; in bnxt_re_adjust_gsi_rq_attr() local
1958 qplqp = &qp->qplib_qp; in bnxt_re_adjust_gsi_rq_attr()
1962 qplqp->rq.max_sge = dev_attr->max_qp_sges; in bnxt_re_adjust_gsi_rq_attr()
1970 struct bnxt_qplib_qp *qplqp; in bnxt_re_init_sq_attr() local
1978 qplqp = &qp->qplib_qp; in bnxt_re_init_sq_attr()
1979 sq = &qplqp->sq; in bnxt_re_init_sq_attr()
2028 struct bnxt_qplib_qp *qplqp; in bnxt_re_adjust_gsi_sq_attr() local
2033 qplqp = &qp->qplib_qp; in bnxt_re_adjust_gsi_sq_attr()
2039 qplqp->sq.max_wqe = min_t(u32, entries, in bnxt_re_adjust_gsi_sq_attr()
2041 qplqp->sq.q_full_delta = qplqp->sq.max_wqe - in bnxt_re_adjust_gsi_sq_attr()
2043 qplqp->sq.max_sge++; /* Need one extra sge to put UD header */ in bnxt_re_adjust_gsi_sq_attr()
2044 if (qplqp->sq.max_sge > dev_attr->max_qp_sges) in bnxt_re_adjust_gsi_sq_attr()
2045 qplqp->sq.max_sge = dev_attr->max_qp_sges; in bnxt_re_adjust_gsi_sq_attr()
2088 struct bnxt_qplib_qp *qplqp; in bnxt_re_init_qp_attr() local
2094 qplqp = &qp->qplib_qp; in bnxt_re_init_qp_attr()
2103 qplqp->is_user = false; in bnxt_re_init_qp_attr()
2104 qplqp->pd = &pd->qplib_pd; in bnxt_re_init_qp_attr()
2105 qplqp->qp_handle = (u64)qplqp; in bnxt_re_init_qp_attr()
2106 qplqp->sig_type = ((init_attr->sq_sig_type == IB_SIGNAL_ALL_WR) ? in bnxt_re_init_qp_attr()
2113 qplqp->type = (u8)qptype; in bnxt_re_init_qp_attr()
2114 qplqp->wqe_mode = bnxt_re_init_qp_wqe_mode(rdev); in bnxt_re_init_qp_attr()
2115 ether_addr_copy(qplqp->smac, rdev->dev_addr); in bnxt_re_init_qp_attr()
2118 qplqp->max_rd_atomic = dev_attr->max_qp_rd_atom; in bnxt_re_init_qp_attr()
2119 qplqp->max_dest_rd_atomic = dev_attr->max_qp_init_rd_atom; in bnxt_re_init_qp_attr()
2121 qplqp->mtu = ib_mtu_enum_to_int(iboe_get_mtu(if_getmtu(rdev->netdev))); in bnxt_re_init_qp_attr()
2122 qplqp->dpi = &rdev->dpi_privileged; /* Doorbell page */ in bnxt_re_init_qp_attr()
2138 qplqp->scq = &cq->qplib_cq; in bnxt_re_init_qp_attr()
2149 qplqp->rcq = &cq->qplib_cq; in bnxt_re_init_qp_attr()
2235 struct bnxt_qplib_qp *qplqp; in bnxt_re_create_gsi_qp() local
2243 qplqp = &qp->qplib_qp; in bnxt_re_create_gsi_qp()
2249 rc = bnxt_qplib_alloc_hdr_buf(res, qplqp, sstep, rstep); in bnxt_re_create_gsi_qp()
2253 rc = bnxt_qplib_create_qp1(res, qplqp); in bnxt_re_create_gsi_qp()