Lines Matching refs:conf_dev
215 dev_info(dev, "wq %s enabled\n", dev_name(&wq->conf_dev)); in idxd_config_bus_probe()
246 dev_dbg(dev, "%s removing WQ %s\n", __func__, dev_name(&wq->conf_dev)); in disable_wq()
270 dev_info(dev, "wq %s disabled\n", dev_name(&wq->conf_dev)); in disable_wq()
289 dev_name(&idxd->conf_dev)); in idxd_config_bus_remove()
296 dev_name(&idxd->conf_dev)); in idxd_config_bus_remove()
297 device_release_driver(&wq->conf_dev); in idxd_config_bus_remove()
395 container_of(dev, struct idxd_engine, conf_dev); in engine_group_id_show()
408 container_of(dev, struct idxd_engine, conf_dev); in engine_group_id_store()
480 container_of(dev, struct idxd_group, conf_dev); in group_tokens_reserved_show()
490 container_of(dev, struct idxd_group, conf_dev); in group_tokens_reserved_store()
525 container_of(dev, struct idxd_group, conf_dev); in group_tokens_allowed_show()
535 container_of(dev, struct idxd_group, conf_dev); in group_tokens_allowed_store()
567 container_of(dev, struct idxd_group, conf_dev); in group_use_token_limit_show()
577 container_of(dev, struct idxd_group, conf_dev); in group_use_token_limit_store()
607 container_of(dev, struct idxd_group, conf_dev); in group_engines_show()
636 container_of(dev, struct idxd_group, conf_dev); in group_work_queues_show()
666 container_of(dev, struct idxd_group, conf_dev); in group_traffic_class_a_show()
676 container_of(dev, struct idxd_group, conf_dev); in group_traffic_class_a_store()
707 container_of(dev, struct idxd_group, conf_dev); in group_traffic_class_b_show()
717 container_of(dev, struct idxd_group, conf_dev); in group_traffic_class_b_store()
767 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_clients_show()
778 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_state_show()
796 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_group_id_show()
808 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_group_id_store()
851 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_mode_show()
861 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_mode_store()
886 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_size_show()
909 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_size_store()
937 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_priority_show()
946 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_priority_store()
974 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_type_show()
996 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_type_store()
1025 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_name_show()
1034 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_name_store()
1054 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_cdev_minor_show()
1088 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_max_transfer_size_show()
1096 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_max_transfer_size_store()
1125 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_max_batch_size_show()
1133 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_max_batch_size_store()
1188 container_of(dev, struct idxd_device, conf_dev); in version_show()
1199 container_of(dev, struct idxd_device, conf_dev); in max_work_queues_size_show()
1209 container_of(dev, struct idxd_device, conf_dev); in max_groups_show()
1219 container_of(dev, struct idxd_device, conf_dev); in max_work_queues_show()
1229 container_of(dev, struct idxd_device, conf_dev); in max_engines_show()
1239 container_of(dev, struct idxd_device, conf_dev); in numa_node_show()
1249 container_of(dev, struct idxd_device, conf_dev); in max_batch_size_show()
1260 container_of(dev, struct idxd_device, conf_dev); in max_transfer_size_show()
1270 container_of(dev, struct idxd_device, conf_dev); in op_cap_show()
1286 container_of(dev, struct idxd_device, conf_dev); in gen_cap_show()
1296 container_of(dev, struct idxd_device, conf_dev); in configurable_show()
1307 container_of(dev, struct idxd_device, conf_dev); in clients_show()
1327 container_of(dev, struct idxd_device, conf_dev); in state_show()
1347 container_of(dev, struct idxd_device, conf_dev); in errors_show()
1365 container_of(dev, struct idxd_device, conf_dev); in max_tokens_show()
1375 container_of(dev, struct idxd_device, conf_dev); in token_limit_show()
1385 container_of(dev, struct idxd_device, conf_dev); in token_limit_store()
1414 container_of(dev, struct idxd_device, conf_dev); in cdev_major_show()
1423 struct idxd_device *idxd = container_of(dev, struct idxd_device, conf_dev); in cmd_status_show()
1468 engine->conf_dev.parent = &idxd->conf_dev; in idxd_setup_engine_sysfs()
1469 dev_set_name(&engine->conf_dev, "engine%d.%d", in idxd_setup_engine_sysfs()
1471 engine->conf_dev.bus = idxd_get_bus_type(idxd); in idxd_setup_engine_sysfs()
1472 engine->conf_dev.groups = idxd_engine_attribute_groups; in idxd_setup_engine_sysfs()
1473 engine->conf_dev.type = &idxd_engine_device_type; in idxd_setup_engine_sysfs()
1475 dev_name(&engine->conf_dev)); in idxd_setup_engine_sysfs()
1476 rc = device_register(&engine->conf_dev); in idxd_setup_engine_sysfs()
1478 put_device(&engine->conf_dev); in idxd_setup_engine_sysfs()
1489 device_unregister(&engine->conf_dev); in idxd_setup_engine_sysfs()
1502 group->conf_dev.parent = &idxd->conf_dev; in idxd_setup_group_sysfs()
1503 dev_set_name(&group->conf_dev, "group%d.%d", in idxd_setup_group_sysfs()
1505 group->conf_dev.bus = idxd_get_bus_type(idxd); in idxd_setup_group_sysfs()
1506 group->conf_dev.groups = idxd_group_attribute_groups; in idxd_setup_group_sysfs()
1507 group->conf_dev.type = &idxd_group_device_type; in idxd_setup_group_sysfs()
1509 dev_name(&group->conf_dev)); in idxd_setup_group_sysfs()
1510 rc = device_register(&group->conf_dev); in idxd_setup_group_sysfs()
1512 put_device(&group->conf_dev); in idxd_setup_group_sysfs()
1523 device_unregister(&group->conf_dev); in idxd_setup_group_sysfs()
1536 wq->conf_dev.parent = &idxd->conf_dev; in idxd_setup_wq_sysfs()
1537 dev_set_name(&wq->conf_dev, "wq%d.%d", idxd->id, wq->id); in idxd_setup_wq_sysfs()
1538 wq->conf_dev.bus = idxd_get_bus_type(idxd); in idxd_setup_wq_sysfs()
1539 wq->conf_dev.groups = idxd_wq_attribute_groups; in idxd_setup_wq_sysfs()
1540 wq->conf_dev.type = &idxd_wq_device_type; in idxd_setup_wq_sysfs()
1542 dev_name(&wq->conf_dev)); in idxd_setup_wq_sysfs()
1543 rc = device_register(&wq->conf_dev); in idxd_setup_wq_sysfs()
1545 put_device(&wq->conf_dev); in idxd_setup_wq_sysfs()
1556 device_unregister(&wq->conf_dev); in idxd_setup_wq_sysfs()
1568 idxd->conf_dev.parent = dev; in idxd_setup_device_sysfs()
1569 dev_set_name(&idxd->conf_dev, "%s", devname); in idxd_setup_device_sysfs()
1570 idxd->conf_dev.bus = idxd_get_bus_type(idxd); in idxd_setup_device_sysfs()
1571 idxd->conf_dev.groups = idxd_attribute_groups; in idxd_setup_device_sysfs()
1572 idxd->conf_dev.type = idxd_get_device_type(idxd); in idxd_setup_device_sysfs()
1574 dev_dbg(dev, "IDXD device register: %s\n", dev_name(&idxd->conf_dev)); in idxd_setup_device_sysfs()
1575 rc = device_register(&idxd->conf_dev); in idxd_setup_device_sysfs()
1577 put_device(&idxd->conf_dev); in idxd_setup_device_sysfs()
1626 device_unregister(&wq->conf_dev); in idxd_cleanup_sysfs()
1632 device_unregister(&engine->conf_dev); in idxd_cleanup_sysfs()
1638 device_unregister(&group->conf_dev); in idxd_cleanup_sysfs()
1641 device_unregister(&idxd->conf_dev); in idxd_cleanup_sysfs()