Lines Matching refs:valid
174 /* Make sure this is a valid target state */
191 if (!device->power.states[ACPI_STATE_D3_COLD].flags.valid)
193 } else if (!device->power.states[state].flags.valid) {
481 * NOTE: @adev need not be a run-wake or wakeup device to be a valid source of
554 return result ? false : device->wakeup.flags.valid;
579 * Callers must ensure that @dev and @adev are valid pointers and that @adev
625 * D3cold if D3hot is not a valid state.
627 if (!adev->power.states[ret].flags.valid) {
638 wakeup = device_may_wakeup(dev) && adev->wakeup.flags.valid
641 wakeup = adev->wakeup.flags.valid;
649 * can wake the system. _S0W may be valid, too.
662 /* Fall back to D3cold if ret is not a valid state. */
663 if (!adev->power.states[ret].flags.valid)
690 * The caller must ensure that @dev is valid before using this function.
724 if (adev->power.states[d_max].flags.valid)
799 * Callers must ensure that @adev is a valid ACPI device node before executing
813 * Callers must ensure that @adev is a valid ACPI device node before executing
985 if (!pm_runtime_suspended(dev) || !adev || (adev->wakeup.flags.valid &&
1283 * If @dev has a valid ACPI handle that has a valid struct acpi_device object