Lines Matching refs:init_attr
514 struct ib_qp_init_attr *init_attr, in hns_roce_create_qp_common() argument
533 hr_qp->ibqp.qp_type = init_attr->qp_type; in hns_roce_create_qp_common()
535 if (init_attr->sq_sig_type == IB_SIGNAL_ALL_WR) in hns_roce_create_qp_common()
540 ret = hns_roce_set_rq_size(hr_dev, &init_attr->cap, !!ib_pd->uobject, in hns_roce_create_qp_common()
541 !!init_attr->srq, hr_qp); in hns_roce_create_qp_common()
562 init_attr->cap.max_recv_sge * in hns_roce_create_qp_common()
574 init_attr->cap.max_recv_sge]; in hns_roce_create_qp_common()
584 ret = hns_roce_set_user_sq_size(hr_dev, &init_attr->cap, hr_qp, in hns_roce_create_qp_common()
630 hns_roce_qp_has_sq(init_attr)) { in hns_roce_create_qp_common()
646 hns_roce_qp_has_rq(init_attr)) { in hns_roce_create_qp_common()
656 if (init_attr->create_flags & in hns_roce_create_qp_common()
663 if (init_attr->create_flags & IB_QP_CREATE_IPOIB_UD_LSO) { in hns_roce_create_qp_common()
670 ret = hns_roce_set_kernel_sq_size(hr_dev, &init_attr->cap, in hns_roce_create_qp_common()
684 hns_roce_qp_has_rq(init_attr)) { in hns_roce_create_qp_common()
741 if (init_attr->qp_type == IB_QPT_GSI && in hns_roce_create_qp_common()
778 if (init_attr->qp_type == IB_QPT_GSI && in hns_roce_create_qp_common()
792 hns_roce_qp_has_rq(init_attr)) in hns_roce_create_qp_common()
806 hns_roce_qp_has_sq(init_attr)) in hns_roce_create_qp_common()
821 if (!ib_pd->uobject && hns_roce_qp_has_rq(init_attr) && in hns_roce_create_qp_common()
838 struct ib_qp_init_attr *init_attr, in hns_roce_create_qp() argument
847 switch (init_attr->qp_type) { in hns_roce_create_qp()
853 ret = hns_roce_create_qp_common(hr_dev, pd, init_attr, udata, 0, in hns_roce_create_qp()
877 hr_qp->port = init_attr->port_num - 1; in hns_roce_create_qp()
887 ret = hns_roce_create_qp_common(hr_dev, pd, init_attr, udata, in hns_roce_create_qp()
898 dev_err(dev, "not support QP type %d\n", init_attr->qp_type); in hns_roce_create_qp()