Lines Matching full:valid
120 u8 valid:1; member
252 * 1.An invalid trip point becomes invalid or a valid trip point becomes invalid
270 int valid = 0; in acpi_thermal_trips_update() local
285 tz->trips.critical.flags.valid = 0; in acpi_thermal_trips_update()
291 tz->trips.critical.flags.valid = 0; in acpi_thermal_trips_update()
293 tz->trips.critical.flags.valid = 1; in acpi_thermal_trips_update()
298 if (tz->trips.critical.flags.valid == 1) { in acpi_thermal_trips_update()
300 tz->trips.critical.flags.valid = 0; in acpi_thermal_trips_update()
320 tz->trips.hot.flags.valid = 0; in acpi_thermal_trips_update()
325 tz->trips.hot.flags.valid = 1; in acpi_thermal_trips_update()
333 if (((flag & ACPI_TRIPS_PASSIVE) && tz->trips.passive.flags.valid) || in acpi_thermal_trips_update()
335 valid = tz->trips.passive.flags.valid; in acpi_thermal_trips_update()
347 tz->trips.passive.flags.valid = 0; in acpi_thermal_trips_update()
350 tz->trips.passive.flags.valid = 1; in acpi_thermal_trips_update()
356 tz->trips.passive.flags.valid = 0; in acpi_thermal_trips_update()
363 tz->trips.passive.flags.valid = 0; in acpi_thermal_trips_update()
370 tz->trips.passive.flags.valid = 0; in acpi_thermal_trips_update()
376 if ((flag & ACPI_TRIPS_DEVICES) && tz->trips.passive.flags.valid) { in acpi_thermal_trips_update()
382 tz->trips.passive.flags.valid = 0; in acpi_thermal_trips_update()
385 tz->trips.passive.flags.valid = 1; in acpi_thermal_trips_update()
395 if (valid != tz->trips.passive.flags.valid) in acpi_thermal_trips_update()
402 valid = tz->trips.active[i].flags.valid; in acpi_thermal_trips_update()
408 tz->trips.active[i].flags.valid)) { in acpi_thermal_trips_update()
412 tz->trips.active[i].flags.valid = 0; in acpi_thermal_trips_update()
433 tz->trips.active[i].flags.valid = 1; in acpi_thermal_trips_update()
438 if ((flag & ACPI_TRIPS_DEVICES) && tz->trips.active[i].flags.valid ) { in acpi_thermal_trips_update()
445 tz->trips.active[i].flags.valid = 0; in acpi_thermal_trips_update()
448 tz->trips.active[i].flags.valid = 1; in acpi_thermal_trips_update()
458 if (valid != tz->trips.active[i].flags.valid) in acpi_thermal_trips_update()
461 if (!tz->trips.active[i].flags.valid) in acpi_thermal_trips_update()
481 int i, valid, ret = acpi_thermal_trips_update(tz, ACPI_TRIPS_INIT); in acpi_thermal_get_trip_points() local
486 valid = tz->trips.critical.flags.valid | in acpi_thermal_get_trip_points()
487 tz->trips.hot.flags.valid | in acpi_thermal_get_trip_points()
488 tz->trips.passive.flags.valid; in acpi_thermal_get_trip_points()
491 valid |= tz->trips.active[i].flags.valid; in acpi_thermal_get_trip_points()
493 if (!valid) { in acpi_thermal_get_trip_points()
494 pr_warn(FW_BUG "No valid trip found\n"); in acpi_thermal_get_trip_points()
528 if (tz->trips.critical.flags.valid) { in thermal_get_trip_type()
536 if (tz->trips.hot.flags.valid) { in thermal_get_trip_type()
544 if (tz->trips.passive.flags.valid) { in thermal_get_trip_type()
553 tz->trips.active[i].flags.valid; i++) { in thermal_get_trip_type()
573 if (tz->trips.critical.flags.valid) { in thermal_get_trip_temp()
583 if (tz->trips.hot.flags.valid) { in thermal_get_trip_temp()
593 if (tz->trips.passive.flags.valid) { in thermal_get_trip_temp()
604 tz->trips.active[i].flags.valid; i++) { in thermal_get_trip_temp()
622 if (tz->trips.critical.flags.valid) { in thermal_get_crit_temp()
711 if (tz->trips.critical.flags.valid) in acpi_thermal_cooling_device_cb()
714 if (tz->trips.hot.flags.valid) in acpi_thermal_cooling_device_cb()
717 if (tz->trips.passive.flags.valid) { in acpi_thermal_cooling_device_cb()
741 if (!tz->trips.active[i].flags.valid) in acpi_thermal_cooling_device_cb()
819 if (tz->trips.critical.flags.valid) in acpi_thermal_register_thermal_zone()
822 if (tz->trips.hot.flags.valid) in acpi_thermal_register_thermal_zone()
825 if (tz->trips.passive.flags.valid) in acpi_thermal_register_thermal_zone()
829 tz->trips.active[i].flags.valid; i++, trips++); in acpi_thermal_register_thermal_zone()
831 if (tz->trips.passive.flags.valid) in acpi_thermal_register_thermal_zone()
1012 if (tz->trips.critical.flags.valid && in acpi_thermal_guess_offset()
1125 if (!tz->trips.active[i].flags.valid) in acpi_thermal_resume()