Home
last modified time | relevance | path

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

12

/linux-6.15/drivers/infiniband/sw/rxe/
H A Drxe_mcast.c93 cmp = memcmp(&tmp->mgid, &mcg->mgid, sizeof(mcg->mgid)); in __rxe_insert_mcg()
124 union ib_gid *mgid) in __rxe_lookup_mcg() argument
136 cmp = memcmp(&mcg->mgid, mgid, sizeof(*mgid)); in __rxe_lookup_mcg()
166 mcg = __rxe_lookup_mcg(rxe, mgid); in rxe_lookup_mcg()
184 memcpy(&mcg->mgid, mgid, sizeof(mcg->mgid)); in __rxe_init_mcg()
215 mcg = rxe_lookup_mcg(rxe, mgid); in rxe_get_mcg()
234 tmp = __rxe_lookup_mcg(rxe, mgid); in rxe_get_mcg()
242 __rxe_init_mcg(rxe, mgid, mcg); in rxe_get_mcg()
246 err = rxe_mcast_add(rxe, mgid); in rxe_get_mcg()
459 mcg = rxe_get_mcg(rxe, mgid); in rxe_attach_mcast()
[all …]
H A Drxe_loc.h37 struct rxe_mcg *rxe_lookup_mcg(struct rxe_dev *rxe, union ib_gid *mgid);
38 int rxe_attach_mcast(struct ib_qp *ibqp, union ib_gid *mgid, u16 mlid);
39 int rxe_detach_mcast(struct ib_qp *ibqp, union ib_gid *mgid, u16 mlid);
H A Drxe_verbs.h389 union ib_gid mgid; member
/linux-6.15/drivers/infiniband/ulp/ipoib/
H A Dipoib_multicast.c169 ret = memcmp(mgid, mcast->mcmember.mgid.raw, in __ipoib_mcast_find()
480 rec.mgid = mcast->mcmember.mgid; in ipoib_mcast_join()
765 mgid); in ipoib_mcast_send()
777 memcpy(mcast->mcmember.mgid.raw, mgid, in ipoib_mcast_send()
903 memcpy(mgid.raw, ha->addr + 4, sizeof(mgid)); in ipoib_mcast_restart_task()
913 mgid.raw); in ipoib_mcast_restart_task()
919 mgid.raw); in ipoib_mcast_restart_task()
929 nmcast->mcmember.mgid = mgid; in ipoib_mcast_restart_task()
1012 if (memcmp(iter->mgid.raw, mcast->mcmember.mgid.raw, in ipoib_mcast_iter_next()
1014 iter->mgid = mcast->mcmember.mgid; in ipoib_mcast_iter_next()
[all …]
H A 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()
H A 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()
H A Dipoib.h582 union ib_gid *mgid, u16 mlid, int set_qkey, u32 qkey);
584 union ib_gid *mgid, u16 mlid);
586 void ipoib_check_and_add_mcast_sendonly(struct ipoib_dev_priv *priv, u8 *mgid,
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/
H A 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()
/linux-6.15/drivers/acpi/
H A 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()
215 result = __add_memory(mgid, info->start_addr, info->length, in acpi_memory_enable_device()
276 if (mem_device->mgid >= 0) in acpi_memory_device_free()
277 memory_group_unregister(mem_device->mgid); in acpi_memory_device_free()
299 mem_device->mgid = -1; in acpi_memory_device_add()
/linux-6.15/drivers/infiniband/sw/rdmavt/
H A 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()
/linux-6.15/drivers/infiniband/core/
H A 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()
558 union ib_gid *mgid, gfp_t gfp_mask) in acquire_group() argument
567 group = mcast_find(port, mgid); in acquire_group()
579 group->rec.mgid = *mgid; in acquire_group()
639 &rec->mgid, gfp_mask); in ib_sa_join_multicast()
[all …]
H A Dcma.c4904 memset(mgid, 0, sizeof *mgid); in cma_set_mgid()
4909 memcpy(mgid, &sin6->sin6_addr, sizeof *mgid); in cma_set_mgid()
4977 memset(mgid, 0, sizeof *mgid); in cma_iboe_set_mgid()
4979 memcpy(mgid, &sin6->sin6_addr, sizeof *mgid); in cma_iboe_set_mgid()
4981 mgid->raw[0] = in cma_iboe_set_mgid()
4983 mgid->raw[1] = in cma_iboe_set_mgid()
4985 mgid->raw[2] = 0; in cma_iboe_set_mgid()
4986 mgid->raw[3] = 0; in cma_iboe_set_mgid()
4987 mgid->raw[4] = 0; in cma_iboe_set_mgid()
4988 mgid->raw[5] = 0; in cma_iboe_set_mgid()
[all …]
/linux-6.15/drivers/infiniband/hw/mlx4/
H A 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()
758 group->rec.mgid = *new_mgid; in search_relocate_mgid0_group()
811 union ib_gid *mgid, int create) in acquire_group() argument
817 is_mgid0 = !memcmp(&mgid0, mgid, sizeof mgid0); in acquire_group()
819 group = mcast_find(ctx, mgid); in acquire_group()
832 group->rec.mgid = *mgid; in acquire_group()
[all …]
/linux-6.15/drivers/dax/
H A Dkmem.c49 int mgid; member
128 data->mgid = rc; in dev_dax_kmem_probe()
170 rc = add_memory_driver_managed(data->mgid, range.start, in dev_dax_kmem_probe()
191 memory_group_unregister(data->mgid); in dev_dax_kmem_probe()
238 memory_group_unregister(data->mgid); in dev_dax_kmem_remove()
/linux-6.15/drivers/infiniband/hw/mlx5/
H A Dcmd.c128 int mlx5_cmd_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, in mlx5_cmd_attach_mcg() argument
138 memcpy(gid, mgid, sizeof(*mgid)); in mlx5_cmd_attach_mcg()
142 int mlx5_cmd_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, in mlx5_cmd_detach_mcg() argument
152 memcpy(gid, mgid, sizeof(*mgid)); in mlx5_cmd_detach_mcg()
H A Dcmd.h51 int mlx5_cmd_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid,
53 int mlx5_cmd_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid,
/linux-6.15/drivers/infiniband/hw/hfi1/
H A Dipoib_main.c103 union ib_gid *mgid, in hfi1_ipoib_mcast_attach() argument
124 ret = ib_attach_mcast(&qp->ibqp, mgid, mlid); in hfi1_ipoib_mcast_attach()
135 union ib_gid *mgid, in hfi1_ipoib_mcast_detach() argument
150 ret = ib_detach_mcast(&qp->ibqp, mgid, mlid); in hfi1_ipoib_mcast_detach()
/linux-6.15/drivers/base/
H A Dmemory.c1065 uint32_t mgid; in memory_group_register() local
1077 ret = xa_alloc(&memory_groups, &mgid, new_group, xa_limit_31b, in memory_group_register()
1083 xa_set_mark(&memory_groups, mgid, MEMORY_GROUP_MARK_DYNAMIC); in memory_group_register()
1085 return mgid; in memory_group_register()
1161 int memory_group_unregister(int mgid) in memory_group_unregister() argument
1165 if (mgid < 0) in memory_group_unregister()
1168 group = xa_load(&memory_groups, mgid); in memory_group_unregister()
1173 xa_erase(&memory_groups, mgid); in memory_group_unregister()
1185 struct memory_group *memory_group_find_by_id(int mgid) in memory_group_find_by_id() argument
1187 return xa_load(&memory_groups, mgid); in memory_group_find_by_id()
/linux-6.15/include/linux/
H A Dmemory.h169 extern int memory_group_unregister(int mgid);
170 struct memory_group *memory_group_find_by_id(int mgid);
/linux-6.15/drivers/infiniband/hw/mthca/
H A Dmthca_mcg.c69 u8 *mgid; in find_mgm() local
75 mgid = mailbox->buf; in find_mgm()
77 memcpy(mgid, gid, 16); in find_mgm()
/linux-6.15/include/rdma/
H A Dib_sa.h309 union ib_gid mgid; member
488 union ib_gid *mgid, struct ib_sa_mcmember_rec *rec);
H A Drdma_vt.h529 struct rvt_mcast *rvt_mcast_find(struct rvt_ibport *ibp, union ib_gid *mgid,
/linux-6.15/drivers/virtio/
H A Dvirtio_mem.c147 int mgid; member
656 rc = add_memory_driver_managed(vm->mgid, addr, size, vm->resource_name, in virtio_mem_add_memory()
2626 vm->mgid = rc; in virtio_mem_init_hotplug()
2660 memory_group_unregister(vm->mgid); in virtio_mem_init_hotplug()
3038 memory_group_unregister(vm->mgid); in virtio_mem_deinit_hotplug()
/linux-6.15/include/linux/mlx5/
H A Ddriver.h1040 int mlx5_core_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn);
1041 int mlx5_core_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn);
/linux-6.15/drivers/net/ethernet/mellanox/mlx4/
H A Dmcg.c701 u8 *mgid; in find_entry() local
710 mgid = mailbox->buf; in find_entry()
712 memcpy(mgid, gid, 16); in find_entry()

12