Searched refs:wakeup (Results 1 - 200 of 870) sorted by relevance

12345

/linux-4.1.27/drivers/acpi/
H A Dwakeup.c2 * wakeup.c - support wakeup devices
26 * Enable wakeup device power of devices with the state.enable flag set and set
27 * the wakeup enable mask bits in the GPE registers that correspond to wakeup
38 if (!dev->wakeup.flags.valid acpi_enable_wakeup_devices()
39 || sleep_state > (u32) dev->wakeup.sleep_state acpi_enable_wakeup_devices()
41 || dev->wakeup.prepare_count)) acpi_enable_wakeup_devices()
48 acpi_set_gpe_wake_mask(dev->wakeup.gpe_device, dev->wakeup.gpe_number, acpi_enable_wakeup_devices()
54 * acpi_disable_wakeup_devices - Disable devices' wakeup capability.
65 if (!dev->wakeup.flags.valid acpi_disable_wakeup_devices()
66 || sleep_state > (u32) dev->wakeup.sleep_state acpi_disable_wakeup_devices()
68 || dev->wakeup.prepare_count)) acpi_disable_wakeup_devices()
71 acpi_set_gpe_wake_mask(dev->wakeup.gpe_device, dev->wakeup.gpe_number, acpi_disable_wakeup_devices()
90 acpi_enable_gpe(dev->wakeup.gpe_device, acpi_wakeup_device_init()
91 dev->wakeup.gpe_number); acpi_wakeup_device_init()
H A Dproc.c16 * /proc/acpi/wakeup
34 if (!dev->wakeup.flags.valid) acpi_system_wakeup_device_seq_show()
39 (u32) dev->wakeup.sleep_state); acpi_system_wakeup_device_seq_show()
45 dev->wakeup.flags.run_wake ? '*' : ' ', acpi_system_wakeup_device_seq_show()
61 dev->wakeup.flags.run_wake ? '*' : ' ', acpi_system_wakeup_device_seq_show()
114 if (!dev->wakeup.flags.valid) acpi_system_write_wakeup_device()
149 /* 'wakeup device' [R/W] */ acpi_sleep_proc_init()
150 proc_create("wakeup", S_IFREG | S_IRUGO | S_IWUSR, acpi_sleep_proc_init()
H A Ddevice_pm.c384 if (adev->wakeup.flags.notifier_present) { acpi_pm_notify_handler()
385 __pm_wakeup_event(adev->wakeup.ws, 0); acpi_pm_notify_handler()
386 if (adev->wakeup.context.work.func) acpi_pm_notify_handler()
387 queue_pm_work(&adev->wakeup.context.work); acpi_pm_notify_handler()
398 * @dev: Device to generate a wakeup event for while handling the notification.
401 * NOTE: @adev need not be a run-wake or wakeup device to be a valid source of
402 * PM wakeup events. For example, wakeup events may be generated for bridges
403 * if one of the devices below the bridge is signaling wakeup, even if the
404 * bridge itself doesn't have a wakeup GPE associated with it.
416 if (adev->wakeup.flags.notifier_present) acpi_add_pm_notifier()
419 adev->wakeup.ws = wakeup_source_register(dev_name(&adev->dev)); acpi_add_pm_notifier()
420 adev->wakeup.context.dev = dev; acpi_add_pm_notifier()
422 INIT_WORK(&adev->wakeup.context.work, work_func); acpi_add_pm_notifier()
429 adev->wakeup.flags.notifier_present = true; acpi_add_pm_notifier()
446 if (!adev->wakeup.flags.notifier_present) acpi_remove_pm_notifier()
455 if (adev->wakeup.context.work.func) { acpi_remove_pm_notifier()
456 cancel_work_sync(&adev->wakeup.context.work); acpi_remove_pm_notifier()
457 adev->wakeup.context.work.func = NULL; acpi_remove_pm_notifier()
459 adev->wakeup.context.dev = NULL; acpi_remove_pm_notifier()
460 wakeup_source_unregister(adev->wakeup.ws); acpi_remove_pm_notifier()
462 adev->wakeup.flags.notifier_present = false; acpi_remove_pm_notifier()
475 return result ? false : device->wakeup.flags.valid; acpi_bus_can_wakeup()
507 bool wakeup = false; acpi_dev_pm_get_state() local
513 * wakeup, in which case the return value of _S0W has to be used as the acpi_dev_pm_get_state()
547 wakeup = device_may_wakeup(dev) && adev->wakeup.flags.valid acpi_dev_pm_get_state()
548 && adev->wakeup.sleep_state >= target_state; acpi_dev_pm_get_state()
551 wakeup = adev->wakeup.flags.valid; acpi_dev_pm_get_state()
557 * wakeup-aware driver if wake is set). Still, if _SxW exists acpi_dev_pm_get_state()
561 if (wakeup) { acpi_dev_pm_get_state()
643 * acpi_pm_notify_work_func - ACPI devices wakeup notification work function.
658 * acpi_device_wakeup - Enable/disable wakeup functionality for device.
659 * @adev: ACPI device to enable/disable wakeup functionality for.
661 * @enable: Whether to enable or disable the wakeup functionality.
664 * wakeup signals for the device in response to external (remote) events and
665 * enable/disable device wakeup power.
673 struct acpi_device_wakeup *wakeup = &adev->wakeup; acpi_device_wakeup() local
683 if (adev->wakeup.flags.enabled) acpi_device_wakeup()
686 res = acpi_enable_gpe(wakeup->gpe_device, wakeup->gpe_number); acpi_device_wakeup()
688 adev->wakeup.flags.enabled = 1; acpi_device_wakeup()
694 if (adev->wakeup.flags.enabled) { acpi_device_wakeup()
695 acpi_disable_gpe(wakeup->gpe_device, wakeup->gpe_number); acpi_device_wakeup()
696 adev->wakeup.flags.enabled = 0; acpi_device_wakeup()
704 * acpi_pm_device_run_wake - Enable/disable remote wakeup for given device.
706 * @enable: Whether to enable or disable the wakeup functionality.
747 dev_info(dev, "System wakeup %s by ACPI\n", acpi_pm_device_sleep_wake()
787 * mechanism. Set up remote wakeup if desired, choose the state to put the
788 * device into (this checks if remote wakeup is expected to work too), and set
820 * disable remote wakeup.
870 * sleep state using the standard ACPI mechanism. Set up system wakeup if
872 * wakeup is expected to work too), and set the power state of the device.
878 bool wakeup; acpi_dev_suspend_late() local
885 wakeup = device_may_wakeup(dev) && acpi_device_can_wakeup(adev); acpi_dev_suspend_late()
886 error = acpi_device_wakeup(adev, target_state, wakeup); acpi_dev_suspend_late()
887 if (wakeup && error) acpi_dev_suspend_late()
904 * state of the device to ACPI D0 and disable remote wakeup.
935 || device_may_wakeup(dev) != !!adev->wakeup.prepare_count) acpi_subsys_prepare()
1052 * Remove the device from the general ACPI PM domain and remove its wakeup
1087 * attached to it, install a wakeup notification handler for the device and
H A Dpower.c441 if (adev->wakeup.flags.valid) acpi_power_add_remove_device()
442 acpi_power_expose_hide(adev, &adev->wakeup.resources, acpi_power_add_remove_device()
499 * wakeup.flags.valid flag.
535 dev->wakeup.flags.valid = 0; acpi_device_sleep_wake()
543 dev->wakeup.flags.valid = 0; acpi_device_sleep_wake()
551 * Prepare a wakeup device, two steps (Ref ACPI 2.0:P229):
552 * 1. Power on the power resources required for the wakeup device
561 if (!dev || !dev->wakeup.flags.valid) acpi_enable_wakeup_device_power()
566 if (dev->wakeup.prepare_count++) acpi_enable_wakeup_device_power()
569 list_for_each_entry(entry, &dev->wakeup.resources, node) { acpi_enable_wakeup_device_power()
584 "Cannot turn wakeup power resources on\n"); acpi_enable_wakeup_device_power()
585 dev->wakeup.flags.valid = 0; acpi_enable_wakeup_device_power()
595 dev->wakeup.prepare_count = 0; acpi_enable_wakeup_device_power()
603 * Shutdown a wakeup device, counterpart of above method
613 if (!dev || !dev->wakeup.flags.valid) acpi_disable_wakeup_device_power()
618 if (--dev->wakeup.prepare_count > 0) acpi_disable_wakeup_device_power()
625 if (dev->wakeup.prepare_count < 0) acpi_disable_wakeup_device_power()
626 dev->wakeup.prepare_count = 0; acpi_disable_wakeup_device_power()
632 list_for_each_entry(entry, &dev->wakeup.resources, node) { acpi_disable_wakeup_device_power()
647 "Cannot turn wakeup power resources off\n"); acpi_disable_wakeup_device_power()
648 dev->wakeup.flags.valid = 0; acpi_disable_wakeup_device_power()
H A Dscan.c1096 if (device->wakeup.flags.valid) acpi_free_power_resources_lists()
1097 acpi_power_resources_list_free(&device->wakeup.resources); acpi_free_power_resources_lists()
1449 if (device->wakeup.flags.valid) acpi_device_add()
1591 struct acpi_device_wakeup *wakeup) acpi_bus_extract_wakeup_device_power_package()
1599 if (!wakeup) acpi_bus_extract_wakeup_device_power_package()
1602 INIT_LIST_HEAD(&wakeup->resources); acpi_bus_extract_wakeup_device_power_package()
1627 wakeup->gpe_device = acpi_bus_extract_wakeup_device_power_package()
1629 wakeup->gpe_number = acpi_bus_extract_wakeup_device_power_package()
1632 wakeup->gpe_device = NULL; acpi_bus_extract_wakeup_device_power_package()
1633 wakeup->gpe_number = element->integer.value; acpi_bus_extract_wakeup_device_power_package()
1642 wakeup->sleep_state = element->integer.value; acpi_bus_extract_wakeup_device_power_package()
1644 err = acpi_extract_power_resources(package, 2, &wakeup->resources); acpi_bus_extract_wakeup_device_power_package()
1648 if (!list_empty(&wakeup->resources)) { acpi_bus_extract_wakeup_device_power_package()
1651 err = acpi_power_wakeup_list_init(&wakeup->resources, acpi_bus_extract_wakeup_device_power_package()
1655 "of wakeup power resources failed\n"); acpi_bus_extract_wakeup_device_power_package()
1656 acpi_power_resources_list_free(&wakeup->resources); acpi_bus_extract_wakeup_device_power_package()
1659 if (sleep_state < wakeup->sleep_state) { acpi_bus_extract_wakeup_device_power_package()
1662 (int)wakeup->sleep_state, sleep_state); acpi_bus_extract_wakeup_device_power_package()
1663 wakeup->sleep_state = sleep_state; acpi_bus_extract_wakeup_device_power_package()
1680 struct acpi_device_wakeup *wakeup = &device->wakeup; acpi_wakeup_gpe_init() local
1684 wakeup->flags.notifier_present = 0; acpi_wakeup_gpe_init()
1686 /* Power button, Lid switch always enable wakeup */ acpi_wakeup_gpe_init()
1688 wakeup->flags.run_wake = 1; acpi_wakeup_gpe_init()
1690 /* Do not use Lid/sleep button for S5 wakeup */ acpi_wakeup_gpe_init()
1691 if (wakeup->sleep_state == ACPI_STATE_S5) acpi_wakeup_gpe_init()
1692 wakeup->sleep_state = ACPI_STATE_S4; acpi_wakeup_gpe_init()
1694 acpi_mark_gpe_for_wake(wakeup->gpe_device, wakeup->gpe_number); acpi_wakeup_gpe_init()
1699 acpi_setup_gpe_for_wake(device->handle, wakeup->gpe_device, acpi_wakeup_gpe_init()
1700 wakeup->gpe_number); acpi_wakeup_gpe_init()
1701 status = acpi_get_gpe_status(wakeup->gpe_device, wakeup->gpe_number, acpi_wakeup_gpe_init()
1706 wakeup->flags.run_wake = !!(event_status & ACPI_EVENT_FLAG_HAS_HANDLER); acpi_wakeup_gpe_init()
1718 &device->wakeup); acpi_bus_get_wakeup_device_flags()
1724 device->wakeup.flags.valid = 1; acpi_bus_get_wakeup_device_flags()
1725 device->wakeup.prepare_count = 0; acpi_bus_get_wakeup_device_flags()
1590 acpi_bus_extract_wakeup_device_power_package(acpi_handle handle, struct acpi_device_wakeup *wakeup) acpi_bus_extract_wakeup_device_power_package() argument
H A DMakefile25 acpi-y += wakeup.o
H A Dsleep.c60 /* do we have a wakeup address for S2 and S3? */ acpi_sleep_prepare()
346 * acpi_pre_suspend - Enable wakeup devices, "freeze" EC and save NVS.
358 * nastiness to get the wakeup code to the waking vector.
420 * hint to userspace in the form of a wakeup event on the fixed power acpi_pm_finish()
540 * a wakeup event. We flag this condition for now and generate the acpi_suspend_enter()
542 * generate wakeup events. acpi_suspend_enter()
558 * (like wakeup GPE) haven't handler, this can avoid such GPE misfire. acpi_suspend_enter()
/linux-4.1.27/include/linux/i2c/
H A Dmpr121_touchkey.h10 * @wakeup: configure the button as a wake-up source
16 bool wakeup; member in struct:mpr121_platform_data
/linux-4.1.27/arch/arm/mach-imx/
H A Dmach-pcm037_eet.c73 .wakeup = 0,
79 .wakeup = 0,
85 .wakeup = 0,
91 .wakeup = 0,
97 .wakeup = 0,
103 .wakeup = 0,
109 .wakeup = 0,
115 .wakeup = 0,
121 .wakeup = 0,
127 .wakeup = 0,
133 .wakeup = 0,
139 .wakeup = 0,
145 .wakeup = 0,
151 .wakeup = 0,
H A Dmach-imx27_visstrim_m10.c284 .wakeup = 1,
292 .wakeup = 1,
300 .wakeup = 1,
/linux-4.1.27/include/linux/input/
H A Dbu21013.h19 * @wakeup: wakeup flag
31 bool wakeup; member in struct:bu21013_platform_device
H A Dgp2ap002a00f.h11 * @wakeup: Set to true if the proximity can wake the device from suspend
17 bool wakeup; member in struct:gp2a_platform_data
H A Dsamsung-keypad.h27 * @wakeup: controls whether the device should be set up as wakeup source.
38 bool wakeup; member in struct:samsung_keypad_platdata
H A Dmatrix_keypad.h49 * @wakeup: controls whether the device should be set up as wakeup
74 bool wakeup; member in struct:matrix_keypad_platform_data
/linux-4.1.27/arch/x86/realmode/rm/
H A DMakefile13 wakeup-objs := wakeup_asm.o wakemain.o video-mode.o
14 wakeup-objs += copy.o bioscall.o regs.o
19 wakeup-objs += video-vga.o
20 wakeup-objs += video-vesa.o
21 wakeup-objs += video-bios.o
27 realmode-$(CONFIG_ACPI_SLEEP) += $(wakeup-objs)
H A Dwakeup.h2 * Definitions for the wakeup data structure at the head of the
3 * wakeup code.
12 /* This must match data at wakeup.S */
H A Dwakeup_asm.S2 * ACPI wakeup real mode startup stub
11 #include "wakeup.h"
15 /* This should match the structure in wakeup.h */
146 * Set up the wakeup GDT. We set these up as Big Real Mode,
H A Dwakemain.c1 #include "wakeup.h"
/linux-4.1.27/arch/arm/plat-samsung/include/plat/
H A Dwakeup-mask.h1 /* arch/arm/plat-samsung/include/plat/wakeup-mask.h
5 * Support for wakeup mask interrupts on newer SoCs
20 * struct samsung_wakeup_mask - wakeup mask information
21 * @irq: The interrupt associated with this wakeup.
30 * samsung_sync_wakemask - sync wakeup mask information for pm
35 * Synchronise the wakeup mask information at suspend time from the list
/linux-4.1.27/drivers/base/power/
H A Dwakeup.c2 * drivers/base/power/wakeup.c - System wakeup events framework
23 * if wakeup events are registered during or immediately before the transition.
31 * Combined counters of registered wakeup events and wakeup events in progress.
60 * wakeup_source_prepare - Prepare a new wakeup source for initialization.
62 * @name: Pointer to the name of the new wakeup source.
78 * @name: Name of the new wakeup source.
98 * be run in parallel with this function for the same wakeup source object.
114 * Use only for wakeup source objects created with wakeup_source_create().
128 * wakeup_source_add - Add given object to the list of wakeup sources.
150 * wakeup_source_remove - Remove given object from the wakeup sources list.
168 * wakeup_source_register - Create wakeup source and add it to the list.
169 * @name: Name of the wakeup source to register.
184 * wakeup_source_unregister - Remove wakeup source from the list and remove it.
197 * device_wakeup_attach - Attach a wakeup source object to a device object.
201 * This causes @dev to be treated as a wakeup device.
206 if (dev->power.wakeup) { device_wakeup_attach()
210 dev->power.wakeup = ws; device_wakeup_attach()
216 * device_wakeup_enable - Enable given device to be a wakeup source.
219 * Create a wakeup source object, register it and attach it to @dev.
242 * device_wakeup_detach - Detach a device's wakeup source object from it.
243 * @dev: Device to detach the wakeup source object from.
245 * After it returns, @dev will not be treated as a wakeup device any more.
252 ws = dev->power.wakeup; device_wakeup_detach()
253 dev->power.wakeup = NULL; device_wakeup_detach()
259 * device_wakeup_disable - Do not regard a device as a wakeup source any more.
262 * Detach the @dev's wakeup source object from it, unregister this wakeup source
281 * device_set_wakeup_capable - Set/reset device wakeup capability flag.
286 * wakeup-related attributes to sysfs. Otherwise, unset the @dev's
287 * power.can_wakeup flag and remove its wakeup-related attributes from sysfs.
310 * device_init_wakeup - Device wakeup initialization.
312 * @enable: Whether or not to enable @dev as a wakeup device.
314 * By default, most devices should leave wakeup disabled. The exceptions are
315 * devices that everyone expects to be wakeup sources: keyboards, power buttons,
317 * own wakeup requests but merely forward requests from one bus to another
318 * (like PCI bridges) should have wakeup enabled by default.
355 * The functions below use the observation that each wakeup event starts a
357 * will end depends on how the wakeup event is going to be processed after being
361 * First, a wakeup event may be detected by the same functional unit that will
369 * Second, a wakeup event may be detected by one functional unit and processed
383 * wakup_source_activate - Mark given wakeup source as active.
387 * core of the event by incrementing the counter of of wakeup events being
395 * active wakeup source should bring the system wakeup_source_activate()
413 * wakeup_source_report_event - Report wakeup event using the given source.
428 * __pm_stay_awake - Notify the PM core of a wakeup event.
451 * pm_stay_awake - Notify the PM core that a wakeup event is being processed.
452 * @dev: Device the wakeup event is related to.
454 * Notify the PM core of a wakeup event (signaled by @dev) by calling
455 * __pm_stay_awake for the @dev's wakeup source object.
457 * Call this function after detecting of a wakeup event if pm_relax() is going
469 __pm_stay_awake(dev->power.wakeup); pm_stay_awake()
486 * wakup_source_deactivate - Mark given wakeup source as inactive.
489 * Update the @ws' statistics and notify the PM core that the wakeup source has
490 * become inactive by decrementing the counter of wakeup events being processed
491 * and incrementing the counter of registered wakeup events.
530 * Increment the counter of registered wakeup events and decrement the wakeup_source_deactivate()
531 * couter of wakeup events in progress simultaneously. wakeup_source_deactivate()
542 * __pm_relax - Notify the PM core that processing of a wakeup event has ended.
545 * Call this function for wakeup events whose processing started with calling
565 * pm_relax - Notify the PM core that processing of a wakeup event has ended.
568 * Execute __pm_relax() for the @dev's wakeup source object.
578 __pm_relax(dev->power.wakeup); pm_relax()
584 * pm_wakeup_timer_fn - Delayed finalization of a wakeup event.
585 * @data: Address of the wakeup source object associated with the event source.
587 * Call wakeup_source_deactivate() for the wakeup source whose address is stored
608 * __pm_wakeup_event - Notify the PM core of a wakeup event.
612 * Notify the PM core of a wakeup event whose source is @ws that will take
652 * pm_wakeup_event - Notify the PM core of a wakeup event.
653 * @dev: Device the wakeup event is related to.
656 * Call __pm_wakeup_event() for the @dev's wakeup source object.
666 __pm_wakeup_event(dev->power.wakeup, msec); pm_wakeup_event()
680 pr_info("active wakeup source: %s\n", ws->name); pm_print_active_wakeup_sources()
691 pr_info("last active wakeup source: %s\n", pm_print_active_wakeup_sources()
700 * Compare the current number of registered wakeup events with its preserved
701 * value from the past and return true if new wakeup events have been registered
703 * wakeup events being processed is different from zero.
741 * pm_get_wakeup_count - Read the number of registered wakeup events.
745 * Store the number of registered wakeup events at the address in @count. If
746 * @block is set, block until the current number of wakeup events being
749 * Return 'false' if the current number of wakeup events being processed is
777 * pm_save_wakeup_count - Save the current number of registered wakeup events.
778 * @count: Value to compare with the current number of registered wakeup events.
780 * If @count is equal to the current number of registered wakeup events and the
781 * current number of wakeup events being processed is zero, store @count as the
782 * old number of registered wakeup events for pm_check_wakeup_events(), enable
783 * wakeup events detection and return 'true'. Otherwise disable wakeup events
804 * pm_wakep_autosleep_enabled - Modify autosleep_enabled for all wakeup sources.
833 * print_wakeup_source_stats - Print wakeup source statistics information.
881 * wakeup_sources_stats_show - Print wakeup sources statistics information.
H A Dsysfs.c30 * wakeup - Report/change current wakeup option for device
32 * Some devices support "wakeup" events, which are hardware signals
34 * devices have one of three values for the sysfs power/wakeup file:
38 * + "\n" for temporary or permanent inability to issue wakeup.
42 * Familiar examples of devices that can issue wakeup events include
47 * Some wakeup events use normal IRQ lines; other use special out
51 * wakeup signaling as part of changing device power states, respecting
54 * Devices may not be able to generate wakeup events from all power
57 * active, or which may have wakeup disabled. Some drivers rely on
58 * wakeup events internally (unless they are disabled), keeping
92 * wakeup_count - Report the number of wakeup events related to the device
369 static DEVICE_ATTR(wakeup, 0644, wake_show, wake_store);
378 if (dev->power.wakeup) { wakeup_count_show()
379 count = dev->power.wakeup->event_count; wakeup_count_show()
395 if (dev->power.wakeup) { wakeup_active_count_show()
396 count = dev->power.wakeup->active_count; wakeup_active_count_show()
413 if (dev->power.wakeup) { wakeup_abort_count_show()
414 count = dev->power.wakeup->wakeup_count; wakeup_abort_count_show()
431 if (dev->power.wakeup) { wakeup_expire_count_show()
432 count = dev->power.wakeup->expire_count; wakeup_expire_count_show()
448 if (dev->power.wakeup) { wakeup_active_show()
449 active = dev->power.wakeup->active; wakeup_active_show()
465 if (dev->power.wakeup) { wakeup_total_time_show()
466 msec = ktime_to_ms(dev->power.wakeup->total_time); wakeup_total_time_show()
482 if (dev->power.wakeup) { wakeup_max_time_show()
483 msec = ktime_to_ms(dev->power.wakeup->max_time); wakeup_max_time_show()
499 if (dev->power.wakeup) { wakeup_last_time_show()
500 msec = ktime_to_ms(dev->power.wakeup->last_time); wakeup_last_time_show()
518 if (dev->power.wakeup) { wakeup_prevent_sleep_time_show()
519 msec = ktime_to_ms(dev->power.wakeup->prevent_sleep_time); wakeup_prevent_sleep_time_show()
/linux-4.1.27/arch/powerpc/sysdev/
H A Dfsl_mpic_timer_wakeup.c2 * MPIC timer wakeup driver
32 struct fsl_mpic_timer_wakeup *wakeup = fsl_free_resource() local
37 if (wakeup->timer) { fsl_free_resource()
38 disable_irq_wake(wakeup->timer->irq); fsl_free_resource()
39 mpic_free_timer(wakeup->timer); fsl_free_resource()
42 wakeup->timer = NULL; fsl_free_resource()
48 struct fsl_mpic_timer_wakeup *wakeup = dev_id; fsl_mpic_timer_irq() local
50 schedule_work(&wakeup->free_work); fsl_mpic_timer_irq()
52 return wakeup->timer ? IRQ_HANDLED : IRQ_NONE; fsl_mpic_timer_irq()
159 MODULE_DESCRIPTION("Freescale MPIC global timer wakeup driver");
/linux-4.1.27/drivers/usb/phy/
H A Dphy-am335x.c69 * If we leave PHY wakeup enabled then AM33XX wakes up am335x_phy_probe()
72 * on whether to enable PHY wakeup or not. am335x_phy_probe()
73 * PHY wakeup works fine in standby mode, there by allowing us to am335x_phy_probe()
74 * handle remote wakeup, wakeup on disconnect and connect. am335x_phy_probe()
98 * Enable phy wakeup only if dev->power.can_wakeup is true. am335x_phy_suspend()
99 * Make sure to enable wakeup to support remote wakeup in am335x_phy_suspend()
102 * echo enabled > /sys/bus/platform/devices/<usb-phy-id>/power/wakeup am335x_phy_suspend()
H A Dphy-am335x-control.c163 res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "wakeup"); am335x_control_usb_probe()
/linux-4.1.27/arch/frv/kernel/
H A Dpm-mb93093.c28 * Setup interrupt masks, etc to enable wakeup by power switch
38 * Cleanup interrupt masks, etc after wakeup by power switch
46 * Return non-zero if wakeup irq was caused by power switch
H A Dpm.c52 * Setup interrupt masks, etc to enable wakeup by power switch
62 * Cleanup interrupt masks, etc after wakeup by power switch
70 * Return non-zero if wakeup irq was caused by power switch
87 * of the interrupt state so that appropriate wakeup pm_do_bus_sleep()
/linux-4.1.27/arch/arm/plat-samsung/
H A Dwakeup-mask.c1 /* arch/arm/plat-samsung/wakeup-mask.c
5 * Support for wakeup mask interrupts on newer SoCs
19 #include <plat/wakeup-mask.h>
H A Dpm.c93 * to happen if you suspend with no wakeup (system will often s3c_pm_enter()
119 S3C_PMDBG("sleep: irq wakeup masks: %08lx,%08lx\n", s3c_pm_enter()
H A Dpm-common.c29 * array for later restoration when we wakeup.
/linux-4.1.27/arch/mips/alchemy/devboards/
H A Dpm.c18 * can be used by userspace to en/disable all au1x-provided wakeup
20 * is to trigger a wakeup.
44 /* enable GPIO based wakeup */ db1x_pm_enter()
53 /* setup 1Hz-timer-based wakeup: wait for reg access */ db1x_pm_enter()
90 printk(KERN_ERR "db1x: no wakeup source activated!\n"); db1x_pm_begin()
99 /* read and store wakeup source, the clear the register. To db1x_pm_end()
196 ATTR(gpio0) /* GPIO-based wakeup enable */
204 ATTR(timer) /* TOYMATCH2-based wakeup enable */
205 ATTR(timer_timeout) /* timer-based wakeup timeout value, in seconds */
206 ATTR(wakesrc) /* contents of SYS_WAKESRC after last wakeup */
/linux-4.1.27/drivers/pinctrl/samsung/
H A Dpinctrl-exynos.h20 /* External GPIO and wakeup interrupt related definitions */
83 * struct exynos_weint_data: irq specific data for all the wakeup interrupts
84 * generated by the external wakeup interrupt controller.
94 * struct exynos_muxed_weint_data: irq specific data for muxed wakeup interrupts
95 * generated by the external wakeup interrupt controller.
H A Dpinctrl-samsung.h68 * @EINT_TYPE_WKUP: bank supportes external wakeup interrupts
69 * @EINT_TYPE_WKUP_MUX: bank supports multiplexed external wakeup interrupts
72 * in a pin bank can support external gpio interrupts or external wakeup
74 * difference between external gpio and external wakeup interrupts is that
75 * the wakeup interrupts can additionally wakeup the system if it is in
154 * @irq_chip: link to irq chip for external gpio and wakeup interrupts.
187 * @eint_wkup_init: platform specific callback to setup the external wakeup
H A Dpinctrl-s3c64xx.c15 * external gpio and wakeup interrupt support.
36 /* External GPIO and wakeup interrupt related definitions */
593 * irq_chip for wakeup interrupts
683 * irq domain callbacks for external wakeup interrupt controller.
690 /* list of external wakeup controllers supported */
692 { .compatible = "samsung,s3c64xx-wakeup-eint", },
697 * s3c64xx_eint_eint0_init() - setup handling of external wakeup interrupts.
730 dev_err(dev, "failed to get wakeup EINT IRQ %d\n", i); s3c64xx_eint_eint0_init()
H A Dpinctrl-s3c24xx.c13 * external gpio and wakeup interrupt support.
470 { .compatible = "samsung,s3c2410-wakeup-eint", .data = (void *)1 },
471 { .compatible = "samsung,s3c2412-wakeup-eint", .data = (void *)0 },
512 dev_err(dev, "failed to get wakeup EINT IRQ %d\n", i); s3c24xx_eint_init()
/linux-4.1.27/include/linux/
H A Dpm_wakeup.h2 * pm_wakeup.h - Power management wakeup interface
32 * struct wakeup_source - Representation of wakeup sources
34 * @total_time: Total time this wakeup source has been active.
35 * @max_time: Maximum time this wakeup source has been continuously active.
36 * @last_time: Monotonic clock when the wakeup source's was touched last time.
38 * @event_count: Number of signaled wakeup events.
39 * @active_count: Number of times the wakeup source was activated.
40 * @relax_count: Number of times the wakeup source was deactivated.
41 * @expire_count: Number of times the wakeup source's timeout has expired.
42 * @wakeup_count: Number of times the wakeup source might abort suspend.
43 * @active: Status of the wakeup source.
44 * @has_timeout: The wakeup source has been activated with a timeout.
79 return dev->power.can_wakeup && !!dev->power.wakeup; device_may_wakeup()
82 /* drivers/base/power/wakeup.c */
H A Dgpio_keys.h15 * @wakeup: configure the button as a wake-up source
29 int wakeup; member in struct:gpio_keys_button
H A Dpm.h166 * wakeup events or change its power state. The majority of subsystems
174 * @suspend_late(), but it should not enable the device to signal wakeup
210 * system wakeup signals and is enabled to wake up the system, it should be
214 * wakeup signals, in which case it generally is not necessary to define
228 * signal system wakeup by any of these callbacks.
276 * power and is capable of generating runtime wakeup events, remote wakeup
281 * wakeup event generated by hardware or at the request of software. If
425 * REMOTE_WAKEUP Remote-wakeup request was received from the device.
560 struct wakeup_source *wakeup; member in struct:dev_pm_info
649 * wakeup events as appropriate.
652 * state (eg. ACPI S4) and enable wakeup events as appropriate.
656 * NOT emit system wakeup events.
666 * during the suspend/resume cycle -- and can't issue wakeup events.
670 * be able to use wakeup events to exit from runtime low-power states,
H A Dmc146818rtc.h28 * a separate wakeup alarm used by some almost-clone chips.
/linux-4.1.27/drivers/power/reset/
H A Dat91-poweroff.c80 err = of_property_read_string(np, "atmel,wakeup-mode", &pm); at91_poweroff_get_wakeup_mode()
99 dev_warn(&pdev->dev, "shdwc unknown wakeup mode\n"); at91_poweroff_dt_set_wakeup_mode()
103 if (!of_property_read_u32(np, "atmel,wakeup-counter", &tmp)) { at91_poweroff_dt_set_wakeup_mode()
106 "shdwc wakeup counter 0x%x > 0x%x reduce it to 0x%x\n", at91_poweroff_dt_set_wakeup_mode()
113 if (of_property_read_bool(np, "atmel,wakeup-rtc-timer")) at91_poweroff_dt_set_wakeup_mode()
116 if (of_property_read_bool(np, "atmel,wakeup-rtt-timer")) at91_poweroff_dt_set_wakeup_mode()
/linux-4.1.27/arch/blackfin/mach-bf609/
H A Dpm.c58 #define BITP_ROM_SYSCTRL_DDR_WRITE 13 /* writes the DDR registers from Syscontrol structure for wakeup initialization of DDR */
78 #define BITM_ROM_SYSCTRL_DDR_WRITE (0x00002000) /* Writes the DDR registers from the structure, only really intented for wakeup functionality and not for full DDR configuration */
201 unsigned long wakeup = 0; bf609_cpu_pm_enter() local
205 wakeup |= PA15WE; bf609_cpu_pm_enter()
212 wakeup |= PB15WE; bf609_cpu_pm_enter()
219 wakeup |= PC15WE; bf609_cpu_pm_enter()
226 wakeup |= PD06WE; bf609_cpu_pm_enter()
233 wakeup |= PE12WE; bf609_cpu_pm_enter()
240 wakeup |= PG04WE; bf609_cpu_pm_enter()
247 wakeup |= PG13WE; bf609_cpu_pm_enter()
254 wakeup |= USBWE; bf609_cpu_pm_enter()
268 bfin_deepsleep(wakeup, wakeup_pol); bf609_cpu_pm_enter()
270 bfin_hibernate(wakeup, wakeup_pol); bf609_cpu_pm_enter()
/linux-4.1.27/include/linux/usb/
H A Dgpio_vbus.h20 * @wakeup: configure gpio_vbus as a wake-up source
31 bool wakeup; member in struct:gpio_vbus_mach_info
H A Disp116x.h18 /* Enable wakeup by devices on usb bus (e.g. wakeup
H A Dquirks.h47 /* device generates spurious wakeup, ignore remote wakeup capability */
/linux-4.1.27/arch/arm/mach-mmp/
H A Dpm-pxa910.c33 /* setting wakeup sources */ pxa910_set_wake()
35 /* wakeup line 2 */ pxa910_set_wake()
40 /* wakeup line 3 */ pxa910_set_wake()
53 /* wakeup line 4 */ pxa910_set_wake()
82 /* wakeup line 5 */ pxa910_set_wake()
88 /* wakeup line 6 */ pxa910_set_wake()
95 /* wakeup line 7 */ pxa910_set_wake()
170 /* program the memory controller hardware sleep type and auto wakeup */ pxa910_pm_enter_lowpower_mode()
H A Dpm-mmp2.c33 /* enable wakeup sources */ mmp2_set_wake()
43 /* mmc use WAKEUP2, same as GPIO wakeup source */ mmp2_set_wake()
/linux-4.1.27/include/linux/platform_data/
H A Dfsa9480.h24 int wakeup; member in struct:fsa9480_platform_data
H A Dkeypad-pxa27x.h66 /* clear wakeup event requirement for pxa168 */
H A Dusb-omap1.h30 /* implicitly true if otg: host supports remote wakeup? */
/linux-4.1.27/arch/mips/loongson/common/
H A Dpm.c68 * Check wakeup events
76 * If the events are really what we want to wakeup the CPU, wake it up
100 /* setup wakeup events via enabling the IRQs */ loongson_suspend_enter()
110 /* wait for the given events to wakeup cpu from wait mode */ loongson_suspend_enter()
/linux-4.1.27/arch/arm/mach-omap2/
H A Dvoltagedomains2xxx_data.c20 .name = "wakeup",
H A Domap-hotplug.c60 * OK, proper wakeup, we're done omap4_cpu_die()
64 pr_debug("CPU%u: spurious wakeup call\n", cpu); omap4_cpu_die()
H A Dclockdomains2420_data.c9 * This file contains clockdomains and clockdomain wakeup dependencies
26 * XXX encode hardware fixed wakeup dependencies -- esp. for 3430 CORE
54 /* 2420-specific possible wakeup dependencies */
H A Dclockdomains2430_data.c9 * This file contains clockdomains and clockdomain wakeup dependencies
26 * XXX encode hardware fixed wakeup dependencies -- esp. for 3430 CORE
54 /* 2430-specific possible wakeup dependencies */
H A Dclockdomains2xxx_3xxx_data.c9 * This file contains clockdomains and clockdomain wakeup/sleep
26 * XXX encode hardware fixed wakeup dependencies -- esp. for 3430 CORE
H A Dclockdomain.h43 * the force-wakeup mode, then it will be used whenever a clock or
82 * @wkdep_usecount: Number of wakeup dependencies causing this clkdm to wake
146 * @clkdm_add_wkdep: Add a wakeup dependency between clk domains
147 * @clkdm_del_wkdep: Delete a wakeup dependency between clk domains
148 * @clkdm_read_wkdep: Read wakeup dependency state between clk domains
149 * @clkdm_clear_all_wkdeps: Remove all wakeup dependencies from the clk domain
155 * @clkdm_wakeup: Force a clockdomain to wakeup
H A Domap-smp.c111 * The SGI(Software Generated Interrupts) are not wakeup capable omap4_boot_secondary()
114 * wake-up. To wakeup CPU1, CPU0 forces the CPU1 clockdomain to omap4_boot_secondary()
115 * software force wakeup. The clockdomain is then put back to omap4_boot_secondary()
132 * 1) Before doing the CPU1 wakeup, CPU0 must disable omap4_boot_secondary()
135 * it's wakeup path. omap4_boot_secondary()
H A Dclockdomain.c129 * "autodep" is a clockdomain sleep/wakeup dependency that is
180 * _clkdm_add_wkdep - add a wakeup dependency from clkdm2 to clkdm1 (lockless)
186 * designed to reduce wakeup latency of the dependent clockdomain @clkdm1.
225 * _clkdm_del_wkdep - remove a wakeup dep from clkdm2 to clkdm1 (lockless)
229 * Remove a wakeup dependency causing @clkdm1 to wake up when @clkdm2
413 * clockdomain wakeup and sleep dependencies that are automatically
561 * clkdm_add_wkdep - add a wakeup dependency from clkdm2 to clkdm1
567 * designed to reduce wakeup latency of the dependent clockdomain @clkdm1.
592 * clkdm_del_wkdep - remove a wakeup dependency from clkdm2 to clkdm1
596 * Remove a wakeup dependency causing @clkdm1 to wake up when @clkdm2
621 * clkdm_read_wkdep - read wakeup dependency state from clkdm2 to clkdm1
625 * Return 1 if a hardware wakeup dependency exists wherein @clkdm1 will be
631 * wakeup dependencies. Wakeup dependencies fixed in hardware are not
660 * clkdm_clear_all_wkdeps - remove all wakeup dependencies from target clkdm
661 * @clkdm: struct clockdomain * to remove all wakeup dependencies from
663 * Remove all inter-clockdomain wakeup dependencies that could cause
859 * clkdm_wakeup_nolock - force clockdomain wakeup transition (lockless)
862 * Instruct the CM to force a wakeup transition on the specified
865 * software-controlled wakeup; 0 upon success.
875 pr_debug("clockdomain: %s does not support forcing wakeup via software\n", clkdm_wakeup_nolock()
883 pr_debug("clockdomain: forcing wakeup on %s\n", clkdm->name); clkdm_wakeup_nolock()
893 * clkdm_wakeup - force clockdomain wakeup transition
896 * Instruct the CM to force a wakeup transition on the specified
898 * clockdomain does not support software-controlled wakeup; 0 upon
1056 * Add the "autodep" sleep & wakeup dependencies to clockdomain 'clkdm'
1086 * Remove the "autodep" sleep & wakeup dependencies from clockdomain 'clkdm'
H A Dprm2xxx.c118 * omap2xxx_prm_clear_mod_irqs - clear wakeup status bits for a module
121 * @wkst_mask: wakeup status mask to clear
123 * Clears wakeup status bits for a given module, so that the device can
H A Domap-pm.h59 * omap_pm_set_max_mpu_wakeup_lat - set the maximum MPU wakeup latency
61 * @t: maximum MPU wakeup latency in microseconds
76 * This function will not affect device wakeup latency, e.g., time
79 * other use. To control this device wakeup latency, use
H A Dpm44xx.c166 * The L4 wakeup depedency is added to workaround the OCP sync hardware
169 * are part of L4 wakeup clockdomain.
201 pr_err("Failed lookup %s or %s for wakeup dependency\n", omap4plus_init_static_deps()
207 pr_err("Failed to add %s -> %s wakeup dependency(%d)\n", omap4plus_init_static_deps()
H A Dpowerdomains2xxx_3xxx_data.c64 .voltdm = { .name = "wakeup" },
H A Dmux.c359 * omap_hwmod_mux_scan_wakeups - omap hwmod scan wakeup pads
363 * Scans the wakeup status of pads for a single hwmod. If an irq
366 * first wakeup active pad and return. Returns true if there is a
367 * pending and non-served wakeup event for the mux, otherwise false.
404 * _omap_hwmod_mux_handle_irq - Process wakeup events for a single hwmod
406 * Checks a single hwmod for every wakeup capable pad to see if there is an
407 * active wakeup event. If this is the case, call the corresponding ISR.
419 * omap_hwmod_mux_handle_irq - Process pad wakeup irqs.
422 * pad wakeup statuses.
H A Dprm3xxx.c396 * Clear any previously-latched I/O wakeup events and ensure that the
397 * I/O wakeup gates are aligned with the current mux settings. Works
425 * omap3xxx_prm_enable_io_wakeup - enable wakeup events from I/O wakeup latches
427 * Activates the I/O wakeup event latches and allows events logged by
428 * those latches to signal a wakeup event to the PRCM. For I/O
H A Dprm44xx.c291 * Clear any previously-latched I/O wakeup events and ensure that the
292 * I/O wakeup gates are aligned with the current mux settings. Works
336 * omap44xx_prm_enable_io_wakeup - enable wakeup events from I/O wakeup latches
338 * Activates the I/O wakeup event latches and allows events logged by
339 * those latches to signal a wakeup event to the PRCM. For I/O wakeups
H A Dgpio.c72 /* non-wakeup GPIO pins for OMAP2 Bank1 */ omap2_gpio_dev_init()
75 /* non-wakeup GPIO pins for OMAP2 Bank2 */ omap2_gpio_dev_init()
H A Domap-headsmp.S108 * 1) Before doing the CPU1 wakeup, CPU0 must disable
111 * it's wakeup path.
H A Domap-pm-noop.c43 pr_debug("OMAP PM: remove max MPU wakeup latency constraint: dev %s\n", omap_pm_set_max_mpu_wakeup_lat()
46 pr_debug("OMAP PM: add max MPU wakeup latency constraint: dev %s, t = %ld usec\n", omap_pm_set_max_mpu_wakeup_lat()
H A Dvoltagedomains3xxx_data.c36 .name = "wakeup",
H A Dvoltagedomains44xx_data.c84 .name = "wakeup",
/linux-4.1.27/arch/arm/mach-ux500/
H A Dhotplug.c32 * OK, proper wakeup, we're done ux500_cpu_die()
/linux-4.1.27/drivers/pinctrl/mvebu/
H A Dpinctrl-dove.c385 MPP_FUNCTION(CONFIG_PMU | 0xb, "ext0-wakeup", NULL),
386 MPP_FUNCTION(CONFIG_PMU | 0xc, "ext1-wakeup", NULL),
387 MPP_FUNCTION(CONFIG_PMU | 0xd, "ext2-wakeup", NULL),
402 MPP_FUNCTION(CONFIG_PMU | 0xb, "ext0-wakeup", NULL),
403 MPP_FUNCTION(CONFIG_PMU | 0xc, "ext1-wakeup", NULL),
404 MPP_FUNCTION(CONFIG_PMU | 0xd, "ext2-wakeup", NULL),
420 MPP_FUNCTION(CONFIG_PMU | 0xb, "ext0-wakeup", NULL),
421 MPP_FUNCTION(CONFIG_PMU | 0xc, "ext1-wakeup", NULL),
422 MPP_FUNCTION(CONFIG_PMU | 0xd, "ext2-wakeup", NULL),
439 MPP_FUNCTION(CONFIG_PMU | 0xb, "ext0-wakeup", NULL),
440 MPP_FUNCTION(CONFIG_PMU | 0xc, "ext1-wakeup", NULL),
441 MPP_FUNCTION(CONFIG_PMU | 0xd, "ext2-wakeup", NULL),
456 MPP_FUNCTION(CONFIG_PMU | 0xb, "ext0-wakeup", NULL),
457 MPP_FUNCTION(CONFIG_PMU | 0xc, "ext1-wakeup", NULL),
458 MPP_FUNCTION(CONFIG_PMU | 0xd, "ext2-wakeup", NULL),
473 MPP_FUNCTION(CONFIG_PMU | 0xb, "ext0-wakeup", NULL),
474 MPP_FUNCTION(CONFIG_PMU | 0xc, "ext1-wakeup", NULL),
475 MPP_FUNCTION(CONFIG_PMU | 0xd, "ext2-wakeup", NULL),
490 MPP_FUNCTION(CONFIG_PMU | 0xb, "ext0-wakeup", NULL),
491 MPP_FUNCTION(CONFIG_PMU | 0xc, "ext1-wakeup", NULL),
492 MPP_FUNCTION(CONFIG_PMU | 0xd, "ext2-wakeup", NULL),
507 MPP_FUNCTION(CONFIG_PMU | 0xb, "ext0-wakeup", NULL),
508 MPP_FUNCTION(CONFIG_PMU | 0xc, "ext1-wakeup", NULL),
509 MPP_FUNCTION(CONFIG_PMU | 0xd, "ext2-wakeup", NULL),
522 MPP_FUNCTION(CONFIG_PMU | 0xb, "ext0-wakeup", NULL),
523 MPP_FUNCTION(CONFIG_PMU | 0xc, "ext1-wakeup", NULL),
524 MPP_FUNCTION(CONFIG_PMU | 0xd, "ext2-wakeup", NULL),
537 MPP_FUNCTION(CONFIG_PMU | 0xb, "ext0-wakeup", NULL),
538 MPP_FUNCTION(CONFIG_PMU | 0xc, "ext1-wakeup", NULL),
539 MPP_FUNCTION(CONFIG_PMU | 0xd, "ext2-wakeup", NULL),
552 MPP_FUNCTION(CONFIG_PMU | 0xb, "ext0-wakeup", NULL),
553 MPP_FUNCTION(CONFIG_PMU | 0xc, "ext1-wakeup", NULL),
554 MPP_FUNCTION(CONFIG_PMU | 0xd, "ext2-wakeup", NULL),
571 MPP_FUNCTION(CONFIG_PMU | 0xb, "ext0-wakeup", NULL),
572 MPP_FUNCTION(CONFIG_PMU | 0xc, "ext1-wakeup", NULL),
573 MPP_FUNCTION(CONFIG_PMU | 0xd, "ext2-wakeup", NULL),
589 MPP_FUNCTION(CONFIG_PMU | 0xb, "ext0-wakeup", NULL),
590 MPP_FUNCTION(CONFIG_PMU | 0xc, "ext1-wakeup", NULL),
591 MPP_FUNCTION(CONFIG_PMU | 0xd, "ext2-wakeup", NULL),
607 MPP_FUNCTION(CONFIG_PMU | 0xb, "ext0-wakeup", NULL),
608 MPP_FUNCTION(CONFIG_PMU | 0xc, "ext1-wakeup", NULL),
609 MPP_FUNCTION(CONFIG_PMU | 0xd, "ext2-wakeup", NULL),
624 MPP_FUNCTION(CONFIG_PMU | 0xb, "ext0-wakeup", NULL),
625 MPP_FUNCTION(CONFIG_PMU | 0xc, "ext1-wakeup", NULL),
626 MPP_FUNCTION(CONFIG_PMU | 0xd, "ext2-wakeup", NULL),
641 MPP_FUNCTION(CONFIG_PMU | 0xb, "ext0-wakeup", NULL),
642 MPP_FUNCTION(CONFIG_PMU | 0xc, "ext1-wakeup", NULL),
643 MPP_FUNCTION(CONFIG_PMU | 0xd, "ext2-wakeup", NULL),
/linux-4.1.27/arch/blackfin/mach-common/
H A Dpm.c147 int wakeup; bfin_pm_suspend_mem_enter() local
160 wakeup = bfin_read_VR_CTL() & ~FREQ; bfin_pm_suspend_mem_enter()
161 wakeup |= SCKELOW; bfin_pm_suspend_mem_enter()
164 wakeup |= PHYWE; bfin_pm_suspend_mem_enter()
167 wakeup |= GPWE; bfin_pm_suspend_mem_enter()
191 do_hibernate(wakeup | vr_wakeup); /* See you later! */ bfin_pm_suspend_mem_enter()
H A Dints-priority.c218 u32 bank, bit, wakeup = 0; bfin_internal_set_wake() local
226 wakeup |= WAKE; bfin_internal_set_wake()
231 wakeup |= CANWE; bfin_internal_set_wake()
236 wakeup |= CANWE; bfin_internal_set_wake()
241 wakeup |= USBWE; bfin_internal_set_wake()
246 wakeup |= ROTWE; bfin_internal_set_wake()
257 vr_wakeup |= wakeup; bfin_internal_set_wake()
261 vr_wakeup &= ~wakeup; bfin_internal_set_wake()
1094 * Boot-ROM code modifies SICA_IWRx wakeup registers init_arch_irq()
/linux-4.1.27/arch/arm/mach-s3c24xx/
H A Dpm-s3c2412.c32 #include <plat/wakeup-mask.h>
55 /* mapping of interrupts to parts of the wakeup mask */
86 * get damaged during wakeup */
H A Dirq-pm.c33 /* default is to allow for EINT0..EINT15, and IRQ_RTC as wakeup sources
35 * set bit to 1 in allow bitfield to enable the wakeup settings on it
H A Dpm-s3c2416.c31 /* enable wakeup sources regardless of battery state */ s3c2416_cpu_suspend()
/linux-4.1.27/arch/x86/kernel/acpi/
H A Dsleep.c20 #include "../../realmode/rm/wakeup.h"
43 * Create an identity mapped page table and copy the wakeup routine to
52 printk(KERN_ERR "wakeup header does not match\n"); x86_acpi_suspend_lowlevel()
113 * inconsistent call/return info after it jumps to the wakeup vector. x86_acpi_suspend_lowlevel()
/linux-4.1.27/arch/blackfin/mach-bf561/
H A Dhotplug.c35 /* set CoreB wakeup by ipi0, iwr will be discarded */ platform_cpu_die()
H A Dsmp.c85 /* CoreB already running, sending ipi to wakeup it */ platform_boot_secondary()
/linux-4.1.27/arch/arm/mach-prima2/
H A Dhotplug.c23 * OK, proper wakeup, we're done platform_do_lowpower()
/linux-4.1.27/arch/arm/mach-pxa/
H A Dcsb701.c17 .wakeup = 1,
H A Dmfp-pxa2xx.c9 * wakeup detection are also supported by the same framework.
107 * configurations of those pins not able to wakeup __mfp_config_gpio()
110 pr_warn("%s: GPIO%d unable to wakeup\n", __func__, gpio); __mfp_config_gpio()
115 pr_warn("%s: output GPIO%d unable to wakeup\n", __func__, gpio); __mfp_config_gpio()
187 /* Allow keypad GPIOs to wakeup system when gpio_set_wake()
324 /* Overwrite GPIO13 as a PWER wakeup source */ pxa27x_mfp_init()
H A Dtosa.c473 .wakeup = 1,
487 * The first one can be used as a wakeup source, the second can't;
495 .wakeup = 1,
504 * can't be used as wakeup
505 * .wakeup = 1,
514 .wakeup = 1,
522 .wakeup = 1,
H A Dpxa3xx.c110 * Enter a standby mode (S0D1C2 or S0D2C2). Upon wakeup, the dynamic
163 /* clear and setup wakeup source */ pxa3xx_cpu_pm_suspend()
191 * Don't sleep if no wakeup sources are defined pxa3xx_cpu_pm_enter()
194 printk(KERN_ERR "Not suspending: no wakeup sources\n"); pxa3xx_cpu_pm_enter()
228 * Since we copy wakeup code into the SRAM, we need to ensure pxa3xx_init_pm()
H A Draumfeld.c397 .wakeup = 0,
406 .wakeup = 0,
415 .wakeup = 0,
424 .wakeup = 0,
433 .wakeup = 0,
442 .wakeup = 0,
/linux-4.1.27/arch/arm/mach-gemini/
H A Didle.c13 * will never wakeup... Acctualy it is not very good to enable gemini_idle()
/linux-4.1.27/include/linux/mfd/samsung/
H A Dcore.h61 * @wakeup: Whether or not this is a wakeup device
74 bool wakeup; member in struct:sec_pmic_dev
90 bool wakeup; member in struct:sec_platform_data
/linux-4.1.27/include/uapi/linux/
H A Deventpoll.h30 * Request the handling of system wakeup events so as to prevent system suspends
34 * re-allowed until epoll_wait is called again after consuming the wakeup
H A Drtc.h33 * This data structure is inspired by the EFI (v0.92) wakeup
88 #define RTC_WKALM_SET _IOW('p', 0x0f, struct rtc_wkalrm)/* Set wakeup alarm*/
89 #define RTC_WKALM_RD _IOR('p', 0x10, struct rtc_wkalrm)/* Get wakeup alarm*/
/linux-4.1.27/arch/arm/mach-spear/
H A Dhotplug.c62 * OK, proper wakeup, we're done spear13xx_do_lowpower()
100 pr_warn("CPU%u: %u spurious wakeup calls\n", cpu, spurious); spear13xx_cpu_die()
/linux-4.1.27/kernel/trace/
H A Dtrace_sched_switch.c43 pr_info("wakeup trace: Couldn't activate tracepoint" tracing_sched_register()
50 pr_info("wakeup trace: Couldn't activate tracepoint" tracing_sched_register()
H A Dtrace_sched_wakeup.c2 * trace task wakeup timings
63 * Prologue for the wakeup function tracers.
110 * wakeup uses its own tracer function to keep the overhead down:
533 * - wakeup tracer handles all tasks in the system, independently probe_wakeup()
601 pr_info("wakeup trace: Couldn't activate tracepoint" start_wakeup_tracer()
608 pr_info("wakeup trace: Couldn't activate tracepoint" start_wakeup_tracer()
622 pr_info("wakeup trace: Couldn't activate tracepoint" start_wakeup_tracer()
639 printk(KERN_ERR "failed to start wakeup tracer\n"); start_wakeup_tracer()
735 .name = "wakeup",
/linux-4.1.27/kernel/irq/
H A Dpm.c91 * Hardware which has no wakeup source configuration facility suspend_device_irq()
92 * requires that the non wakeup interrupts are masked at the suspend_device_irq()
111 * set and those which are marked as active wakeup sources.
113 * The active wakeup sources are handled by the flow handler entry
115 * interrupt and notifies the pm core about the wakeup.
/linux-4.1.27/kernel/power/
H A Dsuspend.c306 * @wakeup: Returns information that the sleep state should not be re-entered.
310 static int suspend_enter(suspend_state_t state, bool *wakeup) suspend_enter() argument
361 *wakeup = pm_wakeup_pending(); suspend_enter()
362 if (!(suspend_test(TEST_CORE) || *wakeup)) { suspend_enter()
401 bool wakeup = false; suspend_devices_and_enter() local
422 error = suspend_enter(state, &wakeup); suspend_devices_and_enter()
423 } while (!error && !wakeup && platform_suspend_again(state)); suspend_devices_and_enter()
461 * system enter the given sleep state and clean up after wakeup.
506 pr_debug("PM: Finishing wakeup.\n"); enter_state()
H A Dprocess.c36 bool wakeup = false; try_to_freeze_tasks() local
67 wakeup = true;
90 wakeup ? "aborted" : "failed",
94 if (!wakeup) {
H A Dautosleep.c56 * If the wakeup occured for an unknown reason, wait to prevent the try_to_suspend()
H A Dmain.c371 * drivers/base/power/wakeup.c, provides a means by which wakeup events can be
374 * If a wakeup event occurs when the system is in a sleep state, it simply is
381 * these requirements, because a wakeup event may occur exactly when 'state'
391 * 'wakeup_count'. If that fails, at least one wakeup event has occurred since
394 * are any wakeup events detected after 'wakeup_count' was written to.
H A Dsuspend_test.c72 KERN_INFO "PM: test RTC wakeup from '%s' suspend\n"; test_wakealarm()
122 * wakeup, or (accordingly) disable it after it afterwards. test_wakealarm()
/linux-4.1.27/drivers/platform/x86/
H A Dxo15-ebook.c136 if (device->wakeup.flags.valid) { ebook_switch_add()
138 acpi_enable_gpe(device->wakeup.gpe_device, ebook_switch_add()
139 device->wakeup.gpe_number); ebook_switch_add()
/linux-4.1.27/arch/x86/include/asm/
H A Drealmode.h18 /* ACPI S3 wakeup */
H A Dacpi.h74 /* Physical address to resume after wakeup */
/linux-4.1.27/arch/x86/platform/olpc/
H A Dolpc-xo1-pm.c38 /* Set bits in the wakeup mask */ olpc_xo1_pm_wakeup_set()
45 /* Clear bits in the wakeup mask */ olpc_xo1_pm_wakeup_clear()
62 * wakeup events, which is not necessarily the same event set) xo1_power_state_enter()
82 /* Program wakeup mask (using dword access to CS5536_PM1_EN) */ xo1_do_sleep()
H A Dolpc-xo15-sci.c30 * The normal ACPI LID wakeup behavior is wake-on-open, but not
179 if (device->wakeup.flags.valid) xo15_sci_add()
/linux-4.1.27/drivers/gpu/drm/tegra/
H A Dmipi-phy.h43 unsigned int wakeup; member in struct:mipi_dphy_timing
H A Dmipi-phy.c56 timing->wakeup = 1000000; mipi_dphy_timing_get_default()
133 if (timing->wakeup < 1000000) mipi_dphy_timing_validate()
/linux-4.1.27/include/linux/mfd/
H A Drt5033.h35 bool wakeup; member in struct:rt5033_dev
H A Dmax8998.h85 * @wakeup: Allow to wake up from suspend
111 bool wakeup; member in struct:max8998_platform_data
H A Dhtc-egpio.h54 /* Determine the wakeup irq, to be called during early resume */
/linux-4.1.27/drivers/ssb/
H A Dpcihost_wrapper.c34 /* if there is a wakeup enabled child device on ssb bus, ssb_pcihost_suspend()
35 enable pci wakeup posibility. */ ssb_pcihost_suspend()
/linux-4.1.27/arch/unicore32/kernel/
H A Dpuv3-nb0916.c66 .wakeup = 1,
74 .wakeup = 1,
/linux-4.1.27/drivers/base/
H A Dsyscore.c54 pr_debug("Checking wakeup interrupts\n"); syscore_suspend()
56 /* Return error code if there are any wakeup interrupts pending. */ syscore_suspend()
/linux-4.1.27/arch/mips/jz4740/
H A Dreset.c84 * Set minimum wakeup pin assertion time: 100 ms. jz4740_power_off()
96 * Set reset pin low-level assertion time after wakeup: 60 ms. jz4740_power_off()
/linux-4.1.27/arch/arm/mach-realview/
H A Dhotplug.c72 * OK, proper wakeup, we're done platform_do_lowpower()
110 pr_warn("CPU%u: %u spurious wakeup calls\n", cpu, spurious); realview_cpu_die()
/linux-4.1.27/arch/arm/mach-vexpress/
H A Dhotplug.c67 * OK, proper wakeup, we're done platform_do_lowpower()
105 pr_warn("CPU%u: %u spurious wakeup calls\n", cpu, spurious); vexpress_cpu_die()
/linux-4.1.27/drivers/extcon/
H A Dextcon-palmas.c158 palmas_usb->wakeup = of_property_read_bool(node, "ti,wakeup"); palmas_usb_probe()
164 palmas_usb->wakeup = true; palmas_usb_probe()
169 palmas_usb->wakeup = pdata->wakeup; palmas_usb_probe()
186 palmas_usb_wakeup(palmas, palmas_usb->wakeup); palmas_usb_probe()
/linux-4.1.27/drivers/usb/host/
H A Duhci-pci.c54 /* Disable platform-specific non-PME# wakeup */ uhci_pci_configure_hc()
185 /* Enable platform-specific non-PME# wakeup */ uhci_pci_suspend()
198 /* Check for race with a wakeup request */ uhci_pci_suspend()
226 * a system wakeup. Check it and reconfigure to avoid problems. uhci_pci_resume()
239 /* If interrupts don't work and remote wakeup is enabled then uhci_pci_resume()
245 /* Does the root hub have a port wakeup pending? */ uhci_pci_resume()
H A Dohci-at91.c44 bool wakeup; /* Saved wake-up state for resume */ member in struct:ohci_at91_priv
615 * Disable wakeup if we are going to sleep with slow clock mode ohci_hcd_at91_drv_suspend()
618 ohci_at91->wakeup = device_may_wakeup(dev) ohci_hcd_at91_drv_suspend()
621 if (ohci_at91->wakeup) ohci_hcd_at91_drv_suspend()
624 ret = ohci_suspend(hcd, ohci_at91->wakeup); ohci_hcd_at91_drv_suspend()
626 if (ohci_at91->wakeup) ohci_hcd_at91_drv_suspend()
632 * reconnect, or wakeup without the 48 MHz clock active. so for ohci_hcd_at91_drv_suspend()
637 if (!ohci_at91->wakeup) { ohci_hcd_at91_drv_suspend()
656 if (ohci_at91->wakeup) ohci_hcd_at91_drv_resume()
H A Dehci-hub.c164 /* If remote wakeup is enabled for the root hub but disabled ehci_adjust_port_wakeup_flags()
165 * for the controller, we must adjust all the port wakeup flags ehci_adjust_port_wakeup_flags()
174 /* clear phy low-power mode before changing wakeup flags */ ehci_adjust_port_wakeup_flags()
195 * If we are resuming the controller, set the wakeup flags. ehci_adjust_port_wakeup_flags()
217 /* Does the root hub have a port wakeup pending? */ ehci_adjust_port_wakeup_flags()
245 * in progress won't complete. Hence if remote wakeup is enabled ehci_bus_suspend()
247 * remote wakeup, we must fail the suspend. ehci_bus_suspend()
280 /* enable remote wakeup on all ports, if told to do so */ ehci_bus_suspend()
296 * generate false wakeup signals until the bus ehci_bus_suspend()
355 /* allow remote wakeup */ ehci_bus_suspend()
H A Duhci-hcd.c304 * The user can force us to poll by disabling remote wakeup;
314 * In bus-suspend mode, we use the wakeup setting specified
324 * UHCI doesn't distinguish between wakeup requests from downstream
328 * case remote wakeup requests from downstream during system sleep
336 * won't generate interrupts to tell the system about wakeup events.
370 * If remote wakeup is enabled but either EGSM or RD interrupts
371 * doesn't work, then we won't get an interrupt when a wakeup event
408 * no need for wakeup signals. Otherwise we send Global Resume
735 * in progress won't complete. Hence if remote wakeup is enabled uhci_rh_suspend()
737 * remote wakeup, we must fail the suspend. uhci_rh_suspend()
H A Dehci-pci.c72 /* called after powerup, by probe or system-pm "wakeup" */ ehci_pci_reinit()
328 ehci_warn(ehci, "selective suspend/wakeup unavailable\n"); ehci_pci_setup()
343 * to handle powerdown and wakeup, and currently also on
345 * the right sort of wakeup.
H A Disp116x.h45 #define HCCONTROL_RWC (1 << 9) /* remote wakeup connected */
46 #define HCCONTROL_RWE (1 << 10) /* remote wakeup enable */
82 #define RH_HS_DRWE (1 << 15) /* device remote wakeup
87 #define RH_HS_CRWE (1 << 31) /* clear remote wakeup
/linux-4.1.27/drivers/input/misc/
H A Dsoc_button_array.c36 bool wakeup; member in struct:soc_button_info
104 gpio_keys[n_buttons].wakeup = info->wakeup; soc_button_device_create()
H A Dpalmas-pwrbutton.c267 * Cancel all pending work items for the power button, setup irq for wakeup
288 * Just disable the wakeup capability of irq here.
/linux-4.1.27/kernel/events/
H A Dinternal.h27 local_t wakeup; /* wakeup stamp */ member in struct:ring_buffer
30 long watermark; /* wakeup watermark */
H A Dring_buffer.c33 * We only publish the head (and generate a wakeup) when the outer-most
42 handle->wakeup = local_read(&rb->wakeup); perf_output_get_handle()
98 if (handle->wakeup != local_read(&rb->wakeup)) perf_output_put_handle()
170 if (unlikely(head - local_read(&rb->wakeup) > rb->watermark)) perf_output_begin()
171 local_add(rb->watermark, &rb->wakeup); perf_output_begin()
311 handle->wakeup = local_read(&rb->aux_wakeup) + rb->aux_watermark; perf_aux_output_begin()
350 bool wakeup = truncated; perf_aux_output_end() local
379 wakeup = true; perf_aux_output_end()
383 if (wakeup) { perf_aux_output_end()
414 handle->wakeup = local_read(&rb->aux_wakeup) + perf_aux_output_skip()
/linux-4.1.27/drivers/mfd/
H A Dqcom_rpm.c490 irq_wakeup = platform_get_irq_byname(pdev, "wakeup"); qcom_rpm_probe()
492 dev_err(&pdev->dev, "required wakeup interrupt missing\n"); qcom_rpm_probe()
562 dev_warn(&pdev->dev, "failed to mark ack irq as wakeup\n"); qcom_rpm_probe()
582 dev_err(&pdev->dev, "failed to request wakeup interrupt\n"); qcom_rpm_probe()
588 dev_warn(&pdev->dev, "failed to mark wakeup irq as wakeup\n"); qcom_rpm_probe()
H A Drt5033.c73 rt5033->wakeup = true; rt5033_i2c_probe()
105 device_init_wakeup(rt5033->dev, rt5033->wakeup); rt5033_i2c_probe()
H A Dmax8998.c165 * ToDo: the 'wakeup' member in the platform data is more of a linux max8998_i2c_parse_dt_pdata()
213 max8998->wakeup = pdata->wakeup; max8998_i2c_probe()
246 device_init_wakeup(max8998->dev, max8998->wakeup); max8998_i2c_probe()
H A Dsec-core.c276 * ToDo: the 'wakeup' member in the platform data is more of a linux sec_pmic_i2c_parse_dt_pdata()
337 sec_pmic->wakeup = pdata->wakeup; sec_pmic_probe()
425 device_init_wakeup(sec_pmic->dev, sec_pmic->wakeup); sec_pmic_probe()
H A Dpcf50633-irq.c248 /* Write wakeup irq masks */ pcf50633_irq_suspend()
255 dev_err(pcf->dev, "error writing wakeup irq masks\n"); pcf50633_irq_suspend()
/linux-4.1.27/drivers/usb/gadget/legacy/
H A Dzero.c37 * has no way for users to trigger remote wakeup.
96 MODULE_PARM_DESC(autoresume, "zero, or seconds before remote wakeup");
101 MODULE_PARM_DESC(max_autoresume, "maximum seconds before remote wakeup");
107 "milliseconds to increase successive wakeup delays");
204 DBG(cdev, "suspend, wakeup in %d milliseconds\n", zero_suspend()
331 /* support autoresume for remote wakeup testing */ zero_bind()
/linux-4.1.27/drivers/net/wireless/ti/wl1251/
H A Dps.c91 wl1251_error("elp wakeup timeout"); wl1251_ps_elp_wakeup()
98 wl1251_debug(DEBUG_PSM, "wakeup time: %u ms", wl1251_ps_elp_wakeup()
/linux-4.1.27/arch/powerpc/platforms/52xx/
H A Dmpc52xx_sleep.S122 /* ### interrupt handler for wakeup from deep-sleep ### */
136 /* acknowledge wakeup, so CCS releases power pown */
/linux-4.1.27/arch/arm/mach-s5pv210/
H A Dpm.c103 S3C_PMDBG("%s: wakeup masks: %08x,%08x\n", __func__, s5pv210_suspend_enter()
124 S3C_PMDBG("%s: wakeup stat: %08x\n", __func__, s5pv210_suspend_enter()
/linux-4.1.27/net/mac80211/
H A Dpm.c172 struct cfg80211_wowlan_wakeup *wakeup, ieee80211_report_wowlan_wakeup()
177 cfg80211_report_wowlan_wakeup(&sdata->wdev, wakeup, gfp); ieee80211_report_wowlan_wakeup()
171 ieee80211_report_wowlan_wakeup(struct ieee80211_vif *vif, struct cfg80211_wowlan_wakeup *wakeup, gfp_t gfp) ieee80211_report_wowlan_wakeup() argument
/linux-4.1.27/drivers/input/keyboard/
H A Dgpio_keys.c357 if (bdata->button->wakeup) gpio_keys_gpio_work_func()
367 if (bdata->button->wakeup) gpio_keys_gpio_isr()
404 if (bdata->button->wakeup) gpio_keys_irq_isr()
658 button->wakeup = !!of_get_property(pp, "gpio-key,wakeup", NULL); for_each_child_of_node()
697 int wakeup = 0; gpio_keys_probe() local
749 if (button->wakeup) gpio_keys_probe()
750 wakeup = 1; gpio_keys_probe()
767 device_init_wakeup(&pdev->dev, wakeup); gpio_keys_probe()
795 if (bdata->button->wakeup) gpio_keys_suspend()
818 if (bdata->button->wakeup) gpio_keys_resume()
H A Dgpio_keys_polled.c155 button->wakeup = fwnode_property_present(child, "gpio-key,wakeup"); device_for_each_child_node()
239 if (button->wakeup) { gpio_keys_polled_probe()
240 dev_err(dev, DRV_NAME " does not support wakeup\n"); gpio_keys_polled_probe()
H A Dtegra-kbc.c102 bool wakeup; member in struct:tegra_kbc
328 rst_val = (filter && !kbc->wakeup) ? ~0 : 0; tegra_kbc_setup_wakekeys()
520 if (of_find_property(np, "nvidia,wakeup-source", NULL)) tegra_kbc_parse_dt()
521 kbc->wakeup = true; tegra_kbc_parse_dt()
723 device_init_wakeup(&pdev->dev, kbc->wakeup); tegra_kbc_probe()
800 * wakeup request and we get a nasty warning when tegra_kbc_resume()
/linux-4.1.27/include/linux/spi/
H A Dads7846.h58 bool wakeup; member in struct:ads7846_platform_data
/linux-4.1.27/arch/arm/mach-s3c64xx/
H A Dpm.c27 #include <plat/wakeup-mask.h>
260 /* clear any old wakeup */ s3c64xx_cpu_suspend()
286 /* mapping of interrupts to parts of the wakeup mask */
308 /* ensure previous wakeup state is cleared before sleeping */ s3c64xx_pm_prepare()
/linux-4.1.27/tools/perf/scripts/perl/
H A Dwakeup-latency.pl5 # Display avg/min/max wakeup latency
/linux-4.1.27/arch/arm/mach-omap1/
H A Dboard-osk.c504 /* the sideways button (SW1) is for use as a "wakeup" button osk_mistral_init()
506 * NOTE: The Mistral board has the wakeup button (SW1) wired osk_mistral_init()
512 if (gpio_request(OMAP_MPUIO(2), "wakeup") == 0) { osk_mistral_init()
520 * button for more than wakeup from system sleep. osk_mistral_init()
528 printk(KERN_ERR "OSK+Mistral: no wakeup irq, %d?\n", osk_mistral_init()
534 printk(KERN_ERR "OSK+Mistral: wakeup button is awol\n"); osk_mistral_init()
537 * board, like the touchscreen, EEPROM, and wakeup (!) switch. osk_mistral_init()
H A Dpm.c152 * Configuration of the wakeup event is board specific. For the
163 * and the L2 wakeup interrupts: keypad and UART2. Note that the omap_pm_wakeup_setup()
191 /* INT_1610_WAKE_UP_REQ is needed for GPIO wakeup... */ omap_pm_wakeup_setup()
614 .name = "peripheral wakeup",
650 * We copy the assembler sleep/wakeup routines to SRAM. omap_pm_init()
/linux-4.1.27/include/media/
H A Drc-core.h79 * @allowed_wakeup_protocols: bitmask with the supported RC_BIT_* wakeup protocols
80 * @enabled_wakeup_protocols: bitmask with the enabled RC_BIT_* wakeup protocols
82 * @scancode_wakeup_filter: scancode wakeup filters
104 * @change_wakeup_protocol: allow changing the protocol used for wakeup
120 * @s_wakeup_filter: set the wakeup scancode filter
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
H A Dd3.c1033 * platforms have issues processing a wakeup signal while __iwl_mvm_suspend()
1205 struct cfg80211_wowlan_wakeup wakeup = { iwl_mvm_report_wakeup_reasons() local
1208 struct cfg80211_wowlan_wakeup *wakeup_report = &wakeup; iwl_mvm_report_wakeup_reasons()
1217 wakeup.magic_pkt = true; iwl_mvm_report_wakeup_reasons()
1220 wakeup.pattern_idx = iwl_mvm_report_wakeup_reasons()
1225 wakeup.disconnect = true; iwl_mvm_report_wakeup_reasons()
1228 wakeup.gtk_rekey_failure = true; iwl_mvm_report_wakeup_reasons()
1231 wakeup.rfkill_release = true; iwl_mvm_report_wakeup_reasons()
1234 wakeup.eap_identity_req = true; iwl_mvm_report_wakeup_reasons()
1237 wakeup.four_way_handshake = true; iwl_mvm_report_wakeup_reasons()
1240 wakeup.tcp_connlost = true; iwl_mvm_report_wakeup_reasons()
1243 wakeup.tcp_nomoretokens = true; iwl_mvm_report_wakeup_reasons()
1246 wakeup.tcp_match = true; iwl_mvm_report_wakeup_reasons()
1303 wakeup.packet = pkt->data; iwl_mvm_report_wakeup_reasons()
1304 wakeup.packet_present_len = pkt->len; iwl_mvm_report_wakeup_reasons()
1305 wakeup.packet_len = pkt->len - truncated; iwl_mvm_report_wakeup_reasons()
1306 wakeup.packet_80211 = false; iwl_mvm_report_wakeup_reasons()
1318 wakeup.packet = status->wake_packet; iwl_mvm_report_wakeup_reasons()
1319 wakeup.packet_present_len = pktsize; iwl_mvm_report_wakeup_reasons()
1320 wakeup.packet_len = pktlen - truncated; iwl_mvm_report_wakeup_reasons()
1321 wakeup.packet_80211 = true; iwl_mvm_report_wakeup_reasons()
1581 struct cfg80211_wowlan_wakeup wakeup = { iwl_mvm_get_wakeup_status() local
1584 ieee80211_report_wowlan_wakeup(vif, &wakeup, iwl_mvm_get_wakeup_status()
1742 struct cfg80211_wowlan_wakeup wakeup = { iwl_mvm_query_netdetect_reasons() local
1745 struct cfg80211_wowlan_wakeup *wakeup_report = &wakeup; iwl_mvm_query_netdetect_reasons()
1759 wakeup.rfkill_release = true; iwl_mvm_query_netdetect_reasons()
1816 wakeup.net_detect = net_detect; iwl_mvm_query_netdetect_reasons()
H A Dfw-api-d3.h69 * enum iwl_d3_wakeup_flags - D3 manager wakeup flags
79 * @wakeup_flags: wakeup flags, see &enum iwl_d3_wakeup_flags
80 * @wakeup_host_timer: force wakeup after this many seconds
/linux-4.1.27/net/wireless/
H A Dtrace.h2741 struct cfg80211_wowlan_wakeup *wakeup),
2742 TP_ARGS(wiphy, wdev, wakeup),
2756 wakeup ? wakeup->packet_present_len : 0)
2761 __entry->non_wireless = !wakeup;
2762 __entry->disconnect = wakeup ? wakeup->disconnect : false;
2763 __entry->magic_pkt = wakeup ? wakeup->magic_pkt : false;
2764 __entry->gtk_rekey_failure = wakeup ? wakeup->gtk_rekey_failure : false;
2765 __entry->eap_identity_req = wakeup ? wakeup->eap_identity_req : false;
2766 __entry->four_way_handshake = wakeup ? wakeup->four_way_handshake : false;
2767 __entry->rfkill_release = wakeup ? wakeup->rfkill_release : false;
2768 __entry->pattern_idx = wakeup ? wakeup->pattern_idx : false;
2769 __entry->packet_len = wakeup ? wakeup->packet_len : false;
2770 if (wakeup && wakeup->packet && wakeup->packet_present_len)
2771 memcpy(__get_dynamic_array(packet), wakeup->packet,
2772 wakeup->packet_present_len);
/linux-4.1.27/drivers/input/touchscreen/
H A Dzforce_ts.c106 * @suspending in the process of going to suspend (don't emit wakeup
499 /* Don't emit wakeup events from commands run by zforce_suspend */ zforce_irq_thread()
517 * suspending, when being a wakeup source zforce_irq_thread()
616 * When configured as a wakeup source device should always wake zforce_suspend()
620 dev_dbg(&client->dev, "suspend while being a wakeup source\n"); zforce_suspend()
622 /* Need to start device, if not open, to be a wakeup source. */ zforce_suspend()
632 "suspend without being a wakeup source\n"); zforce_suspend()
662 dev_dbg(&client->dev, "resume from being a wakeup source\n"); zforce_resume()
673 dev_dbg(&client->dev, "resume without being a wakeup source\n"); zforce_resume()
/linux-4.1.27/drivers/media/rc/
H A Dite-cir.h313 #define IT85_C0WCL 0x0d /* wakeup code length register */
314 #define IT85_C0WCR 0x0e /* wakeup code read/write register */
315 #define IT85_C0WPS 0x0f /* wakeup power control/status register */
376 #define IT85_WCL 0x3f /* wakeup code length mask */
382 #define IT85_RCRST 0x10 /* wakeup code reading counter reset bit */
383 #define IT85_WCRST 0x20 /* wakeup code writing counter reset bit */
426 #define IT8708_C0WCL 0x05 /* wakeup code length register */
427 #define IT8708_C0WCR 0x06 /* wakeup code read/write register */
428 #define IT8708_C0WPS 0x07 /* wakeup power control/status register */
/linux-4.1.27/drivers/media/platform/s5p-mfc/
H A Ds5p_mfc_ctrl.c368 mfc_debug(2, "Write command to wakeup MFCV8\n"); s5p_mfc_v8_wait_wakeup()
376 mfc_err("Failed to wakeup MFC\n"); s5p_mfc_v8_wait_wakeup()
386 /* Send MFC wakeup command */ s5p_mfc_wait_wakeup()
402 mfc_err("Failed to wakeup MFC\n"); s5p_mfc_wait_wakeup()
429 /* 3. Send MFC wakeup command and wait for completion*/ s5p_mfc_wakeup()
443 mfc_err("Failed to wakeup - error: %d int: %d\n", dev->int_err, s5p_mfc_wakeup()
/linux-4.1.27/arch/x86/kernel/cpu/
H A Dperf_event_intel_bts.c304 unsigned long head, space, next_space, pad, gap, skip, wakeup; bts_buffer_reset() local
359 /* Don't go far beyond wakeup watermark */ bts_buffer_reset()
360 wakeup = BTS_SAFETY_MARGIN + BTS_RECORD_SIZE + handle->wakeup - bts_buffer_reset()
362 if (space > wakeup) { bts_buffer_reset()
363 space = wakeup; bts_buffer_reset()
/linux-4.1.27/drivers/i2c/busses/
H A Di2c-omap.c60 /* For OMAP3 I2C_IV has changed to I2C_WE (wakeup enable) */
111 /* I2C WE wakeup enable register */
113 #define OMAP_I2C_WE_RDR_WE (1 << 13) /* RX drain wakeup */
114 #define OMAP_I2C_WE_AAS_WE (1 << 9) /* Address as slave wakeup*/
115 #define OMAP_I2C_WE_BF_WE (1 << 8) /* Bus free wakeup */
116 #define OMAP_I2C_WE_STC_WE (1 << 6) /* Start condition wakeup */
117 #define OMAP_I2C_WE_GC_WE (1 << 5) /* General call wakeup */
118 #define OMAP_I2C_WE_DRDY_WE (1 << 3) /* TX/RX data ready wakeup */
119 #define OMAP_I2C_WE_ARDY_WE (1 << 2) /* Reg access ready wakeup */
120 #define OMAP_I2C_WE_NACK_WE (1 << 1) /* No acknowledgment wakeup */
121 #define OMAP_I2C_WE_AL_WE (1 << 0) /* Arbitration lost wakeup */
612 /* calculate wakeup latency constraint for MPU */ omap_i2c_resize_fifo()
1330 /* calculate wakeup latency constraint for MPU */ omap_i2c_probe()
/linux-4.1.27/drivers/irqchip/
H A Dirq-brcmstb-l2.c94 /* Program the wakeup mask */ brcmstb_l2_intc_suspend()
107 /* Clear unmasked non-wakeup interrupts */ brcmstb_l2_intc_resume()
/linux-4.1.27/drivers/pci/
H A Dpci-acpi.c295 * pci_acpi_wake_bus - Root bus wakeup notification fork function.
303 adev = container_of(work, struct acpi_device, wakeup.context.work); pci_acpi_wake_bus()
309 * pci_acpi_wake_dev - PCI device wakeup notification work function.
365 * (Power Resources for Wake) supporting system wakeup from "x"
523 if (device_may_wakeup(&dev->dev) != !!adev->wakeup.prepare_count) acpi_pci_need_resume()
656 if (!adev->wakeup.flags.valid) pci_acpi_setup()
661 if (adev->wakeup.flags.run_wake) pci_acpi_setup()
673 if (adev->wakeup.flags.valid) { pci_acpi_cleanup()
/linux-4.1.27/include/sound/
H A Drawmidi.h76 size_t avail_min; /* min avail for wakeup */
77 size_t avail; /* max used buffer for wakeup */
/linux-4.1.27/arch/sh/boards/mach-x3proto/
H A Dsetup.c134 .wakeup = 1,
139 .wakeup = 1,
/linux-4.1.27/arch/avr32/mach-at32ap/
H A Dpm-at32ap700x.S102 * marked as 'wakeup' event sources may still come along and
110 * start the HSB and CPU clocks upon a wakeup event.
/linux-4.1.27/arch/arm/mach-sa1100/
H A Dh3xxx.c224 .wakeup = 1,
231 .wakeup = 0,
H A Dirq.c44 * Apart form GPIOs, only the RTC alarm can be a wakeup event.
/linux-4.1.27/kernel/sched/
H A Dwait.c57 * The core wakeup function. Non-exclusive wakeups (nr_exclusive == 0) just
58 * wake everything up. If it's an exclusive wakeup (nr_exclusive == small +ve
84 * @key: is directly passed to the wakeup function
120 * @key: opaque value to be passed to wakeup targets
122 * The sync wakeup differs that the waker knows that it will schedule
164 * tests in this thread will see the wakeup having taken place.
332 * also observe all state before the wakeup. wait_woken()
355 * barrier semantics on wakeup functions. The following woken_wake_function()
/linux-4.1.27/tools/perf/bench/
H A Dfutex-requeue.c169 * Do not wakeup any tasks blocked on futex1, allowing bench_futex_requeue()
190 warnx("couldn't wakeup all tasks (%d/%d)", nrequeued, nthreads); bench_futex_requeue()
/linux-4.1.27/drivers/net/usb/
H A Dsmsc95xx.c1181 netdev_dbg(dev->net, "enabling PHY wakeup interrupts\n"); smsc95xx_enable_phy_wakeup_interrupts()
1388 /* enable PHY wakeup events for if cable is attached */ smsc95xx_autosuspend()
1392 netdev_warn(dev->net, "error enabling PHY wakeup ints\n"); smsc95xx_autosuspend()
1400 /* enable PHY wakeup events so we remote wakeup if cable is pulled */ smsc95xx_autosuspend()
1404 netdev_warn(dev->net, "error enabling PHY wakeup ints\n"); smsc95xx_autosuspend()
1476 netdev_warn(dev->net, "error enabling PHY wakeup ints\n"); smsc95xx_suspend()
1613 /* enable/disable wakeup sources */ smsc95xx_suspend()
1619 netdev_info(dev->net, "enabling pattern match wakeup\n"); smsc95xx_suspend()
1622 netdev_info(dev->net, "disabling pattern match wakeup\n"); smsc95xx_suspend()
1627 netdev_info(dev->net, "enabling magic packet wakeup\n"); smsc95xx_suspend()
1630 netdev_info(dev->net, "disabling magic packet wakeup\n"); smsc95xx_suspend()
1638 /* enable wol wakeup source */ smsc95xx_suspend()
1645 /* phy energy detect wakeup source */ smsc95xx_suspend()
1896 /* this chip revision isn't capable of remote wakeup */ smsc95xx_manage_power()
1897 netdev_info(dev->net, "hardware isn't capable of remote wakeup\n"); smsc95xx_manage_power()
/linux-4.1.27/drivers/media/rc/keymaps/
H A Drc-encore-enltv.c22 although it sends data (used for BIOS wakeup?) */
/linux-4.1.27/drivers/media/usb/dvb-usb/
H A Ddibusb.h79 * 0x01 wakeup
/linux-4.1.27/drivers/media/usb/gspca/
H A Dstk1135.h24 #define STK1135_REG_RMCTL 0x00c /* Remote wakeup control */
/linux-4.1.27/arch/x86/platform/geode/
H A Dgeos.c39 .wakeup = 0,
H A Dnet5501.c42 .wakeup = 0,
/linux-4.1.27/drivers/usb/chipidea/
H A Dusbmisc_imx.c79 /* It's called when we need to enable/disable usb wakeup */
240 pr_debug("wakeup int at ci_hdrc.%d\n", data->index); usbmisc_imx6q_set_wakeup()
283 /* Set vbus wakeup source as bvalid */ usbmisc_imx6sx_init()
287 * Disable dp/dm wakeup in device mode when vbus is usbmisc_imx6sx_init()
/linux-4.1.27/drivers/usb/usbip/
H A Dusbip_event.c72 usbip_dbg_eh("wakeup\n"); event_handler_loop()
/linux-4.1.27/arch/powerpc/platforms/powermac/
H A Dsleep.S54 * soon. We need to save all that is needed and setup the wakeup
55 * vector that will be called by the ROM on wakeup
136 * - On Core99, we must store the wakeup vector at
197 * wakeup so that the host bridge properly stays asleep. The
/linux-4.1.27/arch/mips/loongson/lemote-2f/
H A Dpm.c120 /* wakeup cpu when people open the LID */ wakeup_loongson()
/linux-4.1.27/drivers/ide/
H A Dide-pm.c220 * The first thing we do on wakeup is to wait for BSY bit to ide_check_pm_state()
237 printk(KERN_WARNING "%s: bus not ready on wakeup\n", drive->name); ide_check_pm_state()
242 printk(KERN_WARNING "%s: drive not ready on wakeup\n", drive->name); ide_check_pm_state()
/linux-4.1.27/drivers/gpio/
H A Dgpio-mpc5200.c42 * GPIO LIB API implementation for wakeup GPIOs.
44 * There's a maximum of 8 wakeup GPIOs. Which of these are available
366 printk(KERN_ERR "Unable to register wakeup GPIO driver\n"); mpc52xx_gpio_init()
/linux-4.1.27/arch/powerpc/platforms/86xx/
H A Dmpc8610_hpcd.c57 pr_debug("%s: PIXIS' event (sw9/wakeup) IRQ handled\n", __func__); mpc8610_sw9_irq()
75 ret = request_irq(irq, mpc8610_sw9_irq, 0, "sw9:wakeup", NULL); mpc8610_suspend_init()
105 /* Enable wakeup on PIXIS' event IRQ. */ mpc8610_declare_of_platform_devices()
/linux-4.1.27/kernel/locking/
H A Drtmutex-tester.c44 RTTEST_LOCKNOWAIT, /* 4 Lock uninterruptible no wait in wakeup, data = lockindex */
46 RTTEST_LOCKINTNOWAIT, /* 6 Lock interruptible no wait in wakeup, data = lockindex */
47 RTTEST_LOCKCONT, /* 7 Continue locking after the wakeup delay */
H A Drtmutex_common.h20 * belong to the tester. That way we can delay the wakeup path of those
/linux-4.1.27/drivers/pci/pcie/
H A Dpme.c399 bool wakeup; pcie_pme_suspend() local
403 wakeup = true; pcie_pme_suspend()
406 wakeup = pcie_pme_check_wakeup(port->subordinate); pcie_pme_suspend()
410 if (wakeup) { pcie_pme_suspend()
414 if (!wakeup || ret) { pcie_pme_suspend()
H A Dportdrv_pci.c87 * Some BIOSes forget to clear Root PME Status bits after system wakeup pcie_port_resume_noirq()
88 * which breaks ACPI-based runtime wakeup on PCI Express, so clear those pcie_port_resume_noirq()
/linux-4.1.27/net/atm/
H A Dpppoatm.c118 * the wakeup *can't* race with pppoatm_send(). They both hold the PPP pppoatm_release_cb()
143 * We always used to run the wakeup tasklet unconditionally here, for pppoatm_pop()
151 * with it. The wakeup *will* happen after the other CPU is safely out pppoatm_pop()
155 * it about to return, that's fine. We trigger a wakeup which will pppoatm_pop()
267 * run the wakeup tasklet. Another wakeup will never hurt. pppoatm_may_send()
271 * an "immediate" wakeup... where "immediate" actually involves pppoatm_may_send()
/linux-4.1.27/drivers/media/pci/bt8xx/
H A Dbttv-driver.c3598 bttv_irq_wakeup_video(struct bttv *btv, struct bttv_buffer_set *wakeup, bttv_irq_wakeup_video() argument
3605 if (wakeup->top == wakeup->bottom) { bttv_irq_wakeup_video()
3606 if (NULL != wakeup->top && curr->top != wakeup->top) { bttv_irq_wakeup_video()
3608 pr_debug("%d: wakeup: both=%p\n", bttv_irq_wakeup_video()
3609 btv->c.nr, wakeup->top); bttv_irq_wakeup_video()
3610 wakeup->top->vb.ts = ts; bttv_irq_wakeup_video()
3611 wakeup->top->vb.field_count = btv->field_count; bttv_irq_wakeup_video()
3612 wakeup->top->vb.state = state; bttv_irq_wakeup_video()
3613 wake_up(&wakeup->top->vb.done); bttv_irq_wakeup_video()
3616 if (NULL != wakeup->top && curr->top != wakeup->top) { bttv_irq_wakeup_video()
3618 pr_debug("%d: wakeup: top=%p\n", bttv_irq_wakeup_video()
3619 btv->c.nr, wakeup->top); bttv_irq_wakeup_video()
3620 wakeup->top->vb.ts = ts; bttv_irq_wakeup_video()
3621 wakeup->top->vb.field_count = btv->field_count; bttv_irq_wakeup_video()
3622 wakeup->top->vb.state = state; bttv_irq_wakeup_video()
3623 wake_up(&wakeup->top->vb.done); bttv_irq_wakeup_video()
3625 if (NULL != wakeup->bottom && curr->bottom != wakeup->bottom) { bttv_irq_wakeup_video()
3627 pr_debug("%d: wakeup: bottom=%p\n", bttv_irq_wakeup_video()
3628 btv->c.nr, wakeup->bottom); bttv_irq_wakeup_video()
3629 wakeup->bottom->vb.ts = ts; bttv_irq_wakeup_video()
3630 wakeup->bottom->vb.field_count = btv->field_count; bttv_irq_wakeup_video()
3631 wakeup->bottom->vb.state = state; bttv_irq_wakeup_video()
3632 wake_up(&wakeup->bottom->vb.done); bttv_irq_wakeup_video()
3638 bttv_irq_wakeup_vbi(struct bttv *btv, struct bttv_buffer *wakeup, bttv_irq_wakeup_vbi() argument
3643 if (NULL == wakeup) bttv_irq_wakeup_vbi()
3647 wakeup->vb.ts = ts; bttv_irq_wakeup_vbi()
3648 wakeup->vb.field_count = btv->field_count; bttv_irq_wakeup_vbi()
3649 wakeup->vb.state = state; bttv_irq_wakeup_vbi()
3650 wake_up(&wakeup->vb.done); bttv_irq_wakeup_vbi()
3707 struct bttv_buffer *wakeup = btv->curr.top; bttv_irq_wakeup_top() local
3709 if (NULL == wakeup) bttv_irq_wakeup_top()
3717 v4l2_get_timestamp(&wakeup->vb.ts); bttv_irq_wakeup_top()
3718 wakeup->vb.field_count = btv->field_count; bttv_irq_wakeup_top()
3719 wakeup->vb.state = VIDEOBUF_DONE; bttv_irq_wakeup_top()
3720 wake_up(&wakeup->vb.done); bttv_irq_wakeup_top()
/linux-4.1.27/drivers/usb/core/
H A Dhcd-pci.c457 /* Optimization: Don't suspend if a root-hub wakeup is suspend_common()
468 /* Check again in case wakeup raced with pci_suspend */ suspend_common()
560 * wakeup. usb_hc_died() should ensure that both hosts are marked as hcd_pci_suspend_noirq()
565 dev_dbg(dev, "wakeup: %d\n", device_may_wakeup(dev)); hcd_pci_suspend_noirq()
567 /* Possibly enable remote wakeup, hcd_pci_suspend_noirq()
592 /* Go back to D0 and disable remote wakeup */ hcd_pci_resume_noirq()
/linux-4.1.27/drivers/pinctrl/
H A Dpinctrl-amd.c264 wake_cntrl0 = "enable wakeup in S0i3 state|"; amd_gpio_dbg_show()
266 wake_cntrl0 = "disable wakeup in S0i3 state|"; amd_gpio_dbg_show()
269 wake_cntrl1 = "enable wakeup in S3 state|"; amd_gpio_dbg_show()
271 wake_cntrl1 = "disable wakeup in S3 state|"; amd_gpio_dbg_show()
274 wake_cntrl2 = "enable wakeup in S4/S5 state|"; amd_gpio_dbg_show()
276 wake_cntrl2 = "disable wakeup in S4/S5 state|"; amd_gpio_dbg_show()
/linux-4.1.27/drivers/net/wireless/rsi/
H A Drsi_boot_params.h113 /* pmu wakeup wait time & WDT EN info */
/linux-4.1.27/drivers/net/wireless/cw1200/
H A Dbh.c120 pr_debug("[BH] wakeup.\n"); cw1200_bh_wakeup()
122 pr_err("[BH] wakeup failed (BH error)\n"); cw1200_bh_wakeup()
202 pr_debug("[BH] Device wakeup.\n"); cw1200_device_wakeup()
364 if (WARN_ON(ret < 0)) { /* Error in wakeup */ cw1200_bh_tx_helper()
/linux-4.1.27/arch/x86/boot/
H A Dvideo-mode.c15 * file in order to be shared with the ACPI wakeup code.
/linux-4.1.27/arch/mips/include/asm/netlogic/
H A Dpsb-bootinfo.h47 uint64_t wakeup; member in struct:psb_info
/linux-4.1.27/include/acpi/
H A Dacpi_bus.h314 u8 valid:1; /* Can successfully enable wakeup? */
317 u8 enabled:1; /* Enabled for wakeup */
366 struct acpi_device_wakeup wakeup; member in struct:acpi_device
599 return adev->wakeup.flags.valid; acpi_device_can_wakeup()
/linux-4.1.27/include/xen/interface/
H A Dsched.h39 * VCPU. This avoids a "wakeup waiting" race.
/linux-4.1.27/arch/mips/netlogic/xlr/
H A Dwakeup.c81 pr_err("Failed to wakeup core %d\n", i); xlr_wakeup_secondary_cpus()
/linux-4.1.27/arch/powerpc/kernel/
H A Didle_power7.S296 * wakeup reason if we branch to kvm_start_guest.
326 * cr1 - 0b0100 if first thread to wakeup in subcore
327 * cr2 - 0b0100 if first thread to wakeup in core
343 /* First thread in subcore to wakeup */
/linux-4.1.27/arch/arm/mach-pxa/include/mach/
H A Dcorgi.h23 #define CORGI_GPIO_WAKEUP (3) /* System wakeup notification? */
/linux-4.1.27/sound/core/seq/
H A Dseq_memory.h49 int room; /* watermark for sleep/wakeup */
/linux-4.1.27/sound/oss/
H A Dsound_config.h99 * Process wakeup reasons
/linux-4.1.27/tools/testing/selftests/timers/
H A Dalarmtimer-suspend.c6 * This test makes sure the alarmtimer & RTC wakeup code is
/linux-4.1.27/kernel/
H A Dfutex.c215 * @bitset: bitset for the optional bitmasked wakeup
222 * The order of wakeup is always to make the first condition true, then
287 * Reflects a waiter being removed from the waitqueue by wakeup
1240 /* Make sure we really have tasks to wakeup */ futex_wake()
1400 * to the requeue target futex so the waiter can detect the wakeup on the right
2058 * futex_wait_queue_me() - queue_me() and wait for wakeup, timeout, or signal
2136 * absorb a wakeup if *uaddr does not match the desired values futex_wait_setup()
2207 /* queue_me and wait for wakeup, timeout, or a signal. */ futex_wait()
2221 * victim of a spurious wakeup as well. futex_wait()
2428 * pagefault, so retry the user-access and the wakeup: futex_unlock_pi()
2476 * handle_early_requeue_pi_wakeup() - Detect early wakeup on the initial futex
2484 * the wakeup and return the appropriate error code to the caller. Must be
2488 * 0 = no early wakeup detected;
2499 * With the hb lock held, we avoid races while we process the wakeup. handle_early_requeue_pi_wakeup()
2501 * wakeup code can't change q.key from uaddr to uaddr2 if we hold hb. handle_early_requeue_pi_wakeup()
2531 * @bitset: 32 bit wakeup bitset set by userspace, defaults to all
2535 * uaddr2 which must be PI aware and unique from uaddr. Normal wakeup will wake
2543 * 1) wakeup on uaddr2 after an atomic lock acquisition by futex_requeue()
2544 * 2) wakeup on uaddr2 after a requeue
2627 /* Queue the futex_q, drop the hb lock, wait for wakeup. */ futex_wait_requeue_pi()
2639 * completed and we no longer have to concern ourselves with a wakeup futex_wait_requeue_pi()
2843 * Wake robust non-PI futexes here. The wakeup of handle_futex_death()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
H A Dmac80211.c443 struct cfg80211_wowlan_wakeup wakeup = { iwlagn_mac_resume() local
482 wakeup.rfkill_release = true; iwlagn_mac_resume()
483 ieee80211_report_wowlan_wakeup(vif, &wakeup, iwlagn_mac_resume()
526 IWL_INFO(priv, "WoWLAN wakeup reason(s): 0x%.8x\n", reasons); iwlagn_mac_resume()
530 wakeup.magic_pkt = true; iwlagn_mac_resume()
532 wakeup.pattern_idx = status_data.pattern_number; iwlagn_mac_resume()
535 wakeup.disconnect = true; iwlagn_mac_resume()
537 wakeup.gtk_rekey_failure = true; iwlagn_mac_resume()
539 wakeup.eap_identity_req = true; iwlagn_mac_resume()
541 wakeup.four_way_handshake = true; iwlagn_mac_resume()
542 wakeup_report = &wakeup; iwlagn_mac_resume()
/linux-4.1.27/drivers/infiniband/hw/amso1100/
H A Dc2_intr.c140 * wakeup the waiter, we just won't give him the msg. handle_vq()
164 * wakeup the waiter. handle_vq()
/linux-4.1.27/drivers/net/wireless/prism54/
H A Disl_38xx.c122 /* device is in powersave, trigger the device for wakeup */ isl38xx_trigger_device()
125 DEBUG(SHOW_TRACING, "%08li.%08li Device wakeup triggered\n", isl38xx_trigger_device()
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
H A Dps.c151 wl1271_error("ELP wakeup timeout!"); wl1271_ps_elp_wakeup()
160 wl1271_debug(DEBUG_PSM, "wakeup time: %u ms", wl1271_ps_elp_wakeup()
/linux-4.1.27/drivers/parport/
H A Dshare.c572 tmp->wakeup = kf; parport_register_device()
851 parport_claim_or_block(), or those with a wakeup function. */ parport_claim()
854 if (dev->waiting & 2 || dev->wakeup) { parport_claim()
887 wakeup function. */ parport_claim_or_block()
987 } else if (pd->wakeup) { parport_release()
988 pd->wakeup(pd->private); parport_release()
1000 if (pd->wakeup && pd != dev) parport_release()
1001 pd->wakeup(pd->private); parport_release()

Completed in 6373 milliseconds

12345