Lines Matching refs:sysfs_attrib

514 	struct edac_dev_sysfs_block_attribute *sysfs_attrib;  in edac_device_create_block()  local
548 sysfs_attrib = block->block_attributes; in edac_device_create_block()
549 if (sysfs_attrib && block->nr_attribs) { in edac_device_create_block()
550 for (i = 0; i < block->nr_attribs; i++, sysfs_attrib++) { in edac_device_create_block()
553 sysfs_attrib->attr.name, in edac_device_create_block()
554 sysfs_attrib, &block->kobj); in edac_device_create_block()
558 &sysfs_attrib->attr); in edac_device_create_block()
581 struct edac_dev_sysfs_block_attribute *sysfs_attrib; in edac_device_delete_block() local
587 sysfs_attrib = block->block_attributes; in edac_device_delete_block()
588 if (sysfs_attrib && block->nr_attribs) { in edac_device_delete_block()
589 for (i = 0; i < block->nr_attribs; i++, sysfs_attrib++) { in edac_device_delete_block()
593 (struct attribute *) sysfs_attrib); in edac_device_delete_block()
743 struct edac_dev_sysfs_attribute *sysfs_attrib; in edac_device_add_main_sysfs_attributes() local
746 sysfs_attrib = edac_dev->sysfs_attributes; in edac_device_add_main_sysfs_attributes()
747 if (sysfs_attrib) { in edac_device_add_main_sysfs_attributes()
751 while (sysfs_attrib->attr.name != NULL) { in edac_device_add_main_sysfs_attributes()
753 (struct attribute*) sysfs_attrib); in edac_device_add_main_sysfs_attributes()
757 sysfs_attrib++; in edac_device_add_main_sysfs_attributes()
772 struct edac_dev_sysfs_attribute *sysfs_attrib; in edac_device_remove_main_sysfs_attributes() local
778 sysfs_attrib = edac_dev->sysfs_attributes; in edac_device_remove_main_sysfs_attributes()
779 if (sysfs_attrib) { in edac_device_remove_main_sysfs_attributes()
780 while (sysfs_attrib->attr.name != NULL) { in edac_device_remove_main_sysfs_attributes()
782 (struct attribute *) sysfs_attrib); in edac_device_remove_main_sysfs_attributes()
783 sysfs_attrib++; in edac_device_remove_main_sysfs_attributes()