Searched refs:role_sw (Results 1 – 9 of 9) sorted by relevance
31 struct usb_role_switch *role_sw; member93 ret = usb_role_switch_set_role(info->role_sw, role); in usb_conn_detect_cable()163 info->role_sw = usb_role_switch_get(dev); in usb_conn_probe()164 if (IS_ERR(info->role_sw)) { in usb_conn_probe()165 if (PTR_ERR(info->role_sw) != -EPROBE_DEFER) in usb_conn_probe()168 return PTR_ERR(info->role_sw); in usb_conn_probe()213 usb_role_switch_put(info->role_sw); in usb_conn_probe()226 usb_role_switch_put(info->role_sw); in usb_conn_remove()
99 struct usb_role_switch *role_sw; member173 role = usb_role_switch_get_role(info->role_sw); in axp288_get_id_pin()193 ret = usb_role_switch_set_role(info->role_sw, role); in axp288_usb_role_work()269 if (info->role_sw && info->vbus_attach != vbus_attach) { in axp288_handle_chrg_det_event()322 usb_role_switch_put(info->role_sw); in axp288_put_role_sw()346 info->role_sw = usb_role_switch_get(dev); in axp288_extcon_probe()347 if (IS_ERR(info->role_sw)) in axp288_extcon_probe()348 return PTR_ERR(info->role_sw); in axp288_extcon_probe()349 if (info->role_sw) { in axp288_extcon_probe()418 if (info->role_sw) { in axp288_extcon_probe()
45 struct usb_role_switch *role_sw; member182 data->role_sw = usb_role_switch_register(dev, &sw_desc); in intel_xhci_usb_probe()183 if (IS_ERR(data->role_sw)) { in intel_xhci_usb_probe()185 return PTR_ERR(data->role_sw); in intel_xhci_usb_probe()200 usb_role_switch_unregister(data->role_sw); in intel_xhci_usb_remove()
532 cdns->role_sw = usb_role_switch_register(dev, &cdns3_switch_desc); in cdns3_probe()533 if (IS_ERR(cdns->role_sw)) { in cdns3_probe()534 ret = PTR_ERR(cdns->role_sw); in cdns3_probe()564 usb_role_switch_unregister(cdns->role_sw); in cdns3_probe()592 usb_role_switch_unregister(cdns->role_sw); in cdns3_remove()
92 struct usb_role_switch *role_sw; member
359 otg_sx->role_sw = usb_role_switch_register(ssusb->dev, &role_sx_desc); in ssusb_role_sw_register()361 return PTR_ERR_OR_ZERO(otg_sx->role_sw); in ssusb_role_sw_register()388 usb_role_switch_unregister(otg_sx->role_sw); in ssusb_otg_switch_exit()
218 struct usb_role_switch *role_sw; member
341 struct usb_role_switch *role_sw; member672 usb_role_switch_set_role(usb3->role_sw, usb3->role); in renesas_usb3_role_work()685 if (usb3->role_sw) { in usb3_set_mode_by_role_sw()2553 usb_role_switch_unregister(usb3->role_sw); in renesas_usb3_remove()2822 usb3->role_sw = usb_role_switch_register(&pdev->dev, in renesas_usb3_probe()2824 if (!IS_ERR(usb3->role_sw)) { in renesas_usb3_probe()2828 usb_role_switch_unregister(usb3->role_sw); in renesas_usb3_probe()2829 usb3->role_sw = NULL; in renesas_usb3_probe()2832 usb3->role_sw = NULL; in renesas_usb3_probe()
204 struct usb_role_switch *role_sw; member669 if (port->role_sw) { in tcpm_mux_set()670 ret = usb_role_switch_set_role(port->role_sw, usb_role); in tcpm_mux_set()4784 port->role_sw = usb_role_switch_get(port->dev); in tcpm_register_port()4785 if (IS_ERR(port->role_sw)) { in tcpm_register_port()4786 err = PTR_ERR(port->role_sw); in tcpm_register_port()4831 usb_role_switch_put(port->role_sw); in tcpm_register_port()4847 usb_role_switch_put(port->role_sw); in tcpm_unregister_port()