Lines Matching refs:trip

87 	int trip, result;  in trip_point_type_show()  local
92 if (sscanf(attr->attr.name, "trip_point_%d_type", &trip) != 1) in trip_point_type_show()
95 result = tz->ops->get_trip_type(tz, trip, &type); in trip_point_type_show()
118 int trip, ret; in trip_point_temp_store() local
125 if (sscanf(attr->attr.name, "trip_point_%d_temp", &trip) != 1) in trip_point_temp_store()
132 ret = tz->ops->set_trip_temp(tz, trip, temperature); in trip_point_temp_store()
138 tz->trips[trip].temperature = temperature; in trip_point_temp_store()
141 ret = tz->ops->get_trip_hyst(tz, trip, &hyst); in trip_point_temp_store()
146 ret = tz->ops->get_trip_type(tz, trip, &type); in trip_point_temp_store()
150 thermal_notify_tz_trip_change(tz->id, trip, type, temperature, hyst); in trip_point_temp_store()
162 int trip, ret; in trip_point_temp_show() local
168 if (sscanf(attr->attr.name, "trip_point_%d_temp", &trip) != 1) in trip_point_temp_show()
171 ret = tz->ops->get_trip_temp(tz, trip, &temperature); in trip_point_temp_show()
184 int trip, ret; in trip_point_hyst_store() local
190 if (sscanf(attr->attr.name, "trip_point_%d_hyst", &trip) != 1) in trip_point_hyst_store()
201 ret = tz->ops->set_trip_hyst(tz, trip, temperature); in trip_point_hyst_store()
214 int trip, ret; in trip_point_hyst_show() local
220 if (sscanf(attr->attr.name, "trip_point_%d_hyst", &trip) != 1) in trip_point_hyst_show()
223 ret = tz->ops->get_trip_hyst(tz, trip, &temperature); in trip_point_hyst_show()
894 return sprintf(buf, "%d\n", instance->trip); in trip_point_show()