Lines Matching full:usbphy

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