Lines Matching refs:mgid

72 static void cma_iboe_set_mgid(struct sockaddr *addr, union ib_gid *mgid,
448 static int cma_igmp_send(struct net_device *ndev, union ib_gid *mgid, bool join) in cma_igmp_send() argument
458 *(__be32 *)(mgid->raw + 12)); in cma_igmp_send()
461 *(__be32 *)(mgid->raw + 12)); in cma_igmp_send()
642 ib_addr_get_mgid(&id_priv->id.route.addr.dev_addr, &rec.mgid); in cma_set_qkey()
644 id_priv->id.port_num, &rec.mgid, in cma_set_qkey()
1973 union ib_gid mgid; in destroy_mc() local
1979 cma_iboe_set_mgid((struct sockaddr *)&mc->addr, &mgid, in destroy_mc()
1981 cma_igmp_send(ndev, &mgid, false); in destroy_mc()
4819 struct sockaddr *addr, union ib_gid *mgid) in cma_set_mgid() argument
4827 memset(mgid, 0, sizeof *mgid); in cma_set_mgid()
4832 memcpy(mgid, &sin6->sin6_addr, sizeof *mgid); in cma_set_mgid()
4834 memcpy(mgid, &((struct sockaddr_ib *) addr)->sib_addr, sizeof *mgid); in cma_set_mgid()
4839 *mgid = *(union ib_gid *) (mc_map + 4); in cma_set_mgid()
4844 *mgid = *(union ib_gid *) (mc_map + 4); in cma_set_mgid()
4856 ib_addr_get_mgid(dev_addr, &rec.mgid); in cma_join_ib_multicast()
4858 &rec.mgid, &rec); in cma_join_ib_multicast()
4866 cma_set_mgid(id_priv, (struct sockaddr *) &mc->addr, &rec.mgid); in cma_join_ib_multicast()
4891 static void cma_iboe_set_mgid(struct sockaddr *addr, union ib_gid *mgid, in cma_iboe_set_mgid() argument
4898 memset(mgid, 0, sizeof *mgid); in cma_iboe_set_mgid()
4900 memcpy(mgid, &sin6->sin6_addr, sizeof *mgid); in cma_iboe_set_mgid()
4902 mgid->raw[0] = in cma_iboe_set_mgid()
4904 mgid->raw[1] = in cma_iboe_set_mgid()
4906 mgid->raw[2] = 0; in cma_iboe_set_mgid()
4907 mgid->raw[3] = 0; in cma_iboe_set_mgid()
4908 mgid->raw[4] = 0; in cma_iboe_set_mgid()
4909 mgid->raw[5] = 0; in cma_iboe_set_mgid()
4910 mgid->raw[6] = 0; in cma_iboe_set_mgid()
4911 mgid->raw[7] = 0; in cma_iboe_set_mgid()
4912 mgid->raw[8] = 0; in cma_iboe_set_mgid()
4913 mgid->raw[9] = 0; in cma_iboe_set_mgid()
4914 mgid->raw[10] = 0xff; in cma_iboe_set_mgid()
4915 mgid->raw[11] = 0xff; in cma_iboe_set_mgid()
4916 *(__be32 *)(&mgid->raw[12]) = sin->sin_addr.s_addr; in cma_iboe_set_mgid()
4938 cma_iboe_set_mgid(addr, &ib.rec.mgid, gid_type); in cma_iboe_join_multicast()
4957 err = cma_igmp_send(ndev, &ib.rec.mgid, in cma_iboe_join_multicast()