Lines Matching full:dwc3

49 static int dwc3_get_dr_mode(struct dwc3 *dwc)  in dwc3_get_dr_mode()
92 !DWC3_VER_IS_PRIOR(DWC3, 330A)) in dwc3_get_dr_mode()
107 void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode) in dwc3_set_prtcap()
121 struct dwc3 *dwc = work_to_dwc(work); in __dwc3_set_mode()
165 if (dwc->current_dr_role && ((DWC3_IP_IS(DWC3) || in __dwc3_set_mode()
236 void dwc3_set_mode(struct dwc3 *dwc, u32 mode) in dwc3_set_mode()
252 struct dwc3 *dwc = dep->dwc; in dwc3_core_fifo_space()
268 int dwc3_core_soft_reset(struct dwc3 *dwc) in dwc3_core_soft_reset()
275 * XHCI driver will reset the host block. If dwc3 was configured for in dwc3_core_soft_reset()
306 dev_warn(dwc->dev, "DWC3 controller soft reset failed.\n"); in dwc3_core_soft_reset()
323 * @dwc3: Pointer to our controller context structure
325 static void dwc3_frame_length_adjustment(struct dwc3 *dwc) in dwc3_frame_length_adjustment()
330 if (DWC3_VER_IS_PRIOR(DWC3, 250A)) in dwc3_frame_length_adjustment()
353 static void dwc3_ref_clk_period(struct dwc3 *dwc) in dwc3_ref_clk_period()
378 if (DWC3_VER_IS_PRIOR(DWC3, 250A)) in dwc3_ref_clk_period()
423 static void dwc3_free_one_event_buffer(struct dwc3 *dwc, in dwc3_free_one_event_buffer()
437 static struct dwc3_event_buffer *dwc3_alloc_one_event_buffer(struct dwc3 *dwc, in dwc3_alloc_one_event_buffer()
464 static void dwc3_free_event_buffers(struct dwc3 *dwc) in dwc3_free_event_buffers()
481 static int dwc3_alloc_event_buffers(struct dwc3 *dwc, unsigned int length) in dwc3_alloc_event_buffers()
501 int dwc3_event_buffers_setup(struct dwc3 *dwc) in dwc3_event_buffers_setup()
518 void dwc3_event_buffers_cleanup(struct dwc3 *dwc) in dwc3_event_buffers_cleanup()
533 static int dwc3_alloc_scratch_buffers(struct dwc3 *dwc) in dwc3_alloc_scratch_buffers()
549 static int dwc3_setup_scratch_buffers(struct dwc3 *dwc) in dwc3_setup_scratch_buffers()
600 static void dwc3_free_scratch_buffers(struct dwc3 *dwc) in dwc3_free_scratch_buffers()
617 static void dwc3_core_num_eps(struct dwc3 *dwc) in dwc3_core_num_eps()
624 static void dwc3_cache_hwparams(struct dwc3 *dwc) in dwc3_cache_hwparams()
642 static int dwc3_core_ulpi_init(struct dwc3 *dwc) in dwc3_core_ulpi_init()
659 * dwc3_phy_setup - Configure USB PHY Interface of DWC3 Core
666 static int dwc3_phy_setup(struct dwc3 *dwc) in dwc3_phy_setup()
687 if (!DWC3_VER_IS_WITHIN(DWC3, ANY, 194A)) in dwc3_phy_setup()
777 if (!DWC3_VER_IS_WITHIN(DWC3, ANY, 194A)) in dwc3_phy_setup()
804 static int dwc3_clk_enable(struct dwc3 *dwc) in dwc3_clk_enable()
829 static void dwc3_clk_disable(struct dwc3 *dwc) in dwc3_clk_disable()
836 static void dwc3_core_exit(struct dwc3 *dwc) in dwc3_core_exit()
854 static bool dwc3_core_is_valid(struct dwc3 *dwc) in dwc3_core_is_valid()
862 if (DWC3_IP_IS(DWC3)) { in dwc3_core_is_valid()
874 static void dwc3_core_setup_global_control(struct dwc3 *dwc) in dwc3_core_setup_global_control()
885 * WORKAROUND: DWC3 revisions between 2.10a and 2.50a have an in dwc3_core_setup_global_control()
898 DWC3_VER_IS_WITHIN(DWC3, 210A, 250A)) in dwc3_core_setup_global_control()
918 /* check if current dwc3 is on simulation board */ in dwc3_core_setup_global_control()
936 * WORKAROUND: DWC3 revisions <1.90a have a bug in dwc3_core_setup_global_control()
941 if (DWC3_VER_IS_PRIOR(DWC3, 190A)) in dwc3_core_setup_global_control()
947 static int dwc3_core_get_phy(struct dwc3 *dwc);
948 static int dwc3_core_ulpi_init(struct dwc3 *dwc);
951 static void dwc3_set_incr_burst_type(struct dwc3 *dwc) in dwc3_set_incr_burst_type()
1042 static void dwc3_set_power_down_clk_scale(struct dwc3 *dwc) in dwc3_set_power_down_clk_scale()
1074 * dwc3_core_init - Low-level initialization of DWC3 Core
1079 static int dwc3_core_init(struct dwc3 *dwc) in dwc3_core_init()
1128 !DWC3_VER_IS_WITHIN(DWC3, ANY, 194A)) { in dwc3_core_init()
1181 if (DWC3_VER_IS_WITHIN(DWC3, 310A, ANY)) { in dwc3_core_init()
1202 if (!DWC3_VER_IS_PRIOR(DWC3, 250A)) { in dwc3_core_init()
1209 if (!DWC3_VER_IS_PRIOR(DWC3, 290A)) in dwc3_core_init()
1218 if (!DWC3_VER_IS_PRIOR(DWC3, 300A)) in dwc3_core_init()
1227 if (DWC3_VER_IS_WITHIN(DWC3, 290A, ANY) && in dwc3_core_init()
1255 if (!DWC3_IP_IS(DWC3) && dwc->dr_mode == USB_DR_MODE_HOST) { in dwc3_core_init()
1313 static int dwc3_core_get_phy(struct dwc3 *dwc) in dwc3_core_get_phy()
1364 static int dwc3_core_init_mode(struct dwc3 *dwc) in dwc3_core_init_mode()
1408 static void dwc3_core_exit_mode(struct dwc3 *dwc) in dwc3_core_exit_mode()
1429 static void dwc3_get_properties(struct dwc3 *dwc) in dwc3_get_properties()
1586 bool dwc3_has_imod(struct dwc3 *dwc) in dwc3_has_imod()
1588 return DWC3_VER_IS_WITHIN(DWC3, 300A, ANY) || in dwc3_has_imod()
1593 static void dwc3_check_params(struct dwc3 *dwc) in dwc3_check_params()
1613 DWC3_VER_IS(DWC3, 300A)) in dwc3_check_params()
1694 static struct extcon_dev *dwc3_get_extcon(struct dwc3 *dwc) in dwc3_get_extcon()
1748 struct dwc3 *dwc; in dwc3_probe()
1967 struct dwc3 *dwc = platform_get_drvdata(pdev); in dwc3_remove()
1991 static int dwc3_core_init_for_resume(struct dwc3 *dwc) in dwc3_core_init_for_resume()
2017 static int dwc3_suspend_common(struct dwc3 *dwc, pm_message_t msg) in dwc3_suspend_common()
2074 static int dwc3_resume_common(struct dwc3 *dwc, pm_message_t msg) in dwc3_resume_common()
2139 static int dwc3_runtime_checks(struct dwc3 *dwc) in dwc3_runtime_checks()
2157 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_runtime_suspend()
2172 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_runtime_resume()
2196 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_runtime_idle()
2219 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_suspend()
2233 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_resume()
2251 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_complete()
2275 .compatible = "snps,dwc3"
2278 .compatible = "synopsys,dwc3"
2300 .name = "dwc3",
2309 MODULE_ALIAS("platform:dwc3");