Lines Matching refs:qp
42 static struct qib_mcast_qp *qib_mcast_qp_alloc(struct qib_qp *qp) in qib_mcast_qp_alloc() argument
50 mqp->qp = qp; in qib_mcast_qp_alloc()
51 atomic_inc(&qp->refcount); in qib_mcast_qp_alloc()
59 struct qib_qp *qp = mqp->qp; in qib_mcast_qp_free() local
62 if (atomic_dec_and_test(&qp->refcount)) in qib_mcast_qp_free()
63 wake_up(&qp->wait); in qib_mcast_qp_free()
182 if (p->qp == mqp->qp) { in qib_mcast_add()
227 struct qib_qp *qp = to_iqp(ibqp); in qib_multicast_attach() local
234 if (ibqp->qp_num <= 1 || qp->state == IB_QPS_RESET) { in qib_multicast_attach()
248 mqp = qib_mcast_qp_alloc(qp); in qib_multicast_attach()
254 ibp = to_iport(ibqp->device, qp->port_num); in qib_multicast_attach()
285 struct qib_qp *qp = to_iqp(ibqp); in qib_multicast_detach() local
287 struct qib_ibport *ibp = to_iport(ibqp->device, qp->port_num); in qib_multicast_detach()
294 if (ibqp->qp_num <= 1 || qp->state == IB_QPS_RESET) in qib_multicast_detach()
320 if (p->qp != qp) in qib_multicast_detach()