/kernel/linux/linux-5.10/drivers/infiniband/core/ |
H A D | cma_configfs.c | 79 struct cma_device *cma_dev; in cma_configfs_params_get() local 84 cma_dev = cma_enum_devices_by_ibdev(filter_by_name, in cma_configfs_params_get() 86 if (!cma_dev) in cma_configfs_params_get() 89 *pcma_dev = cma_dev; in cma_configfs_params_get() 95 static void cma_configfs_params_put(struct cma_device *cma_dev) in cma_configfs_params_put() argument 97 cma_dev_put(cma_dev); in cma_configfs_params_put() 103 struct cma_device *cma_dev; in default_roce_mode_show() local 108 ret = cma_configfs_params_get(item, &cma_dev, &group); in default_roce_mode_show() 112 gid_type = cma_get_default_gid_type(cma_dev, group->port_num); in default_roce_mode_show() 113 cma_configfs_params_put(cma_dev); in default_roce_mode_show() 124 struct cma_device *cma_dev; default_roce_mode_store() local 150 struct cma_device *cma_dev; default_roce_tos_show() local 168 struct cma_device *cma_dev; default_roce_tos_store() local 200 make_cma_ports(struct cma_dev_group *cma_dev_group, struct cma_device *cma_dev) make_cma_ports() argument 290 struct cma_device *cma_dev = cma_enum_devices_by_ibdev(filter_by_name, make_cma_dev() local [all...] |
H A D | cma.c | 258 void cma_dev_get(struct cma_device *cma_dev) in cma_dev_get() argument 260 refcount_inc(&cma_dev->refcount); in cma_dev_get() 263 void cma_dev_put(struct cma_device *cma_dev) in cma_dev_put() argument 265 if (refcount_dec_and_test(&cma_dev->refcount)) in cma_dev_put() 266 complete(&cma_dev->comp); in cma_dev_put() 272 struct cma_device *cma_dev; in cma_enum_devices_by_ibdev() local 277 list_for_each_entry(cma_dev, &dev_list, list) in cma_enum_devices_by_ibdev() 278 if (filter(cma_dev->device, cookie)) { in cma_enum_devices_by_ibdev() 279 found_cma_dev = cma_dev; in cma_enum_devices_by_ibdev() 289 int cma_get_default_gid_type(struct cma_device *cma_dev, in cma_get_default_gid_type() argument 298 cma_set_default_gid_type(struct cma_device *cma_dev, unsigned int port, enum ib_gid_type default_gid_type) cma_set_default_gid_type() argument 322 cma_get_default_roce_tos(struct cma_device *cma_dev, unsigned int port) cma_get_default_roce_tos() argument 330 cma_set_default_roce_tos(struct cma_device *cma_dev, unsigned int port, u8 default_roce_tos) cma_set_default_roce_tos() argument 341 cma_get_ib_dev(struct cma_device *cma_dev) cma_get_ib_dev() argument 457 _cma_attach_to_dev(struct rdma_id_private *id_priv, struct cma_device *cma_dev) _cma_attach_to_dev() argument 470 cma_attach_to_dev(struct rdma_id_private *id_priv, struct cma_device *cma_dev) cma_attach_to_dev() argument 619 struct cma_device *cma_dev; cma_acquire_dev_by_src_ip() local 711 struct cma_device *cma_dev; cma_iw_acquire_dev() local 771 struct cma_device *cma_dev, *cur_dev; cma_resolve_ib_dev() local 2540 cma_listen_on_dev(struct rdma_id_private *id_priv, struct cma_device *cma_dev, struct rdma_id_private **to_destroy) cma_listen_on_dev() argument 2589 struct cma_device *cma_dev; cma_listen_on_all() local 3170 struct cma_device *cma_dev, *cur_dev; cma_bind_loopback() local 4880 struct cma_device *cma_dev; cma_netdev_callback() local 4947 cma_process_remove(struct cma_device *cma_dev) cma_process_remove() argument 4972 struct cma_device *cma_dev; cma_add_one() local 5045 struct cma_device *cma_dev = client_data; cma_remove_one() local [all...] |
H A D | cma_priv.h | 60 struct cma_device *cma_dev; member
|
/kernel/linux/linux-6.6/drivers/infiniband/core/ |
H A D | cma_configfs.c | 78 struct cma_device *cma_dev; in cma_configfs_params_get() local 83 cma_dev = cma_enum_devices_by_ibdev(filter_by_name, in cma_configfs_params_get() 85 if (!cma_dev) in cma_configfs_params_get() 88 *pcma_dev = cma_dev; in cma_configfs_params_get() 94 static void cma_configfs_params_put(struct cma_device *cma_dev) in cma_configfs_params_put() argument 96 cma_dev_put(cma_dev); in cma_configfs_params_put() 102 struct cma_device *cma_dev; in default_roce_mode_show() local 107 ret = cma_configfs_params_get(item, &cma_dev, &group); in default_roce_mode_show() 111 gid_type = cma_get_default_gid_type(cma_dev, group->port_num); in default_roce_mode_show() 112 cma_configfs_params_put(cma_dev); in default_roce_mode_show() 123 struct cma_device *cma_dev; default_roce_mode_store() local 149 struct cma_device *cma_dev; default_roce_tos_show() local 167 struct cma_device *cma_dev; default_roce_tos_store() local 199 make_cma_ports(struct cma_dev_group *cma_dev_group, struct cma_device *cma_dev) make_cma_ports() argument 281 struct cma_device *cma_dev = cma_enum_devices_by_ibdev(filter_by_name, make_cma_dev() local [all...] |
H A D | cma.c | 259 void cma_dev_get(struct cma_device *cma_dev) in cma_dev_get() argument 261 refcount_inc(&cma_dev->refcount); in cma_dev_get() 264 void cma_dev_put(struct cma_device *cma_dev) in cma_dev_put() argument 266 if (refcount_dec_and_test(&cma_dev->refcount)) in cma_dev_put() 267 complete(&cma_dev->comp); in cma_dev_put() 273 struct cma_device *cma_dev; in cma_enum_devices_by_ibdev() local 278 list_for_each_entry(cma_dev, &dev_list, list) in cma_enum_devices_by_ibdev() 279 if (filter(cma_dev->device, cookie)) { in cma_enum_devices_by_ibdev() 280 found_cma_dev = cma_dev; in cma_enum_devices_by_ibdev() 290 int cma_get_default_gid_type(struct cma_device *cma_dev, in cma_get_default_gid_type() argument 299 cma_set_default_gid_type(struct cma_device *cma_dev, u32 port, enum ib_gid_type default_gid_type) cma_set_default_gid_type() argument 323 cma_get_default_roce_tos(struct cma_device *cma_dev, u32 port) cma_get_default_roce_tos() argument 331 cma_set_default_roce_tos(struct cma_device *cma_dev, u32 port, u8 default_roce_tos) cma_set_default_roce_tos() argument 342 cma_get_ib_dev(struct cma_device *cma_dev) cma_get_ib_dev() argument 586 _cma_attach_to_dev(struct rdma_id_private *id_priv, struct cma_device *cma_dev) _cma_attach_to_dev() argument 599 cma_attach_to_dev(struct rdma_id_private *id_priv, struct cma_device *cma_dev) cma_attach_to_dev() argument 759 struct cma_device *cma_dev; cma_acquire_dev_by_src_ip() local 851 struct cma_device *cma_dev; cma_iw_acquire_dev() local 911 struct cma_device *cma_dev, *cur_dev; cma_resolve_ib_dev() local 2691 cma_listen_on_dev(struct rdma_id_private *id_priv, struct cma_device *cma_dev, struct rdma_id_private **to_destroy) cma_listen_on_dev() argument 2740 struct cma_device *cma_dev; cma_listen_on_all() local 3416 struct cma_device *cma_dev, *cur_dev; cma_bind_loopback() local 5125 struct cma_device *cma_dev; cma_netdev_callback() local 5269 cma_process_remove(struct cma_device *cma_dev) cma_process_remove() argument 5305 struct cma_device *cma_dev; cma_add_one() local 5381 struct cma_device *cma_dev = client_data; cma_remove_one() local [all...] |
H A D | cma_priv.h | 68 struct cma_device *cma_dev; member
|