Home
last modified time | relevance | path

Searched refs:wakeup (Results 1 - 25 of 456) sorted by relevance

12345678910>>...19

/kernel/linux/linux-5.10/drivers/acpi/
H A Dwakeup.c3 * wakeup.c - support wakeup devices
17 bool (*wakeup)(void *context); member
34 * Enable wakeup device power of devices with the state.enable flag set and set
35 * the wakeup enable mask bits in the GPE registers that correspond to wakeup
44 if (!dev->wakeup.flags.valid in acpi_enable_wakeup_devices()
45 || sleep_state > (u32) 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 in acpi_enable_wakeup_devices()
[all...]
H A Ddevice_pm.c460 if (adev->wakeup.flags.notifier_present) { in acpi_pm_notify_handler()
461 pm_wakeup_ws_event(adev->wakeup.ws, 0, acpi_s2idle_wakeup()); in acpi_pm_notify_handler()
462 if (adev->wakeup.context.func) { in acpi_pm_notify_handler()
464 adev->wakeup.context.func, in acpi_pm_notify_handler()
465 dev_name(adev->wakeup.context.dev)); in acpi_pm_notify_handler()
466 adev->wakeup.context.func(&adev->wakeup.context); in acpi_pm_notify_handler()
478 * @dev: Device to generate a wakeup event for while handling the notification.
481 * NOTE: @adev need not be a run-wake or wakeup device to be a valid source of
482 * PM wakeup event
593 bool wakeup = false; acpi_dev_pm_get_state() local
755 struct acpi_device_wakeup *wakeup = &adev->wakeup; __acpi_device_wakeup_enable() local
818 struct acpi_device_wakeup *wakeup = &adev->wakeup; acpi_device_wakeup_disable() local
905 acpi_dev_suspend(struct device *dev, bool wakeup) acpi_dev_suspend() argument
[all...]
H A Dproc.c15 * /proc/acpi/wakeup
30 if (!dev->wakeup.flags.valid) in acpi_system_wakeup_device_seq_show()
35 (u32) dev->wakeup.sleep_state); in acpi_system_wakeup_device_seq_show()
41 dev->wakeup.flags.valid ? '*' : ' ', in acpi_system_wakeup_device_seq_show()
57 dev->wakeup.flags.valid ? '*' : ' ', in acpi_system_wakeup_device_seq_show()
109 if (!dev->wakeup.flags.valid) in acpi_system_write_wakeup_device()
143 /* 'wakeup device' [R/W] */ in acpi_sleep_proc_init()
144 proc_create("wakeup", S_IFREG | S_IRUGO | S_IWUSR, in acpi_sleep_proc_init()
H A Dpower.c582 if (adev->wakeup.flags.valid) in acpi_power_add_remove_device()
583 acpi_power_expose_hide(adev, &adev->wakeup.resources, in acpi_power_add_remove_device()
640 * wakeup.flags.valid flag.
676 dev->wakeup.flags.valid = 0; in acpi_device_sleep_wake()
684 dev->wakeup.flags.valid = 0; in acpi_device_sleep_wake()
692 * Prepare a wakeup device, two steps (Ref ACPI 2.0:P229):
693 * 1. Power on the power resources required for the wakeup device
702 if (!dev || !dev->wakeup.flags.valid) in acpi_enable_wakeup_device_power()
707 if (dev->wakeup.prepare_count++) in acpi_enable_wakeup_device_power()
710 list_for_each_entry(entry, &dev->wakeup in acpi_enable_wakeup_device_power()
[all...]
H A Dscan.c453 if (device->wakeup.flags.valid) in acpi_free_power_resources_lists()
454 acpi_power_resources_list_free(&device->wakeup.resources); in acpi_free_power_resources_lists()
720 if (device->wakeup.flags.valid) in acpi_device_add()
804 struct acpi_device_wakeup *wakeup = &dev->wakeup; in acpi_bus_extract_wakeup_device_power_package() local
811 INIT_LIST_HEAD(&wakeup->resources); in acpi_bus_extract_wakeup_device_power_package()
836 wakeup->gpe_device = in acpi_bus_extract_wakeup_device_power_package()
838 wakeup->gpe_number = in acpi_bus_extract_wakeup_device_power_package()
841 wakeup->gpe_device = NULL; in acpi_bus_extract_wakeup_device_power_package()
842 wakeup in acpi_bus_extract_wakeup_device_power_package()
889 struct acpi_device_wakeup *wakeup = &device->wakeup; acpi_wakeup_gpe_init() local
[all...]
/kernel/linux/linux-6.6/drivers/acpi/
H A Dwakeup.c3 * wakeup.c - support wakeup devices
17 bool (*wakeup)(void *context); member
34 * Enable wakeup device power of devices with the state.enable flag set and set
35 * the wakeup enable mask bits in the GPE registers that correspond to wakeup
44 if (!dev->wakeup.flags.valid in acpi_enable_wakeup_devices()
45 || sleep_state > (u32) 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 in acpi_enable_wakeup_devices()
[all...]
H A Ddevice_pm.c501 * acpi_dev_power_state_for_wake - Deepest power state for wakeup signaling
544 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()
562 * @dev: Device to generate a wakeup event for while handling the notification.
565 * NOTE: @adev need not be a run-wake or wakeup devic
675 bool wakeup = false; acpi_dev_pm_get_state() local
852 struct acpi_device_wakeup *wakeup = &adev->wakeup; __acpi_device_wakeup_enable() local
928 struct acpi_device_wakeup *wakeup = &adev->wakeup; acpi_device_wakeup_disable() local
1015 acpi_dev_suspend(struct device *dev, bool wakeup) acpi_dev_suspend() argument
[all...]
H A Dproc.c15 * /proc/acpi/wakeup
30 if (!dev->wakeup.flags.valid) in acpi_system_wakeup_device_seq_show()
35 (u32) dev->wakeup.sleep_state); in acpi_system_wakeup_device_seq_show()
41 dev->wakeup.flags.valid ? '*' : ' ', in acpi_system_wakeup_device_seq_show()
57 dev->wakeup.flags.valid ? '*' : ' ', in acpi_system_wakeup_device_seq_show()
109 if (!dev->wakeup.flags.valid) in acpi_system_write_wakeup_device()
143 /* 'wakeup device' [R/W] */ in acpi_sleep_proc_init()
144 proc_create("wakeup", S_IFREG | S_IRUGO | S_IWUSR, in acpi_sleep_proc_init()
H A Dpower.c598 if (adev->wakeup.flags.valid) in acpi_power_add_remove_device()
599 acpi_power_expose_hide(adev, &adev->wakeup.resources, in acpi_power_add_remove_device()
654 * wakeup.flags.valid flag.
690 dev->wakeup.flags.valid = 0; in acpi_device_sleep_wake()
698 dev->wakeup.flags.valid = 0; in acpi_device_sleep_wake()
706 * Prepare a wakeup device, two steps (Ref ACPI 2.0:P229):
707 * 1. Power on the power resources required for the wakeup device
715 if (!dev || !dev->wakeup.flags.valid) in acpi_enable_wakeup_device_power()
720 dev_dbg(&dev->dev, "Enabling wakeup power (count %d)\n", in acpi_enable_wakeup_device_power()
721 dev->wakeup in acpi_enable_wakeup_device_power()
[all...]
/kernel/linux/linux-5.10/arch/powerpc/sysdev/
H A Dfsl_mpic_timer_wakeup.c3 * MPIC timer wakeup driver
28 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()
153 MODULE_DESCRIPTION("Freescale MPIC global timer wakeup drive
[all...]
/kernel/linux/linux-6.6/arch/powerpc/sysdev/
H A Dfsl_mpic_timer_wakeup.c3 * MPIC timer wakeup driver
28 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()
164 MODULE_DESCRIPTION("Freescale MPIC global timer wakeup drive
[all...]
/kernel/linux/linux-5.10/drivers/base/power/
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 disable
[all...]
/kernel/linux/linux-6.6/drivers/base/power/
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 disable
[all...]
/kernel/linux/linux-5.10/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()
195 dev_dbg(dev, "%s - wakeup = %d\n", __func__, ret); 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 in sirf_probe()
[all...]
/kernel/linux/linux-6.6/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()
195 dev_dbg(dev, "%s - wakeup = %d\n", __func__, ret); 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 in sirf_probe()
[all...]
/kernel/linux/linux-5.10/drivers/slimbus/
H A Dsched.c13 * @wakeup: Wakeup this controller from clock pause.
21 * This API executes clock pause reconfiguration sequence if wakeup is false.
22 * If wakeup is true, controller's wakeup is called.
25 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()
59 * Slimbus framework will call controller 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(ctr in slim_ctrl_clk_pause()
[all...]
/kernel/linux/linux-6.6/drivers/slimbus/
H A Dsched.c13 * @wakeup: Wakeup this controller from clock pause.
21 * This API executes clock pause reconfiguration sequence if wakeup is false.
22 * If wakeup is true, controller's wakeup is called.
25 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()
59 * Slimbus framework will call controller 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(ctr in slim_ctrl_clk_pause()
[all...]
/kernel/linux/linux-5.10/arch/x86/realmode/rm/
H A DMakefile20 wakeup-objs := wakeup_asm.o wakemain.o video-mode.o
21 wakeup-objs += copy.o bioscall.o regs.o
26 wakeup-objs += video-vga.o
27 wakeup-objs += video-vesa.o
28 wakeup-objs += video-bios.o
34 realmode-$(CONFIG_ACPI_SLEEP) += $(wakeup-objs)
/kernel/linux/linux-6.6/arch/x86/realmode/rm/
H A DMakefile21 wakeup-objs := wakeup_asm.o wakemain.o video-mode.o
22 wakeup-objs += copy.o bioscall.o regs.o
27 wakeup-objs += video-vga.o
28 wakeup-objs += video-vesa.o
29 wakeup-objs += video-bios.o
35 realmode-$(CONFIG_ACPI_SLEEP) += $(wakeup-objs)
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/drivers/hid/intel-ish-hid/ipc/
H A Dpci-ish.c127 struct acpi_device_wakeup *wakeup; in enable_gpe() local
134 wakeup = &adev->wakeup; in enable_gpe()
142 acpi_disable_gpe(wakeup->gpe_device, wakeup->gpe_number); in enable_gpe()
144 acpi_sts = acpi_enable_gpe(wakeup->gpe_device, wakeup->gpe_number); in enable_gpe()
/kernel/linux/linux-5.10/kernel/events/
H A Dring_buffer.c33 * We only publish the head (and generate a wakeup) when the outer-most
47 handle->wakeup = local_read(&rb->wakeup); in perf_output_get_handle()
130 if (handle->wakeup != local_read(&rb->wakeup)) in perf_output_put_handle()
232 if (unlikely(head - local_read(&rb->wakeup) > rb->watermark)) in __perf_output_begin()
233 local_add(rb->watermark, &rb->wakeup); in __perf_output_begin()
428 handle->wakeup = rb->aux_wakeup + rb->aux_watermark; in perf_aux_output_begin()
484 bool wakeup = !!(handle->aux_flags & PERF_AUX_FLAG_TRUNCATED); in perf_aux_output_end() local
519 wakeup in perf_aux_output_end()
[all...]
/kernel/linux/linux-6.6/kernel/events/
H A Dring_buffer.c33 * We only publish the head (and generate a wakeup) when the outer-most
47 handle->wakeup = local_read(&rb->wakeup); in perf_output_get_handle()
130 if (handle->wakeup != local_read(&rb->wakeup)) in perf_output_put_handle()
233 if (unlikely(head - local_read(&rb->wakeup) > rb->watermark)) in __perf_output_begin()
234 local_add(rb->watermark, &rb->wakeup); in __perf_output_begin()
427 handle->wakeup = rb->aux_wakeup + rb->aux_watermark; in perf_aux_output_begin()
483 bool wakeup = !!(handle->aux_flags & PERF_AUX_FLAG_TRUNCATED); in perf_aux_output_end() local
518 wakeup in perf_aux_output_end()
[all...]
/kernel/linux/linux-5.10/kernel/power/
H A Dprocess.c39 bool wakeup = false; in try_to_freeze_tasks() local
70 wakeup = true; in try_to_freeze_tasks()
92 wakeup ? "aborted" : "failed", in try_to_freeze_tasks()
99 if (!wakeup || pm_debug_messages_on) { in try_to_freeze_tasks()
/kernel/linux/linux-6.6/drivers/usb/fotg210/
H A Dfotg210-core.c48 bool wakeup; in fotg210_gemini_init() local
56 wakeup = of_property_read_bool(np, "wakeup-source"); in fotg210_gemini_init()
71 if (wakeup) in fotg210_gemini_init()
81 if (wakeup) in fotg210_gemini_init()

Completed in 15 milliseconds

12345678910>>...19