Lines Matching refs:mqp
55 struct ipath_mcast_qp *mqp; in ipath_mcast_qp_alloc() local
57 mqp = kmalloc(sizeof *mqp, GFP_KERNEL); in ipath_mcast_qp_alloc()
58 if (!mqp) in ipath_mcast_qp_alloc()
61 mqp->qp = qp; in ipath_mcast_qp_alloc()
65 return mqp; in ipath_mcast_qp_alloc()
68 static void ipath_mcast_qp_free(struct ipath_mcast_qp *mqp) in ipath_mcast_qp_free() argument
70 struct ipath_qp *qp = mqp->qp; in ipath_mcast_qp_free()
76 kfree(mqp); in ipath_mcast_qp_free()
165 struct ipath_mcast_qp *mqp) in ipath_mcast_add() argument
193 if (p->qp == mqp->qp) { in ipath_mcast_add()
205 list_add_tail_rcu(&mqp->list, &tmcast->qp_list); in ipath_mcast_add()
222 list_add_tail_rcu(&mqp->list, &mcast->qp_list); in ipath_mcast_add()
241 struct ipath_mcast_qp *mqp; in ipath_multicast_attach() local
253 mqp = ipath_mcast_qp_alloc(qp); in ipath_multicast_attach()
254 if (mqp == NULL) { in ipath_multicast_attach()
259 switch (ipath_mcast_add(dev, mcast, mqp)) { in ipath_multicast_attach()
262 ipath_mcast_qp_free(mqp); in ipath_multicast_attach()
271 ipath_mcast_qp_free(mqp); in ipath_multicast_attach()