Lines Matching refs:trip
94 struct acpi_thermal_trip trip; member
101 struct acpi_thermal_trip trip; member
194 active = container_of(acpi_trip, struct acpi_thermal_active, trip); in active_trip_index()
229 const struct thermal_trip *trip) in acpi_thermal_update_trip() argument
231 struct acpi_thermal_trip *acpi_trip = trip->priv; in acpi_thermal_update_trip()
233 if (trip->type == THERMAL_TRIP_PASSIVE) { in acpi_thermal_update_trip()
279 const struct thermal_trip *trip) in acpi_thermal_update_trip_devices() argument
281 struct acpi_thermal_trip *acpi_trip = trip->priv; in acpi_thermal_update_trip_devices()
282 int index = trip->type == THERMAL_TRIP_PASSIVE ? in acpi_thermal_update_trip_devices()
297 static int acpi_thermal_adjust_trip(struct thermal_trip *trip, void *data) in acpi_thermal_adjust_trip() argument
299 struct acpi_thermal_trip *acpi_trip = trip->priv; in acpi_thermal_adjust_trip()
308 acpi_thermal_update_trip(tz, trip); in acpi_thermal_adjust_trip()
310 acpi_thermal_update_trip_devices(tz, trip); in acpi_thermal_adjust_trip()
317 thermal_zone_set_trip_temp(tz->thermal_zone, trip, temp); in acpi_thermal_adjust_trip()
428 acpi_trip = &tz->trips.passive.trip; in acpi_thermal_init_trip()
439 acpi_trip = &tz->trips.active[index].trip; in acpi_thermal_init_trip()
473 tz->trips.active[i].trip.temp_dk = THERMAL_TEMP_INVALID; in acpi_thermal_get_trip_points()
496 const struct thermal_trip *trip, in thermal_get_trend() argument
503 if (!tz || !trip) in thermal_get_trend()
506 acpi_trip = trip->priv; in thermal_get_trend()
510 switch (trip->type) { in thermal_get_trend()
527 if (t <= trip->temperature) in thermal_get_trend()
562 const struct thermal_trip *trip, in acpi_thermal_should_bind_cdev() argument
566 struct acpi_thermal_trip *acpi_trip = trip->priv; in acpi_thermal_should_bind_cdev()
773 acpi_handle_list_free(&tz->trips.passive.trip.devices); in acpi_thermal_free_thermal_zone()
775 acpi_handle_list_free(&tz->trips.active[i].trip.devices); in acpi_thermal_free_thermal_zone()
784 struct thermal_trip *trip; in acpi_thermal_add() local
829 trip = trip_table; in acpi_thermal_add()
832 trip->type = THERMAL_TRIP_CRITICAL; in acpi_thermal_add()
833 trip->temperature = acpi_thermal_temp(tz, crit_temp); in acpi_thermal_add()
834 trip++; in acpi_thermal_add()
838 trip->type = THERMAL_TRIP_HOT; in acpi_thermal_add()
839 trip->temperature = acpi_thermal_temp(tz, hot_temp); in acpi_thermal_add()
840 trip++; in acpi_thermal_add()
843 acpi_trip = &tz->trips.passive.trip; in acpi_thermal_add()
847 trip->type = THERMAL_TRIP_PASSIVE; in acpi_thermal_add()
848 trip->temperature = acpi_thermal_temp(tz, acpi_trip->temp_dk); in acpi_thermal_add()
849 trip->priv = acpi_trip; in acpi_thermal_add()
850 trip++; in acpi_thermal_add()
854 acpi_trip = &tz->trips.active[i].trip; in acpi_thermal_add()
859 trip->type = THERMAL_TRIP_ACTIVE; in acpi_thermal_add()
860 trip->temperature = acpi_thermal_temp(tz, acpi_trip->temp_dk); in acpi_thermal_add()
861 trip->priv = acpi_trip; in acpi_thermal_add()
862 trip++; in acpi_thermal_add()
865 if (trip == trip_table) in acpi_thermal_add()
869 trip - trip_table, in acpi_thermal_add()
935 struct acpi_thermal_trip *acpi_trip = &tz->trips.active[i].trip; in acpi_thermal_resume()