Searched refs:cma_dev (Results 1 – 3 of 3) sorted by relevance
78 struct cma_device *cma_dev; in cma_configfs_params_get() local83 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() argument96 cma_dev_put(cma_dev); in cma_configfs_params_put()102 struct cma_device *cma_dev; in default_roce_mode_show() local107 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()[all …]
259 void cma_dev_get(struct cma_device *cma_dev) in cma_dev_get() argument261 refcount_inc(&cma_dev->refcount); in cma_dev_get()264 void cma_dev_put(struct cma_device *cma_dev) in cma_dev_put() argument266 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() local278 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[all …]
68 struct cma_device *cma_dev; member