/openbmc/linux/drivers/base/power/ |
H A D | wakeirq.c | 19 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() 329 void dev_pm_arm_wake_irq(struct wake_irq *wirq) in dev_pm_arm_wake_irq() 350 void dev_pm_disarm_wake_irq(struct wake_irq *wirq) in dev_pm_disarm_wake_irq()
|
H A D | power.h | 34 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()
|
H A D | wakeup.c | 367 struct wake_irq *wakeirq) in device_wakeup_attach_irq()
|
/openbmc/linux/drivers/phy/broadcom/ |
H A D | phy-brcm-usb.c | 71 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()
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-brcmstb-waketimer.c | 30 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()
|
/openbmc/linux/drivers/acpi/ |
H A D | wakeup.c | 111 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()
|
/openbmc/linux/drivers/pinctrl/bcm/ |
H A D | pinctrl-bcm2835.c | 81 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()
|
/openbmc/linux/include/linux/ |
H A D | pm_wakeup.h | 18 struct wake_irq; 48 struct wake_irq *wakeirq;
|
H A D | pm.h | 629 struct wake_irq; 694 struct wake_irq *wakeirq;
|
H A D | acpi.h | 532 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
|
/openbmc/linux/drivers/soundwire/ |
H A D | qcom.c | 194 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) { 1673 if (ctrl->wake_irq > 0) { 1675 disable_irq_nosync(ctrl->wake_irq); 1766 if (ctrl->wake_irq > 0) { 1767 if (irqd_irq_disabled(irq_get_irq_data(ctrl->wake_irq))) [all …]
|
/openbmc/linux/drivers/net/phy/ |
H A D | broadcom.c | 37 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()
|
/openbmc/linux/drivers/hsi/controllers/ |
H A D | omap_ssi.h | 91 int wake_irq; member
|
H A D | omap_ssi_core.c | 291 disable_irq(omap_port->wake_irq); in ssi_clk_event() 317 enable_irq(omap_port->wake_irq); in ssi_clk_event()
|
H A D | omap_ssi_port.c | 57 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()
|
/openbmc/linux/drivers/net/wireless/ath/ath11k/ |
H A D | ahb.c | 684 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()
|
/openbmc/linux/drivers/bluetooth/ |
H A D | hci_nokia.c | 133 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()
|
/openbmc/linux/drivers/mmc/host/ |
H A D | omap_hsmmc.c | 193 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()
|
/openbmc/linux/drivers/net/ethernet/freescale/ |
H A D | fec.h | 643 int wake_irq; member
|
H A D | fec_main.c | 4264 fep->wake_irq = fep->irq[2]; in fec_enet_get_wakeup_irq() 4266 fep->wake_irq = fep->irq[0]; in fec_enet_get_wakeup_irq() 4640 if (fep->wake_irq > 0) { in fec_suspend() 4641 disable_irq(fep->wake_irq); in fec_suspend() 4642 enable_irq_wake(fep->wake_irq); in fec_suspend() 4697 if (fep->wake_irq) { in fec_resume() 4698 disable_irq_wake(fep->wake_irq); in fec_resume() 4699 enable_irq(fep->wake_irq); in fec_resume()
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | sm6375.dtsi | 324 qcom,mpm-pin-map = <5 296>, /* Soundwire wake_irq */
|