Lines Matching refs:vbus
34 struct regulator *vbus; member
68 int id, vbus, ret; in usb_conn_detect_cable() local
76 vbus = info->vbus_gpiod ? in usb_conn_detect_cable()
81 else if (vbus) in usb_conn_detect_cable()
87 usb_role_string(info->last_role), usb_role_string(role), id, vbus); in usb_conn_detect_cable()
94 if (info->last_role == USB_ROLE_HOST && info->vbus) in usb_conn_detect_cable()
95 regulator_disable(info->vbus); in usb_conn_detect_cable()
101 if (role == USB_ROLE_HOST && info->vbus) { in usb_conn_detect_cable()
102 ret = regulator_enable(info->vbus); in usb_conn_detect_cable()
109 if (info->vbus) in usb_conn_detect_cable()
111 regulator_is_enabled(info->vbus) ? "enabled" : "disabled"); in usb_conn_detect_cable()
218 info->vbus = devm_regulator_get_optional(dev, "vbus"); in usb_conn_probe()
219 if (PTR_ERR(info->vbus) == -ENODEV) in usb_conn_probe()
220 info->vbus = NULL; in usb_conn_probe()
222 info->vbus = devm_regulator_get(dev, "vbus"); in usb_conn_probe()
225 if (IS_ERR(info->vbus)) { in usb_conn_probe()
226 ret = PTR_ERR(info->vbus); in usb_conn_probe()
291 if (info->last_role == USB_ROLE_HOST && info->vbus) in usb_conn_remove()
292 regulator_disable(info->vbus); in usb_conn_remove()