Lines Matching refs:usbphy
517 struct usb_phy **usbphy; member
782 struct usb_phy *usbphy) in tegra_xudc_get_phy_index() argument
787 if (xudc->usbphy[i] && usbphy == xudc->usbphy[i]) in tegra_xudc_get_phy_index()
800 struct usb_phy *usbphy = (struct usb_phy *)data; in tegra_xudc_vbus_notify() local
803 dev_dbg(xudc->dev, "%s(): event is %d\n", __func__, usbphy->last_event); in tegra_xudc_vbus_notify()
805 if ((xudc->device_mode && usbphy->last_event == USB_EVENT_VBUS) || in tegra_xudc_vbus_notify()
806 (!xudc->device_mode && usbphy->last_event != USB_EVENT_VBUS)) { in tegra_xudc_vbus_notify()
812 xudc->device_mode = (usbphy->last_event == USB_EVENT_VBUS) ? true : in tegra_xudc_vbus_notify()
815 phy_index = tegra_xudc_get_phy_index(xudc, usbphy); in tegra_xudc_vbus_notify()
822 xudc->curr_usbphy = usbphy; in tegra_xudc_vbus_notify()
2105 if (xudc->usbphy[i]) in tegra_xudc_gadget_start()
2106 otg_set_peripheral(xudc->usbphy[i]->otg, gadget); in tegra_xudc_gadget_start()
2130 if (xudc->usbphy[i]) in tegra_xudc_gadget_stop()
2131 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()
3556 xudc->usbphy[i] = NULL; in tegra_xudc_phy_get()