Lines Matching full:valid

60  * 1.An invalid trip point becomes invalid or a valid trip point becomes invalid
97 bool valid; member
196 bool valid = false; in __acpi_thermal_trips_update() local
210 tz->trips.critical.valid = false; in __acpi_thermal_trips_update()
215 tz->trips.critical.valid = false; in __acpi_thermal_trips_update()
217 tz->trips.critical.valid = true; in __acpi_thermal_trips_update()
222 if (tz->trips.critical.valid) { in __acpi_thermal_trips_update()
224 tz->trips.critical.valid = false; in __acpi_thermal_trips_update()
243 tz->trips.hot.valid = false; in __acpi_thermal_trips_update()
248 tz->trips.hot.valid = true; in __acpi_thermal_trips_update()
256 if (((flag & ACPI_TRIPS_PASSIVE) && tz->trips.passive.trip.valid) || in __acpi_thermal_trips_update()
258 valid = tz->trips.passive.trip.valid; in __acpi_thermal_trips_update()
270 tz->trips.passive.trip.valid = false; in __acpi_thermal_trips_update()
273 tz->trips.passive.trip.valid = true; in __acpi_thermal_trips_update()
278 tz->trips.passive.trip.valid = false; in __acpi_thermal_trips_update()
285 tz->trips.passive.trip.valid = false; in __acpi_thermal_trips_update()
292 tz->trips.passive.trip.valid = false; in __acpi_thermal_trips_update()
298 if ((flag & ACPI_TRIPS_DEVICES) && tz->trips.passive.trip.valid) { in __acpi_thermal_trips_update()
305 tz->trips.passive.trip.valid = false; in __acpi_thermal_trips_update()
307 tz->trips.passive.trip.valid = true; in __acpi_thermal_trips_update()
318 if (valid != tz->trips.passive.trip.valid) in __acpi_thermal_trips_update()
325 valid = tz->trips.active[i].trip.valid; in __acpi_thermal_trips_update()
331 tz->trips.active[i].trip.valid)) { in __acpi_thermal_trips_update()
335 tz->trips.active[i].trip.valid = false; in __acpi_thermal_trips_update()
358 tz->trips.active[i].trip.valid = true; in __acpi_thermal_trips_update()
363 if ((flag & ACPI_TRIPS_DEVICES) && tz->trips.active[i].trip.valid) { in __acpi_thermal_trips_update()
370 tz->trips.active[i].trip.valid = false; in __acpi_thermal_trips_update()
372 tz->trips.active[i].trip.valid = true; in __acpi_thermal_trips_update()
383 if (valid != tz->trips.active[i].trip.valid) in __acpi_thermal_trips_update()
386 if (!tz->trips.active[i].trip.valid) in __acpi_thermal_trips_update()
410 if (acpi_trip->valid) in acpi_thermal_adjust_trip()
456 bool valid; in acpi_thermal_get_trip_points() local
461 valid = tz->trips.critical.valid | in acpi_thermal_get_trip_points()
462 tz->trips.hot.valid | in acpi_thermal_get_trip_points()
463 tz->trips.passive.trip.valid; in acpi_thermal_get_trip_points()
466 valid = valid || tz->trips.active[i].trip.valid; in acpi_thermal_get_trip_points()
468 if (!valid) { in acpi_thermal_get_trip_points()
469 pr_warn(FW_BUG "No valid trip found\n"); in acpi_thermal_get_trip_points()
506 if (!acpi_trip || !acpi_trip->valid) in thermal_get_trend()
573 if (tz->trips.critical.valid) in acpi_thermal_cooling_device_cb()
576 if (tz->trips.hot.valid) in acpi_thermal_cooling_device_cb()
579 if (tz->trips.passive.trip.valid) { in acpi_thermal_cooling_device_cb()
604 if (!tz->trips.active[i].trip.valid) in acpi_thermal_cooling_device_cb()
691 if (tz->trips.critical.valid) in acpi_thermal_register_thermal_zone()
694 if (tz->trips.hot.valid) in acpi_thermal_register_thermal_zone()
697 if (tz->trips.passive.trip.valid) { in acpi_thermal_register_thermal_zone()
702 for (i = 0; i < ACPI_THERMAL_MAX_ACTIVE && tz->trips.active[i].trip.valid; i++) in acpi_thermal_register_thermal_zone()
711 if (tz->trips.critical.valid) { in acpi_thermal_register_thermal_zone()
717 if (tz->trips.hot.valid) { in acpi_thermal_register_thermal_zone()
724 if (acpi_trip->valid) { in acpi_thermal_register_thermal_zone()
734 if (!acpi_trip->valid) in acpi_thermal_register_thermal_zone()
891 if (tz->trips.critical.valid && in acpi_thermal_guess_offset()
1013 if (!tz->trips.active[i].trip.valid) in acpi_thermal_resume()