Lines Matching refs:usbphy
516 struct usb_phy **usbphy;
785 struct usb_phy *usbphy)
790 if (xudc->usbphy[i] && usbphy == xudc->usbphy[i])
799 struct usb_phy *usbphy)
803 if ((xudc->device_mode && usbphy->last_event == USB_EVENT_VBUS) ||
804 (!xudc->device_mode && usbphy->last_event != USB_EVENT_VBUS)) {
810 xudc->device_mode = (usbphy->last_event == USB_EVENT_VBUS) ? true :
813 phy_index = tegra_xudc_get_phy_index(xudc, usbphy);
820 xudc->curr_usbphy = usbphy;
830 struct usb_phy *usbphy = (struct usb_phy *)data;
832 dev_dbg(xudc->dev, "%s(): event is %d\n", __func__, usbphy->last_event);
834 tegra_xudc_update_data_role(xudc, usbphy);
2117 if (xudc->usbphy[i])
2118 otg_set_peripheral(xudc->usbphy[i]->otg, gadget);
2142 if (xudc->usbphy[i])
2143 otg_set_peripheral(xudc->usbphy[i]->otg, NULL);
3507 xudc->usbphy = devm_kcalloc(xudc->dev, xudc->soc->num_phys,
3508 sizeof(*xudc->usbphy), GFP_KERNEL);
3509 if (!xudc->usbphy)
3527 xudc->usbphy[i] = devm_usb_get_phy_by_node(xudc->dev,
3530 if (IS_ERR(xudc->usbphy[i])) {
3531 err = PTR_ERR(xudc->usbphy[i]);
3533 "failed to get usbphy-%d\n", i);
3574 xudc->usbphy[i] = NULL;
3893 if (!xudc->usbphy[i])
3896 usb_register_notifier(xudc->usbphy[i], &xudc->vbus_nb);
3897 tegra_xudc_update_data_role(xudc, xudc->usbphy[i]);