/linux-6.1.9/drivers/infiniband/sw/rxe/ |
D | rxe_mcast.c | 31 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 …]
|
D | rxe_loc.h | 43 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);
|
D | rxe_verbs.h | 351 union ib_gid mgid; member
|
/linux-6.1.9/drivers/infiniband/ulp/ipoib/ |
D | ipoib_multicast.c | 60 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 …]
|
D | ipoib_fs.c | 101 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()
|
D | ipoib_verbs.c | 39 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()
|
D | ipoib.h | 581 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,
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/ |
D | mcg.c | 38 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.1.9/drivers/acpi/ |
D | acpi_memhotplug.c | 57 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()
|
/linux-6.1.9/drivers/infiniband/sw/rdmavt/ |
D | mcast.c | 65 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.1.9/drivers/infiniband/core/ |
D | multicast.c | 130 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 …]
|
D | cma.c | 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 [all …]
|
/linux-6.1.9/drivers/infiniband/hw/mlx4/ |
D | mcg.c | 86 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 …]
|
/linux-6.1.9/drivers/dax/ |
D | kmem.c | 48 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()
|
/linux-6.1.9/drivers/infiniband/hw/mlx5/ |
D | cmd.c | 121 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()
|
D | cmd.h | 52 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,
|
/linux-6.1.9/drivers/base/ |
D | memory.c | 1016 uint32_t mgid; in memory_group_register() local 1028 ret = xa_alloc(&memory_groups, &mgid, new_group, xa_limit_31b, in memory_group_register() 1034 xa_set_mark(&memory_groups, mgid, MEMORY_GROUP_MARK_DYNAMIC); in memory_group_register() 1036 return mgid; in memory_group_register() 1112 int memory_group_unregister(int mgid) in memory_group_unregister() argument 1116 if (mgid < 0) in memory_group_unregister() 1119 group = xa_load(&memory_groups, mgid); in memory_group_unregister() 1124 xa_erase(&memory_groups, mgid); in memory_group_unregister() 1136 struct memory_group *memory_group_find_by_id(int mgid) in memory_group_find_by_id() argument 1138 return xa_load(&memory_groups, mgid); in memory_group_find_by_id()
|
/linux-6.1.9/drivers/infiniband/hw/hfi1/ |
D | ipoib_main.c | 115 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()
|
/linux-6.1.9/include/linux/ |
D | memory.h | 159 extern int memory_group_unregister(int mgid); 160 struct memory_group *memory_group_find_by_id(int mgid);
|
/linux-6.1.9/drivers/infiniband/hw/mthca/ |
D | mthca_mcg.c | 69 u8 *mgid; in find_mgm() local 75 mgid = mailbox->buf; in find_mgm() 77 memcpy(mgid, gid, 16); in find_mgm()
|
/linux-6.1.9/include/rdma/ |
D | ib_sa.h | 309 union ib_gid mgid; member 488 union ib_gid *mgid, struct ib_sa_mcmember_rec *rec);
|
D | rdma_vt.h | 529 struct rvt_mcast *rvt_mcast_find(struct rvt_ibport *ibp, union ib_gid *mgid,
|
/linux-6.1.9/drivers/virtio/ |
D | virtio_mem.c | 148 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()
|
/linux-6.1.9/include/linux/mlx5/ |
D | driver.h | 1054 int mlx5_core_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn); 1055 int mlx5_core_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn);
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx4/ |
D | mcg.c | 701 u8 *mgid; in find_entry() local 710 mgid = mailbox->buf; in find_entry() 712 memcpy(mgid, gid, 16); in find_entry()
|