Lines Matching refs:trip

233 int get_tz_trend(struct thermal_zone_device *tz, int trip)  in get_tz_trend()  argument
238 tz->ops->get_trend(tz, trip, &trend)) { in get_tz_trend()
252 struct thermal_cooling_device *cdev, int trip) in get_thermal_instance() argument
261 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in get_thermal_instance()
423 int trip, enum thermal_trip_type trip_type) in handle_non_critical_trips() argument
425 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips()
426 def_governor->throttle(tz, trip); in handle_non_critical_trips()
430 int trip, enum thermal_trip_type trip_type) in handle_critical_trips() argument
434 tz->ops->get_trip_temp(tz, trip, &trip_temp); in handle_critical_trips()
440 trace_thermal_zone_trip(tz, trip, trip_type); in handle_critical_trips()
443 tz->ops->notify(tz, trip, trip_type); in handle_critical_trips()
453 static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) in handle_thermal_trip() argument
458 if (test_bit(trip, &tz->trips_disabled)) in handle_thermal_trip()
461 tz->ops->get_trip_type(tz, trip, &type); in handle_thermal_trip()
464 handle_critical_trips(tz, trip, type); in handle_thermal_trip()
466 handle_non_critical_trips(tz, trip, type); in handle_thermal_trip()
659 int trip, result; in trip_point_type_show() local
664 if (!sscanf(attr->attr.name, "trip_point_%d_type", &trip)) in trip_point_type_show()
667 result = tz->ops->get_trip_type(tz, trip, &type); in trip_point_type_show()
690 int trip, ret; in trip_point_temp_store() local
696 if (!sscanf(attr->attr.name, "trip_point_%d_temp", &trip)) in trip_point_temp_store()
702 ret = tz->ops->set_trip_temp(tz, trip, temperature); in trip_point_temp_store()
712 int trip, ret; in trip_point_temp_show() local
718 if (!sscanf(attr->attr.name, "trip_point_%d_temp", &trip)) in trip_point_temp_show()
721 ret = tz->ops->get_trip_temp(tz, trip, &temperature); in trip_point_temp_show()
734 int trip, ret; in trip_point_hyst_store() local
740 if (!sscanf(attr->attr.name, "trip_point_%d_hyst", &trip)) in trip_point_hyst_store()
751 ret = tz->ops->set_trip_hyst(tz, trip, temperature); in trip_point_hyst_store()
761 int trip, ret; in trip_point_hyst_show() local
767 if (!sscanf(attr->attr.name, "trip_point_%d_hyst", &trip)) in trip_point_hyst_show()
770 ret = tz->ops->get_trip_hyst(tz, trip, &temperature); in trip_point_hyst_show()
1184 if (instance->trip == THERMAL_TRIPS_NONE) in thermal_cooling_device_trip_point_show()
1187 return sprintf(buf, "%d\n", instance->trip); in thermal_cooling_device_trip_point_show()
1259 int trip, in thermal_zone_bind_cooling_device() argument
1271 if (trip >= tz->trips || (trip < 0 && trip != THERMAL_TRIPS_NONE)) in thermal_zone_bind_cooling_device()
1303 dev->trip = trip; in thermal_zone_bind_cooling_device()
1341 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_bind_cooling_device()
1384 int trip, in thermal_zone_unbind_cooling_device() argument
1392 if (pos->tz == tz && pos->trip == trip && pos->cdev == cdev) { in thermal_zone_unbind_cooling_device()
1656 void thermal_notify_framework(struct thermal_zone_device *tz, int trip) in thermal_notify_framework() argument
1658 handle_thermal_trip(tz, trip); in thermal_notify_framework()