Lines Matching full:usbphy
298 struct usb_phy **usbphy; member
1411 return (tegra->usbphy[index] != NULL); in is_usb2_otg_phy()
1455 struct usb_phy *usbphy) in tegra_xusb_get_usb2_port() argument
1460 if (tegra->usbphy[i] && usbphy == tegra->usbphy[i]) in tegra_xusb_get_usb2_port()
1472 struct usb_phy *usbphy = (struct usb_phy *)data; in tegra_xhci_id_notify() local
1474 dev_dbg(tegra->dev, "%s(): action is %d", __func__, usbphy->last_event); in tegra_xhci_id_notify()
1476 if ((tegra->host_mode && usbphy->last_event == USB_EVENT_ID) || in tegra_xhci_id_notify()
1477 (!tegra->host_mode && usbphy->last_event != USB_EVENT_ID)) { in tegra_xhci_id_notify()
1483 tegra->otg_usb2_port = tegra_xusb_get_usb2_port(tegra, usbphy); in tegra_xhci_id_notify()
1485 tegra->host_mode = (usbphy->last_event == USB_EVENT_ID) ? true : false; in tegra_xhci_id_notify()
1496 tegra->usbphy = devm_kcalloc(tegra->dev, tegra->num_usb_phys, in tegra_xusb_init_usb_phy()
1497 sizeof(*tegra->usbphy), GFP_KERNEL); in tegra_xusb_init_usb_phy()
1498 if (!tegra->usbphy) in tegra_xusb_init_usb_phy()
1512 tegra->usbphy[i] = devm_usb_get_phy_by_node(tegra->dev, in tegra_xusb_init_usb_phy()
1515 if (!IS_ERR(tegra->usbphy[i])) { in tegra_xusb_init_usb_phy()
1516 dev_dbg(tegra->dev, "usbphy-%d registered", i); in tegra_xusb_init_usb_phy()
1517 otg_set_host(tegra->usbphy[i]->otg, &tegra->hcd->self); in tegra_xusb_init_usb_phy()
1522 tegra->usbphy[i] = NULL; in tegra_xusb_init_usb_phy()
1536 if (tegra->usbphy[i]) in tegra_xusb_deinit_usb_phy()
1537 otg_set_host(tegra->usbphy[i]->otg, NULL); in tegra_xusb_deinit_usb_phy()