Lines Matching full:dwc3

47 static int dwc3_get_dr_mode(struct dwc3 *dwc)  in dwc3_get_dr_mode()
90 !DWC3_VER_IS_PRIOR(DWC3, 330A)) in dwc3_get_dr_mode()
105 void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode) in dwc3_set_prtcap()
119 struct dwc3 *dwc = work_to_dwc(work); in __dwc3_set_mode()
205 void dwc3_set_mode(struct dwc3 *dwc, u32 mode) in dwc3_set_mode()
221 struct dwc3 *dwc = dep->dwc; in dwc3_core_fifo_space()
237 static int dwc3_core_soft_reset(struct dwc3 *dwc) in dwc3_core_soft_reset()
257 * XHCI driver will reset the host block. If dwc3 was configured for in dwc3_core_soft_reset()
306 * @dwc3: Pointer to our controller context structure
308 static void dwc3_frame_length_adjustment(struct dwc3 *dwc) in dwc3_frame_length_adjustment()
313 if (DWC3_VER_IS_PRIOR(DWC3, 250A)) in dwc3_frame_length_adjustment()
333 static void dwc3_free_one_event_buffer(struct dwc3 *dwc, in dwc3_free_one_event_buffer()
347 static struct dwc3_event_buffer *dwc3_alloc_one_event_buffer(struct dwc3 *dwc, in dwc3_alloc_one_event_buffer()
374 static void dwc3_free_event_buffers(struct dwc3 *dwc) in dwc3_free_event_buffers()
391 static int dwc3_alloc_event_buffers(struct dwc3 *dwc, unsigned length) in dwc3_alloc_event_buffers()
411 int dwc3_event_buffers_setup(struct dwc3 *dwc) in dwc3_event_buffers_setup()
428 void dwc3_event_buffers_cleanup(struct dwc3 *dwc) in dwc3_event_buffers_cleanup()
443 static int dwc3_alloc_scratch_buffers(struct dwc3 *dwc) in dwc3_alloc_scratch_buffers()
459 static int dwc3_setup_scratch_buffers(struct dwc3 *dwc) in dwc3_setup_scratch_buffers()
510 static void dwc3_free_scratch_buffers(struct dwc3 *dwc) in dwc3_free_scratch_buffers()
527 static void dwc3_core_num_eps(struct dwc3 *dwc) in dwc3_core_num_eps()
534 static void dwc3_cache_hwparams(struct dwc3 *dwc) in dwc3_cache_hwparams()
549 static int dwc3_core_ulpi_init(struct dwc3 *dwc) in dwc3_core_ulpi_init()
566 * dwc3_phy_setup - Configure USB PHY Interface of DWC3 Core
573 static int dwc3_phy_setup(struct dwc3 *dwc) in dwc3_phy_setup()
594 if (!DWC3_VER_IS_WITHIN(DWC3, ANY, 194A)) in dwc3_phy_setup()
684 if (!DWC3_VER_IS_WITHIN(DWC3, ANY, 194A)) in dwc3_phy_setup()
711 static void dwc3_core_exit(struct dwc3 *dwc) in dwc3_core_exit()
728 static bool dwc3_core_is_valid(struct dwc3 *dwc) in dwc3_core_is_valid()
736 if (DWC3_IP_IS(DWC3)) { in dwc3_core_is_valid()
748 static void dwc3_core_setup_global_control(struct dwc3 *dwc) in dwc3_core_setup_global_control()
759 * WORKAROUND: DWC3 revisions between 2.10a and 2.50a have an in dwc3_core_setup_global_control()
772 DWC3_VER_IS_WITHIN(DWC3, 210A, 250A)) in dwc3_core_setup_global_control()
792 /* check if current dwc3 is on simulation board */ in dwc3_core_setup_global_control()
810 * WORKAROUND: DWC3 revisions <1.90a have a bug in dwc3_core_setup_global_control()
815 if (DWC3_VER_IS_PRIOR(DWC3, 190A)) in dwc3_core_setup_global_control()
821 static int dwc3_core_get_phy(struct dwc3 *dwc);
822 static int dwc3_core_ulpi_init(struct dwc3 *dwc);
825 static void dwc3_set_incr_burst_type(struct dwc3 *dwc) in dwc3_set_incr_burst_type()
919 * dwc3_core_init - Low-level initialization of DWC3 Core
924 static int dwc3_core_init(struct dwc3 *dwc) in dwc3_core_init()
961 !DWC3_VER_IS_WITHIN(DWC3, ANY, 194A)) { in dwc3_core_init()
1008 if (DWC3_VER_IS_WITHIN(DWC3, 310A, ANY)) { in dwc3_core_init()
1014 if (!DWC3_VER_IS_PRIOR(DWC3, 250A)) { in dwc3_core_init()
1021 if (!DWC3_VER_IS_PRIOR(DWC3, 290A)) in dwc3_core_init()
1053 if (!DWC3_IP_IS(DWC3) && dwc->dr_mode == USB_DR_MODE_HOST) { in dwc3_core_init()
1111 static int dwc3_core_get_phy(struct dwc3 *dwc) in dwc3_core_get_phy()
1178 static int dwc3_core_init_mode(struct dwc3 *dwc) in dwc3_core_init_mode()
1231 static void dwc3_core_exit_mode(struct dwc3 *dwc) in dwc3_core_exit_mode()
1252 static void dwc3_get_properties(struct dwc3 *dwc) in dwc3_get_properties()
1376 bool dwc3_has_imod(struct dwc3 *dwc) in dwc3_has_imod()
1378 return DWC3_VER_IS_WITHIN(DWC3, 300A, ANY) || in dwc3_has_imod()
1383 static void dwc3_check_params(struct dwc3 *dwc) in dwc3_check_params()
1403 DWC3_VER_IS(DWC3, 300A)) in dwc3_check_params()
1453 struct dwc3 *dwc; in dwc3_probe()
1612 struct dwc3 *dwc = platform_get_drvdata(pdev); in dwc3_remove()
1633 static int dwc3_core_init_for_resume(struct dwc3 *dwc) in dwc3_core_init_for_resume()
1659 static int dwc3_suspend_common(struct dwc3 *dwc, pm_message_t msg) in dwc3_suspend_common()
1718 static int dwc3_resume_common(struct dwc3 *dwc, pm_message_t msg) in dwc3_resume_common()
1785 static int dwc3_runtime_checks(struct dwc3 *dwc) in dwc3_runtime_checks()
1803 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_runtime_suspend()
1820 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_runtime_resume()
1846 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_runtime_idle()
1869 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_suspend()
1883 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_resume()
1901 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_complete()
1925 .compatible = "snps,dwc3"
1928 .compatible = "synopsys,dwc3"
1950 .name = "dwc3",
1959 MODULE_ALIAS("platform:dwc3");