Lines Matching refs:conf_dev
215 dev_info(dev, "wq %s enabled\n", dev_name(&wq->conf_dev)); in idxd_config_bus_probe()
247 dev_dbg(dev, "%s removing WQ %s\n", __func__, dev_name(&wq->conf_dev)); in disable_wq()
273 dev_name(&wq->conf_dev), rc); in disable_wq()
275 dev_info(dev, "wq %s disabled\n", dev_name(&wq->conf_dev)); in disable_wq()
294 dev_name(&idxd->conf_dev)); in idxd_config_bus_remove()
301 dev_name(&idxd->conf_dev)); in idxd_config_bus_remove()
302 device_release_driver(&wq->conf_dev); in idxd_config_bus_remove()
400 container_of(dev, struct idxd_engine, conf_dev); in engine_group_id_show()
413 container_of(dev, struct idxd_engine, conf_dev); in engine_group_id_store()
485 container_of(dev, struct idxd_group, conf_dev); in group_tokens_reserved_show()
495 container_of(dev, struct idxd_group, conf_dev); in group_tokens_reserved_store()
530 container_of(dev, struct idxd_group, conf_dev); in group_tokens_allowed_show()
540 container_of(dev, struct idxd_group, conf_dev); in group_tokens_allowed_store()
572 container_of(dev, struct idxd_group, conf_dev); in group_use_token_limit_show()
582 container_of(dev, struct idxd_group, conf_dev); in group_use_token_limit_store()
612 container_of(dev, struct idxd_group, conf_dev); in group_engines_show()
641 container_of(dev, struct idxd_group, conf_dev); in group_work_queues_show()
671 container_of(dev, struct idxd_group, conf_dev); in group_traffic_class_a_show()
681 container_of(dev, struct idxd_group, conf_dev); in group_traffic_class_a_store()
712 container_of(dev, struct idxd_group, conf_dev); in group_traffic_class_b_show()
722 container_of(dev, struct idxd_group, conf_dev); in group_traffic_class_b_store()
772 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_clients_show()
783 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_state_show()
801 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_group_id_show()
813 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_group_id_store()
856 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_mode_show()
866 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_mode_store()
891 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_size_show()
914 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_size_store()
942 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_priority_show()
951 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_priority_store()
979 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_type_show()
1001 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_type_store()
1030 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_name_show()
1039 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_name_store()
1059 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_cdev_minor_show()
1085 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_max_transfer_size_show()
1093 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_max_transfer_size_store()
1119 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_max_batch_size_show()
1127 struct idxd_wq *wq = container_of(dev, struct idxd_wq, conf_dev); in wq_max_batch_size_store()
1179 container_of(dev, struct idxd_device, conf_dev); in version_show()
1190 container_of(dev, struct idxd_device, conf_dev); in max_work_queues_size_show()
1200 container_of(dev, struct idxd_device, conf_dev); in max_groups_show()
1210 container_of(dev, struct idxd_device, conf_dev); in max_work_queues_show()
1220 container_of(dev, struct idxd_device, conf_dev); in max_engines_show()
1230 container_of(dev, struct idxd_device, conf_dev); in numa_node_show()
1240 container_of(dev, struct idxd_device, conf_dev); in max_batch_size_show()
1251 container_of(dev, struct idxd_device, conf_dev); in max_transfer_size_show()
1261 container_of(dev, struct idxd_device, conf_dev); in op_cap_show()
1271 container_of(dev, struct idxd_device, conf_dev); in gen_cap_show()
1281 container_of(dev, struct idxd_device, conf_dev); in configurable_show()
1292 container_of(dev, struct idxd_device, conf_dev); in clients_show()
1312 container_of(dev, struct idxd_device, conf_dev); in state_show()
1332 container_of(dev, struct idxd_device, conf_dev); in errors_show()
1350 container_of(dev, struct idxd_device, conf_dev); in max_tokens_show()
1360 container_of(dev, struct idxd_device, conf_dev); in token_limit_show()
1370 container_of(dev, struct idxd_device, conf_dev); in token_limit_store()
1399 container_of(dev, struct idxd_device, conf_dev); in cdev_major_show()
1408 struct idxd_device *idxd = container_of(dev, struct idxd_device, conf_dev); in cmd_status_show()
1453 engine->conf_dev.parent = &idxd->conf_dev; in idxd_setup_engine_sysfs()
1454 dev_set_name(&engine->conf_dev, "engine%d.%d", in idxd_setup_engine_sysfs()
1456 engine->conf_dev.bus = idxd_get_bus_type(idxd); in idxd_setup_engine_sysfs()
1457 engine->conf_dev.groups = idxd_engine_attribute_groups; in idxd_setup_engine_sysfs()
1458 engine->conf_dev.type = &idxd_engine_device_type; in idxd_setup_engine_sysfs()
1460 dev_name(&engine->conf_dev)); in idxd_setup_engine_sysfs()
1461 rc = device_register(&engine->conf_dev); in idxd_setup_engine_sysfs()
1463 put_device(&engine->conf_dev); in idxd_setup_engine_sysfs()
1474 device_unregister(&engine->conf_dev); in idxd_setup_engine_sysfs()
1487 group->conf_dev.parent = &idxd->conf_dev; in idxd_setup_group_sysfs()
1488 dev_set_name(&group->conf_dev, "group%d.%d", in idxd_setup_group_sysfs()
1490 group->conf_dev.bus = idxd_get_bus_type(idxd); in idxd_setup_group_sysfs()
1491 group->conf_dev.groups = idxd_group_attribute_groups; in idxd_setup_group_sysfs()
1492 group->conf_dev.type = &idxd_group_device_type; in idxd_setup_group_sysfs()
1494 dev_name(&group->conf_dev)); in idxd_setup_group_sysfs()
1495 rc = device_register(&group->conf_dev); in idxd_setup_group_sysfs()
1497 put_device(&group->conf_dev); in idxd_setup_group_sysfs()
1508 device_unregister(&group->conf_dev); in idxd_setup_group_sysfs()
1521 wq->conf_dev.parent = &idxd->conf_dev; in idxd_setup_wq_sysfs()
1522 dev_set_name(&wq->conf_dev, "wq%d.%d", idxd->id, wq->id); in idxd_setup_wq_sysfs()
1523 wq->conf_dev.bus = idxd_get_bus_type(idxd); in idxd_setup_wq_sysfs()
1524 wq->conf_dev.groups = idxd_wq_attribute_groups; in idxd_setup_wq_sysfs()
1525 wq->conf_dev.type = &idxd_wq_device_type; in idxd_setup_wq_sysfs()
1527 dev_name(&wq->conf_dev)); in idxd_setup_wq_sysfs()
1528 rc = device_register(&wq->conf_dev); in idxd_setup_wq_sysfs()
1530 put_device(&wq->conf_dev); in idxd_setup_wq_sysfs()
1541 device_unregister(&wq->conf_dev); in idxd_setup_wq_sysfs()
1553 idxd->conf_dev.parent = dev; in idxd_setup_device_sysfs()
1554 dev_set_name(&idxd->conf_dev, "%s", devname); in idxd_setup_device_sysfs()
1555 idxd->conf_dev.bus = idxd_get_bus_type(idxd); in idxd_setup_device_sysfs()
1556 idxd->conf_dev.groups = idxd_attribute_groups; in idxd_setup_device_sysfs()
1557 idxd->conf_dev.type = idxd_get_device_type(idxd); in idxd_setup_device_sysfs()
1559 dev_dbg(dev, "IDXD device register: %s\n", dev_name(&idxd->conf_dev)); in idxd_setup_device_sysfs()
1560 rc = device_register(&idxd->conf_dev); in idxd_setup_device_sysfs()
1562 put_device(&idxd->conf_dev); in idxd_setup_device_sysfs()
1611 device_unregister(&wq->conf_dev); in idxd_cleanup_sysfs()
1617 device_unregister(&engine->conf_dev); in idxd_cleanup_sysfs()
1623 device_unregister(&group->conf_dev); in idxd_cleanup_sysfs()
1626 device_unregister(&idxd->conf_dev); in idxd_cleanup_sysfs()