Home
last modified time | relevance | path

Searched refs:role_switch (Results 1 – 5 of 5) sorted by relevance

/drivers/usb/chipidea/
Dotg.c39 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()
Dcore.c1159 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()
Dci.h222 struct usb_role_switch *role_switch; member
Dci_hdrc_msm.c117 if (!IS_ERR(ci->platdata->vbus_extcon.edev) || ci->role_switch) { in ci_hdrc_msm_notify_event()
/drivers/usb/dwc3/
Ddwc3-meson-g12a.c268 struct usb_role_switch *role_switch; member
628 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()