Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/phy/tegra/
Dxusb.c560 if (!IS_ERR_OR_NULL(port->usb_role_sw)) { in tegra_xusb_port_unregister()
562 usb_role_switch_unregister(port->usb_role_sw); in tegra_xusb_port_unregister()
605 enum usb_role role = usb_role_switch_get_role(port->usb_role_sw); in tegra_xusb_usb_phy_work()
674 port->usb_role_sw = usb_role_switch_register(&port->dev, in tegra_xusb_setup_usb_role_switch()
676 if (IS_ERR(port->usb_role_sw)) { in tegra_xusb_setup_usb_role_switch()
677 err = PTR_ERR(port->usb_role_sw); in tegra_xusb_setup_usb_role_switch()
684 usb_role_switch_set_drvdata(port->usb_role_sw, port); in tegra_xusb_setup_usb_role_switch()
Dxusb.h284 struct usb_role_switch *usb_role_sw; member
/linux-6.1.9/drivers/usb/typec/ucsi/
Ducsi.c734 ret = usb_role_switch_set_role(con->usb_role_sw, u_role); in ucsi_partner_change()
1069 con->usb_role_sw = fwnode_usb_role_switch_get(cap->fwnode); in ucsi_register_port()
1070 if (IS_ERR(con->usb_role_sw)) in ucsi_register_port()
1071 return dev_err_probe(ucsi->dev, PTR_ERR(con->usb_role_sw), in ucsi_register_port()
1170 ret = usb_role_switch_set_role(con->usb_role_sw, u_role); in ucsi_register_port()
Ducsi.h343 struct usb_role_switch *usb_role_sw; member
/linux-6.1.9/Documentation/devicetree/bindings/usb/
Dmediatek,mtu3.yaml327 usb_role_sw: endpoint {