Home
last modified time | relevance | path

Searched refs:cma_dev (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/drivers/infiniband/core/
Dcma_configfs.c79 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()
[all …]
Dcma.c258 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
[all …]
Dcma_priv.h60 struct cma_device *cma_dev; member