Lines Matching defs:state
888 * _SxD returns the D-state with the highest power
889 * (lowest D-state number) supported in the S-state "x".
894 * D-state) than the return value from _SxD.
896 * But if _PRW is enabled at S-state "x", the OS
899 * the lowest power (highest D-state number) the device
904 * if (_PRW at S-state x)
906 * else // no _PRW at S-state x
990 * if the power state returned by _S0W is D2 or shallower,
1056 int acpi_pci_set_power_state(struct pci_dev *dev, pci_power_t state)
1072 switch (state) {
1083 if (state == PCI_D3cold) {
1092 error = acpi_device_set_power(adev, state_conv[state]);
1096 pci_dbg(dev, "power state changed by ACPI to %s\n",
1097 acpi_power_state_string(adev->power.state));
1105 if (state == PCI_D0)
1121 int state;
1126 state = adev->power.state;
1127 if (state == ACPI_STATE_UNKNOWN)
1130 return state_conv[state];