Lines Matching refs:vbus
34 struct regulator *vbus; member
69 int id, vbus, ret; in usb_conn_detect_cable() local
77 vbus = info->vbus_gpiod ? in usb_conn_detect_cable()
82 else if (vbus) in usb_conn_detect_cable()
88 usb_role_string(info->last_role), usb_role_string(role), id, vbus); in usb_conn_detect_cable()
97 if (info->last_role == USB_ROLE_HOST && info->vbus) in usb_conn_detect_cable()
98 regulator_disable(info->vbus); in usb_conn_detect_cable()
104 if (role == USB_ROLE_HOST && info->vbus) { in usb_conn_detect_cable()
105 ret = regulator_enable(info->vbus); in usb_conn_detect_cable()
112 if (info->vbus) in usb_conn_detect_cable()
114 regulator_is_enabled(info->vbus) ? "enabled" : "disabled"); in usb_conn_detect_cable()
210 info->vbus = devm_regulator_get_optional(dev, "vbus"); in usb_conn_probe()
211 if (PTR_ERR(info->vbus) == -ENODEV) in usb_conn_probe()
212 info->vbus = NULL; in usb_conn_probe()
214 if (IS_ERR(info->vbus)) in usb_conn_probe()
215 return dev_err_probe(dev, PTR_ERR(info->vbus), "failed to get vbus\n"); in usb_conn_probe()
280 if (info->last_role == USB_ROLE_HOST && info->vbus) in usb_conn_remove()
281 regulator_disable(info->vbus); in usb_conn_remove()