Lines Matching refs:attr

530 type_show(struct device *dev, struct device_attribute *attr, char *buf)  in type_show()  argument
538 temp_show(struct device *dev, struct device_attribute *attr, char *buf) in temp_show() argument
553 mode_show(struct device *dev, struct device_attribute *attr, char *buf) in mode_show() argument
571 mode_store(struct device *dev, struct device_attribute *attr, in mode_store() argument
594 trip_point_type_show(struct device *dev, struct device_attribute *attr, in trip_point_type_show() argument
604 if (!sscanf(attr->attr.name, "trip_point_%d_type", &trip)) in trip_point_type_show()
626 trip_point_temp_store(struct device *dev, struct device_attribute *attr, in trip_point_temp_store() argument
636 if (!sscanf(attr->attr.name, "trip_point_%d_temp", &trip)) in trip_point_temp_store()
648 trip_point_temp_show(struct device *dev, struct device_attribute *attr, in trip_point_temp_show() argument
658 if (!sscanf(attr->attr.name, "trip_point_%d_temp", &trip)) in trip_point_temp_show()
670 trip_point_hyst_store(struct device *dev, struct device_attribute *attr, in trip_point_hyst_store() argument
680 if (!sscanf(attr->attr.name, "trip_point_%d_hyst", &trip)) in trip_point_hyst_store()
697 trip_point_hyst_show(struct device *dev, struct device_attribute *attr, in trip_point_hyst_show() argument
707 if (!sscanf(attr->attr.name, "trip_point_%d_hyst", &trip)) in trip_point_hyst_show()
716 passive_store(struct device *dev, struct device_attribute *attr, in passive_store() argument
766 passive_show(struct device *dev, struct device_attribute *attr, in passive_show() argument
775 policy_store(struct device *dev, struct device_attribute *attr, in policy_store() argument
811 emul_temp_store(struct device *dev, struct device_attribute *attr, in emul_temp_store() argument
849 struct device_attribute *attr, char *buf) in thermal_cooling_device_type_show() argument
858 struct device_attribute *attr, char *buf) in thermal_cooling_device_max_state_show() argument
872 struct device_attribute *attr, char *buf) in thermal_cooling_device_cur_state_show() argument
886 struct device_attribute *attr, in thermal_cooling_device_cur_state_store() argument
915 struct device_attribute *attr, char *buf) in thermal_cooling_device_trip_point_show() argument
920 container_of(attr, struct thermal_instance, attr); in thermal_cooling_device_trip_point_show()
929 &dev_attr_cdev_type.attr,
930 &dev_attr_max_state.attr,
931 &dev_attr_cur_state.attr,
1025 sysfs_attr_init(&dev->attr.attr); in thermal_zone_bind_cooling_device()
1026 dev->attr.attr.name = dev->attr_name; in thermal_zone_bind_cooling_device()
1027 dev->attr.attr.mode = 0444; in thermal_zone_bind_cooling_device()
1028 dev->attr.show = thermal_cooling_device_trip_point_show; in thermal_zone_bind_cooling_device()
1029 result = device_create_file(&tz->device, &dev->attr); in thermal_zone_bind_cooling_device()
1051 device_remove_file(&tz->device, &dev->attr); in thermal_zone_bind_cooling_device()
1099 device_remove_file(&tz->device, &pos->attr); in thermal_zone_unbind_cooling_device()
1394 sysfs_attr_init(&tz->trip_type_attrs[indx].attr.attr); in create_trip_attrs()
1395 tz->trip_type_attrs[indx].attr.attr.name = in create_trip_attrs()
1397 tz->trip_type_attrs[indx].attr.attr.mode = S_IRUGO; in create_trip_attrs()
1398 tz->trip_type_attrs[indx].attr.show = trip_point_type_show; in create_trip_attrs()
1401 &tz->trip_type_attrs[indx].attr); in create_trip_attrs()
1407 sysfs_attr_init(&tz->trip_temp_attrs[indx].attr.attr); in create_trip_attrs()
1408 tz->trip_temp_attrs[indx].attr.attr.name = in create_trip_attrs()
1410 tz->trip_temp_attrs[indx].attr.attr.mode = S_IRUGO; in create_trip_attrs()
1411 tz->trip_temp_attrs[indx].attr.show = trip_point_temp_show; in create_trip_attrs()
1413 tz->trip_temp_attrs[indx].attr.attr.mode |= S_IWUSR; in create_trip_attrs()
1414 tz->trip_temp_attrs[indx].attr.store = in create_trip_attrs()
1419 &tz->trip_temp_attrs[indx].attr); in create_trip_attrs()
1427 sysfs_attr_init(&tz->trip_hyst_attrs[indx].attr.attr); in create_trip_attrs()
1428 tz->trip_hyst_attrs[indx].attr.attr.name = in create_trip_attrs()
1430 tz->trip_hyst_attrs[indx].attr.attr.mode = S_IRUGO; in create_trip_attrs()
1431 tz->trip_hyst_attrs[indx].attr.show = trip_point_hyst_show; in create_trip_attrs()
1433 tz->trip_hyst_attrs[indx].attr.attr.mode |= S_IWUSR; in create_trip_attrs()
1434 tz->trip_hyst_attrs[indx].attr.store = in create_trip_attrs()
1439 &tz->trip_hyst_attrs[indx].attr); in create_trip_attrs()
1450 &tz->trip_type_attrs[indx].attr); in remove_trip_attrs()
1452 &tz->trip_temp_attrs[indx].attr); in remove_trip_attrs()
1455 &tz->trip_hyst_attrs[indx].attr); in remove_trip_attrs()
1757 struct nlattr *attr; in thermal_generate_netlink_event() local
1785 attr = nla_reserve(skb, THERMAL_GENL_ATTR_EVENT, in thermal_generate_netlink_event()
1788 if (!attr) { in thermal_generate_netlink_event()
1793 thermal_event = nla_data(attr); in thermal_generate_netlink_event()