Searched refs:role_switch (Results 1 – 5 of 5) sorted by relevance
39 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc()57 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_read_otgsc()88 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_write_otgsc()102 if (!IS_ERR(cable->edev) || ci->role_switch) { in hw_write_otgsc()
1159 ci->role_switch = usb_role_switch_register(dev, in ci_hdrc_probe()1161 if (IS_ERR(ci->role_switch)) { in ci_hdrc_probe()1162 ret = PTR_ERR(ci->role_switch); in ci_hdrc_probe()1228 if (ci->role_switch) in ci_hdrc_probe()1229 usb_role_switch_unregister(ci->role_switch); in ci_hdrc_probe()1249 if (ci->role_switch) in ci_hdrc_remove()1250 usb_role_switch_unregister(ci->role_switch); in ci_hdrc_remove()
222 struct usb_role_switch *role_switch; member
117 if (!IS_ERR(ci->platdata->vbus_extcon.edev) || ci->role_switch) { in ci_hdrc_msm_notify_event()
268 struct usb_role_switch *role_switch; member628 priv->role_switch = usb_role_switch_register(dev, &priv->switch_desc); in dwc3_meson_g12a_otg_init()629 if (IS_ERR(priv->role_switch)) in dwc3_meson_g12a_otg_init()848 usb_role_switch_unregister(priv->role_switch); in dwc3_meson_g12a_remove()