Searched refs:cma_dev (Results 1 – 4 of 4) sorted by relevance
/Linux-v4.19/drivers/infiniband/core/ |
D | cma_configfs.c | 76 struct cma_device *cma_dev; in cma_configfs_params_get() local 81 cma_dev = cma_enum_devices_by_ibdev(filter_by_name, in cma_configfs_params_get() 83 if (!cma_dev) in cma_configfs_params_get() 86 *pcma_dev = cma_dev; in cma_configfs_params_get() 92 static void cma_configfs_params_put(struct cma_device *cma_dev) in cma_configfs_params_put() argument 94 cma_deref_dev(cma_dev); in cma_configfs_params_put() 100 struct cma_device *cma_dev; in default_roce_mode_show() local 105 ret = cma_configfs_params_get(item, &cma_dev, &group); in default_roce_mode_show() 109 gid_type = cma_get_default_gid_type(cma_dev, group->port_num); in default_roce_mode_show() 110 cma_configfs_params_put(cma_dev); in default_roce_mode_show() [all …]
|
D | cma.c | 275 void cma_ref_dev(struct cma_device *cma_dev) in cma_ref_dev() argument 277 atomic_inc(&cma_dev->refcount); in cma_ref_dev() 283 struct cma_device *cma_dev; in cma_enum_devices_by_ibdev() local 288 list_for_each_entry(cma_dev, &dev_list, list) in cma_enum_devices_by_ibdev() 289 if (filter(cma_dev->device, cookie)) { in cma_enum_devices_by_ibdev() 290 found_cma_dev = cma_dev; in cma_enum_devices_by_ibdev() 300 int cma_get_default_gid_type(struct cma_device *cma_dev, in cma_get_default_gid_type() argument 303 if (!rdma_is_port_valid(cma_dev->device, port)) in cma_get_default_gid_type() 306 return cma_dev->default_gid_type[port - rdma_start_port(cma_dev->device)]; in cma_get_default_gid_type() 309 int cma_set_default_gid_type(struct cma_device *cma_dev, in cma_set_default_gid_type() argument [all …]
|
D | core_priv.h | 71 void cma_ref_dev(struct cma_device *cma_dev); 72 void cma_deref_dev(struct cma_device *cma_dev); 76 int cma_get_default_gid_type(struct cma_device *cma_dev, 78 int cma_set_default_gid_type(struct cma_device *cma_dev, 81 int cma_get_default_roce_tos(struct cma_device *cma_dev, unsigned int port); 84 struct ib_device *cma_get_ib_dev(struct cma_device *cma_dev);
|
D | cma_priv.h | 60 struct cma_device *cma_dev; member
|