Home
last modified time | relevance | path

Searched refs:wake_irq (Results 1 – 21 of 21) sorted by relevance

/linux-6.6.21/drivers/base/power/
Dwakeirq.c19 static int dev_pm_attach_wake_irq(struct device *dev, struct wake_irq *wirq) in dev_pm_attach_wake_irq()
52 struct wake_irq *wirq; in dev_pm_set_wake_irq()
86 struct wake_irq *wirq = dev->power.wakeirq; in dev_pm_clear_wake_irq()
126 struct wake_irq *wirq = _wirq; in handle_threaded_wake_irq()
147 struct wake_irq *wirq; in __dev_pm_set_dedicated_wake_irq()
253 struct wake_irq *wirq = dev->power.wakeirq; in dev_pm_enable_wake_irq_check()
284 struct wake_irq *wirq = dev->power.wakeirq; in dev_pm_disable_wake_irq_check()
310 struct wake_irq *wirq = dev->power.wakeirq; in dev_pm_enable_wake_irq_complete()
327 void dev_pm_arm_wake_irq(struct wake_irq *wirq) in dev_pm_arm_wake_irq()
348 void dev_pm_disarm_wake_irq(struct wake_irq *wirq) in dev_pm_disarm_wake_irq()
Dpower.h34 struct wake_irq { struct
41 extern void dev_pm_arm_wake_irq(struct wake_irq *wirq); argument
42 extern void dev_pm_disarm_wake_irq(struct wake_irq *wirq);
50 extern void device_wakeup_attach_irq(struct device *dev, struct wake_irq *wakeirq);
58 struct wake_irq *wakeirq) {} in device_wakeup_attach_irq()
Dwakeup.c367 struct wake_irq *wakeirq) in device_wakeup_attach_irq()
/linux-6.6.21/drivers/phy/broadcom/
Dphy-brcm-usb.c71 int wake_irq; member
448 priv->wake_irq = platform_get_irq_byname_optional(pdev, "wake"); in brcm_usb_phy_dvr_init()
449 if (priv->wake_irq < 0) in brcm_usb_phy_dvr_init()
450 priv->wake_irq = platform_get_irq_byname_optional(pdev, "wakeup"); in brcm_usb_phy_dvr_init()
451 if (priv->wake_irq >= 0) { in brcm_usb_phy_dvr_init()
452 err = devm_request_irq(dev, priv->wake_irq, in brcm_usb_phy_dvr_init()
609 if (priv->wake_irq >= 0) in brcm_usb_phy_suspend()
610 enable_irq_wake(priv->wake_irq); in brcm_usb_phy_suspend()
631 if (priv->wake_irq >= 0) in brcm_usb_phy_resume()
632 disable_irq_wake(priv->wake_irq); in brcm_usb_phy_resume()
/linux-6.6.21/drivers/rtc/
Drtc-brcmstb-waketimer.c30 unsigned int wake_irq; member
154 ret = enable_irq_wake(timer->wake_irq); in brcmstb_waketmr_prepare_suspend()
163 disable_irq_wake(timer->wake_irq); in brcmstb_waketmr_prepare_suspend()
304 timer->wake_irq = (unsigned int)ret; in brcmstb_waketmr_probe()
319 ret = devm_request_irq(dev, timer->wake_irq, brcmstb_waketmr_irq, 0, in brcmstb_waketmr_probe()
393 ret = disable_irq_wake(timer->wake_irq); in brcmstb_waketmr_resume()
/linux-6.6.21/drivers/acpi/
Dwakeup.c111 int acpi_register_wakeup_handler(int wake_irq, bool (*wakeup)(void *context), in acpi_register_wakeup_handler() argument
120 if (!acpi_sci_irq_valid() || wake_irq != acpi_sci_irq) in acpi_register_wakeup_handler()
/linux-6.6.21/drivers/pinctrl/bcm/
Dpinctrl-bcm2835.c81 int *wake_irq; member
686 if (!pc->wake_irq) in bcm2835_gpio_irq_set_wake()
699 ret = enable_irq_wake(pc->wake_irq[irqgroup]); in bcm2835_gpio_irq_set_wake()
701 ret = disable_irq_wake(pc->wake_irq[irqgroup]); in bcm2835_gpio_irq_set_wake()
1305 pc->wake_irq = devm_kcalloc(dev, BCM2835_NUM_IRQS, in bcm2835_pinctrl_probe()
1306 sizeof(*pc->wake_irq), in bcm2835_pinctrl_probe()
1308 if (!pc->wake_irq) { in bcm2835_pinctrl_probe()
1334 pc->wake_irq[i] = irq_of_parse_and_map(np, i + in bcm2835_pinctrl_probe()
1347 err = devm_request_irq(dev, pc->wake_irq[i], in bcm2835_pinctrl_probe()
1352 pc->wake_irq[i]); in bcm2835_pinctrl_probe()
/linux-6.6.21/include/linux/
Dpm_wakeup.h18 struct wake_irq;
48 struct wake_irq *wakeirq;
Dpm.h629 struct wake_irq;
694 struct wake_irq *wakeirq;
Dacpi.h532 int wake_irq, bool (*wakeup)(void *context), void *context);
1054 static inline int acpi_register_wakeup_handler(int wake_irq, in acpi_register_wakeup_handler() argument
/linux-6.6.21/drivers/soundwire/
Dqcom.c194 int wake_irq; member
654 if (ctrl->wake_irq > 0) { in qcom_swrm_wake_irq_handler()
655 if (!irqd_irq_disabled(irq_get_irq_data(ctrl->wake_irq))) in qcom_swrm_wake_irq_handler()
656 disable_irq_nosync(ctrl->wake_irq); in qcom_swrm_wake_irq_handler()
1603 ctrl->wake_irq = of_irq_get(dev->of_node, 1);
1604 if (ctrl->wake_irq > 0) {
1605 ret = devm_request_threaded_irq(dev, ctrl->wake_irq, NULL,
1673 if (ctrl->wake_irq > 0) {
1674 if (!irqd_irq_disabled(irq_get_irq_data(ctrl->wake_irq)))
1675 disable_irq_nosync(ctrl->wake_irq);
[all …]
/linux-6.6.21/drivers/net/phy/
Dbroadcom.c37 int wake_irq; member
45 return phy_interrupt_is_valid(phydev) || priv->wake_irq >= 0; in bcm54xx_phy_can_wakeup()
473 ret = enable_irq_wake(priv->wake_irq); in bcm54xx_set_wakeup_irq()
475 ret = disable_irq_wake(priv->wake_irq); in bcm54xx_set_wakeup_irq()
906 priv->wake_irq = -ENXIO; in bcm54xx_phy_probe()
929 priv->wake_irq = gpiod_to_irq(wakeup_gpio); in bcm54xx_phy_probe()
934 ret = devm_request_irq(&phydev->mdio.dev, priv->wake_irq, in bcm54xx_phy_probe()
/linux-6.6.21/drivers/hsi/controllers/
Domap_ssi.h91 int wake_irq; member
Domap_ssi_core.c291 disable_irq(omap_port->wake_irq); in ssi_clk_event()
317 enable_irq(omap_port->wake_irq); in ssi_clk_event()
Domap_ssi_port.c57 if (omap_port->wake_irq > 0) in ssi_port_regs_show()
1053 omap_port->wake_irq = -1; in ssi_wake_irq()
1058 omap_port->wake_irq = cawake_irq; in ssi_wake_irq()
/linux-6.6.21/drivers/net/wireless/ath/ath11k/
Dahb.c684 u32 wake_irq; in ath11k_ahb_hif_suspend() local
691 wake_irq = ab->irq_num[ATH11K_PCI_IRQ_CE0_OFFSET + ATH11K_PCI_CE_WAKE_IRQ]; in ath11k_ahb_hif_suspend()
693 ret = enable_irq_wake(wake_irq); in ath11k_ahb_hif_suspend()
719 u32 wake_irq; in ath11k_ahb_hif_resume() local
726 wake_irq = ab->irq_num[ATH11K_PCI_IRQ_CE0_OFFSET + ATH11K_PCI_CE_WAKE_IRQ]; in ath11k_ahb_hif_resume()
728 ret = disable_irq_wake(wake_irq); in ath11k_ahb_hif_resume()
/linux-6.6.21/drivers/bluetooth/
Dhci_nokia.c133 int wake_irq; member
711 btdev->wake_irq = gpiod_to_irq(btdev->wakeup_host); in nokia_bluetooth_serdev_probe()
713 err = devm_request_threaded_irq(dev, btdev->wake_irq, NULL, in nokia_bluetooth_serdev_probe()
/linux-6.6.21/drivers/mmc/host/
Domap_hsmmc.c193 int wake_irq; member
1547 if (!host->dev->of_node || !host->wake_irq) in omap_hsmmc_configure_wake_irq()
1550 ret = dev_pm_set_dedicated_wake_irq(host->dev, host->wake_irq); in omap_hsmmc_configure_wake_irq()
1584 host->wake_irq = 0; in omap_hsmmc_configure_wake_irq()
1828 host->wake_irq = irq_of_parse_and_map(pdev->dev.of_node, 1); in omap_hsmmc_probe()
/linux-6.6.21/drivers/net/ethernet/freescale/
Dfec.h643 int wake_irq; member
Dfec_main.c4244 fep->wake_irq = fep->irq[2]; in fec_enet_get_wakeup_irq()
4246 fep->wake_irq = fep->irq[0]; in fec_enet_get_wakeup_irq()
4618 if (fep->wake_irq > 0) { in fec_suspend()
4619 disable_irq(fep->wake_irq); in fec_suspend()
4620 enable_irq_wake(fep->wake_irq); in fec_suspend()
4675 if (fep->wake_irq) { in fec_resume()
4676 disable_irq_wake(fep->wake_irq); in fec_resume()
4677 enable_irq(fep->wake_irq); in fec_resume()
/linux-6.6.21/arch/arm64/boot/dts/qcom/
Dsm6375.dtsi324 qcom,mpm-pin-map = <5 296>, /* Soundwire wake_irq */