Lines Matching refs:vbus
266 struct regulator *vbus; member
501 if (priv->vbus) { in dwc3_meson_g12a_otg_mode_set()
503 ret = regulator_disable(priv->vbus); in dwc3_meson_g12a_otg_mode_set()
505 ret = regulator_enable(priv->vbus); in dwc3_meson_g12a_otg_mode_set()
725 priv->vbus = devm_regulator_get_optional(dev, "vbus"); in dwc3_meson_g12a_probe()
726 if (IS_ERR(priv->vbus)) { in dwc3_meson_g12a_probe()
727 if (PTR_ERR(priv->vbus) == -EPROBE_DEFER) in dwc3_meson_g12a_probe()
728 return PTR_ERR(priv->vbus); in dwc3_meson_g12a_probe()
729 priv->vbus = NULL; in dwc3_meson_g12a_probe()
764 if (priv->vbus) { in dwc3_meson_g12a_probe()
765 ret = regulator_enable(priv->vbus); in dwc3_meson_g12a_probe()
825 if (priv->vbus) in dwc3_meson_g12a_probe()
826 regulator_disable(priv->vbus); in dwc3_meson_g12a_probe()
889 if (priv->vbus && priv->otg_phy_mode == PHY_MODE_USB_HOST) { in dwc3_meson_g12a_suspend()
890 ret = regulator_disable(priv->vbus); in dwc3_meson_g12a_suspend()
932 if (priv->vbus && priv->otg_phy_mode == PHY_MODE_USB_HOST) { in dwc3_meson_g12a_resume()
933 ret = regulator_enable(priv->vbus); in dwc3_meson_g12a_resume()