Lines Matching full:usbphy
518 struct usb_phy **usbphy; member
783 struct usb_phy *usbphy) in tegra_xudc_get_phy_index() argument
788 if (xudc->usbphy[i] && usbphy == xudc->usbphy[i]) in tegra_xudc_get_phy_index()
801 struct usb_phy *usbphy = (struct usb_phy *)data; in tegra_xudc_vbus_notify() local
804 dev_dbg(xudc->dev, "%s(): event is %d\n", __func__, usbphy->last_event); in tegra_xudc_vbus_notify()
806 if ((xudc->device_mode && usbphy->last_event == USB_EVENT_VBUS) || in tegra_xudc_vbus_notify()
807 (!xudc->device_mode && usbphy->last_event != USB_EVENT_VBUS)) { in tegra_xudc_vbus_notify()
813 xudc->device_mode = (usbphy->last_event == USB_EVENT_VBUS) ? true : in tegra_xudc_vbus_notify()
816 phy_index = tegra_xudc_get_phy_index(xudc, usbphy); in tegra_xudc_vbus_notify()
823 xudc->curr_usbphy = usbphy; in tegra_xudc_vbus_notify()
2103 if (xudc->usbphy[i]) in tegra_xudc_gadget_start()
2104 otg_set_peripheral(xudc->usbphy[i]->otg, gadget); in tegra_xudc_gadget_start()
2128 if (xudc->usbphy[i]) in tegra_xudc_gadget_stop()
2129 otg_set_peripheral(xudc->usbphy[i]->otg, NULL); in tegra_xudc_gadget_stop()
3496 xudc->usbphy = devm_kcalloc(xudc->dev, xudc->soc->num_phys, in tegra_xudc_phy_get()
3497 sizeof(*xudc->usbphy), GFP_KERNEL); in tegra_xudc_phy_get()
3498 if (!xudc->usbphy) in tegra_xudc_phy_get()
3518 xudc->usbphy[i] = devm_usb_get_phy_by_node(xudc->dev, in tegra_xudc_phy_get()
3521 if (IS_ERR(xudc->usbphy[i])) { in tegra_xudc_phy_get()
3522 err = PTR_ERR(xudc->usbphy[i]); in tegra_xudc_phy_get()
3523 dev_err(xudc->dev, "failed to get usbphy-%d: %d\n", in tegra_xudc_phy_get()
3556 xudc->usbphy[i] = NULL; in tegra_xudc_phy_get()