Lines Matching full:usbphy

297 	struct usb_phy **usbphy;  member
1407 return (tegra->usbphy[index] != NULL); in is_usb2_otg_phy()
1451 struct usb_phy *usbphy) in tegra_xusb_get_usb2_port() argument
1456 if (tegra->usbphy[i] && usbphy == tegra->usbphy[i]) in tegra_xusb_get_usb2_port()
1468 struct usb_phy *usbphy = (struct usb_phy *)data; in tegra_xhci_id_notify() local
1470 dev_dbg(tegra->dev, "%s(): action is %d", __func__, usbphy->last_event); in tegra_xhci_id_notify()
1472 if ((tegra->host_mode && usbphy->last_event == USB_EVENT_ID) || in tegra_xhci_id_notify()
1473 (!tegra->host_mode && usbphy->last_event != USB_EVENT_ID)) { in tegra_xhci_id_notify()
1479 tegra->otg_usb2_port = tegra_xusb_get_usb2_port(tegra, usbphy); in tegra_xhci_id_notify()
1481 tegra->host_mode = (usbphy->last_event == USB_EVENT_ID) ? true : false; in tegra_xhci_id_notify()
1492 tegra->usbphy = devm_kcalloc(tegra->dev, tegra->num_usb_phys, in tegra_xusb_init_usb_phy()
1493 sizeof(*tegra->usbphy), GFP_KERNEL); in tegra_xusb_init_usb_phy()
1494 if (!tegra->usbphy) in tegra_xusb_init_usb_phy()
1508 tegra->usbphy[i] = devm_usb_get_phy_by_node(tegra->dev, in tegra_xusb_init_usb_phy()
1511 if (!IS_ERR(tegra->usbphy[i])) { in tegra_xusb_init_usb_phy()
1512 dev_dbg(tegra->dev, "usbphy-%d registered", i); in tegra_xusb_init_usb_phy()
1513 otg_set_host(tegra->usbphy[i]->otg, &tegra->hcd->self); in tegra_xusb_init_usb_phy()
1518 tegra->usbphy[i] = NULL; in tegra_xusb_init_usb_phy()
1532 if (tegra->usbphy[i]) in tegra_xusb_deinit_usb_phy()
1533 otg_set_host(tegra->usbphy[i]->otg, NULL); in tegra_xusb_deinit_usb_phy()