Searched refs:attr_max (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/media/usb/pvrusb2/
H A Dpvrusb2-sysfs.c67 struct device_attribute attr_max; member in struct:pvr2_sysfs_ctl_item
142 cip = container_of(attr, struct pvr2_sysfs_ctl_item, attr_max); show_max()
342 sysfs_attr_init(&cip->attr_max.attr); pvr2_sysfs_add_control()
343 cip->attr_max.attr.name = "max_val"; pvr2_sysfs_add_control()
344 cip->attr_max.attr.mode = S_IRUGO; pvr2_sysfs_add_control()
345 cip->attr_max.show = show_max; pvr2_sysfs_add_control()
395 cip->attr_gen[acnt++] = &cip->attr_max.attr; pvr2_sysfs_add_control()
/linux-4.1.27/arch/powerpc/perf/
H A Dhv-24x7.c658 attr_max, event_idx_last, desc_ct, long_desc_ct; create_events_from_catalog() local
763 for (junk_events = 0, event = event_data, event_idx = 0, attr_max = 0; create_events_from_catalog()
793 attr_max += event_to_attr_ct(event); create_events_from_catalog()
801 events = kmalloc_array(attr_max + 1, sizeof(*events), GFP_KERNEL); create_events_from_catalog()

Completed in 133 milliseconds