Lines Matching refs:conf_dev
150 struct device *conf_dev; in idxd_setup_wqs() local
172 conf_dev = wq_confdev(wq); in idxd_setup_wqs()
176 conf_dev->parent = idxd_confdev(idxd); in idxd_setup_wqs()
177 conf_dev->bus = &dsa_bus_type; in idxd_setup_wqs()
178 conf_dev->type = &idxd_wq_device_type; in idxd_setup_wqs()
179 rc = dev_set_name(conf_dev, "wq%d.%d", idxd->id, wq->id); in idxd_setup_wqs()
181 put_device(conf_dev); in idxd_setup_wqs()
194 put_device(conf_dev); in idxd_setup_wqs()
202 put_device(conf_dev); in idxd_setup_wqs()
218 conf_dev = wq_confdev(wq); in idxd_setup_wqs()
219 put_device(conf_dev); in idxd_setup_wqs()
228 struct device *conf_dev; in idxd_setup_engines() local
244 conf_dev = engine_confdev(engine); in idxd_setup_engines()
247 device_initialize(conf_dev); in idxd_setup_engines()
248 conf_dev->parent = idxd_confdev(idxd); in idxd_setup_engines()
249 conf_dev->bus = &dsa_bus_type; in idxd_setup_engines()
250 conf_dev->type = &idxd_engine_device_type; in idxd_setup_engines()
251 rc = dev_set_name(conf_dev, "engine%d.%d", idxd->id, engine->id); in idxd_setup_engines()
253 put_device(conf_dev); in idxd_setup_engines()
265 conf_dev = engine_confdev(engine); in idxd_setup_engines()
266 put_device(conf_dev); in idxd_setup_engines()
274 struct device *conf_dev; in idxd_setup_groups() local
291 conf_dev = group_confdev(group); in idxd_setup_groups()
294 device_initialize(conf_dev); in idxd_setup_groups()
295 conf_dev->parent = idxd_confdev(idxd); in idxd_setup_groups()
296 conf_dev->bus = &dsa_bus_type; in idxd_setup_groups()
297 conf_dev->type = &idxd_group_device_type; in idxd_setup_groups()
298 rc = dev_set_name(conf_dev, "group%d.%d", idxd->id, group->id); in idxd_setup_groups()
300 put_device(conf_dev); in idxd_setup_groups()
513 struct device *conf_dev; in idxd_alloc() local
521 conf_dev = idxd_confdev(idxd); in idxd_alloc()
535 device_initialize(conf_dev); in idxd_alloc()
536 conf_dev->parent = dev; in idxd_alloc()
537 conf_dev->bus = &dsa_bus_type; in idxd_alloc()
538 conf_dev->type = idxd->data->dev_type; in idxd_alloc()
539 rc = dev_set_name(conf_dev, "%s%d", idxd->data->name_prefix, idxd->id); in idxd_alloc()
541 put_device(conf_dev); in idxd_alloc()