Lines Matching refs:trip
83 int trip, result; in trip_point_type_show() local
88 if (sscanf(attr->attr.name, "trip_point_%d_type", &trip) != 1) in trip_point_type_show()
91 result = tz->ops->get_trip_type(tz, trip, &type); in trip_point_type_show()
114 int trip, ret; in trip_point_temp_store() local
121 if (sscanf(attr->attr.name, "trip_point_%d_temp", &trip) != 1) in trip_point_temp_store()
127 ret = tz->ops->set_trip_temp(tz, trip, temperature); in trip_point_temp_store()
132 ret = tz->ops->get_trip_hyst(tz, trip, &hyst); in trip_point_temp_store()
137 ret = tz->ops->get_trip_type(tz, trip, &type); in trip_point_temp_store()
141 thermal_notify_tz_trip_change(tz->id, trip, type, temperature, hyst); in trip_point_temp_store()
153 int trip, ret; in trip_point_temp_show() local
159 if (sscanf(attr->attr.name, "trip_point_%d_temp", &trip) != 1) in trip_point_temp_show()
162 ret = tz->ops->get_trip_temp(tz, trip, &temperature); in trip_point_temp_show()
175 int trip, ret; in trip_point_hyst_store() local
181 if (sscanf(attr->attr.name, "trip_point_%d_hyst", &trip) != 1) in trip_point_hyst_store()
192 ret = tz->ops->set_trip_hyst(tz, trip, temperature); in trip_point_hyst_store()
205 int trip, ret; in trip_point_hyst_show() local
211 if (sscanf(attr->attr.name, "trip_point_%d_hyst", &trip) != 1) in trip_point_hyst_show()
214 ret = tz->ops->get_trip_hyst(tz, trip, &temperature); in trip_point_hyst_show()
884 return sprintf(buf, "%d\n", instance->trip); in trip_point_show()