Lines Matching refs:conf_dev

160 	struct device *conf_dev;  in idxd_setup_wqs()  local
182 conf_dev = wq_confdev(wq); in idxd_setup_wqs()
186 conf_dev->parent = idxd_confdev(idxd); in idxd_setup_wqs()
187 conf_dev->bus = &dsa_bus_type; in idxd_setup_wqs()
188 conf_dev->type = &idxd_wq_device_type; in idxd_setup_wqs()
189 rc = dev_set_name(conf_dev, "wq%d.%d", idxd->id, wq->id); in idxd_setup_wqs()
191 put_device(conf_dev); in idxd_setup_wqs()
204 put_device(conf_dev); in idxd_setup_wqs()
212 put_device(conf_dev); in idxd_setup_wqs()
228 conf_dev = wq_confdev(wq); in idxd_setup_wqs()
229 put_device(conf_dev); in idxd_setup_wqs()
238 struct device *conf_dev; in idxd_setup_engines() local
254 conf_dev = engine_confdev(engine); in idxd_setup_engines()
257 device_initialize(conf_dev); in idxd_setup_engines()
258 conf_dev->parent = idxd_confdev(idxd); in idxd_setup_engines()
259 conf_dev->bus = &dsa_bus_type; in idxd_setup_engines()
260 conf_dev->type = &idxd_engine_device_type; in idxd_setup_engines()
261 rc = dev_set_name(conf_dev, "engine%d.%d", idxd->id, engine->id); in idxd_setup_engines()
263 put_device(conf_dev); in idxd_setup_engines()
275 conf_dev = engine_confdev(engine); in idxd_setup_engines()
276 put_device(conf_dev); in idxd_setup_engines()
284 struct device *conf_dev; in idxd_setup_groups() local
301 conf_dev = group_confdev(group); in idxd_setup_groups()
304 device_initialize(conf_dev); in idxd_setup_groups()
305 conf_dev->parent = idxd_confdev(idxd); in idxd_setup_groups()
306 conf_dev->bus = &dsa_bus_type; in idxd_setup_groups()
307 conf_dev->type = &idxd_group_device_type; in idxd_setup_groups()
308 rc = dev_set_name(conf_dev, "group%d.%d", idxd->id, group->id); in idxd_setup_groups()
310 put_device(conf_dev); in idxd_setup_groups()
532 struct device *conf_dev; in idxd_alloc() local
540 conf_dev = idxd_confdev(idxd); in idxd_alloc()
554 device_initialize(conf_dev); in idxd_alloc()
555 conf_dev->parent = dev; in idxd_alloc()
556 conf_dev->bus = &dsa_bus_type; in idxd_alloc()
557 conf_dev->type = idxd->data->dev_type; in idxd_alloc()
558 rc = dev_set_name(conf_dev, "%s%d", idxd->data->name_prefix, idxd->id); in idxd_alloc()
560 put_device(conf_dev); in idxd_alloc()