Lines Matching refs:trip
83 int trip, result;
88 if (sscanf(attr->attr.name, "trip_point_%d_type", &trip) != 1)
91 result = tz->ops->get_trip_type(tz, trip, &type);
114 int trip, ret;
121 if (sscanf(attr->attr.name, "trip_point_%d_temp", &trip) != 1)
127 ret = tz->ops->set_trip_temp(tz, trip, temperature);
132 ret = tz->ops->get_trip_hyst(tz, trip, &hyst);
137 ret = tz->ops->get_trip_type(tz, trip, &type);
141 thermal_notify_tz_trip_change(tz->id, trip, type, temperature, hyst);
153 int trip, ret;
159 if (sscanf(attr->attr.name, "trip_point_%d_temp", &trip) != 1)
162 ret = tz->ops->get_trip_temp(tz, trip, &temperature);
175 int trip, ret;
181 if (sscanf(attr->attr.name, "trip_point_%d_hyst", &trip) != 1)
192 ret = tz->ops->set_trip_hyst(tz, trip, temperature);
205 int trip, ret;
211 if (sscanf(attr->attr.name, "trip_point_%d_hyst", &trip) != 1)
214 ret = tz->ops->get_trip_hyst(tz, trip, &temperature);
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 */
535 /* create trip type attribute */
546 /* create trip temp attribute */
563 /* create Optional trip hyst attribute */
590 * destroy_trip_attrs() - destroy attributes for trip points
965 if (instance->trip == THERMAL_TRIPS_NONE)
968 return sprintf(buf, "%d\n", instance->trip);