Lines Matching full:trip

84 	int trip, result;  in trip_point_type_show()  local
89 if (sscanf(attr->attr.name, "trip_point_%d_type", &trip) != 1) in trip_point_type_show()
92 result = tz->ops->get_trip_type(tz, trip, &type); in trip_point_type_show()
115 int trip, ret; in trip_point_temp_store() local
122 if (sscanf(attr->attr.name, "trip_point_%d_temp", &trip) != 1) in trip_point_temp_store()
128 ret = tz->ops->set_trip_temp(tz, trip, temperature); in trip_point_temp_store()
133 ret = tz->ops->get_trip_hyst(tz, trip, &hyst); in trip_point_temp_store()
138 ret = tz->ops->get_trip_type(tz, trip, &type); in trip_point_temp_store()
142 thermal_notify_tz_trip_change(tz->id, trip, type, temperature, hyst); in trip_point_temp_store()
154 int trip, ret; in trip_point_temp_show() local
160 if (sscanf(attr->attr.name, "trip_point_%d_temp", &trip) != 1) in trip_point_temp_show()
163 ret = tz->ops->get_trip_temp(tz, trip, &temperature); in trip_point_temp_show()
176 int trip, ret; in trip_point_hyst_store() local
182 if (sscanf(attr->attr.name, "trip_point_%d_hyst", &trip) != 1) in trip_point_hyst_store()
193 ret = tz->ops->set_trip_hyst(tz, trip, temperature); in trip_point_hyst_store()
206 int trip, ret; in trip_point_hyst_show() local
212 if (sscanf(attr->attr.name, "trip_point_%d_hyst", &trip) != 1) in trip_point_hyst_show()
215 ret = tz->ops->get_trip_hyst(tz, trip, &temperature); in trip_point_hyst_show()
485 * create_trip_attrs() - create attributes for trip points
487 * @mask: Writeable trip point bitmap.
489 * helper function to instantiate sysfs entries for every trip
499 /* This function works only for zones with at least one trip */ in create_trip_attrs()
536 /* create trip type attribute */ in create_trip_attrs()
547 /* create trip temp attribute */ in create_trip_attrs()
564 /* create Optional trip hyst attribute */ in create_trip_attrs()
591 * destroy_trip_attrs() - destroy attributes for trip points
985 if (instance->trip == THERMAL_TRIPS_NONE) in trip_point_show()
988 return sprintf(buf, "%d\n", instance->trip); in trip_point_show()