Home
last modified time | relevance | path

Searched refs:acpi_state (Results 1 – 4 of 4) sorted by relevance

/drivers/acpi/
Dsleep.c34 static void acpi_sleep_tts_switch(u32 acpi_state) in acpi_sleep_tts_switch() argument
38 status = acpi_execute_simple_method(NULL, "\\_TTS", acpi_state); in acpi_sleep_tts_switch()
61 static int acpi_sleep_prepare(u32 acpi_state) in acpi_sleep_prepare() argument
67 if (acpi_state == ACPI_STATE_S3) { in acpi_sleep_prepare()
77 acpi_state); in acpi_sleep_prepare()
78 acpi_enable_wakeup_devices(acpi_state); in acpi_sleep_prepare()
79 acpi_enter_sleep_state_prep(acpi_state); in acpi_sleep_prepare()
478 u32 acpi_state = acpi_target_sleep_state; in acpi_pm_finish() local
483 if (acpi_state == ACPI_STATE_S0) in acpi_pm_finish()
487 acpi_state); in acpi_pm_finish()
[all …]
Dfan.c153 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/
Dlibata-acpi.c897 int acpi_state; in sata_acpi_set_state() local
905 acpi_state = ata_acpi_choose_suspend_state(dev, runtime); in sata_acpi_set_state()
906 if (acpi_state == ACPI_STATE_D0) in sata_acpi_set_state()
909 acpi_state == ACPI_STATE_D3_COLD) in sata_acpi_set_state()
911 acpi_bus_set_power(handle, acpi_state); in sata_acpi_set_state()
/drivers/pci/
Dpci-acpi.c910 int acpi_state, d_max; in acpi_pci_choose_state() local
916 acpi_state = acpi_pm_device_sleep_state(&pdev->dev, NULL, d_max); in acpi_pci_choose_state()
917 if (acpi_state < 0) in acpi_pci_choose_state()
920 switch (acpi_state) { in acpi_pci_choose_state()