Lines Matching full:hyst
153 struct thermal_trip *trip = thermal_trip_of_attr(attr, hyst); in trip_point_hyst_store()
155 int ret, hyst; in trip_point_hyst_store() local
157 ret = kstrtoint(buf, 10, &hyst); in trip_point_hyst_store()
158 if (ret || hyst < 0) in trip_point_hyst_store()
163 if (hyst == trip->hysteresis) in trip_point_hyst_store()
173 WRITE_ONCE(trip->hysteresis, hyst); in trip_point_hyst_store()
177 if (trip->temperature - hyst <= THERMAL_TEMP_INVALID) { in trip_point_hyst_store()
182 thermal_zone_set_trip_hyst(tz, trip, hyst); in trip_point_hyst_store()
196 struct thermal_trip *trip = thermal_trip_of_attr(attr, hyst); in trip_point_hyst_show()
433 snprintf(trip_attrs->hyst.name, THERMAL_NAME_LENGTH, in create_trip_attrs()
436 sysfs_attr_init(&trip_attrs->hyst.attr.attr); in create_trip_attrs()
437 trip_attrs->hyst.attr.attr.name = trip_attrs->hyst.name; in create_trip_attrs()
438 trip_attrs->hyst.attr.attr.mode = S_IRUGO; in create_trip_attrs()
439 trip_attrs->hyst.attr.show = trip_point_hyst_show; in create_trip_attrs()
441 trip_attrs->hyst.attr.attr.mode |= S_IWUSR; in create_trip_attrs()
442 trip_attrs->hyst.attr.store = trip_point_hyst_store; in create_trip_attrs()
444 attrs[i + 2 * tz->num_trips] = &trip_attrs->hyst.attr.attr; in create_trip_attrs()