Lines Matching full:usbphy
258 struct usb_phy **usbphy; member
1210 struct usb_phy *usbphy) in tegra_xusb_get_usb2_port() argument
1215 if (tegra->usbphy[i] && usbphy == tegra->usbphy[i]) in tegra_xusb_get_usb2_port()
1227 struct usb_phy *usbphy = (struct usb_phy *)data; in tegra_xhci_id_notify() local
1229 dev_dbg(tegra->dev, "%s(): action is %d", __func__, usbphy->last_event); in tegra_xhci_id_notify()
1231 if ((tegra->host_mode && usbphy->last_event == USB_EVENT_ID) || in tegra_xhci_id_notify()
1232 (!tegra->host_mode && usbphy->last_event != USB_EVENT_ID)) { in tegra_xhci_id_notify()
1238 tegra->otg_usb2_port = tegra_xusb_get_usb2_port(tegra, usbphy); in tegra_xhci_id_notify()
1243 tegra->host_mode = (usbphy->last_event == USB_EVENT_ID) ? true : false; in tegra_xhci_id_notify()
1254 tegra->usbphy = devm_kcalloc(tegra->dev, tegra->num_usb_phys, in tegra_xusb_init_usb_phy()
1255 sizeof(*tegra->usbphy), GFP_KERNEL); in tegra_xusb_init_usb_phy()
1256 if (!tegra->usbphy) in tegra_xusb_init_usb_phy()
1270 tegra->usbphy[i] = devm_usb_get_phy_by_node(tegra->dev, in tegra_xusb_init_usb_phy()
1273 if (!IS_ERR(tegra->usbphy[i])) { in tegra_xusb_init_usb_phy()
1274 dev_dbg(tegra->dev, "usbphy-%d registered", i); in tegra_xusb_init_usb_phy()
1275 otg_set_host(tegra->usbphy[i]->otg, &tegra->hcd->self); in tegra_xusb_init_usb_phy()
1280 tegra->usbphy[i] = NULL; in tegra_xusb_init_usb_phy()
1294 if (tegra->usbphy[i]) in tegra_xusb_deinit_usb_phy()
1295 otg_set_host(tegra->usbphy[i]->otg, NULL); in tegra_xusb_deinit_usb_phy()