Searched refs:role_switch (Results 1 – 6 of 6) sorted by relevance
62 struct usb_role_switch *role_switch; member144 rtk->role_switch = usb_role_switch_register(rtk->dev, &dwc3_role_switch); in dwc3_rtk_setup_role_switch()145 if (IS_ERR(rtk->role_switch)) in dwc3_rtk_setup_role_switch()146 return PTR_ERR(rtk->role_switch); in dwc3_rtk_setup_role_switch()153 if (rtk->role_switch) in dwc3_rtk_remove_role_switch()154 usb_role_switch_unregister(rtk->role_switch); in dwc3_rtk_remove_role_switch()156 rtk->role_switch = NULL; in dwc3_rtk_remove_role_switch()
262 struct usb_role_switch *role_switch; member619 priv->role_switch = usb_role_switch_register(dev, &priv->switch_desc); in dwc3_meson_g12a_otg_init()620 if (IS_ERR(priv->role_switch)) in dwc3_meson_g12a_otg_init()838 usb_role_switch_unregister(priv->role_switch); in dwc3_meson_g12a_remove()
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()
1195 ci->role_switch = usb_role_switch_register(dev, in ci_hdrc_probe()1197 if (IS_ERR(ci->role_switch)) { in ci_hdrc_probe()1198 ret = PTR_ERR(ci->role_switch); in ci_hdrc_probe()1246 if (ci->role_switch) in ci_hdrc_probe()1247 usb_role_switch_unregister(ci->role_switch); in ci_hdrc_probe()1267 if (ci->role_switch) in ci_hdrc_remove()1268 usb_role_switch_unregister(ci->role_switch); in ci_hdrc_remove()1337 if ((!IS_ERR(cable_id->edev) || ci->role_switch) in ci_extcon_wakeup_int()1342 if ((!IS_ERR(cable_vbus->edev) || ci->role_switch) in ci_extcon_wakeup_int()
117 if (!IS_ERR(ci->platdata->vbus_extcon.edev) || ci->role_switch) { in ci_hdrc_msm_notify_event()
229 struct usb_role_switch *role_switch; member
Completed in 14 milliseconds