Lines Matching refs:trip
174 int get_tz_trend(struct thermal_zone_device *tz, int trip) in get_tz_trend() argument
179 tz->ops->get_trend(tz, trip, &trend)) { in get_tz_trend()
193 struct thermal_cooling_device *cdev, int trip) in get_thermal_instance() argument
202 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in get_thermal_instance()
360 int trip, enum thermal_trip_type trip_type) in handle_non_critical_trips() argument
362 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips()
363 def_governor->throttle(tz, trip); in handle_non_critical_trips()
367 int trip, enum thermal_trip_type trip_type) in handle_critical_trips() argument
371 tz->ops->get_trip_temp(tz, trip, &trip_temp); in handle_critical_trips()
377 trace_thermal_zone_trip(tz, trip, trip_type); in handle_critical_trips()
380 tz->ops->notify(tz, trip, trip_type); in handle_critical_trips()
390 static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) in handle_thermal_trip() argument
395 if (test_bit(trip, &tz->trips_disabled)) in handle_thermal_trip()
398 tz->ops->get_trip_type(tz, trip, &type); in handle_thermal_trip()
401 handle_critical_trips(tz, trip, type); in handle_thermal_trip()
403 handle_non_critical_trips(tz, trip, type); in handle_thermal_trip()
599 int trip, result; in trip_point_type_show() local
604 if (!sscanf(attr->attr.name, "trip_point_%d_type", &trip)) in trip_point_type_show()
607 result = tz->ops->get_trip_type(tz, trip, &type); in trip_point_type_show()
630 int trip, ret; in trip_point_temp_store() local
636 if (!sscanf(attr->attr.name, "trip_point_%d_temp", &trip)) in trip_point_temp_store()
642 ret = tz->ops->set_trip_temp(tz, trip, temperature); in trip_point_temp_store()
652 int trip, ret; in trip_point_temp_show() local
658 if (!sscanf(attr->attr.name, "trip_point_%d_temp", &trip)) in trip_point_temp_show()
661 ret = tz->ops->get_trip_temp(tz, trip, &temperature); in trip_point_temp_show()
674 int trip, ret; in trip_point_hyst_store() local
680 if (!sscanf(attr->attr.name, "trip_point_%d_hyst", &trip)) in trip_point_hyst_store()
691 ret = tz->ops->set_trip_hyst(tz, trip, temperature); in trip_point_hyst_store()
701 int trip, ret; in trip_point_hyst_show() local
707 if (!sscanf(attr->attr.name, "trip_point_%d_hyst", &trip)) in trip_point_hyst_show()
710 ret = tz->ops->get_trip_hyst(tz, trip, &temperature); in trip_point_hyst_show()
922 if (instance->trip == THERMAL_TRIPS_NONE) in thermal_cooling_device_trip_point_show()
925 return sprintf(buf, "%d\n", instance->trip); in thermal_cooling_device_trip_point_show()
966 int trip, in thermal_zone_bind_cooling_device() argument
977 if (trip >= tz->trips || (trip < 0 && trip != THERMAL_TRIPS_NONE)) in thermal_zone_bind_cooling_device()
1009 dev->trip = trip; in thermal_zone_bind_cooling_device()
1036 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_bind_cooling_device()
1077 int trip, in thermal_zone_unbind_cooling_device() argument
1085 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_unbind_cooling_device()
1348 void thermal_notify_framework(struct thermal_zone_device *tz, int trip) in thermal_notify_framework() argument
1350 handle_thermal_trip(tz, trip); in thermal_notify_framework()