Lines Matching refs:target_state
162 int target_state = state; in acpi_device_set_power() local
190 target_state = state; in acpi_device_set_power()
236 result = acpi_power_transition(device, target_state); in acpi_device_set_power()
275 acpi_power_state_string(target_state)); in acpi_device_set_power()
277 device->power.state = target_state; in acpi_device_set_power()
279 acpi_power_state_string(target_state)); in acpi_device_set_power()
583 u32 target_state, int *d_min_p, int *d_max_p) in acpi_dev_pm_get_state() argument
585 char method[] = { '_', 'S', '0' + target_state, 'D', '\0' }; in acpi_dev_pm_get_state()
607 if (target_state > ACPI_STATE_S0) { in acpi_dev_pm_get_state()
635 && adev->wakeup.sleep_state >= target_state; in acpi_dev_pm_get_state()
655 if (has_sxd && target_state > ACPI_STATE_S0) in acpi_dev_pm_get_state()
749 u32 target_state) in __acpi_device_wakeup_enable() argument
766 error = acpi_enable_wakeup_device_power(adev, target_state); in __acpi_device_wakeup_enable()
811 static int acpi_device_wakeup_enable(struct acpi_device *adev, u32 target_state) in acpi_device_wakeup_enable() argument
813 return __acpi_device_wakeup_enable(adev, target_state); in acpi_device_wakeup_enable()
917 u32 target_state = acpi_target_system_state(); in acpi_dev_suspend() local
924 error = acpi_device_wakeup_enable(adev, target_state); in acpi_dev_suspend()
931 error = acpi_dev_pm_low_power(dev, adev, target_state); in acpi_dev_suspend()