Home
last modified time | relevance | path

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

12345678910>>...41

/linux/drivers/acpi/
H A Dwakeup.c17 bool (*wakeup)(void *context); member
44 if (!dev->wakeup.flags.valid in acpi_enable_wakeup_devices()
45 || sleep_state > dev->wakeup.sleep_state in acpi_enable_wakeup_devices()
47 || dev->wakeup.prepare_count)) in acpi_enable_wakeup_devices()
54 acpi_set_gpe_wake_mask(dev->wakeup.gpe_device, dev->wakeup.gpe_number, in acpi_enable_wakeup_devices()
69 if (!dev->wakeup.flags.valid in acpi_disable_wakeup_devices()
70 || sleep_state > dev->wakeup.sleep_state in acpi_disable_wakeup_devices()
72 || dev->wakeup.prepare_count)) in acpi_disable_wakeup_devices()
75 acpi_set_gpe_wake_mask(dev->wakeup.gpe_device, dev->wakeup.gpe_number, in acpi_disable_wakeup_devices()
92 acpi_enable_gpe(dev->wakeup.gpe_device, in acpi_wakeup_device_init()
[all …]
H A Ddevice_pm.c544 if (adev->wakeup.flags.notifier_present) { in acpi_pm_notify_handler()
545 pm_wakeup_ws_event(adev->wakeup.ws, 0, acpi_s2idle_wakeup()); in acpi_pm_notify_handler()
546 if (adev->wakeup.context.func) { in acpi_pm_notify_handler()
548 adev->wakeup.context.func, in acpi_pm_notify_handler()
549 dev_name(adev->wakeup.context.dev)); in acpi_pm_notify_handler()
550 adev->wakeup.context.func(&adev->wakeup.context); in acpi_pm_notify_handler()
580 if (adev->wakeup.flags.notifier_present) in acpi_add_pm_notifier()
589 adev->wakeup.ws = wakeup_source_register(&adev->dev, in acpi_add_pm_notifier()
591 adev->wakeup.context.dev = dev; in acpi_add_pm_notifier()
592 adev->wakeup.context.func = func; in acpi_add_pm_notifier()
[all …]
H A Dproc.c30 if (!dev->wakeup.flags.valid) in acpi_system_wakeup_device_seq_show()
35 dev->wakeup.sleep_state); in acpi_system_wakeup_device_seq_show()
41 dev->wakeup.flags.valid ? '*' : ' ', in acpi_system_wakeup_device_seq_show()
56 dev->wakeup.flags.valid ? '*' : ' ', in acpi_system_wakeup_device_seq_show()
107 if (!dev->wakeup.flags.valid) in acpi_system_write_wakeup_device()
H A Dpower.c603 if (adev->wakeup.flags.valid) in acpi_power_add_remove_device()
604 acpi_power_expose_hide(adev, &adev->wakeup.resources, in acpi_power_add_remove_device()
695 dev->wakeup.flags.valid = 0; in acpi_device_sleep_wake()
703 dev->wakeup.flags.valid = 0; in acpi_device_sleep_wake()
720 if (!dev || !dev->wakeup.flags.valid) in acpi_enable_wakeup_device_power()
726 dev->wakeup.prepare_count); in acpi_enable_wakeup_device_power()
728 if (dev->wakeup.prepare_count++) in acpi_enable_wakeup_device_power()
731 err = acpi_power_on_list(&dev->wakeup.resources); in acpi_enable_wakeup_device_power()
734 dev->wakeup.flags.valid = 0; in acpi_enable_wakeup_device_power()
744 acpi_power_off_list(&dev->wakeup.resources); in acpi_enable_wakeup_device_power()
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-class-wakeup1 What: /sys/class/wakeup/
5 The /sys/class/wakeup/ directory contains pointers to all
6 wakeup sources in the kernel at that moment in time.
8 What: /sys/class/wakeup/.../name
12 This file contains the name of the wakeup source.
14 What: /sys/class/wakeup/.../active_count
18 This file contains the number of times the wakeup source was
21 What: /sys/class/wakeup/.../event_count
25 This file contains the number of signaled wakeup events
26 associated with the wakeup source.
[all …]
H A Dsysfs-class-rc-nuvoton6 Reading this file returns the stored CIR wakeup sequence.
9 The same format can be used to store a wakeup sequence
12 Note: Some systems reset the stored wakeup sequence to a
14 wakeup sequence in a file and set it on boot using e.g.
H A Dsysfs-class-rc81 for the wakeup filter, something like::
89 The enabled wakeup protocol is shown in [] brackets.
93 Writing "proto" will use "proto" for wakeup events.
95 Writing "none" will disable wakeup.
98 unknown protocol name is used, or if wakeup is not supported by
106 Sets the scancode wakeup filter expected value.
109 set the expected value of the bits set in the wakeup filter mask
118 This value may be reset to 0 if the wakeup protocol is altered.
125 Sets the scancode wakeup filter mask of bits to compare.
137 This value may be reset to 0 if the wakeup protocol is altered.
/linux/arch/arm/boot/dts/st/
H A Dste-nomadik-pinctrl.dtsi55 ste,sleep-wakeup = <SLPM_WAKEUP_DISABLE>;
61 ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
67 ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
74 ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
80 ste,sleep-wakeup = <SLPM_WAKEUP_DISABLE>;
87 ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
94 ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
101 ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
108 ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
114 ste,sleep-wakeup = <SLPM_WAKEUP_ENABLE>;
[all …]
/linux/Documentation/devicetree/bindings/iio/accel/
H A Dlis302.txt47 - st,wakeup-{x,y,z}-{lo,hi}: set wakeup condition on x/y/z axis for
49 - st,wakeup-threshold: set wakeup threshold
50 - st,wakeup2-{x,y,z}-{lo,hi}: set wakeup condition on x/y/z axis for
51 upper/lower limit for second wakeup
53 - st,wakeup2-threshold: set wakeup threshold for second wakeup
82 st,wakeup-x-lo;
83 st,wakeup-x-hi;
84 st,wakeup-y-lo;
85 st,wakeup-y-hi;
86 st,wakeup-z-lo;
[all …]
/linux/Documentation/usb/
H A Dchipidea.rst106 2. How to enable USB as system wakeup source
108 Below is the example for how to enable USB as system wakeup source
111 2.1 Enable core's wakeup::
113 echo enabled > /sys/bus/platform/devices/ci_hdrc.0/power/wakeup
115 2.2 Enable glue layer's wakeup::
117 echo enabled > /sys/bus/platform/devices/2184000.usb/power/wakeup
119 2.3 Enable PHY's wakeup (optional)::
121 echo enabled > /sys/bus/platform/devices/20c9000.usbphy/power/wakeup
123 2.4 Enable roothub's wakeup::
125 echo enabled > /sys/bus/usb/devices/usb1/power/wakeup
[all …]
/linux/arch/powerpc/sysdev/
H A Dfsl_mpic_timer_wakeup.c28 struct fsl_mpic_timer_wakeup *wakeup = in fsl_free_resource() local
33 if (wakeup->timer) { in fsl_free_resource()
34 disable_irq_wake(wakeup->timer->irq); in fsl_free_resource()
35 mpic_free_timer(wakeup->timer); in fsl_free_resource()
38 wakeup->timer = NULL; in fsl_free_resource()
44 struct fsl_mpic_timer_wakeup *wakeup = dev_id; in fsl_mpic_timer_irq() local
46 schedule_work(&wakeup->free_work); in fsl_mpic_timer_irq()
48 return wakeup->timer ? IRQ_HANDLED : IRQ_NONE; in fsl_mpic_timer_irq()
/linux/drivers/gnss/
H A Dsirf.c45 struct gpio_desc *wakeup; member
170 if (!data->wakeup && !data->active) { in sirf_receive_buf()
194 ret = gpiod_get_value_cansleep(data->wakeup); in sirf_wakeup_handler()
235 if (!data->wakeup) in sirf_wait_for_power_state()
270 if (!data->wakeup) { in sirf_set_active()
281 if (!data->wakeup) in sirf_set_active()
357 if (data->wakeup) in sirf_suspend()
368 if (data->wakeup) in sirf_resume()
448 data->wakeup = devm_gpiod_get_optional(dev, "sirf,wakeup", in sirf_probe()
450 if (IS_ERR(data->wakeup)) { in sirf_probe()
[all …]
/linux/drivers/base/power/
H A Dsysfs.c346 static DEVICE_ATTR_RW(wakeup);
355 if (dev->power.wakeup) { in wakeup_count_show()
356 count = dev->power.wakeup->wakeup_count; in wakeup_count_show()
376 if (dev->power.wakeup) { in wakeup_active_count_show()
377 count = dev->power.wakeup->active_count; in wakeup_active_count_show()
397 if (dev->power.wakeup) { in wakeup_abort_count_show()
398 count = dev->power.wakeup->wakeup_count; in wakeup_abort_count_show()
418 if (dev->power.wakeup) { in wakeup_expire_count_show()
419 count = dev->power.wakeup->expire_count; in wakeup_expire_count_show()
438 if (dev->power.wakeup) { in wakeup_active_show()
[all …]
/linux/Documentation/devicetree/bindings/net/bluetooth/
H A Dnokia,h4p-bluetooth.txt8 UART status lines for wakeup of UART transceivers to improve power management
17 - bluetooth-wakeup-gpios: GPIO specifier, used to wakeup the BT module (active high)
18 - host-wakeup-gpios: GPIO specifier, used to wakeup the host processor (active high)
45 host-wakeup-gpios = <&gpio4 5 GPIO_ACTIVE_HIGH>; /* gpio101 */
46 bluetooth-wakeup-gpios = <&gpio2 5 GPIO_ACTIVE_HIGH>; /* gpio37 */
/linux/arch/arm/boot/dts/ti/omap/
H A Domap3-gta04a3.dts32 st,wakeup-x-lo;
33 st,wakeup-x-hi;
34 st,wakeup-y-lo;
35 st,wakeup-y-hi;
36 st,wakeup-z-lo;
37 st,wakeup-z-hi;
H A Domap3-overo-common-peripherals.dtsi68 st,wakeup-x-lo;
69 st,wakeup-x-hi;
70 st,wakeup-y-lo;
71 st,wakeup-y-hi;
72 st,wakeup-z-lo;
73 st,wakeup-z-hi;
H A Domap3-pandora-common.dtsi91 wakeup-source;
98 wakeup-source;
105 wakeup-source;
112 wakeup-source;
119 wakeup-source;
126 wakeup-source;
133 wakeup-source;
140 wakeup-source;
147 wakeup-source;
154 wakeup-source;
[all …]
/linux/Documentation/power/
H A Dsuspend-and-interrupts.rst61 System wakeup interrupts generally need to be configured to wake up the system
67 during system sleep so as to trigger a system wakeup when needed. For example,
69 handling system wakeup events. Then, if a given interrupt line is supposed to
72 After wakeup, it generally is better to disable that input to prevent the
77 handling the given IRQ as a system wakeup interrupt line and disable_irq_wake()
86 of the points where the suspend thread looks for pending wakeup events).
88 This way every interrupt from a wakeup interrupt source will either cause the
91 not executed for system wakeup IRQs. They are only executed for IRQF_NO_SUSPEND
92 IRQs at that time, but those IRQs should not be configured for system wakeup
105 IRQ subsystem to trigger a system wakeup.
[all …]
/linux/arch/x86/realmode/rm/
H A DMakefile12 wakeup-objs := wakeup_asm.o wakemain.o video-mode.o
13 wakeup-objs += copy.o bioscall.o regs.o
18 wakeup-objs += video-vga.o
19 wakeup-objs += video-vesa.o
20 wakeup-objs += video-bios.o
26 realmode-$(CONFIG_ACPI_SLEEP) += $(wakeup-objs)
/linux/drivers/slimbus/
H A Dsched.c25 int slim_ctrl_clk_pause(struct slim_controller *ctrl, bool wakeup, u8 restart) in slim_ctrl_clk_pause() argument
35 if (wakeup == false && restart > SLIM_CLK_UNSPECIFIED) in slim_ctrl_clk_pause()
39 if (wakeup) { in slim_ctrl_clk_pause()
63 if (sched->clk_state == SLIM_CLK_PAUSED && ctrl->wakeup) in slim_ctrl_clk_pause()
64 ret = ctrl->wakeup(ctrl); in slim_ctrl_clk_pause()
/linux/arch/arm64/boot/dts/mediatek/
H A Dmt8183-kukui-jacuzzi-pico6.dts15 bt_wakeup: bt-wakeup {
24 wakeup-source;
46 wakeup-source;
93 bt_pins_wakeup: bt-pins-wakeup {
94 piins-bt-wakeup {
/linux/drivers/platform/cznic/
H A Dturris-omnia-mcu-sys-off-wakeup.c29 u32 *wakeup) in omnia_get_uptime_wakeup() argument
42 if (wakeup) in omnia_get_uptime_wakeup()
43 *wakeup = le32_to_cpu(reply[1]); in omnia_get_uptime_wakeup()
66 u32 wakeup; in omnia_read_alarm() local
69 err = omnia_get_uptime_wakeup(client, NULL, &wakeup); in omnia_read_alarm()
73 alrm->enabled = !!wakeup; in omnia_read_alarm()
74 rtc_time64_to_tm(wakeup ?: mcu->rtc_alarm, &alrm->time); in omnia_read_alarm()
/linux/Documentation/trace/rv/
H A Dmonitor_wip.rst4 - Name: wip - wakeup in preemptive
11 The wakeup in preemptive (wip) monitor is a sample per-cpu monitor
12 that verifies if the wakeup events always take place with
30 The wakeup event always takes place with preemption disabled because
/linux/Documentation/devicetree/bindings/rtc/
H A Drtc-opal.txt8 - wakeup-source: Decides if the wakeup is supported or not
14 wakeup-source;
/linux/kernel/power/
H A Dprocess.c38 bool wakeup = false; in try_to_freeze_tasks() local
70 wakeup = true; in try_to_freeze_tasks()
91 wakeup ? "aborted" : "failed", in try_to_freeze_tasks()
98 if (!wakeup || pm_debug_messages_on) { in try_to_freeze_tasks()

12345678910>>...41