Home
last modified time | relevance | path

Searched refs:wakeup (Results 1 – 25 of 143) sorted by relevance

123456

/drivers/acpi/
Dwakeup.c39 if (!dev->wakeup.flags.valid in acpi_enable_wakeup_devices()
40 || sleep_state > (u32) dev->wakeup.sleep_state in acpi_enable_wakeup_devices()
42 || dev->wakeup.prepare_count)) in acpi_enable_wakeup_devices()
49 acpi_set_gpe_wake_mask(dev->wakeup.gpe_device, dev->wakeup.gpe_number, in acpi_enable_wakeup_devices()
66 if (!dev->wakeup.flags.valid in acpi_disable_wakeup_devices()
67 || sleep_state > (u32) dev->wakeup.sleep_state in acpi_disable_wakeup_devices()
69 || dev->wakeup.prepare_count)) in acpi_disable_wakeup_devices()
72 acpi_set_gpe_wake_mask(dev->wakeup.gpe_device, dev->wakeup.gpe_number, in acpi_disable_wakeup_devices()
91 acpi_enable_gpe(dev->wakeup.gpe_device, in acpi_wakeup_device_init()
92 dev->wakeup.gpe_number); in acpi_wakeup_device_init()
Ddevice_pm.c459 if (adev->wakeup.flags.notifier_present) { in acpi_pm_notify_handler()
460 pm_wakeup_ws_event(adev->wakeup.ws, 0, acpi_s2idle_wakeup()); in acpi_pm_notify_handler()
461 if (adev->wakeup.context.func) { in acpi_pm_notify_handler()
463 adev->wakeup.context.func, in acpi_pm_notify_handler()
464 dev_name(adev->wakeup.context.dev)); in acpi_pm_notify_handler()
465 adev->wakeup.context.func(&adev->wakeup.context); in acpi_pm_notify_handler()
495 if (adev->wakeup.flags.notifier_present) in acpi_add_pm_notifier()
504 adev->wakeup.ws = wakeup_source_register(&adev->dev, in acpi_add_pm_notifier()
506 adev->wakeup.context.dev = dev; in acpi_add_pm_notifier()
507 adev->wakeup.context.func = func; in acpi_add_pm_notifier()
[all …]
Dproc.c35 if (!dev->wakeup.flags.valid) in acpi_system_wakeup_device_seq_show()
40 (u32) dev->wakeup.sleep_state); in acpi_system_wakeup_device_seq_show()
46 dev->wakeup.flags.valid ? '*' : ' ', in acpi_system_wakeup_device_seq_show()
62 dev->wakeup.flags.valid ? '*' : ' ', in acpi_system_wakeup_device_seq_show()
115 if (!dev->wakeup.flags.valid) in acpi_system_write_wakeup_device()
Dpower.c584 if (adev->wakeup.flags.valid) in acpi_power_add_remove_device()
585 acpi_power_expose_hide(adev, &adev->wakeup.resources, in acpi_power_add_remove_device()
678 dev->wakeup.flags.valid = 0; in acpi_device_sleep_wake()
686 dev->wakeup.flags.valid = 0; in acpi_device_sleep_wake()
704 if (!dev || !dev->wakeup.flags.valid) in acpi_enable_wakeup_device_power()
709 if (dev->wakeup.prepare_count++) in acpi_enable_wakeup_device_power()
712 list_for_each_entry(entry, &dev->wakeup.resources, node) { in acpi_enable_wakeup_device_power()
728 dev->wakeup.flags.valid = 0; in acpi_enable_wakeup_device_power()
738 dev->wakeup.prepare_count = 0; in acpi_enable_wakeup_device_power()
756 if (!dev || !dev->wakeup.flags.valid) in acpi_disable_wakeup_device_power()
[all …]
Dscan.c453 if (device->wakeup.flags.valid) in acpi_free_power_resources_lists()
454 acpi_power_resources_list_free(&device->wakeup.resources); in acpi_free_power_resources_lists()
687 if (device->wakeup.flags.valid) in acpi_device_add()
770 struct acpi_device_wakeup *wakeup = &dev->wakeup; in acpi_bus_extract_wakeup_device_power_package() local
777 INIT_LIST_HEAD(&wakeup->resources); in acpi_bus_extract_wakeup_device_power_package()
802 wakeup->gpe_device = in acpi_bus_extract_wakeup_device_power_package()
804 wakeup->gpe_number = in acpi_bus_extract_wakeup_device_power_package()
807 wakeup->gpe_device = NULL; in acpi_bus_extract_wakeup_device_power_package()
808 wakeup->gpe_number = element->integer.value; in acpi_bus_extract_wakeup_device_power_package()
817 wakeup->sleep_state = element->integer.value; in acpi_bus_extract_wakeup_device_power_package()
[all …]
/drivers/gnss/
Dsirf.c45 struct gpio_desc *wakeup; member
170 if (!data->wakeup && !data->active) { in sirf_receive_buf()
194 ret = gpiod_get_value_cansleep(data->wakeup); in sirf_wakeup_handler()
235 if (!data->wakeup) in sirf_wait_for_power_state()
270 if (!data->wakeup) { in sirf_set_active()
281 if (!data->wakeup) in sirf_set_active()
357 if (data->wakeup) in sirf_suspend()
368 if (data->wakeup) in sirf_resume()
446 data->wakeup = devm_gpiod_get_optional(dev, "sirf,wakeup", in sirf_probe()
448 if (IS_ERR(data->wakeup)) in sirf_probe()
[all …]
/drivers/base/power/
Dsysfs.c342 static DEVICE_ATTR_RW(wakeup);
351 if (dev->power.wakeup) { in wakeup_count_show()
352 count = dev->power.wakeup->wakeup_count; in wakeup_count_show()
369 if (dev->power.wakeup) { in wakeup_active_count_show()
370 count = dev->power.wakeup->active_count; in wakeup_active_count_show()
387 if (dev->power.wakeup) { in wakeup_abort_count_show()
388 count = dev->power.wakeup->wakeup_count; in wakeup_abort_count_show()
405 if (dev->power.wakeup) { in wakeup_expire_count_show()
406 count = dev->power.wakeup->expire_count; in wakeup_expire_count_show()
422 if (dev->power.wakeup) { in wakeup_active_show()
[all …]
Dwakeup.c261 if (dev->power.wakeup) { in device_wakeup_attach()
265 dev->power.wakeup = ws; in device_wakeup_attach()
317 ws = dev->power.wakeup; in device_wakeup_attach_irq()
339 ws = dev->power.wakeup; in device_wakeup_detach_irq()
387 ws = dev->power.wakeup; in device_wakeup_detach()
388 dev->power.wakeup = NULL; in device_wakeup_detach()
614 __pm_stay_awake(dev->power.wakeup); in pm_stay_awake()
723 __pm_relax(dev->power.wakeup); in pm_relax()
812 pm_wakeup_ws_event(dev->power.wakeup, msec, hard); in pm_wakeup_dev_event()
Dwakeup_stats.c193 if (!parent->power.wakeup || parent->power.wakeup->dev) in pm_wakeup_source_sysfs_add()
196 return wakeup_source_sysfs_add(parent, parent->power.wakeup); in pm_wakeup_source_sysfs_add()
/drivers/slimbus/
Dsched.c25 int slim_ctrl_clk_pause(struct slim_controller *ctrl, bool wakeup, u8 restart) in slim_ctrl_clk_pause() argument
35 if (wakeup == false && restart > SLIM_CLK_UNSPECIFIED) in slim_ctrl_clk_pause()
39 if (wakeup) { in slim_ctrl_clk_pause()
63 if (sched->clk_state == SLIM_CLK_PAUSED && ctrl->wakeup) in slim_ctrl_clk_pause()
64 ret = ctrl->wakeup(ctrl); in slim_ctrl_clk_pause()
/drivers/soc/rockchip/
Dpm_domains.c88 #define DOMAIN(pwr, status, req, idle, ack, wakeup) \ argument
95 .active_wakeup = (wakeup), \
98 #define DOMAIN_M(pwr, status, req, idle, ack, wakeup) \ argument
107 .active_wakeup = wakeup, \
110 #define DOMAIN_RK3036(req, ack, idle, wakeup) \ argument
116 .active_wakeup = wakeup, \
119 #define DOMAIN_PX30(pwr, status, req, wakeup) \ argument
120 DOMAIN_M(pwr, status, req, (req) << 16, req, wakeup)
122 #define DOMAIN_RK3288(pwr, status, req, wakeup) \ argument
123 DOMAIN(pwr, status, req, req, (req) << 16, wakeup)
[all …]
/drivers/net/wireless/intel/iwlwifi/mvm/
Dd3.c1127 struct cfg80211_wowlan_wakeup wakeup = { in iwl_mvm_report_wakeup_reasons() local
1130 struct cfg80211_wowlan_wakeup *wakeup_report = &wakeup; in iwl_mvm_report_wakeup_reasons()
1141 wakeup.magic_pkt = true; in iwl_mvm_report_wakeup_reasons()
1144 wakeup.pattern_idx = in iwl_mvm_report_wakeup_reasons()
1149 wakeup.disconnect = true; in iwl_mvm_report_wakeup_reasons()
1152 wakeup.gtk_rekey_failure = true; in iwl_mvm_report_wakeup_reasons()
1155 wakeup.rfkill_release = true; in iwl_mvm_report_wakeup_reasons()
1158 wakeup.eap_identity_req = true; in iwl_mvm_report_wakeup_reasons()
1161 wakeup.four_way_handshake = true; in iwl_mvm_report_wakeup_reasons()
1164 wakeup.tcp_connlost = true; in iwl_mvm_report_wakeup_reasons()
[all …]
/drivers/infiniband/hw/hfi1/
Diowait.c49 void (*wakeup)(struct iowait *wait, int reason), in iowait_init()
63 wait->wakeup = wakeup; in iowait_init()
/drivers/input/keyboard/
Dgpio_keys.c386 if (bdata->button->wakeup) in gpio_keys_gpio_work_func()
396 if (bdata->button->wakeup) { in gpio_keys_gpio_isr()
444 if (bdata->button->wakeup) in gpio_keys_irq_isr()
737 button->wakeup = in gpio_keys_get_devtree_pdata()
772 int wakeup = 0; in gpio_keys_probe() local
845 if (button->wakeup) in gpio_keys_probe()
846 wakeup = 1; in gpio_keys_probe()
858 device_init_wakeup(dev, wakeup); in gpio_keys_probe()
924 if (bdata->button->wakeup) { in gpio_keys_enable_wakeup()
937 if (bdata->button->wakeup) in gpio_keys_enable_wakeup()
Dsnvs_pwrkey.c37 int wakeup; member
118 pdata->wakeup = of_property_read_bool(np, "wakeup-source"); in imx_snvs_pwrkey_probe()
168 device_init_wakeup(&pdev->dev, pdata->wakeup); in imx_snvs_pwrkey_probe()
Dmtk-pmic-keys.c82 bool wakeup:1; member
202 if (keys->keys[index].wakeup) in mtk_pmic_keys_suspend()
215 if (keys->keys[index].wakeup) in mtk_pmic_keys_resume()
296 keys->keys[index].wakeup = true; in mtk_pmic_keys_probe()
/drivers/usb/host/
Dohci-at91.c56 bool wakeup; /* Saved wake-up state for resume */ member
605 ohci_at91->wakeup = device_may_wakeup(dev) in ohci_hcd_at91_drv_suspend()
608 if (ohci_at91->wakeup) in ohci_hcd_at91_drv_suspend()
613 ret = ohci_suspend(hcd, ohci_at91->wakeup); in ohci_hcd_at91_drv_suspend()
615 if (ohci_at91->wakeup) in ohci_hcd_at91_drv_suspend()
626 if (!ohci_at91->wakeup) { in ohci_hcd_at91_drv_suspend()
643 if (ohci_at91->wakeup) in ohci_hcd_at91_drv_resume()
/drivers/platform/x86/
Dxo15-ebook.c132 if (device->wakeup.flags.valid) { in ebook_switch_add()
134 acpi_enable_gpe(device->wakeup.gpe_device, in ebook_switch_add()
135 device->wakeup.gpe_number); in ebook_switch_add()
Dsurface3_button.c60 bool wakeup; member
123 gpio_keys[n_buttons].wakeup = info->wakeup; in surface3_button_device_create()
/drivers/input/misc/
Dsoc_button_array.c25 bool wakeup; member
115 gpio_keys[n_buttons].wakeup = info->wakeup; in soc_button_device_create()
194 info->wakeup = true; in soc_button_parse_btn_desc()
202 info->wakeup = true; in soc_button_parse_btn_desc()
/drivers/extcon/
Dextcon-palmas.c192 palmas_usb->wakeup = of_property_read_bool(node, "ti,wakeup"); in palmas_usb_probe()
198 palmas_usb->wakeup = true; in palmas_usb_probe()
203 palmas_usb->wakeup = pdata->wakeup; in palmas_usb_probe()
249 palmas_usb_wakeup(palmas, palmas_usb->wakeup); in palmas_usb_probe()
/drivers/tty/serial/8250/
Dserial_cs.c77 void (*wakeup)(struct pcmcia_device *); member
225 .wakeup = quirk_wakeup_oxsemi,
230 .wakeup = quirk_wakeup_possio_gcc,
300 if (info->quirk && info->quirk->wakeup) in serial_resume()
301 info->quirk->wakeup(link); in serial_resume()
579 if (info->quirk && info->quirk->wakeup) in multi_config()
580 info->quirk->wakeup(link); in multi_config()
/drivers/pci/pcie/
Dpme.c386 bool wakeup; in pcie_pme_suspend() local
390 wakeup = true; in pcie_pme_suspend()
393 wakeup = pcie_pme_check_wakeup(port->subordinate); in pcie_pme_suspend()
396 if (wakeup) { in pcie_pme_suspend()
/drivers/media/pci/bt8xx/
Dbttv-driver.c3547 bttv_irq_wakeup_video(struct bttv *btv, struct bttv_buffer_set *wakeup, in bttv_irq_wakeup_video() argument
3552 if (wakeup->top == wakeup->bottom) { in bttv_irq_wakeup_video()
3553 if (NULL != wakeup->top && curr->top != wakeup->top) { in bttv_irq_wakeup_video()
3556 btv->c.nr, wakeup->top); in bttv_irq_wakeup_video()
3557 wakeup->top->vb.ts = ts; in bttv_irq_wakeup_video()
3558 wakeup->top->vb.field_count = btv->field_count; in bttv_irq_wakeup_video()
3559 wakeup->top->vb.state = state; in bttv_irq_wakeup_video()
3560 wake_up(&wakeup->top->vb.done); in bttv_irq_wakeup_video()
3563 if (NULL != wakeup->top && curr->top != wakeup->top) { in bttv_irq_wakeup_video()
3566 btv->c.nr, wakeup->top); in bttv_irq_wakeup_video()
[all …]
/drivers/parport/
Dshare.c773 tmp->wakeup = kf; in parport_register_device()
861 if (!par_dev_cb->preempt || !par_dev_cb->wakeup) { in parport_register_dev_model()
903 par_dev->wakeup = par_dev_cb->wakeup; in parport_register_dev_model()
1221 if (dev->waiting & 2 || dev->wakeup) { in parport_claim()
1360 } else if (pd->wakeup) { in parport_release()
1361 pd->wakeup(pd->private); in parport_release()
1375 if (pd->wakeup && pd != dev) in parport_release()
1376 pd->wakeup(pd->private); in parport_release()

123456