Lines Matching refs:mcast
2386 struct ib_uverbs_mcast_entry *mcast;
2398 list_for_each_entry(mcast, &obj->mcast_list, list)
2399 if (cmd.mlid == mcast->lid &&
2400 !memcmp(cmd.gid, mcast->gid.raw, sizeof mcast->gid.raw)) {
2405 mcast = kmalloc(sizeof *mcast, GFP_KERNEL);
2406 if (!mcast) {
2411 mcast->lid = cmd.mlid;
2412 memcpy(mcast->gid.raw, cmd.gid, sizeof mcast->gid.raw);
2414 ret = ib_attach_mcast(qp, &mcast->gid, cmd.mlid);
2416 list_add_tail(&mcast->list, &obj->mcast_list);
2418 kfree(mcast);
2433 struct ib_uverbs_mcast_entry *mcast;
2449 list_for_each_entry(mcast, &obj->mcast_list, list)
2450 if (cmd.mlid == mcast->lid &&
2451 !memcmp(cmd.gid, mcast->gid.raw, sizeof mcast->gid.raw)) {
2452 list_del(&mcast->list);
2453 kfree(mcast);