Lines Matching defs:role_sw
145 struct usb_role_switch *role_sw;
156 role_sw = usb_role_switch_register(hsotg->dev, &role_sw_desc);
157 if (IS_ERR(role_sw)) {
158 ret = PTR_ERR(role_sw);
164 hsotg->role_sw = role_sw;
176 if (hsotg->role_sw && !hsotg->params.external_id_pin_ctl) {
189 if (hsotg->role_sw && !hsotg->params.external_id_pin_ctl) {
200 if (hsotg->role_sw)
201 usb_role_switch_unregister(hsotg->role_sw);