Searched refs:reset_nb (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/drivers/soc/litex/ |
H A D | litex_soc_ctrl.c | 72 struct notifier_block reset_nb; member 79 container_of(this, struct litex_soc_ctrl_device, reset_nb); in litex_reset_handler() 112 soc_ctrl_dev->reset_nb.notifier_call = litex_reset_handler; in litex_soc_ctrl_probe() 113 soc_ctrl_dev->reset_nb.priority = 128; in litex_soc_ctrl_probe() 114 error = register_restart_handler(&soc_ctrl_dev->reset_nb); in litex_soc_ctrl_probe() 127 unregister_restart_handler(&soc_ctrl_dev->reset_nb); in litex_soc_ctrl_remove()
|
/openbmc/linux/drivers/mmc/core/ |
H A D | pwrseq_emmc.c | 26 struct notifier_block reset_nb; member 46 struct mmc_pwrseq_emmc, reset_nb); in mmc_pwrseq_emmc_reset_nb() 78 pwrseq->reset_nb.notifier_call = mmc_pwrseq_emmc_reset_nb; in mmc_pwrseq_emmc_probe() 79 pwrseq->reset_nb.priority = 255; in mmc_pwrseq_emmc_probe() 80 register_restart_handler(&pwrseq->reset_nb); in mmc_pwrseq_emmc_probe() 97 unregister_restart_handler(&pwrseq->reset_nb); in mmc_pwrseq_emmc_remove()
|
/openbmc/u-boot/drivers/usb/host/ |
H A D | ohci-generic.c | 81 int i, err, ret, clock_nb, reset_nb; in ohci_usb_probe() local 111 reset_nb = dev_count_phandle_with_args(dev, "resets", "#reset-cells"); in ohci_usb_probe() 112 if (reset_nb > 0) { in ohci_usb_probe() 113 priv->resets = devm_kcalloc(dev, reset_nb, in ohci_usb_probe() 119 for (i = 0; i < reset_nb; i++) { in ohci_usb_probe() 132 } else if (reset_nb != -ENOENT) { in ohci_usb_probe() 133 dev_err(dev, "failed to get reset phandle(%d)\n", reset_nb); in ohci_usb_probe()
|
H A D | ehci-generic.c | 81 int i, err, ret, clock_nb, reset_nb; in ehci_usb_probe() local 115 reset_nb = ofnode_count_phandle_with_args(dev_ofnode(dev), "resets", in ehci_usb_probe() 117 if (reset_nb > 0) { in ehci_usb_probe() 118 priv->resets = devm_kcalloc(dev, reset_nb, in ehci_usb_probe() 124 for (i = 0; i < reset_nb; i++) { in ehci_usb_probe() 138 if (reset_nb != -ENOENT) { in ehci_usb_probe() 140 reset_nb); in ehci_usb_probe()
|