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_enable_susphy(struct dwc3 *dwc, bool enable) in dwc3_enable_susphy()
128 void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode) in dwc3_set_prtcap()
142 struct dwc3 *dwc = work_to_dwc(work); in __dwc3_set_mode()
190 if (dwc->current_dr_role && ((DWC3_IP_IS(DWC3) || in __dwc3_set_mode()
261 void dwc3_set_mode(struct dwc3 *dwc, u32 mode) in dwc3_set_mode()
277 struct dwc3 *dwc = dep->dwc; in dwc3_core_fifo_space()
293 int dwc3_core_soft_reset(struct dwc3 *dwc) in dwc3_core_soft_reset()
300 * XHCI driver will reset the host block. If dwc3 was configured for in dwc3_core_soft_reset()
331 dev_warn(dwc->dev, "DWC3 controller soft reset failed.\n"); in dwc3_core_soft_reset()
348 * @dwc3: Pointer to our controller context structure
350 static void dwc3_frame_length_adjustment(struct dwc3 *dwc) in dwc3_frame_length_adjustment()
355 if (DWC3_VER_IS_PRIOR(DWC3, 250A)) in dwc3_frame_length_adjustment()
378 static void dwc3_ref_clk_period(struct dwc3 *dwc) in dwc3_ref_clk_period()
403 if (DWC3_VER_IS_PRIOR(DWC3, 250A)) in dwc3_ref_clk_period()
448 static void dwc3_free_one_event_buffer(struct dwc3 *dwc, in dwc3_free_one_event_buffer()
462 static struct dwc3_event_buffer *dwc3_alloc_one_event_buffer(struct dwc3 *dwc, in dwc3_alloc_one_event_buffer()
489 static void dwc3_free_event_buffers(struct dwc3 *dwc) in dwc3_free_event_buffers()
506 static int dwc3_alloc_event_buffers(struct dwc3 *dwc, unsigned int length) in dwc3_alloc_event_buffers()
533 int dwc3_event_buffers_setup(struct dwc3 *dwc) in dwc3_event_buffers_setup()
556 void dwc3_event_buffers_cleanup(struct dwc3 *dwc) in dwc3_event_buffers_cleanup()
585 static void dwc3_core_num_eps(struct dwc3 *dwc) in dwc3_core_num_eps()
592 static void dwc3_cache_hwparams(struct dwc3 *dwc) in dwc3_cache_hwparams()
610 static int dwc3_core_ulpi_init(struct dwc3 *dwc) in dwc3_core_ulpi_init()
627 * dwc3_phy_setup - Configure USB PHY Interface of DWC3 Core
634 static int dwc3_phy_setup(struct dwc3 *dwc) in dwc3_phy_setup()
762 static int dwc3_phy_init(struct dwc3 *dwc) in dwc3_phy_init()
788 static void dwc3_phy_exit(struct dwc3 *dwc) in dwc3_phy_exit()
797 static int dwc3_phy_power_on(struct dwc3 *dwc) in dwc3_phy_power_on()
823 static void dwc3_phy_power_off(struct dwc3 *dwc) in dwc3_phy_power_off()
832 static int dwc3_clk_enable(struct dwc3 *dwc) in dwc3_clk_enable()
857 static void dwc3_clk_disable(struct dwc3 *dwc) in dwc3_clk_disable()
864 static void dwc3_core_exit(struct dwc3 *dwc) in dwc3_core_exit()
873 static bool dwc3_core_is_valid(struct dwc3 *dwc) in dwc3_core_is_valid()
881 if (DWC3_IP_IS(DWC3)) { in dwc3_core_is_valid()
893 static void dwc3_core_setup_global_control(struct dwc3 *dwc) in dwc3_core_setup_global_control()
907 * WORKAROUND: DWC3 revisions between 2.10a and 2.50a have an in dwc3_core_setup_global_control()
920 DWC3_VER_IS_WITHIN(DWC3, 210A, 250A)) in dwc3_core_setup_global_control()
951 /* check if current dwc3 is on simulation board */ in dwc3_core_setup_global_control()
969 * WORKAROUND: DWC3 revisions <1.90a have a bug in dwc3_core_setup_global_control()
974 if (DWC3_VER_IS_PRIOR(DWC3, 190A)) in dwc3_core_setup_global_control()
980 static int dwc3_core_get_phy(struct dwc3 *dwc);
981 static int dwc3_core_ulpi_init(struct dwc3 *dwc);
984 static void dwc3_set_incr_burst_type(struct dwc3 *dwc) in dwc3_set_incr_burst_type()
1075 static void dwc3_set_power_down_clk_scale(struct dwc3 *dwc) in dwc3_set_power_down_clk_scale()
1106 static void dwc3_config_threshold(struct dwc3 *dwc) in dwc3_config_threshold()
1118 if (!DWC3_IP_IS(DWC3) && dwc->dr_mode == USB_DR_MODE_HOST) { in dwc3_config_threshold()
1156 if (DWC3_IP_IS(DWC3)) { in dwc3_config_threshold()
1212 * dwc3_core_init - Low-level initialization of DWC3 Core
1217 static int dwc3_core_init(struct dwc3 *dwc) in dwc3_core_init()
1291 if (DWC3_VER_IS_WITHIN(DWC3, 310A, ANY)) { in dwc3_core_init()
1306 if (DWC3_VER_IS(DWC3, 320A)) { in dwc3_core_init()
1327 if (!DWC3_VER_IS_PRIOR(DWC3, 250A)) { in dwc3_core_init()
1334 if (!DWC3_VER_IS_PRIOR(DWC3, 290A)) in dwc3_core_init()
1343 if (!DWC3_VER_IS_PRIOR(DWC3, 300A)) in dwc3_core_init()
1355 if (DWC3_VER_IS_WITHIN(DWC3, 290A, ANY) && in dwc3_core_init()
1377 static int dwc3_core_get_phy(struct dwc3 *dwc) in dwc3_core_get_phy()
1428 static int dwc3_core_init_mode(struct dwc3 *dwc) in dwc3_core_init_mode()
1472 static void dwc3_core_exit_mode(struct dwc3 *dwc) in dwc3_core_exit_mode()
1493 static void dwc3_get_properties(struct dwc3 *dwc) in dwc3_get_properties()
1674 bool dwc3_has_imod(struct dwc3 *dwc) in dwc3_has_imod()
1676 return DWC3_VER_IS_WITHIN(DWC3, 300A, ANY) || in dwc3_has_imod()
1681 static void dwc3_check_params(struct dwc3 *dwc) in dwc3_check_params()
1701 DWC3_VER_IS(DWC3, 300A)) in dwc3_check_params()
1782 static struct extcon_dev *dwc3_get_extcon(struct dwc3 *dwc) in dwc3_get_extcon()
1832 static int dwc3_get_clocks(struct dwc3 *dwc) in dwc3_get_clocks()
1895 struct dwc3 *dwc; in dwc3_probe()
1926 if (of_device_is_compatible(parent, "realtek,rtd-dwc3")) { in dwc3_probe()
2051 struct dwc3 *dwc = platform_get_drvdata(pdev); in dwc3_remove()
2079 static int dwc3_core_init_for_resume(struct dwc3 *dwc) in dwc3_core_init_for_resume()
2105 static int dwc3_suspend_common(struct dwc3 *dwc, pm_message_t msg) in dwc3_suspend_common()
2172 static int dwc3_resume_common(struct dwc3 *dwc, pm_message_t msg) in dwc3_resume_common()
2239 static int dwc3_runtime_checks(struct dwc3 *dwc) in dwc3_runtime_checks()
2257 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_runtime_suspend()
2272 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_runtime_resume()
2300 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_runtime_idle()
2323 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_suspend()
2337 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_resume()
2355 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_complete()
2385 .compatible = "snps,dwc3"
2388 .compatible = "synopsys,dwc3"
2410 .name = "dwc3",
2419 MODULE_ALIAS("platform:dwc3");