Lines Matching refs:usbphy
258 struct usb_phy **usbphy;
1220 struct usb_phy *usbphy)
1225 if (tegra->usbphy[i] && usbphy == tegra->usbphy[i])
1237 struct usb_phy *usbphy = (struct usb_phy *)data;
1239 dev_dbg(tegra->dev, "%s(): action is %d", __func__, usbphy->last_event);
1241 if ((tegra->host_mode && usbphy->last_event == USB_EVENT_ID) ||
1242 (!tegra->host_mode && usbphy->last_event != USB_EVENT_ID)) {
1248 tegra->otg_usb2_port = tegra_xusb_get_usb2_port(tegra, usbphy);
1250 tegra->host_mode = (usbphy->last_event == USB_EVENT_ID) ? true : false;
1261 tegra->usbphy = devm_kcalloc(tegra->dev, tegra->num_usb_phys,
1262 sizeof(*tegra->usbphy), GFP_KERNEL);
1263 if (!tegra->usbphy)
1277 tegra->usbphy[i] = devm_usb_get_phy_by_node(tegra->dev,
1280 if (!IS_ERR(tegra->usbphy[i])) {
1281 dev_dbg(tegra->dev, "usbphy-%d registered", i);
1282 otg_set_host(tegra->usbphy[i]->otg, &tegra->hcd->self);
1287 tegra->usbphy[i] = NULL;
1301 if (tegra->usbphy[i])
1302 otg_set_host(tegra->usbphy[i]->otg, NULL);