Lines Matching refs:counter_attrs
427 static struct kobj_attribute *counter_attrs; variable
436 if (counter_attrs) { in delete_gpe_attr_array()
440 kfree(counter_attrs[i].attr.name); in delete_gpe_attr_array()
442 kfree(counter_attrs); in delete_gpe_attr_array()
515 int index = attr - counter_attrs; in counter_show()
560 int index = attr - counter_attrs; in counter_set()
645 counter_attrs = kzalloc(sizeof(struct kobj_attribute) * (num_counters), in acpi_irq_stats_init()
647 if (counter_attrs == NULL) in acpi_irq_stats_init()
682 sysfs_attr_init(&counter_attrs[i].attr); in acpi_irq_stats_init()
683 counter_attrs[i].attr.name = name; in acpi_irq_stats_init()
684 counter_attrs[i].attr.mode = 0644; in acpi_irq_stats_init()
685 counter_attrs[i].show = counter_show; in acpi_irq_stats_init()
686 counter_attrs[i].store = counter_set; in acpi_irq_stats_init()
688 all_attrs[i] = &counter_attrs[i].attr; in acpi_irq_stats_init()