Home
last modified time | relevance | path

Searched refs:afu_attrs (Results 1 – 2 of 2) sorted by relevance

/linux-6.1.9/drivers/misc/ocxl/
Dsysfs.c88 static struct device_attribute afu_attrs[] = { variable
148 for (i = 0; i < ARRAY_SIZE(afu_attrs); i++) { in ocxl_sysfs_register_afu()
149 rc = device_create_file(&info->dev, &afu_attrs[i]); in ocxl_sysfs_register_afu()
170 device_remove_file(&info->dev, &afu_attrs[i]); in ocxl_sysfs_register_afu()
183 for (i = 0; i < ARRAY_SIZE(afu_attrs); i++) in ocxl_sysfs_unregister_afu()
184 device_remove_file(&info->dev, &afu_attrs[i]); in ocxl_sysfs_unregister_afu()
/linux-6.1.9/drivers/misc/cxl/
Dsysfs.c455 static struct device_attribute afu_attrs[] = { variable
659 for (i = 0; i < ARRAY_SIZE(afu_attrs); i++) { in cxl_sysfs_afu_remove()
660 dev_attr = &afu_attrs[i]; in cxl_sysfs_afu_remove()
663 device_remove_file(&afu->dev, &afu_attrs[i]); in cxl_sysfs_afu_remove()
680 for (i = 0; i < ARRAY_SIZE(afu_attrs); i++) { in cxl_sysfs_afu_add()
681 dev_attr = &afu_attrs[i]; in cxl_sysfs_afu_add()
684 if ((rc = device_create_file(&afu->dev, &afu_attrs[i]))) in cxl_sysfs_afu_add()
726 dev_attr = &afu_attrs[i]; in cxl_sysfs_afu_add()
729 device_remove_file(&afu->dev, &afu_attrs[i]); in cxl_sysfs_afu_add()