Lines Matching refs:plat
115 struct xhci_dwc3_platdata *plat = dev_get_platdata(dev); in xhci_dwc3_setup_phy() local
126 plat->usb_phys = devm_kcalloc(dev, count, sizeof(struct phy), in xhci_dwc3_setup_phy()
128 if (!plat->usb_phys) in xhci_dwc3_setup_phy()
132 ret = generic_phy_get_by_index(dev, i, &plat->usb_phys[i]); in xhci_dwc3_setup_phy()
139 ++plat->num_phys; in xhci_dwc3_setup_phy()
142 for (i = 0; i < plat->num_phys; i++) { in xhci_dwc3_setup_phy()
143 ret = generic_phy_init(&plat->usb_phys[i]); in xhci_dwc3_setup_phy()
151 for (i = 0; i < plat->num_phys; i++) { in xhci_dwc3_setup_phy()
152 ret = generic_phy_power_on(&plat->usb_phys[i]); in xhci_dwc3_setup_phy()
164 generic_phy_power_off(&plat->usb_phys[i]); in xhci_dwc3_setup_phy()
166 for (i = 0; i < plat->num_phys; i++) in xhci_dwc3_setup_phy()
167 generic_phy_exit(&plat->usb_phys[i]); in xhci_dwc3_setup_phy()
173 generic_phy_exit(&plat->usb_phys[i]); in xhci_dwc3_setup_phy()
180 struct xhci_dwc3_platdata *plat = dev_get_platdata(dev); in xhci_dwc3_shutdown_phy() local
183 for (i = 0; i < plat->num_phys; i++) { in xhci_dwc3_shutdown_phy()
184 if (!generic_phy_valid(&plat->usb_phys[i])) in xhci_dwc3_shutdown_phy()
187 ret = generic_phy_power_off(&plat->usb_phys[i]); in xhci_dwc3_shutdown_phy()
188 ret |= generic_phy_exit(&plat->usb_phys[i]); in xhci_dwc3_shutdown_phy()