Lines Matching refs:target_state
162 int target_state = state; in acpi_device_set_power() local
191 target_state = state; in acpi_device_set_power()
237 result = acpi_power_transition(device, target_state); in acpi_device_set_power()
276 acpi_power_state_string(target_state)); in acpi_device_set_power()
278 device->power.state = target_state; in acpi_device_set_power()
282 acpi_power_state_string(target_state))); in acpi_device_set_power()
586 u32 target_state, int *d_min_p, int *d_max_p) in acpi_dev_pm_get_state() argument
588 char method[] = { '_', 'S', '0' + target_state, 'D', '\0' }; in acpi_dev_pm_get_state()
610 if (target_state > ACPI_STATE_S0) { in acpi_dev_pm_get_state()
638 && adev->wakeup.sleep_state >= target_state; in acpi_dev_pm_get_state()
658 if (has_sxd && target_state > ACPI_STATE_S0) in acpi_dev_pm_get_state()
752 u32 target_state, int max_count) in __acpi_device_wakeup_enable() argument
766 error = acpi_enable_wakeup_device_power(adev, target_state); in __acpi_device_wakeup_enable()
800 static int acpi_device_wakeup_enable(struct acpi_device *adev, u32 target_state) in acpi_device_wakeup_enable() argument
802 return __acpi_device_wakeup_enable(adev, target_state, 1); in acpi_device_wakeup_enable()
924 u32 target_state = acpi_target_system_state(); in acpi_dev_suspend() local
931 error = acpi_device_wakeup_enable(adev, target_state); in acpi_dev_suspend()
938 error = acpi_dev_pm_low_power(dev, adev, target_state); in acpi_dev_suspend()