Lines Matching refs:attr
646 struct device_attribute *attr, char *buf)
670 struct device_attribute *attr, const char *buf,
737 struct device_attribute *attr,
751 struct device_attribute *attr,
806 struct device_attribute *attr,
820 struct device_attribute *attr,
871 struct device_attribute *attr,
885 struct device_attribute *attr,
905 &dev_attr_performance_level.attr,
906 &dev_attr_battery_life_extender.attr,
907 &dev_attr_usb_charge.attr,
908 &dev_attr_lid_handling.attr,
1199 struct attribute *attr, int idx)
1205 if (attr == &dev_attr_performance_level.attr)
1207 if (attr == &dev_attr_battery_life_extender.attr)
1209 if (attr == &dev_attr_usb_charge.attr)
1211 if (attr == &dev_attr_lid_handling.attr)
1214 return ok ? attr->mode : 0;