Lines Matching refs:mqp
35 struct rvt_mcast_qp *mqp; in rvt_mcast_qp_alloc() local
37 mqp = kmalloc(sizeof(*mqp), GFP_KERNEL); in rvt_mcast_qp_alloc()
38 if (!mqp) in rvt_mcast_qp_alloc()
41 mqp->qp = qp; in rvt_mcast_qp_alloc()
45 return mqp; in rvt_mcast_qp_alloc()
48 static void rvt_mcast_qp_free(struct rvt_mcast_qp *mqp) in rvt_mcast_qp_free() argument
50 struct rvt_qp *qp = mqp->qp; in rvt_mcast_qp_free()
55 kfree(mqp); in rvt_mcast_qp_free()
152 struct rvt_mcast *mcast, struct rvt_mcast_qp *mqp) in rvt_mcast_add() argument
186 if (p->qp == mqp->qp) { in rvt_mcast_add()
199 list_add_tail_rcu(&mqp->list, &tmcast->qp_list); in rvt_mcast_add()
216 list_add_tail_rcu(&mqp->list, &mcast->qp_list); in rvt_mcast_add()
244 struct rvt_mcast_qp *mqp; in rvt_attach_mcast() local
258 mqp = rvt_mcast_qp_alloc(qp); in rvt_attach_mcast()
259 if (!mqp) in rvt_attach_mcast()
262 switch (rvt_mcast_add(rdi, ibp, mcast, mqp)) { in rvt_attach_mcast()
285 rvt_mcast_qp_free(mqp); in rvt_attach_mcast()