Lines Matching refs:dwc2
519 struct dwc2_hsotg *dwc2 = dev_get_drvdata(dev); in dwc2_suspend() local
520 bool is_device_mode = dwc2_is_device_mode(dwc2); in dwc2_suspend()
524 dwc2_hsotg_suspend(dwc2); in dwc2_suspend()
526 if (dwc2->ll_hw_enabled && in dwc2_suspend()
527 (is_device_mode || dwc2_host_can_poweroff_phy(dwc2))) { in dwc2_suspend()
528 ret = __dwc2_lowlevel_hw_disable(dwc2); in dwc2_suspend()
529 dwc2->phy_off_for_suspend = true; in dwc2_suspend()
537 struct dwc2_hsotg *dwc2 = dev_get_drvdata(dev); in dwc2_resume() local
540 if (dwc2->phy_off_for_suspend && dwc2->ll_hw_enabled) { in dwc2_resume()
541 ret = __dwc2_lowlevel_hw_enable(dwc2); in dwc2_resume()
545 dwc2->phy_off_for_suspend = false; in dwc2_resume()
547 if (dwc2_is_device_mode(dwc2)) in dwc2_resume()
548 ret = dwc2_hsotg_resume(dwc2); in dwc2_resume()