Searched refs:usb_role_sw (Results 1 – 4 of 4) sorted by relevance
554 if (!IS_ERR_OR_NULL(port->usb_role_sw)) { in tegra_xusb_port_unregister()556 usb_role_switch_unregister(port->usb_role_sw); in tegra_xusb_port_unregister()600 enum usb_role role = usb_role_switch_get_role(port->usb_role_sw); in tegra_xusb_usb_phy_work()671 port->usb_role_sw = usb_role_switch_register(&port->dev, in tegra_xusb_setup_usb_role_switch()673 if (IS_ERR(port->usb_role_sw)) { in tegra_xusb_setup_usb_role_switch()674 err = PTR_ERR(port->usb_role_sw); in tegra_xusb_setup_usb_role_switch()681 usb_role_switch_set_drvdata(port->usb_role_sw, port); in tegra_xusb_setup_usb_role_switch()
270 struct usb_role_switch *usb_role_sw; member
646 ret = usb_role_switch_set_role(con->usb_role_sw, u_role); in ucsi_partner_change()821 ret = usb_role_switch_set_role(con->usb_role_sw, u_role); in ucsi_handle_connector_change()1157 con->usb_role_sw = fwnode_usb_role_switch_get(cap->fwnode); in ucsi_register_port()1158 if (IS_ERR(con->usb_role_sw)) { in ucsi_register_port()1161 con->usb_role_sw = NULL; in ucsi_register_port()1168 ret = usb_role_switch_set_role(con->usb_role_sw, u_role); in ucsi_register_port()
339 struct usb_role_switch *usb_role_sw; member