Lines Matching full:usbphy
260 struct usb_phy **usbphy; member
1269 return (tegra->usbphy[index] != NULL); in is_usb2_otg_phy()
1313 struct usb_phy *usbphy) in tegra_xusb_get_usb2_port() argument
1318 if (tegra->usbphy[i] && usbphy == tegra->usbphy[i]) in tegra_xusb_get_usb2_port()
1330 struct usb_phy *usbphy = (struct usb_phy *)data; in tegra_xhci_id_notify() local
1332 dev_dbg(tegra->dev, "%s(): action is %d", __func__, usbphy->last_event); in tegra_xhci_id_notify()
1334 if ((tegra->host_mode && usbphy->last_event == USB_EVENT_ID) || in tegra_xhci_id_notify()
1335 (!tegra->host_mode && usbphy->last_event != USB_EVENT_ID)) { in tegra_xhci_id_notify()
1341 tegra->otg_usb2_port = tegra_xusb_get_usb2_port(tegra, usbphy); in tegra_xhci_id_notify()
1346 tegra->host_mode = (usbphy->last_event == USB_EVENT_ID) ? true : false; in tegra_xhci_id_notify()
1357 tegra->usbphy = devm_kcalloc(tegra->dev, tegra->num_usb_phys, in tegra_xusb_init_usb_phy()
1358 sizeof(*tegra->usbphy), GFP_KERNEL); in tegra_xusb_init_usb_phy()
1359 if (!tegra->usbphy) in tegra_xusb_init_usb_phy()
1373 tegra->usbphy[i] = devm_usb_get_phy_by_node(tegra->dev, in tegra_xusb_init_usb_phy()
1376 if (!IS_ERR(tegra->usbphy[i])) { in tegra_xusb_init_usb_phy()
1377 dev_dbg(tegra->dev, "usbphy-%d registered", i); in tegra_xusb_init_usb_phy()
1378 otg_set_host(tegra->usbphy[i]->otg, &tegra->hcd->self); in tegra_xusb_init_usb_phy()
1383 tegra->usbphy[i] = NULL; in tegra_xusb_init_usb_phy()
1397 if (tegra->usbphy[i]) in tegra_xusb_deinit_usb_phy()
1398 otg_set_host(tegra->usbphy[i]->otg, NULL); in tegra_xusb_deinit_usb_phy()