Lines Matching refs:ibqp

218 	qp->ibqp.qp_num = ret;  in ipath_alloc_qpn()
251 qpp = &qpt->table[qp->ibqp.qp_num % qpt->max]; in ipath_free_qp()
309 if (qp->ibqp.qp_num == qpn) { in ipath_lookup_qpn()
379 struct ipath_ibdev *dev = to_idev(qp->ibqp.device); in ipath_error_qp()
400 wc.qp = &qp->ibqp; in ipath_error_qp()
406 ipath_cq_enter(to_icq(qp->ibqp.recv_cq), &wc, 1); in ipath_error_qp()
429 ipath_cq_enter(to_icq(qp->ibqp.recv_cq), &wc, 1); in ipath_error_qp()
434 } else if (qp->ibqp.event_handler) in ipath_error_qp()
450 int ipath_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, in ipath_modify_qp() argument
453 struct ipath_ibdev *dev = to_idev(ibqp->device); in ipath_modify_qp()
454 struct ipath_qp *qp = to_iqp(ibqp); in ipath_modify_qp()
465 if (!ib_modify_qp_is_ok(cur_state, new_state, ibqp->qp_type, in ipath_modify_qp()
489 attr->port_num > ibqp->device->phys_port_cnt) in ipath_modify_qp()
527 ipath_reset_qp(qp, ibqp->qp_type); in ipath_modify_qp()
536 if (qp->ibqp.qp_type == IB_QPT_RC) in ipath_modify_qp()
605 ev.device = qp->ibqp.device; in ipath_modify_qp()
606 ev.element.qp = &qp->ibqp; in ipath_modify_qp()
608 qp->ibqp.event_handler(&ev, qp->ibqp.qp_context); in ipath_modify_qp()
621 int ipath_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr, in ipath_query_qp() argument
624 struct ipath_qp *qp = to_iqp(ibqp); in ipath_query_qp()
636 attr->cap.max_recv_wr = qp->ibqp.srq ? 0 : qp->r_rq.size - 1; in ipath_query_qp()
656 init_attr->event_handler = qp->ibqp.event_handler; in ipath_query_qp()
657 init_attr->qp_context = qp->ibqp.qp_context; in ipath_query_qp()
658 init_attr->send_cq = qp->ibqp.send_cq; in ipath_query_qp()
659 init_attr->recv_cq = qp->ibqp.recv_cq; in ipath_query_qp()
660 init_attr->srq = qp->ibqp.srq; in ipath_query_qp()
666 init_attr->qp_type = qp->ibqp.qp_type; in ipath_query_qp()
681 if (qp->ibqp.srq) { in ipath_compute_aeth()
933 ret = &qp->ibqp; in ipath_create_qp()
942 free_qpn(&dev->qp_table, qp->ibqp.qp_num); in ipath_create_qp()
962 int ipath_destroy_qp(struct ib_qp *ibqp) in ipath_destroy_qp() argument
964 struct ipath_qp *qp = to_iqp(ibqp); in ipath_destroy_qp()
965 struct ipath_ibdev *dev = to_idev(ibqp->device); in ipath_destroy_qp()
1000 free_qpn(&dev->qp_table, qp->ibqp.qp_num); in ipath_destroy_qp()