Searched refs:acpi_state (Results 1 – 4 of 4) sorted by relevance
/drivers/acpi/ |
D | sleep.c | 36 static void acpi_sleep_tts_switch(u32 acpi_state) in acpi_sleep_tts_switch() argument 40 status = acpi_execute_simple_method(NULL, "\\_TTS", acpi_state); in acpi_sleep_tts_switch() 63 static int acpi_sleep_prepare(u32 acpi_state) in acpi_sleep_prepare() argument 69 if (acpi_state == ACPI_STATE_S3) { in acpi_sleep_prepare() 78 pr_info("Preparing to enter system sleep state S%d\n", acpi_state); in acpi_sleep_prepare() 79 acpi_enable_wakeup_devices(acpi_state); in acpi_sleep_prepare() 80 acpi_enter_sleep_state_prep(acpi_state); in acpi_sleep_prepare() 475 u32 acpi_state = acpi_target_sleep_state; in acpi_pm_finish() local 480 if (acpi_state == ACPI_STATE_S0) in acpi_pm_finish() 483 pr_info("Waking up from system sleep state S%d\n", acpi_state); in acpi_pm_finish() [all …]
|
D | fan.c | 153 int acpi_state = ACPI_STATE_D0; in fan_get_state() local 155 result = acpi_device_update_power(device, &acpi_state); in fan_get_state() 159 *state = acpi_state == ACPI_STATE_D3_COLD in fan_get_state() 160 || acpi_state == ACPI_STATE_D3_HOT ? in fan_get_state() 161 0 : (acpi_state == ACPI_STATE_D0 ? 1 : -1); in fan_get_state()
|
/drivers/ata/ |
D | libata-acpi.c | 902 int acpi_state; in sata_acpi_set_state() local 910 acpi_state = ata_acpi_choose_suspend_state(dev, runtime); in sata_acpi_set_state() 911 if (acpi_state == ACPI_STATE_D0) in sata_acpi_set_state() 914 acpi_state == ACPI_STATE_D3_COLD) in sata_acpi_set_state() 916 acpi_bus_set_power(handle, acpi_state); in sata_acpi_set_state()
|
/drivers/pci/ |
D | pci-acpi.c | 911 int acpi_state, d_max; in acpi_pci_choose_state() local 917 acpi_state = acpi_pm_device_sleep_state(&pdev->dev, NULL, d_max); in acpi_pci_choose_state() 918 if (acpi_state < 0) in acpi_pci_choose_state() 921 switch (acpi_state) { in acpi_pci_choose_state()
|