Searched refs:acpi_state (Results 1 – 4 of 4) sorted by relevance
/linux-5.19.10/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() 77 pr_info("Preparing to enter system sleep state S%d\n", 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() 474 u32 acpi_state = acpi_target_sleep_state; in acpi_pm_finish() local 479 if (acpi_state == ACPI_STATE_S0) in acpi_pm_finish() 482 pr_info("Waking up from system sleep state S%d\n", acpi_state); in acpi_pm_finish() [all …]
|
D | fan_core.c | 148 int acpi_state = ACPI_STATE_D0; in fan_get_state() local 150 result = acpi_device_update_power(device, &acpi_state); in fan_get_state() 154 *state = acpi_state == ACPI_STATE_D3_COLD in fan_get_state() 155 || acpi_state == ACPI_STATE_D3_HOT ? in fan_get_state() 156 0 : (acpi_state == ACPI_STATE_D0 ? 1 : -1); in fan_get_state()
|
/linux-5.19.10/drivers/ata/ |
D | libata-acpi.c | 870 int acpi_state; in sata_acpi_set_state() local 878 acpi_state = ata_acpi_choose_suspend_state(dev, runtime); in sata_acpi_set_state() 879 if (acpi_state == ACPI_STATE_D0) in sata_acpi_set_state() 882 acpi_state == ACPI_STATE_D3_COLD) in sata_acpi_set_state() 884 acpi_bus_set_power(handle, acpi_state); in sata_acpi_set_state()
|
/linux-5.19.10/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()
|