Lines Matching refs:dwc2
264 struct dwc2_hsotg *dwc2 = dev_get_drvdata(dev); in dwc2_suspend() local
267 if (dwc2_is_device_mode(dwc2)) { in dwc2_suspend()
268 ret = s3c_hsotg_suspend(dwc2); in dwc2_suspend()
270 if (dwc2->lx_state == DWC2_L0) in dwc2_suspend()
272 phy_exit(dwc2->phy); in dwc2_suspend()
273 phy_power_off(dwc2->phy); in dwc2_suspend()
281 struct dwc2_hsotg *dwc2 = dev_get_drvdata(dev); in dwc2_resume() local
284 if (dwc2_is_device_mode(dwc2)) { in dwc2_resume()
285 ret = s3c_hsotg_resume(dwc2); in dwc2_resume()
287 phy_power_on(dwc2->phy); in dwc2_resume()
288 phy_init(dwc2->phy); in dwc2_resume()