Lines Matching refs:mqp
77 struct rvt_mcast_qp *mqp; in rvt_mcast_qp_alloc() local
79 mqp = kmalloc(sizeof(*mqp), GFP_KERNEL); in rvt_mcast_qp_alloc()
80 if (!mqp) in rvt_mcast_qp_alloc()
83 mqp->qp = qp; in rvt_mcast_qp_alloc()
87 return mqp; in rvt_mcast_qp_alloc()
90 static void rvt_mcast_qp_free(struct rvt_mcast_qp *mqp) in rvt_mcast_qp_free() argument
92 struct rvt_qp *qp = mqp->qp; in rvt_mcast_qp_free()
97 kfree(mqp); in rvt_mcast_qp_free()
194 struct rvt_mcast *mcast, struct rvt_mcast_qp *mqp) in rvt_mcast_add() argument
228 if (p->qp == mqp->qp) { in rvt_mcast_add()
241 list_add_tail_rcu(&mqp->list, &tmcast->qp_list); in rvt_mcast_add()
258 list_add_tail_rcu(&mqp->list, &mcast->qp_list); in rvt_mcast_add()
286 struct rvt_mcast_qp *mqp; in rvt_attach_mcast() local
300 mqp = rvt_mcast_qp_alloc(qp); in rvt_attach_mcast()
301 if (!mqp) in rvt_attach_mcast()
304 switch (rvt_mcast_add(rdi, ibp, mcast, mqp)) { in rvt_attach_mcast()
327 rvt_mcast_qp_free(mqp); in rvt_attach_mcast()