Lines Matching refs:usbphy
517 struct usb_phy **usbphy;
782 struct usb_phy *usbphy)
787 if (xudc->usbphy[i] && usbphy == xudc->usbphy[i])
800 struct usb_phy *usbphy = (struct usb_phy *)data;
803 dev_dbg(xudc->dev, "%s(): event is %d\n", __func__, usbphy->last_event);
805 if ((xudc->device_mode && usbphy->last_event == USB_EVENT_VBUS) ||
806 (!xudc->device_mode && usbphy->last_event != USB_EVENT_VBUS)) {
812 xudc->device_mode = (usbphy->last_event == USB_EVENT_VBUS) ? true :
815 phy_index = tegra_xudc_get_phy_index(xudc, usbphy);
822 xudc->curr_usbphy = usbphy;
2105 if (xudc->usbphy[i])
2106 otg_set_peripheral(xudc->usbphy[i]->otg, gadget);
2130 if (xudc->usbphy[i])
2131 otg_set_peripheral(xudc->usbphy[i]->otg, NULL);
3496 xudc->usbphy = devm_kcalloc(xudc->dev, xudc->soc->num_phys,
3497 sizeof(*xudc->usbphy), GFP_KERNEL);
3498 if (!xudc->usbphy)
3518 xudc->usbphy[i] = devm_usb_get_phy_by_node(xudc->dev,
3521 if (IS_ERR(xudc->usbphy[i])) {
3522 err = PTR_ERR(xudc->usbphy[i]);
3523 dev_err(xudc->dev, "failed to get usbphy-%d: %d\n",
3556 xudc->usbphy[i] = NULL;