Lines Matching full:hyst
149 struct thermal_trip *trip = thermal_trip_of_attr(attr, hyst); in trip_point_hyst_store()
151 int hyst; in trip_point_hyst_store() local
153 if (kstrtoint(buf, 10, &hyst) || hyst < 0) in trip_point_hyst_store()
158 if (hyst == trip->hysteresis) in trip_point_hyst_store()
168 WRITE_ONCE(trip->hysteresis, hyst); in trip_point_hyst_store()
172 if (trip->temperature - hyst <= THERMAL_TEMP_INVALID) in trip_point_hyst_store()
175 thermal_zone_set_trip_hyst(tz, trip, hyst); in trip_point_hyst_store()
186 struct thermal_trip *trip = thermal_trip_of_attr(attr, hyst); in trip_point_hyst_show()
424 snprintf(trip_attrs->hyst.name, THERMAL_NAME_LENGTH, in create_trip_attrs()
427 sysfs_attr_init(&trip_attrs->hyst.attr.attr); in create_trip_attrs()
428 trip_attrs->hyst.attr.attr.name = trip_attrs->hyst.name; in create_trip_attrs()
429 trip_attrs->hyst.attr.attr.mode = S_IRUGO; in create_trip_attrs()
430 trip_attrs->hyst.attr.show = trip_point_hyst_show; in create_trip_attrs()
432 trip_attrs->hyst.attr.attr.mode |= S_IWUSR; in create_trip_attrs()
433 trip_attrs->hyst.attr.store = trip_point_hyst_store; in create_trip_attrs()
435 attrs[i + 2 * tz->num_trips] = &trip_attrs->hyst.attr.attr; in create_trip_attrs()