mgid 469 drivers/infiniband/core/cma.c static int cma_igmp_send(struct net_device *ndev, union ib_gid *mgid, bool join) mgid 479 drivers/infiniband/core/cma.c *(__be32 *)(mgid->raw + 12)); mgid 482 drivers/infiniband/core/cma.c *(__be32 *)(mgid->raw + 12)); mgid 573 drivers/infiniband/core/cma.c ib_addr_get_mgid(&id_priv->id.route.addr.dev_addr, &rec.mgid); mgid 575 drivers/infiniband/core/cma.c id_priv->id.port_num, &rec.mgid, mgid 1811 drivers/infiniband/core/cma.c cma_igmp_send(ndev, &mc->multicast.ib->rec.mgid, false); mgid 4169 drivers/infiniband/core/cma.c status = ib_attach_mcast(id_priv->id.qp, &multicast->rec.mgid, mgid 4220 drivers/infiniband/core/cma.c struct sockaddr *addr, union ib_gid *mgid) mgid 4228 drivers/infiniband/core/cma.c memset(mgid, 0, sizeof *mgid); mgid 4233 drivers/infiniband/core/cma.c memcpy(mgid, &sin6->sin6_addr, sizeof *mgid); mgid 4235 drivers/infiniband/core/cma.c memcpy(mgid, &((struct sockaddr_ib *) addr)->sib_addr, sizeof *mgid); mgid 4240 drivers/infiniband/core/cma.c *mgid = *(union ib_gid *) (mc_map + 4); mgid 4245 drivers/infiniband/core/cma.c *mgid = *(union ib_gid *) (mc_map + 4); mgid 4257 drivers/infiniband/core/cma.c ib_addr_get_mgid(dev_addr, &rec.mgid); mgid 4259 drivers/infiniband/core/cma.c &rec.mgid, &rec); mgid 4267 drivers/infiniband/core/cma.c cma_set_mgid(id_priv, (struct sockaddr *) &mc->addr, &rec.mgid); mgid 4316 drivers/infiniband/core/cma.c static void cma_iboe_set_mgid(struct sockaddr *addr, union ib_gid *mgid, mgid 4323 drivers/infiniband/core/cma.c memset(mgid, 0, sizeof *mgid); mgid 4325 drivers/infiniband/core/cma.c memcpy(mgid, &sin6->sin6_addr, sizeof *mgid); mgid 4327 drivers/infiniband/core/cma.c mgid->raw[0] = mgid 4329 drivers/infiniband/core/cma.c mgid->raw[1] = mgid 4331 drivers/infiniband/core/cma.c mgid->raw[2] = 0; mgid 4332 drivers/infiniband/core/cma.c mgid->raw[3] = 0; mgid 4333 drivers/infiniband/core/cma.c mgid->raw[4] = 0; mgid 4334 drivers/infiniband/core/cma.c mgid->raw[5] = 0; mgid 4335 drivers/infiniband/core/cma.c mgid->raw[6] = 0; mgid 4336 drivers/infiniband/core/cma.c mgid->raw[7] = 0; mgid 4337 drivers/infiniband/core/cma.c mgid->raw[8] = 0; mgid 4338 drivers/infiniband/core/cma.c mgid->raw[9] = 0; mgid 4339 drivers/infiniband/core/cma.c mgid->raw[10] = 0xff; mgid 4340 drivers/infiniband/core/cma.c mgid->raw[11] = 0xff; mgid 4341 drivers/infiniband/core/cma.c *(__be32 *)(&mgid->raw[12]) = sin->sin_addr.s_addr; mgid 4373 drivers/infiniband/core/cma.c cma_iboe_set_mgid(addr, &mc->multicast.ib->rec.mgid, gid_type); mgid 4393 drivers/infiniband/core/cma.c err = cma_igmp_send(ndev, &mc->multicast.ib->rec.mgid, mgid 4487 drivers/infiniband/core/cma.c &mc->multicast.ib->rec.mgid, mgid 130 drivers/infiniband/core/multicast.c union ib_gid *mgid) mgid 138 drivers/infiniband/core/multicast.c ret = memcmp(mgid->raw, group->rec.mgid.raw, sizeof *mgid); mgid 163 drivers/infiniband/core/multicast.c ret = memcmp(group->rec.mgid.raw, cur_group->rec.mgid.raw, mgid 164 drivers/infiniband/core/multicast.c sizeof group->rec.mgid); mgid 531 drivers/infiniband/core/multicast.c mgids_changed = memcmp(&rec->mgid, &group->rec.mgid, mgid 532 drivers/infiniband/core/multicast.c sizeof(group->rec.mgid)); mgid 536 drivers/infiniband/core/multicast.c is_mgid0 = !memcmp(&mgid0, &group->rec.mgid, mgid 558 drivers/infiniband/core/multicast.c union ib_gid *mgid, gfp_t gfp_mask) mgid 564 drivers/infiniband/core/multicast.c is_mgid0 = !memcmp(&mgid0, mgid, sizeof mgid0); mgid 567 drivers/infiniband/core/multicast.c group = mcast_find(port, mgid); mgid 579 drivers/infiniband/core/multicast.c group->rec.mgid = *mgid; mgid 639 drivers/infiniband/core/multicast.c &rec->mgid, gfp_mask); mgid 694 drivers/infiniband/core/multicast.c union ib_gid *mgid, struct ib_sa_mcmember_rec *rec) mgid 708 drivers/infiniband/core/multicast.c group = mcast_find(port, mgid); mgid 762 drivers/infiniband/core/multicast.c rdma_move_grh_sgid_attr(ah_attr, &rec->mgid, mgid 427 drivers/infiniband/core/sa_query.c { MCMEMBER_REC_FIELD(mgid), mgid 86 drivers/infiniband/hw/mlx4/mcg.c union ib_gid mgid; mgid 163 drivers/infiniband/hw/mlx4/mcg.c union ib_gid *mgid) mgid 171 drivers/infiniband/hw/mlx4/mcg.c ret = memcmp(mgid->raw, group->rec.mgid.raw, sizeof *mgid); mgid 195 drivers/infiniband/hw/mlx4/mcg.c ret = memcmp(group->rec.mgid.raw, cur_group->rec.mgid.raw, mgid 196 drivers/infiniband/hw/mlx4/mcg.c sizeof group->rec.mgid); mgid 455 drivers/infiniband/hw/mlx4/mcg.c nzgroup = memcmp(&group->rec.mgid, &mgid0, sizeof mgid0); mgid 556 drivers/infiniband/hw/mlx4/mcg.c if (memcmp(&group->rec.mgid, &mgid0, sizeof mgid0)) { mgid 758 drivers/infiniband/hw/mlx4/mcg.c group->rec.mgid = *new_mgid; mgid 760 drivers/infiniband/hw/mlx4/mcg.c be64_to_cpu(group->rec.mgid.global.subnet_prefix), mgid 761 drivers/infiniband/hw/mlx4/mcg.c be64_to_cpu(group->rec.mgid.global.interface_id)); mgid 811 drivers/infiniband/hw/mlx4/mcg.c union ib_gid *mgid, int create) mgid 817 drivers/infiniband/hw/mlx4/mcg.c is_mgid0 = !memcmp(&mgid0, mgid, sizeof mgid0); mgid 819 drivers/infiniband/hw/mlx4/mcg.c group = mcast_find(ctx, mgid); mgid 832 drivers/infiniband/hw/mlx4/mcg.c group->rec.mgid = *mgid; mgid 841 drivers/infiniband/hw/mlx4/mcg.c be64_to_cpu(group->rec.mgid.global.subnet_prefix), mgid 842 drivers/infiniband/hw/mlx4/mcg.c be64_to_cpu(group->rec.mgid.global.interface_id)); mgid 894 drivers/infiniband/hw/mlx4/mcg.c group = acquire_group(ctx, &rec->mgid, 0); mgid 900 drivers/infiniband/hw/mlx4/mcg.c group = search_relocate_mgid0_group(ctx, tid, &rec->mgid); mgid 957 drivers/infiniband/hw/mlx4/mcg.c group = acquire_group(ctx, &rec->mgid, may_create); mgid 277 drivers/infiniband/hw/mlx5/cmd.c int mlx5_cmd_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, mgid 288 drivers/infiniband/hw/mlx5/cmd.c memcpy(gid, mgid, sizeof(*mgid)); mgid 292 drivers/infiniband/hw/mlx5/cmd.c int mlx5_cmd_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, mgid 303 drivers/infiniband/hw/mlx5/cmd.c memcpy(gid, mgid, sizeof(*mgid)); mgid 58 drivers/infiniband/hw/mlx5/cmd.h int mlx5_cmd_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, mgid 60 drivers/infiniband/hw/mlx5/cmd.h int mlx5_cmd_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, mgid 69 drivers/infiniband/hw/mthca/mthca_mcg.c u8 *mgid; mgid 75 drivers/infiniband/hw/mthca/mthca_mcg.c mgid = mailbox->buf; mgid 77 drivers/infiniband/hw/mthca/mthca_mcg.c memcpy(mgid, gid, 16); mgid 1630 drivers/infiniband/hw/ocrdma/ocrdma_sli.h u8 mgid[16]; mgid 1644 drivers/infiniband/hw/ocrdma/ocrdma_sli.h u8 mgid[16]; mgid 107 drivers/infiniband/sw/rdmavt/mcast.c static struct rvt_mcast *rvt_mcast_alloc(union ib_gid *mgid, u16 lid) mgid 115 drivers/infiniband/sw/rdmavt/mcast.c mcast->mcast_addr.mgid = *mgid; mgid 148 drivers/infiniband/sw/rdmavt/mcast.c struct rvt_mcast *rvt_mcast_find(struct rvt_ibport *ibp, union ib_gid *mgid, mgid 163 drivers/infiniband/sw/rdmavt/mcast.c ret = memcmp(mgid->raw, mcast->mcast_addr.mgid.raw, mgid 164 drivers/infiniband/sw/rdmavt/mcast.c sizeof(*mgid)); mgid 209 drivers/infiniband/sw/rdmavt/mcast.c ret = memcmp(mcast->mcast_addr.mgid.raw, mgid 210 drivers/infiniband/sw/rdmavt/mcast.c tmcast->mcast_addr.mgid.raw, mgid 211 drivers/infiniband/sw/rdmavt/mcast.c sizeof(mcast->mcast_addr.mgid)); mgid 368 drivers/infiniband/sw/rdmavt/mcast.c ret = memcmp(gid->raw, mcast->mcast_addr.mgid.raw, mgid 70 drivers/infiniband/sw/rxe/rxe_loc.h int rxe_mcast_get_grp(struct rxe_dev *rxe, union ib_gid *mgid, mgid 77 drivers/infiniband/sw/rxe/rxe_loc.h union ib_gid *mgid); mgid 151 drivers/infiniband/sw/rxe/rxe_loc.h int rxe_mcast_add(struct rxe_dev *rxe, union ib_gid *mgid); mgid 152 drivers/infiniband/sw/rxe/rxe_loc.h int rxe_mcast_delete(struct rxe_dev *rxe, union ib_gid *mgid); mgid 37 drivers/infiniband/sw/rxe/rxe_mcast.c int rxe_mcast_get_grp(struct rxe_dev *rxe, union ib_gid *mgid, mgid 48 drivers/infiniband/sw/rxe/rxe_mcast.c grp = rxe_pool_get_key(&rxe->mc_grp_pool, mgid); mgid 62 drivers/infiniband/sw/rxe/rxe_mcast.c rxe_add_key(grp, mgid); mgid 64 drivers/infiniband/sw/rxe/rxe_mcast.c err = rxe_mcast_add(rxe, mgid); mgid 123 drivers/infiniband/sw/rxe/rxe_mcast.c union ib_gid *mgid) mgid 128 drivers/infiniband/sw/rxe/rxe_mcast.c grp = rxe_pool_get_key(&rxe->mc_grp_pool, mgid); mgid 189 drivers/infiniband/sw/rxe/rxe_mcast.c rxe_mcast_delete(rxe, &grp->mgid); mgid 62 drivers/infiniband/sw/rxe/rxe_net.c int rxe_mcast_add(struct rxe_dev *rxe, union ib_gid *mgid) mgid 67 drivers/infiniband/sw/rxe/rxe_net.c ipv6_eth_mc_map((struct in6_addr *)mgid->raw, ll_addr); mgid 73 drivers/infiniband/sw/rxe/rxe_net.c int rxe_mcast_delete(struct rxe_dev *rxe, union ib_gid *mgid) mgid 78 drivers/infiniband/sw/rxe/rxe_net.c ipv6_eth_mc_map((struct in6_addr *)mgid->raw, ll_addr); mgid 98 drivers/infiniband/sw/rxe/rxe_pool.c .key_offset = offsetof(struct rxe_mc_grp, mgid), mgid 1046 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_attach_mcast(struct ib_qp *ibqp, union ib_gid *mgid, u16 mlid) mgid 1054 drivers/infiniband/sw/rxe/rxe_verbs.c err = rxe_mcast_get_grp(rxe, mgid, &grp); mgid 1064 drivers/infiniband/sw/rxe/rxe_verbs.c static int rxe_detach_mcast(struct ib_qp *ibqp, union ib_gid *mgid, u16 mlid) mgid 1069 drivers/infiniband/sw/rxe/rxe_verbs.c return rxe_mcast_drop_grp_elem(rxe, qp, mgid); mgid 358 drivers/infiniband/sw/rxe/rxe_verbs.h union ib_gid mgid; mgid 581 drivers/infiniband/ulp/ipoib/ipoib.h union ib_gid *mgid, u16 mlid, int set_qkey, u32 qkey); mgid 583 drivers/infiniband/ulp/ipoib/ipoib.h union ib_gid *mgid, u16 mlid); mgid 585 drivers/infiniband/ulp/ipoib/ipoib.h void ipoib_check_and_add_mcast_sendonly(struct ipoib_dev_priv *priv, u8 *mgid, mgid 101 drivers/infiniband/ulp/ipoib/ipoib_fs.c union ib_gid mgid; mgid 108 drivers/infiniband/ulp/ipoib/ipoib_fs.c ipoib_mcast_iter_read(iter, &mgid, &created, &queuelen, mgid 111 drivers/infiniband/ulp/ipoib/ipoib_fs.c format_gid(&mgid, gid_buf); mgid 60 drivers/infiniband/ulp/ipoib/ipoib_multicast.c union ib_gid mgid; mgid 118 drivers/infiniband/ulp/ipoib/ipoib_multicast.c mcast->mcmember.mgid.raw); mgid 121 drivers/infiniband/ulp/ipoib/ipoib_multicast.c ipoib_del_neighs_by_gid(dev, mcast->mcmember.mgid.raw); mgid 159 drivers/infiniband/ulp/ipoib/ipoib_multicast.c static struct ipoib_mcast *__ipoib_mcast_find(struct net_device *dev, void *mgid) mgid 170 drivers/infiniband/ulp/ipoib/ipoib_multicast.c ret = memcmp(mgid, mcast->mcmember.mgid.raw, mgid 195 drivers/infiniband/ulp/ipoib/ipoib_multicast.c ret = memcmp(mcast->mcmember.mgid.raw, tmcast->mcmember.mgid.raw, mgid 227 drivers/infiniband/ulp/ipoib/ipoib_multicast.c if (!memcmp(mcast->mcmember.mgid.raw, priv->dev->broadcast + 4, mgid 260 drivers/infiniband/ulp/ipoib/ipoib_multicast.c mcast->mcmember.mgid.raw); mgid 265 drivers/infiniband/ulp/ipoib/ipoib_multicast.c ret = rn->attach_mcast(dev, priv->ca, &mcast->mcmember.mgid, mgid 270 drivers/infiniband/ulp/ipoib/ipoib_multicast.c mcast->mcmember.mgid.raw); mgid 284 drivers/infiniband/ulp/ipoib/ipoib_multicast.c rdma_ah_set_grh(&av, &mcast->mcmember.mgid, mgid 301 drivers/infiniband/ulp/ipoib/ipoib_multicast.c mcast->mcmember.mgid.raw, mgid 377 drivers/infiniband/ulp/ipoib/ipoib_multicast.c mcast->mcmember.mgid.raw, status); mgid 415 drivers/infiniband/ulp/ipoib/ipoib_multicast.c mcast->mcmember.mgid.raw, status); mgid 419 drivers/infiniband/ulp/ipoib/ipoib_multicast.c mcast->mcmember.mgid.raw, status); mgid 489 drivers/infiniband/ulp/ipoib/ipoib_multicast.c ipoib_dbg_mcast(priv, "joining MGID %pI6\n", mcast->mcmember.mgid.raw); mgid 491 drivers/infiniband/ulp/ipoib/ipoib_multicast.c rec.mgid = mcast->mcmember.mgid; mgid 615 drivers/infiniband/ulp/ipoib/ipoib_multicast.c memcpy(broadcast->mcmember.mgid.raw, priv->dev->broadcast + 4, mgid 709 drivers/infiniband/ulp/ipoib/ipoib_multicast.c mcast->mcmember.mgid.raw); mgid 712 drivers/infiniband/ulp/ipoib/ipoib_multicast.c ret = rn->detach_mcast(dev, priv->ca, &mcast->mcmember.mgid, mgid 727 drivers/infiniband/ulp/ipoib/ipoib_multicast.c void ipoib_check_and_add_mcast_sendonly(struct ipoib_dev_priv *priv, u8 *mgid, mgid 731 drivers/infiniband/ulp/ipoib/ipoib_multicast.c if (*mgid == 0xff) { mgid 732 drivers/infiniband/ulp/ipoib/ipoib_multicast.c struct ipoib_mcast *mcast = __ipoib_mcast_find(priv->dev, mgid); mgid 766 drivers/infiniband/ulp/ipoib/ipoib_multicast.c void *mgid = daddr + 4; mgid 778 drivers/infiniband/ulp/ipoib/ipoib_multicast.c mcast = __ipoib_mcast_find(dev, mgid); mgid 783 drivers/infiniband/ulp/ipoib/ipoib_multicast.c mgid); mgid 795 drivers/infiniband/ulp/ipoib/ipoib_multicast.c memcpy(mcast->mcmember.mgid.raw, mgid, mgid 916 drivers/infiniband/ulp/ipoib/ipoib_multicast.c union ib_gid mgid; mgid 921 drivers/infiniband/ulp/ipoib/ipoib_multicast.c memcpy(mgid.raw, ha->addr + 4, sizeof(mgid)); mgid 923 drivers/infiniband/ulp/ipoib/ipoib_multicast.c mcast = __ipoib_mcast_find(dev, &mgid); mgid 929 drivers/infiniband/ulp/ipoib/ipoib_multicast.c !ib_sa_get_mcmember_rec(priv->ca, priv->port, &mgid, &rec)) { mgid 931 drivers/infiniband/ulp/ipoib/ipoib_multicast.c mgid.raw); mgid 937 drivers/infiniband/ulp/ipoib/ipoib_multicast.c mgid.raw); mgid 947 drivers/infiniband/ulp/ipoib/ipoib_multicast.c nmcast->mcmember.mgid = mgid; mgid 971 drivers/infiniband/ulp/ipoib/ipoib_multicast.c mcast->mcmember.mgid.raw); mgid 1006 drivers/infiniband/ulp/ipoib/ipoib_multicast.c memset(iter->mgid.raw, 0, 16); mgid 1030 drivers/infiniband/ulp/ipoib/ipoib_multicast.c if (memcmp(iter->mgid.raw, mcast->mcmember.mgid.raw, mgid 1032 drivers/infiniband/ulp/ipoib/ipoib_multicast.c iter->mgid = mcast->mcmember.mgid; mgid 1052 drivers/infiniband/ulp/ipoib/ipoib_multicast.c union ib_gid *mgid, mgid 1058 drivers/infiniband/ulp/ipoib/ipoib_multicast.c *mgid = iter->mgid; mgid 39 drivers/infiniband/ulp/ipoib/ipoib_verbs.c union ib_gid *mgid, u16 mlid, int set_qkey, u32 qkey) mgid 69 drivers/infiniband/ulp/ipoib/ipoib_verbs.c ret = ib_attach_mcast(priv->qp, mgid, mlid); mgid 79 drivers/infiniband/ulp/ipoib/ipoib_verbs.c union ib_gid *mgid, u16 mlid) mgid 84 drivers/infiniband/ulp/ipoib/ipoib_verbs.c ret = ib_detach_mcast(priv->qp, mgid, mlid); mgid 701 drivers/net/ethernet/mellanox/mlx4/mcg.c u8 *mgid; mgid 710 drivers/net/ethernet/mellanox/mlx4/mcg.c mgid = mailbox->buf; mgid 712 drivers/net/ethernet/mellanox/mlx4/mcg.c memcpy(mgid, gid, 16); mgid 40 drivers/net/ethernet/mellanox/mlx5/core/mcg.c int mlx5_core_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn) mgid 49 drivers/net/ethernet/mellanox/mlx5/core/mcg.c memcpy(gid, mgid, sizeof(*mgid)); mgid 54 drivers/net/ethernet/mellanox/mlx5/core/mcg.c int mlx5_core_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn) mgid 63 drivers/net/ethernet/mellanox/mlx5/core/mcg.c memcpy(gid, mgid, sizeof(*mgid)); mgid 978 include/linux/mlx5/driver.h int mlx5_core_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn); mgid 979 include/linux/mlx5/driver.h int mlx5_core_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn); mgid 335 include/rdma/ib_sa.h union ib_gid mgid; mgid 537 include/rdma/ib_sa.h union ib_gid *mgid, struct ib_sa_mcmember_rec *rec); mgid 571 include/rdma/rdma_vt.h struct rvt_mcast *rvt_mcast_find(struct rvt_ibport *ibp, union ib_gid *mgid, mgid 510 include/rdma/rdmavt_qp.h union ib_gid mgid;