Lines Matching refs:counter_attrs
585 static struct kobj_attribute *counter_attrs; variable
594 if (counter_attrs) { in delete_gpe_attr_array()
598 kfree(counter_attrs[i].attr.name); in delete_gpe_attr_array()
600 kfree(counter_attrs); in delete_gpe_attr_array()
679 int index = attr - counter_attrs; in counter_show()
737 int index = attr - counter_attrs; in counter_set()
877 counter_attrs = kcalloc(num_counters, sizeof(struct kobj_attribute), in acpi_irq_stats_init()
879 if (counter_attrs == NULL) in acpi_irq_stats_init()
913 sysfs_attr_init(&counter_attrs[i].attr); in acpi_irq_stats_init()
914 counter_attrs[i].attr.name = name; in acpi_irq_stats_init()
915 counter_attrs[i].attr.mode = 0644; in acpi_irq_stats_init()
916 counter_attrs[i].show = counter_show; in acpi_irq_stats_init()
917 counter_attrs[i].store = counter_set; in acpi_irq_stats_init()
919 all_attrs[i] = &counter_attrs[i].attr; in acpi_irq_stats_init()