Lines Matching refs:vbus_reg
41 struct regulator *vbus_reg; member
93 if (!da8xx_ohci->vbus_reg) in ohci_da8xx_set_power()
97 ret = regulator_enable(da8xx_ohci->vbus_reg); in ohci_da8xx_set_power()
103 ret = regulator_disable(da8xx_ohci->vbus_reg); in ohci_da8xx_set_power()
117 if (da8xx_ohci->vbus_reg) in ohci_da8xx_get_power()
118 return regulator_is_enabled(da8xx_ohci->vbus_reg); in ohci_da8xx_get_power()
132 if (!da8xx_ohci->vbus_reg) in ohci_da8xx_get_oci()
135 ret = regulator_get_error_flags(da8xx_ohci->vbus_reg, &flags); in ohci_da8xx_get_oci()
149 if (da8xx_ohci->vbus_reg) in ohci_da8xx_has_set_power()
162 if (da8xx_ohci->vbus_reg) in ohci_da8xx_has_oci()
200 da8xx_ohci->vbus_reg) { in ohci_da8xx_oc_thread()
201 ret = regulator_disable(da8xx_ohci->vbus_reg); in ohci_da8xx_oc_thread()
215 if (!da8xx_ohci->oc_gpio && da8xx_ohci->vbus_reg) { in ohci_da8xx_register_notify()
217 ret = devm_regulator_register_notifier(da8xx_ohci->vbus_reg, in ohci_da8xx_register_notify()
404 da8xx_ohci->vbus_reg = devm_regulator_get_optional(dev, "vbus"); in ohci_da8xx_probe()
405 if (IS_ERR(da8xx_ohci->vbus_reg)) { in ohci_da8xx_probe()
406 error = PTR_ERR(da8xx_ohci->vbus_reg); in ohci_da8xx_probe()
408 da8xx_ohci->vbus_reg = NULL; in ohci_da8xx_probe()