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