/linux/drivers/infiniband/ulp/ipoib/ |
A D | ipoib_multicast.c | 169 ret = memcmp(mgid, mcast->mcmember.mgid.raw, in __ipoib_mcast_find() 481 rec.mgid = mcast->mcmember.mgid; in ipoib_mcast_join() 769 mgid); in ipoib_mcast_send() 781 memcpy(mcast->mcmember.mgid.raw, mgid, in ipoib_mcast_send() 907 memcpy(mgid.raw, ha->addr + 4, sizeof(mgid)); in ipoib_mcast_restart_task() 917 mgid.raw); in ipoib_mcast_restart_task() 923 mgid.raw); in ipoib_mcast_restart_task() 933 nmcast->mcmember.mgid = mgid; in ipoib_mcast_restart_task() 1016 if (memcmp(iter->mgid.raw, mcast->mcmember.mgid.raw, in ipoib_mcast_iter_next() 1018 iter->mgid = mcast->mcmember.mgid; in ipoib_mcast_iter_next() [all …]
|
A 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()
|
A 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()
|
A D | ipoib.h | 580 union ib_gid *mgid, u16 mlid, int set_qkey, u32 qkey); 582 union ib_gid *mgid, u16 mlid); 584 void ipoib_check_and_add_mcast_sendonly(struct ipoib_dev_priv *priv, u8 *mgid,
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | mcg.c | 39 int mlx5_core_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn) in mlx5_core_attach_mcg() argument 47 memcpy(gid, mgid, sizeof(*mgid)); in mlx5_core_attach_mcg() 52 int mlx5_core_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn) in mlx5_core_detach_mcg() argument 60 memcpy(gid, mgid, sizeof(*mgid)); in mlx5_core_detach_mcg()
|
/linux/drivers/infiniband/sw/rxe/ |
A D | rxe_mcast.c | 13 union ib_gid *mgid) in create_grp() argument 25 rxe_add_key_locked(grp, mgid); in create_grp() 27 err = rxe_mcast_add(rxe, mgid); in create_grp() 37 int rxe_mcast_get_grp(struct rxe_dev *rxe, union ib_gid *mgid, in rxe_mcast_get_grp() argument 50 grp = rxe_pool_get_key_locked(pool, mgid); in rxe_mcast_get_grp() 54 grp = create_grp(rxe, pool, mgid); in rxe_mcast_get_grp() 112 union ib_gid *mgid) in rxe_mcast_drop_grp_elem() argument 117 grp = rxe_pool_get_key(&rxe->mc_grp_pool, mgid); in rxe_mcast_drop_grp_elem() 178 rxe_mcast_delete(rxe, &grp->mgid); in rxe_mc_cleanup()
|
A D | rxe_loc.h | 43 int rxe_mcast_get_grp(struct rxe_dev *rxe, union ib_gid *mgid, 50 union ib_gid *mgid); 109 int rxe_mcast_add(struct rxe_dev *rxe, union ib_gid *mgid); 110 int rxe_mcast_delete(struct rxe_dev *rxe, union ib_gid *mgid);
|
A D | rxe_net.c | 23 int rxe_mcast_add(struct rxe_dev *rxe, union ib_gid *mgid) in rxe_mcast_add() argument 28 ipv6_eth_mc_map((struct in6_addr *)mgid->raw, ll_addr); in rxe_mcast_add() 34 int rxe_mcast_delete(struct rxe_dev *rxe, union ib_gid *mgid) in rxe_mcast_delete() argument 39 ipv6_eth_mc_map((struct in6_addr *)mgid->raw, ll_addr); in rxe_mcast_delete()
|
A D | rxe_verbs.c | 1002 static int rxe_attach_mcast(struct ib_qp *ibqp, union ib_gid *mgid, u16 mlid) in rxe_attach_mcast() argument 1010 err = rxe_mcast_get_grp(rxe, mgid, &grp); in rxe_attach_mcast() 1020 static int rxe_detach_mcast(struct ib_qp *ibqp, union ib_gid *mgid, u16 mlid) in rxe_detach_mcast() argument 1025 return rxe_mcast_drop_grp_elem(rxe, qp, mgid); in rxe_detach_mcast()
|
A D | rxe_verbs.h | 361 union ib_gid mgid; member
|
/linux/drivers/acpi/ |
A 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/drivers/infiniband/sw/rdmavt/ |
A 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/drivers/infiniband/core/ |
A 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() 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 …]
|
A D | cma.c | 71 union ib_gid *mgid); 1847 &mgid); in destroy_mc() 4637 memset(mgid, 0, sizeof *mgid); in cma_set_mgid() 4642 memcpy(mgid, &sin6->sin6_addr, sizeof *mgid); in cma_set_mgid() 4708 memset(mgid, 0, sizeof *mgid); in cma_iboe_set_mgid() 4710 memcpy(mgid, &sin6->sin6_addr, sizeof *mgid); in cma_iboe_set_mgid() 4712 mgid->raw[0] = in cma_iboe_set_mgid() 4714 mgid->raw[1] = in cma_iboe_set_mgid() 4716 mgid->raw[2] = 0; in cma_iboe_set_mgid() 4717 mgid->raw[3] = 0; in cma_iboe_set_mgid() [all …]
|
/linux/drivers/infiniband/hw/mlx4/ |
A 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() 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/drivers/dax/ |
A D | kmem.c | 40 int mgid; member 94 data->mgid = rc; in dev_dax_kmem_probe() 132 rc = add_memory_driver_managed(data->mgid, range.start, in dev_dax_kmem_probe() 153 memory_group_unregister(data->mgid); in dev_dax_kmem_probe() 197 memory_group_unregister(data->mgid); in dev_dax_kmem_remove()
|
/linux/drivers/infiniband/hw/mlx5/ |
A 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()
|
A 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/drivers/base/ |
A D | memory.c | 926 uint32_t mgid; in memory_group_register() local 938 ret = xa_alloc(&memory_groups, &mgid, new_group, xa_limit_31b, in memory_group_register() 944 xa_set_mark(&memory_groups, mgid, MEMORY_GROUP_MARK_DYNAMIC); in memory_group_register() 946 return mgid; in memory_group_register() 1022 int memory_group_unregister(int mgid) in memory_group_unregister() argument 1026 if (mgid < 0) in memory_group_unregister() 1029 group = xa_load(&memory_groups, mgid); in memory_group_unregister() 1034 xa_erase(&memory_groups, mgid); in memory_group_unregister() 1046 struct memory_group *memory_group_find_by_id(int mgid) in memory_group_find_by_id() argument 1048 return xa_load(&memory_groups, mgid); in memory_group_find_by_id()
|
/linux/drivers/infiniband/hw/hfi1/ |
A D | ipoib_main.c | 106 union ib_gid *mgid, in hfi1_ipoib_mcast_attach() argument 127 ret = ib_attach_mcast(&qp->ibqp, mgid, mlid); in hfi1_ipoib_mcast_attach() 138 union ib_gid *mgid, in hfi1_ipoib_mcast_detach() argument 153 ret = ib_detach_mcast(&qp->ibqp, mgid, mlid); in hfi1_ipoib_mcast_detach()
|
/linux/include/linux/ |
A D | memory.h | 152 extern int memory_group_unregister(int mgid); 153 struct memory_group *memory_group_find_by_id(int mgid);
|
/linux/drivers/infiniband/hw/mthca/ |
A 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/include/rdma/ |
A D | ib_sa.h | 308 union ib_gid mgid; member 487 union ib_gid *mgid, struct ib_sa_mcmember_rec *rec);
|
A D | rdma_vt.h | 529 struct rvt_mcast *rvt_mcast_find(struct rvt_ibport *ibp, union ib_gid *mgid,
|
/linux/drivers/virtio/ |
A D | virtio_mem.c | 147 int mgid; member 646 rc = add_memory_driver_managed(vm->mgid, addr, size, vm->resource_name, in virtio_mem_add_memory() 2512 vm->mgid = rc; in virtio_mem_init_hotplug() 2537 memory_group_unregister(vm->mgid); in virtio_mem_init_hotplug() 2824 memory_group_unregister(vm->mgid); in virtio_mem_deinit_hotplug()
|