Lines Matching refs:usb_phy
570 usb_remove_phy(&port->usb_phy); in tegra_xusb_port_unregister()
613 usb_phy_set_event(&port->usb_phy, to_usb_phy_event(role)); in tegra_xusb_usb_phy_work()
618 atomic_notifier_call_chain(&port->usb_phy.notifier, 0, &port->usb_phy); in tegra_xusb_usb_phy_work()
636 struct tegra_xusb_port *port = container_of(otg->usb_phy, in tegra_xusb_set_peripheral()
638 usb_phy); in tegra_xusb_set_peripheral()
648 struct tegra_xusb_port *port = container_of(otg->usb_phy, in tegra_xusb_set_host()
650 usb_phy); in tegra_xusb_set_host()
692 port->usb_phy.otg = devm_kzalloc(&port->dev, sizeof(struct usb_otg), in tegra_xusb_setup_usb_role_switch()
694 if (!port->usb_phy.otg) in tegra_xusb_setup_usb_role_switch()
703 port->usb_phy.dev = &lane->pad->lanes[port->index]->dev; in tegra_xusb_setup_usb_role_switch()
704 port->usb_phy.dev->driver = port->dev.driver; in tegra_xusb_setup_usb_role_switch()
705 port->usb_phy.otg->usb_phy = &port->usb_phy; in tegra_xusb_setup_usb_role_switch()
706 port->usb_phy.otg->set_peripheral = tegra_xusb_set_peripheral; in tegra_xusb_setup_usb_role_switch()
707 port->usb_phy.otg->set_host = tegra_xusb_set_host; in tegra_xusb_setup_usb_role_switch()
709 err = usb_add_phy_dev(&port->usb_phy); in tegra_xusb_setup_usb_role_switch()