Lines Matching full: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()
484 * create_trip_attrs() - create attributes for trip points
486 * @mask: Writeable trip point bitmap.
488 * helper function to instantiate sysfs entries for every trip
498 /* This function works only for zones with at least one trip */ in create_trip_attrs()
535 /* create trip type attribute */ in create_trip_attrs()
546 /* create trip temp attribute */ in create_trip_attrs()
563 /* create Optional trip hyst attribute */ in create_trip_attrs()
590 * destroy_trip_attrs() - destroy attributes for trip points
958 if (instance->trip == THERMAL_TRIPS_NONE) in trip_point_show()
961 return sprintf(buf, "%d\n", instance->trip); in trip_point_show()