Lines Matching defs:dev
36 struct acpi_device *dev =
39 if (!dev->wakeup.flags.valid
40 || !(dev->wakeup.state.enabled || dev->wakeup.prepare_count)
41 || sleep_state > (u32) dev->wakeup.sleep_state)
44 if (dev->wakeup.state.enabled)
45 acpi_enable_wakeup_device_power(dev, sleep_state);
48 acpi_gpe_wakeup(dev->wakeup.gpe_device, dev->wakeup.gpe_number,
62 struct acpi_device *dev =
65 if (!dev->wakeup.flags.valid
66 || !(dev->wakeup.state.enabled || dev->wakeup.prepare_count)
67 || (sleep_state > (u32) dev->wakeup.sleep_state))
70 acpi_gpe_wakeup(dev->wakeup.gpe_device, dev->wakeup.gpe_number,
73 if (dev->wakeup.state.enabled)
74 acpi_disable_wakeup_device_power(dev);
84 struct acpi_device *dev = container_of(node,
87 if (dev->wakeup.flags.always_enabled)
88 dev->wakeup.state.enabled = 1;