Lines Matching refs:mqp
44 struct qib_mcast_qp *mqp; in qib_mcast_qp_alloc() local
46 mqp = kmalloc(sizeof(*mqp), GFP_KERNEL); in qib_mcast_qp_alloc()
47 if (!mqp) in qib_mcast_qp_alloc()
50 mqp->qp = qp; in qib_mcast_qp_alloc()
54 return mqp; in qib_mcast_qp_alloc()
57 static void qib_mcast_qp_free(struct qib_mcast_qp *mqp) in qib_mcast_qp_free() argument
59 struct qib_qp *qp = mqp->qp; in qib_mcast_qp_free()
65 kfree(mqp); in qib_mcast_qp_free()
154 struct qib_mcast *mcast, struct qib_mcast_qp *mqp) in qib_mcast_add() argument
182 if (p->qp == mqp->qp) { in qib_mcast_add()
194 list_add_tail_rcu(&mqp->list, &tmcast->qp_list); in qib_mcast_add()
211 list_add_tail_rcu(&mqp->list, &mcast->qp_list); in qib_mcast_add()
231 struct qib_mcast_qp *mqp; in qib_multicast_attach() local
248 mqp = qib_mcast_qp_alloc(qp); in qib_multicast_attach()
249 if (mqp == NULL) { in qib_multicast_attach()
255 switch (qib_mcast_add(dev, ibp, mcast, mqp)) { in qib_multicast_attach()
258 qib_mcast_qp_free(mqp); in qib_multicast_attach()
268 qib_mcast_qp_free(mqp); in qib_multicast_attach()