Lines Matching refs:cma_dev

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; in default_roce_mode_store() local
128 ret = cma_configfs_params_get(item, &cma_dev, &group); in default_roce_mode_store()
134 cma_configfs_params_put(cma_dev); in default_roce_mode_store()
138 ret = cma_set_default_gid_type(cma_dev, group->port_num, gid_type); in default_roce_mode_store()
140 cma_configfs_params_put(cma_dev); in default_roce_mode_store()
149 struct cma_device *cma_dev; in default_roce_tos_show() local
154 ret = cma_configfs_params_get(item, &cma_dev, &group); in default_roce_tos_show()
158 tos = cma_get_default_roce_tos(cma_dev, group->port_num); in default_roce_tos_show()
159 cma_configfs_params_put(cma_dev); in default_roce_tos_show()
167 struct cma_device *cma_dev; in default_roce_tos_store() local
176 ret = cma_configfs_params_get(item, &cma_dev, &group); in default_roce_tos_store()
180 ret = cma_set_default_roce_tos(cma_dev, group->port_num, tos); in default_roce_tos_store()
181 cma_configfs_params_put(cma_dev); in default_roce_tos_store()
200 struct cma_device *cma_dev) in make_cma_ports() argument
207 ibdev = cma_get_ib_dev(cma_dev); in make_cma_ports()
281 struct cma_device *cma_dev = cma_enum_devices_by_ibdev(filter_by_name, in make_cma_dev() local
285 if (!cma_dev) in make_cma_dev()
300 err = make_cma_ports(cma_dev_group, cma_dev); in make_cma_dev()
309 cma_dev_put(cma_dev); in make_cma_dev()
313 if (cma_dev) in make_cma_dev()
314 cma_dev_put(cma_dev); in make_cma_dev()