Home
last modified time | relevance | path

Searched refs:mgid (Results 1 – 23 of 23) sorted by relevance

/drivers/infiniband/sw/rxe/
Drxe_mcast.c31 static int rxe_mcast_add(struct rxe_dev *rxe, union ib_gid *mgid) in rxe_mcast_add() argument
35 ipv6_eth_mc_map((struct in6_addr *)mgid->raw, ll_addr); in rxe_mcast_add()
47 static int rxe_mcast_del(struct rxe_dev *rxe, union ib_gid *mgid) in rxe_mcast_del() argument
51 ipv6_eth_mc_map((struct in6_addr *)mgid->raw, ll_addr); in rxe_mcast_del()
75 cmp = memcmp(&tmp->mgid, &mcg->mgid, sizeof(mcg->mgid)); in __rxe_insert_mcg()
106 union ib_gid *mgid) in __rxe_lookup_mcg() argument
118 cmp = memcmp(&mcg->mgid, mgid, sizeof(*mgid)); in __rxe_lookup_mcg()
143 struct rxe_mcg *rxe_lookup_mcg(struct rxe_dev *rxe, union ib_gid *mgid) in rxe_lookup_mcg() argument
148 mcg = __rxe_lookup_mcg(rxe, mgid); in rxe_lookup_mcg()
162 static void __rxe_init_mcg(struct rxe_dev *rxe, union ib_gid *mgid, in __rxe_init_mcg() argument
[all …]
Drxe_loc.h43 struct rxe_mcg *rxe_lookup_mcg(struct rxe_dev *rxe, union ib_gid *mgid);
44 int rxe_attach_mcast(struct ib_qp *ibqp, union ib_gid *mgid, u16 mlid);
45 int rxe_detach_mcast(struct ib_qp *ibqp, union ib_gid *mgid, u16 mlid);
Drxe_verbs.h351 union ib_gid mgid; member
/drivers/infiniband/ulp/ipoib/
Dipoib_multicast.c60 union ib_gid mgid; member
118 mcast->mcmember.mgid.raw); in ipoib_mcast_free()
121 ipoib_del_neighs_by_gid(dev, mcast->mcmember.mgid.raw); in ipoib_mcast_free()
158 static struct ipoib_mcast *__ipoib_mcast_find(struct net_device *dev, void *mgid) in __ipoib_mcast_find() argument
169 ret = memcmp(mgid, mcast->mcmember.mgid.raw, in __ipoib_mcast_find()
194 ret = memcmp(mcast->mcmember.mgid.raw, tmcast->mcmember.mgid.raw, in __ipoib_mcast_add()
227 if (!memcmp(mcast->mcmember.mgid.raw, priv->dev->broadcast + 4, in ipoib_mcast_join_finish()
259 mcast->mcmember.mgid.raw); in ipoib_mcast_join_finish()
264 ret = rn->attach_mcast(dev, priv->ca, &mcast->mcmember.mgid, in ipoib_mcast_join_finish()
269 mcast->mcmember.mgid.raw); in ipoib_mcast_join_finish()
[all …]
Dipoib_fs.c101 union ib_gid mgid; in ipoib_mcg_seq_show() local
108 ipoib_mcast_iter_read(iter, &mgid, &created, &queuelen, in ipoib_mcg_seq_show()
111 format_gid(&mgid, gid_buf); in ipoib_mcg_seq_show()
Dipoib_verbs.c39 union ib_gid *mgid, u16 mlid, int set_qkey, u32 qkey) in ipoib_mcast_attach() argument
69 ret = ib_attach_mcast(priv->qp, mgid, mlid); in ipoib_mcast_attach()
79 union ib_gid *mgid, u16 mlid) in ipoib_mcast_detach() argument
84 ret = ib_detach_mcast(priv->qp, mgid, mlid); in ipoib_mcast_detach()
Dipoib.h581 union ib_gid *mgid, u16 mlid, int set_qkey, u32 qkey);
583 union ib_gid *mgid, u16 mlid);
585 void ipoib_check_and_add_mcast_sendonly(struct ipoib_dev_priv *priv, u8 *mgid,
/drivers/net/ethernet/mellanox/mlx5/core/
Dmcg.c38 int mlx5_core_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn) in mlx5_core_attach_mcg() argument
46 memcpy(gid, mgid, sizeof(*mgid)); in mlx5_core_attach_mcg()
51 int mlx5_core_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn) in mlx5_core_detach_mcg() argument
59 memcpy(gid, mgid, sizeof(*mgid)); in mlx5_core_detach_mcg()
/drivers/acpi/
Dacpi_memhotplug.c57 int mgid; member
177 int node, mgid; in acpi_memory_enable_device() local
195 mgid = memory_group_register_static(node, PFN_UP(total_length)); in acpi_memory_enable_device()
196 if (mgid < 0) in acpi_memory_enable_device()
197 return mgid; in acpi_memory_enable_device()
198 mem_device->mgid = mgid; in acpi_memory_enable_device()
216 result = __add_memory(mgid, info->start_addr, info->length, in acpi_memory_enable_device()
277 if (mem_device->mgid >= 0) in acpi_memory_device_free()
278 memory_group_unregister(mem_device->mgid); in acpi_memory_device_free()
300 mem_device->mgid = -1; in acpi_memory_device_add()
/drivers/infiniband/sw/rdmavt/
Dmcast.c65 static struct rvt_mcast *rvt_mcast_alloc(union ib_gid *mgid, u16 lid) in rvt_mcast_alloc() argument
73 mcast->mcast_addr.mgid = *mgid; in rvt_mcast_alloc()
106 struct rvt_mcast *rvt_mcast_find(struct rvt_ibport *ibp, union ib_gid *mgid, in rvt_mcast_find() argument
121 ret = memcmp(mgid->raw, mcast->mcast_addr.mgid.raw, in rvt_mcast_find()
122 sizeof(*mgid)); in rvt_mcast_find()
167 ret = memcmp(mcast->mcast_addr.mgid.raw, in rvt_mcast_add()
168 tmcast->mcast_addr.mgid.raw, in rvt_mcast_add()
169 sizeof(mcast->mcast_addr.mgid)); in rvt_mcast_add()
326 ret = memcmp(gid->raw, mcast->mcast_addr.mgid.raw, in rvt_detach_mcast()
/drivers/infiniband/core/
Dmulticast.c130 union ib_gid *mgid) in mcast_find() argument
138 ret = memcmp(mgid->raw, group->rec.mgid.raw, sizeof *mgid); in mcast_find()
163 ret = memcmp(group->rec.mgid.raw, cur_group->rec.mgid.raw, in mcast_insert()
164 sizeof group->rec.mgid); in mcast_insert()
531 mgids_changed = memcmp(&rec->mgid, &group->rec.mgid, in join_handler()
532 sizeof(group->rec.mgid)); in join_handler()
536 is_mgid0 = !memcmp(&mgid0, &group->rec.mgid, in join_handler()
558 union ib_gid *mgid, gfp_t gfp_mask) in acquire_group() argument
564 is_mgid0 = !memcmp(&mgid0, mgid, sizeof mgid0); in acquire_group()
567 group = mcast_find(port, mgid); in acquire_group()
[all …]
Dcma.c72 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()
638 ib_addr_get_mgid(&id_priv->id.route.addr.dev_addr, &rec.mgid); in cma_set_default_qkey()
640 id_priv->id.port_num, &rec.mgid, in cma_set_default_qkey()
1979 union ib_gid mgid; in destroy_mc() local
1985 cma_iboe_set_mgid((struct sockaddr *)&mc->addr, &mgid, in destroy_mc()
1987 cma_igmp_send(ndev, &mgid, false); in destroy_mc()
4829 struct sockaddr *addr, union ib_gid *mgid) in cma_set_mgid() argument
[all …]
Dsa_query.c429 { MCMEMBER_REC_FIELD(mgid),
/drivers/infiniband/hw/mlx4/
Dmcg.c86 union ib_gid mgid; member
163 union ib_gid *mgid) in mcast_find() argument
171 ret = memcmp(mgid->raw, group->rec.mgid.raw, sizeof *mgid); in mcast_find()
195 ret = memcmp(group->rec.mgid.raw, cur_group->rec.mgid.raw, in mcast_insert()
196 sizeof group->rec.mgid); in mcast_insert()
455 nzgroup = memcmp(&group->rec.mgid, &mgid0, sizeof mgid0); in release_group()
556 if (memcmp(&group->rec.mgid, &mgid0, sizeof mgid0)) { in mlx4_ib_mcg_timeout_handler()
758 group->rec.mgid = *new_mgid; in search_relocate_mgid0_group()
760 be64_to_cpu(group->rec.mgid.global.subnet_prefix), in search_relocate_mgid0_group()
761 be64_to_cpu(group->rec.mgid.global.interface_id)); in search_relocate_mgid0_group()
[all …]
/drivers/dax/
Dkmem.c48 int mgid; member
105 data->mgid = rc; in dev_dax_kmem_probe()
143 rc = add_memory_driver_managed(data->mgid, range.start, in dev_dax_kmem_probe()
164 memory_group_unregister(data->mgid); in dev_dax_kmem_probe()
211 memory_group_unregister(data->mgid); in dev_dax_kmem_remove()
/drivers/infiniband/hw/mlx5/
Dcmd.c121 int mlx5_cmd_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, in mlx5_cmd_attach_mcg() argument
131 memcpy(gid, mgid, sizeof(*mgid)); in mlx5_cmd_attach_mcg()
135 int mlx5_cmd_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, in mlx5_cmd_detach_mcg() argument
145 memcpy(gid, mgid, sizeof(*mgid)); in mlx5_cmd_detach_mcg()
Dcmd.h52 int mlx5_cmd_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid,
54 int mlx5_cmd_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid,
/drivers/base/
Dmemory.c1028 uint32_t mgid; in memory_group_register() local
1040 ret = xa_alloc(&memory_groups, &mgid, new_group, xa_limit_31b, in memory_group_register()
1046 xa_set_mark(&memory_groups, mgid, MEMORY_GROUP_MARK_DYNAMIC); in memory_group_register()
1048 return mgid; in memory_group_register()
1124 int memory_group_unregister(int mgid) in memory_group_unregister() argument
1128 if (mgid < 0) in memory_group_unregister()
1131 group = xa_load(&memory_groups, mgid); in memory_group_unregister()
1136 xa_erase(&memory_groups, mgid); in memory_group_unregister()
1148 struct memory_group *memory_group_find_by_id(int mgid) in memory_group_find_by_id() argument
1150 return xa_load(&memory_groups, mgid); in memory_group_find_by_id()
/drivers/infiniband/hw/hfi1/
Dipoib_main.c115 union ib_gid *mgid, in hfi1_ipoib_mcast_attach() argument
136 ret = ib_attach_mcast(&qp->ibqp, mgid, mlid); in hfi1_ipoib_mcast_attach()
147 union ib_gid *mgid, in hfi1_ipoib_mcast_detach() argument
162 ret = ib_detach_mcast(&qp->ibqp, mgid, mlid); in hfi1_ipoib_mcast_detach()
/drivers/infiniband/hw/mthca/
Dmthca_mcg.c69 u8 *mgid; in find_mgm() local
75 mgid = mailbox->buf; in find_mgm()
77 memcpy(mgid, gid, 16); in find_mgm()
/drivers/virtio/
Dvirtio_mem.c148 int mgid; member
647 rc = add_memory_driver_managed(vm->mgid, addr, size, vm->resource_name, in virtio_mem_add_memory()
2545 vm->mgid = rc; in virtio_mem_init_hotplug()
2570 memory_group_unregister(vm->mgid); in virtio_mem_init_hotplug()
2857 memory_group_unregister(vm->mgid); in virtio_mem_deinit_hotplug()
/drivers/net/ethernet/mellanox/mlx4/
Dmcg.c701 u8 *mgid; in find_entry() local
710 mgid = mailbox->buf; in find_entry()
712 memcpy(mgid, gid, 16); in find_entry()
/drivers/infiniband/hw/ocrdma/
Docrdma_sli.h1630 u8 mgid[16]; member
1644 u8 mgid[16]; member