Home
last modified time | relevance | path

Searched refs:wakeup (Results 1 – 25 of 131) 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.c413 if (adev->wakeup.flags.notifier_present) { in acpi_pm_notify_handler()
414 pm_wakeup_ws_event(adev->wakeup.ws, 0, acpi_s2idle_wakeup()); in acpi_pm_notify_handler()
415 if (adev->wakeup.context.func) { in acpi_pm_notify_handler()
417 adev->wakeup.context.func, in acpi_pm_notify_handler()
418 dev_name(adev->wakeup.context.dev)); in acpi_pm_notify_handler()
419 adev->wakeup.context.func(&adev->wakeup.context); in acpi_pm_notify_handler()
449 if (adev->wakeup.flags.notifier_present) in acpi_add_pm_notifier()
458 adev->wakeup.ws = wakeup_source_register(dev_name(&adev->dev)); in acpi_add_pm_notifier()
459 adev->wakeup.context.dev = dev; in acpi_add_pm_notifier()
460 adev->wakeup.context.func = func; in acpi_add_pm_notifier()
[all …]
Dpower.c463 if (adev->wakeup.flags.valid) in acpi_power_add_remove_device()
464 acpi_power_expose_hide(adev, &adev->wakeup.resources, in acpi_power_add_remove_device()
557 dev->wakeup.flags.valid = 0; in acpi_device_sleep_wake()
565 dev->wakeup.flags.valid = 0; in acpi_device_sleep_wake()
583 if (!dev || !dev->wakeup.flags.valid) in acpi_enable_wakeup_device_power()
588 if (dev->wakeup.prepare_count++) in acpi_enable_wakeup_device_power()
591 list_for_each_entry(entry, &dev->wakeup.resources, node) { in acpi_enable_wakeup_device_power()
607 dev->wakeup.flags.valid = 0; in acpi_enable_wakeup_device_power()
617 dev->wakeup.prepare_count = 0; in acpi_enable_wakeup_device_power()
635 if (!dev || !dev->wakeup.flags.valid) in acpi_disable_wakeup_device_power()
[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()
Dscan.c451 if (device->wakeup.flags.valid) in acpi_free_power_resources_lists()
452 acpi_power_resources_list_free(&device->wakeup.resources); in acpi_free_power_resources_lists()
685 if (device->wakeup.flags.valid) in acpi_device_add()
766 struct acpi_device_wakeup *wakeup) in acpi_bus_extract_wakeup_device_power_package() argument
774 if (!wakeup) in acpi_bus_extract_wakeup_device_power_package()
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()
[all …]
/drivers/base/power/
Dsysfs.c375 static DEVICE_ATTR(wakeup, 0644, wake_show, wake_store);
384 if (dev->power.wakeup) { in wakeup_count_show()
385 count = dev->power.wakeup->event_count; in wakeup_count_show()
401 if (dev->power.wakeup) { in wakeup_active_count_show()
402 count = dev->power.wakeup->active_count; in wakeup_active_count_show()
419 if (dev->power.wakeup) { in wakeup_abort_count_show()
420 count = dev->power.wakeup->wakeup_count; in wakeup_abort_count_show()
437 if (dev->power.wakeup) { in wakeup_expire_count_show()
438 count = dev->power.wakeup->expire_count; in wakeup_expire_count_show()
454 if (dev->power.wakeup) { in wakeup_active_show()
[all …]
Dwakeup.c253 if (dev->power.wakeup) { in device_wakeup_attach()
257 dev->power.wakeup = ws; in device_wakeup_attach()
306 ws = dev->power.wakeup; in device_wakeup_attach_irq()
331 ws = dev->power.wakeup; in device_wakeup_detach_irq()
379 ws = dev->power.wakeup; in device_wakeup_detach()
380 dev->power.wakeup = NULL; in device_wakeup_detach()
612 __pm_stay_awake(dev->power.wakeup); in pm_stay_awake()
721 __pm_relax(dev->power.wakeup); in pm_relax()
810 pm_wakeup_ws_event(dev->power.wakeup, msec, hard); in pm_wakeup_dev_event()
/drivers/soc/rockchip/
Dpm_domains.c84 #define DOMAIN(pwr, status, req, idle, ack, wakeup) \ argument
91 .active_wakeup = wakeup, \
94 #define DOMAIN_M(pwr, status, req, idle, ack, wakeup) \ argument
103 .active_wakeup = wakeup, \
106 #define DOMAIN_RK3288(pwr, status, req, wakeup) \ argument
107 DOMAIN(pwr, status, req, req, (req) + 16, wakeup)
109 #define DOMAIN_RK3328(pwr, status, req, wakeup) \ argument
110 DOMAIN_M(pwr, pwr, req, (req) + 10, req, wakeup)
112 #define DOMAIN_RK3368(pwr, status, req, wakeup) \ argument
113 DOMAIN(pwr, status, req, (req) + 16, req, wakeup)
[all …]
/drivers/infiniband/hw/hfi1/
Diowait.h112 void (*wakeup)(struct iowait *wait, int reason); member
151 void (*wakeup)(struct iowait *wait, int reason), in iowait_init()
165 wait->wakeup = wakeup; in iowait_init()
/drivers/input/keyboard/
Dgpio_keys.c390 if (bdata->button->wakeup) in gpio_keys_gpio_work_func()
400 if (bdata->button->wakeup) { in gpio_keys_gpio_isr()
448 if (bdata->button->wakeup) in gpio_keys_irq_isr()
717 button->wakeup = in gpio_keys_get_devtree_pdata()
750 int wakeup = 0; in gpio_keys_probe() local
824 if (button->wakeup) in gpio_keys_probe()
825 wakeup = 1; in gpio_keys_probe()
844 device_init_wakeup(dev, wakeup); in gpio_keys_probe()
858 if (bdata->button->wakeup) in gpio_keys_suspend()
882 if (bdata->button->wakeup) in gpio_keys_resume()
Dsnvs_pwrkey.c43 int wakeup; member
124 pdata->wakeup = of_property_read_bool(np, "wakeup-source"); in imx_snvs_pwrkey_probe()
177 device_init_wakeup(&pdev->dev, pdata->wakeup); in imx_snvs_pwrkey_probe()
/drivers/net/wireless/intel/iwlwifi/mvm/
Dd3.c1372 struct cfg80211_wowlan_wakeup wakeup = { in iwl_mvm_report_wakeup_reasons() local
1375 struct cfg80211_wowlan_wakeup *wakeup_report = &wakeup; in iwl_mvm_report_wakeup_reasons()
1386 wakeup.magic_pkt = true; in iwl_mvm_report_wakeup_reasons()
1389 wakeup.pattern_idx = in iwl_mvm_report_wakeup_reasons()
1394 wakeup.disconnect = true; in iwl_mvm_report_wakeup_reasons()
1397 wakeup.gtk_rekey_failure = true; in iwl_mvm_report_wakeup_reasons()
1400 wakeup.rfkill_release = true; in iwl_mvm_report_wakeup_reasons()
1403 wakeup.eap_identity_req = true; in iwl_mvm_report_wakeup_reasons()
1406 wakeup.four_way_handshake = true; in iwl_mvm_report_wakeup_reasons()
1409 wakeup.tcp_connlost = true; in iwl_mvm_report_wakeup_reasons()
[all …]
/drivers/usb/host/
Dohci-at91.c55 bool wakeup; /* Saved wake-up state for resume */ member
601 ohci_at91->wakeup = device_may_wakeup(dev) in ohci_hcd_at91_drv_suspend()
604 if (ohci_at91->wakeup) in ohci_hcd_at91_drv_suspend()
609 ret = ohci_suspend(hcd, ohci_at91->wakeup); in ohci_hcd_at91_drv_suspend()
611 if (ohci_at91->wakeup) in ohci_hcd_at91_drv_suspend()
622 if (!ohci_at91->wakeup) { in ohci_hcd_at91_drv_suspend()
639 if (ohci_at91->wakeup) in ohci_hcd_at91_drv_resume()
/drivers/input/misc/
Dsoc_button_array.c29 bool wakeup; member
102 gpio_keys[n_buttons].wakeup = info->wakeup; in soc_button_device_create()
187 info->wakeup = true; in soc_button_parse_btn_desc()
191 info->wakeup = true; in soc_button_parse_btn_desc()
/drivers/platform/x86/
Dxo15-ebook.c136 if (device->wakeup.flags.valid) { in ebook_switch_add()
138 acpi_enable_gpe(device->wakeup.gpe_device, in ebook_switch_add()
139 device->wakeup.gpe_number); in ebook_switch_add()
Dsurface3_button.c64 bool wakeup; member
127 gpio_keys[n_buttons].wakeup = info->wakeup; in surface3_button_device_create()
/drivers/extcon/
Dextcon-palmas.c203 palmas_usb->wakeup = of_property_read_bool(node, "ti,wakeup"); in palmas_usb_probe()
209 palmas_usb->wakeup = true; in palmas_usb_probe()
214 palmas_usb->wakeup = pdata->wakeup; in palmas_usb_probe()
260 palmas_usb_wakeup(palmas, palmas_usb->wakeup); in palmas_usb_probe()
/drivers/tty/serial/8250/
Dserial_cs.c76 void (*wakeup)(struct pcmcia_device *); member
224 .wakeup = quirk_wakeup_oxsemi,
229 .wakeup = quirk_wakeup_possio_gcc,
299 if (info->quirk && info->quirk->wakeup) in serial_resume()
300 info->quirk->wakeup(link); in serial_resume()
578 if (info->quirk && info->quirk->wakeup) in multi_config()
579 info->quirk->wakeup(link); in multi_config()
/drivers/pci/pcie/
Dpme.c388 bool wakeup; in pcie_pme_suspend() local
392 wakeup = true; in pcie_pme_suspend()
395 wakeup = pcie_pme_check_wakeup(port->subordinate); in pcie_pme_suspend()
398 if (wakeup) { in pcie_pme_suspend()
/drivers/media/pci/bt8xx/
Dbttv-driver.c3603 bttv_irq_wakeup_video(struct bttv *btv, struct bttv_buffer_set *wakeup, in bttv_irq_wakeup_video() argument
3610 if (wakeup->top == wakeup->bottom) { in bttv_irq_wakeup_video()
3611 if (NULL != wakeup->top && curr->top != wakeup->top) { in bttv_irq_wakeup_video()
3614 btv->c.nr, wakeup->top); in bttv_irq_wakeup_video()
3615 wakeup->top->vb.ts = ts; in bttv_irq_wakeup_video()
3616 wakeup->top->vb.field_count = btv->field_count; in bttv_irq_wakeup_video()
3617 wakeup->top->vb.state = state; in bttv_irq_wakeup_video()
3618 wake_up(&wakeup->top->vb.done); in bttv_irq_wakeup_video()
3621 if (NULL != wakeup->top && curr->top != wakeup->top) { in bttv_irq_wakeup_video()
3624 btv->c.nr, wakeup->top); in bttv_irq_wakeup_video()
[all …]
/drivers/gpu/drm/tegra/
Dmipi-phy.c56 timing->wakeup = 1000000; in mipi_dphy_timing_get_default()
133 if (timing->wakeup < 1000000) in mipi_dphy_timing_validate()
/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()
/drivers/mfd/
Drt5033.c76 rt5033->wakeup = true; in rt5033_i2c_probe()
108 device_init_wakeup(rt5033->dev, rt5033->wakeup); in rt5033_i2c_probe()
/drivers/net/wireless/marvell/mwifiex/
DREADME129 wakeup_dev_req = <0/1, wakeup device not required/required>
130 wakeup_tries = <wakeup device count, cleared when device awake>
233 [GPIO#]: pin number of GPIO used to wakeup the host.
236 [gap]: the gap in milliseconds between wakeup signal and
237 wakeup event or 0xff for special setting (host
238 acknowledge required) when GPIO is used to wakeup host.
248 to ack before sending wakeup event
/drivers/net/wireless/intel/iwlwifi/dvm/
Dmac80211.c461 struct cfg80211_wowlan_wakeup wakeup = { in iwlagn_mac_resume() local
500 wakeup.rfkill_release = true; in iwlagn_mac_resume()
501 ieee80211_report_wowlan_wakeup(vif, &wakeup, in iwlagn_mac_resume()
548 wakeup.magic_pkt = true; in iwlagn_mac_resume()
550 wakeup.pattern_idx = status_data.pattern_number; in iwlagn_mac_resume()
553 wakeup.disconnect = true; in iwlagn_mac_resume()
555 wakeup.gtk_rekey_failure = true; in iwlagn_mac_resume()
557 wakeup.eap_identity_req = true; in iwlagn_mac_resume()
559 wakeup.four_way_handshake = true; in iwlagn_mac_resume()
560 wakeup_report = &wakeup; in iwlagn_mac_resume()

123456