Lines Matching refs:ibqp
74 struct ib_qp *ibqp = &hr_qp->ibqp; in hns_roce_ib_qp_event() local
76 if (ibqp->event_handler) { in hns_roce_ib_qp_event()
77 event.device = ibqp->device; in hns_roce_ib_qp_event()
78 event.element.qp = ibqp; in hns_roce_ib_qp_event()
105 dev_dbg(ibqp->device->dev.parent, "roce_ib: Unexpected event type %d on QP %06lx\n", in hns_roce_ib_qp_event()
109 ibqp->event_handler(&event, ibqp->qp_context); in hns_roce_ib_qp_event()
259 if ((hr_qp->ibqp.qp_type) != IB_QPT_GSI) { in hns_roce_qp_free()
462 if (hr_dev->caps.max_sq_sg > 2 && hr_qp->ibqp.qp_type == IB_QPT_GSI) { in hns_roce_set_kernel_sq_size()
533 hr_qp->ibqp.qp_type = init_attr->qp_type; in hns_roce_create_qp_common()
861 hr_qp->ibqp.qp_num = hr_qp->qpn; in hns_roce_create_qp()
882 hr_qp->ibqp.qp_num = HNS_ROCE_MAX_PORTS + in hns_roce_create_qp()
885 hr_qp->ibqp.qp_num = 1; in hns_roce_create_qp()
888 hr_qp->ibqp.qp_num, hr_qp); in hns_roce_create_qp()
903 return &hr_qp->ibqp; in hns_roce_create_qp()
926 int hns_roce_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, in hns_roce_modify_qp() argument
929 struct hns_roce_dev *hr_dev = to_hr_dev(ibqp->device); in hns_roce_modify_qp()
930 struct hns_roce_qp *hr_qp = to_hr_qp(ibqp); in hns_roce_modify_qp()
944 if (ibqp->uobject && in hns_roce_modify_qp()
955 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, attr_mask, in hns_roce_modify_qp()
1019 ret = hr_dev->hw->modify_qp(ibqp, attr, attr_mask, cur_state, in hns_roce_modify_qp()