Searched refs:cma_dev (Results 1 – 3 of 3) sorted by relevance
| /Linux-v5.4/drivers/infiniband/core/ |
| 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_deref_dev(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() [all …]
|
| D | cma.c | 276 void cma_ref_dev(struct cma_device *cma_dev) in cma_ref_dev() argument 278 atomic_inc(&cma_dev->refcount); in cma_ref_dev() 284 struct cma_device *cma_dev; in cma_enum_devices_by_ibdev() local 289 list_for_each_entry(cma_dev, &dev_list, list) in cma_enum_devices_by_ibdev() 290 if (filter(cma_dev->device, cookie)) { in cma_enum_devices_by_ibdev() 291 found_cma_dev = cma_dev; in cma_enum_devices_by_ibdev() 301 int cma_get_default_gid_type(struct cma_device *cma_dev, in cma_get_default_gid_type() argument 304 if (!rdma_is_port_valid(cma_dev->device, port)) in cma_get_default_gid_type() 307 return cma_dev->default_gid_type[port - rdma_start_port(cma_dev->device)]; in cma_get_default_gid_type() 310 int cma_set_default_gid_type(struct cma_device *cma_dev, in cma_set_default_gid_type() argument [all …]
|
| D | cma_priv.h | 60 struct cma_device *cma_dev; member
|