Lines Matching full:dwc3

50 static int dwc3_get_dr_mode(struct dwc3 *dwc)  in dwc3_get_dr_mode()
93 !DWC3_VER_IS_PRIOR(DWC3, 330A)) in dwc3_get_dr_mode()
108 void dwc3_enable_susphy(struct dwc3 *dwc, bool enable) in dwc3_enable_susphy()
134 void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode, bool ignore_susphy) in dwc3_set_prtcap()
161 struct dwc3 *dwc = work_to_dwc(work); in __dwc3_set_mode()
210 if (dwc->current_dr_role && ((DWC3_IP_IS(DWC3) || in __dwc3_set_mode()
285 void dwc3_set_mode(struct dwc3 *dwc, u32 mode) in dwc3_set_mode()
301 struct dwc3 *dwc = dep->dwc; in dwc3_core_fifo_space()
317 int dwc3_core_soft_reset(struct dwc3 *dwc) in dwc3_core_soft_reset()
324 * XHCI driver will reset the host block. If dwc3 was configured for in dwc3_core_soft_reset()
355 dev_warn(dwc->dev, "DWC3 controller soft reset failed.\n"); in dwc3_core_soft_reset()
372 * @dwc3: Pointer to our controller context structure
374 static void dwc3_frame_length_adjustment(struct dwc3 *dwc) in dwc3_frame_length_adjustment()
379 if (DWC3_VER_IS_PRIOR(DWC3, 250A)) in dwc3_frame_length_adjustment()
402 static void dwc3_ref_clk_period(struct dwc3 *dwc) in dwc3_ref_clk_period()
427 if (DWC3_VER_IS_PRIOR(DWC3, 250A)) in dwc3_ref_clk_period()
472 static void dwc3_free_one_event_buffer(struct dwc3 *dwc, in dwc3_free_one_event_buffer()
486 static struct dwc3_event_buffer *dwc3_alloc_one_event_buffer(struct dwc3 *dwc, in dwc3_alloc_one_event_buffer()
513 static void dwc3_free_event_buffers(struct dwc3 *dwc) in dwc3_free_event_buffers()
530 static int dwc3_alloc_event_buffers(struct dwc3 *dwc, unsigned int length) in dwc3_alloc_event_buffers()
557 int dwc3_event_buffers_setup(struct dwc3 *dwc) in dwc3_event_buffers_setup()
580 void dwc3_event_buffers_cleanup(struct dwc3 *dwc) in dwc3_event_buffers_cleanup()
609 static void dwc3_core_num_eps(struct dwc3 *dwc) in dwc3_core_num_eps()
616 static void dwc3_cache_hwparams(struct dwc3 *dwc) in dwc3_cache_hwparams()
634 static void dwc3_config_soc_bus(struct dwc3 *dwc) in dwc3_config_soc_bus()
646 static int dwc3_core_ulpi_init(struct dwc3 *dwc) in dwc3_core_ulpi_init()
662 static int dwc3_ss_phy_setup(struct dwc3 *dwc, int index) in dwc3_ss_phy_setup()
709 static int dwc3_hs_phy_setup(struct dwc3 *dwc, int index) in dwc3_hs_phy_setup()
781 * dwc3_phy_setup - Configure USB PHY Interface of DWC3 Core
788 static int dwc3_phy_setup(struct dwc3 *dwc) in dwc3_phy_setup()
808 static int dwc3_phy_init(struct dwc3 *dwc) in dwc3_phy_init()
845 if (!DWC3_VER_IS_WITHIN(DWC3, ANY, 194A)) in dwc3_phy_init()
864 static void dwc3_phy_exit(struct dwc3 *dwc) in dwc3_phy_exit()
878 static int dwc3_phy_power_on(struct dwc3 *dwc) in dwc3_phy_power_on()
915 static void dwc3_phy_power_off(struct dwc3 *dwc) in dwc3_phy_power_off()
929 static int dwc3_clk_enable(struct dwc3 *dwc) in dwc3_clk_enable()
966 static void dwc3_clk_disable(struct dwc3 *dwc) in dwc3_clk_disable()
975 static void dwc3_core_exit(struct dwc3 *dwc) in dwc3_core_exit()
984 static bool dwc3_core_is_valid(struct dwc3 *dwc) in dwc3_core_is_valid()
992 if (DWC3_IP_IS(DWC3)) { in dwc3_core_is_valid()
1004 static void dwc3_core_setup_global_control(struct dwc3 *dwc) in dwc3_core_setup_global_control()
1018 * WORKAROUND: DWC3 revisions between 2.10a and 2.50a have an in dwc3_core_setup_global_control()
1031 DWC3_VER_IS_WITHIN(DWC3, 210A, 250A)) in dwc3_core_setup_global_control()
1062 /* check if current dwc3 is on simulation board */ in dwc3_core_setup_global_control()
1080 * WORKAROUND: DWC3 revisions <1.90a have a bug in dwc3_core_setup_global_control()
1085 if (DWC3_VER_IS_PRIOR(DWC3, 190A)) in dwc3_core_setup_global_control()
1091 static int dwc3_core_get_phy(struct dwc3 *dwc);
1092 static int dwc3_core_ulpi_init(struct dwc3 *dwc);
1095 static void dwc3_set_incr_burst_type(struct dwc3 *dwc) in dwc3_set_incr_burst_type()
1186 static void dwc3_set_power_down_clk_scale(struct dwc3 *dwc) in dwc3_set_power_down_clk_scale()
1217 static void dwc3_config_threshold(struct dwc3 *dwc) in dwc3_config_threshold()
1229 if (!DWC3_IP_IS(DWC3) && dwc->dr_mode == USB_DR_MODE_HOST) { in dwc3_config_threshold()
1267 if (DWC3_IP_IS(DWC3)) { in dwc3_config_threshold()
1323 * dwc3_core_init - Low-level initialization of DWC3 Core
1328 static int dwc3_core_init(struct dwc3 *dwc) in dwc3_core_init()
1404 if (DWC3_VER_IS_WITHIN(DWC3, 310A, ANY)) { in dwc3_core_init()
1419 if (DWC3_VER_IS(DWC3, 320A)) { in dwc3_core_init()
1440 if (!DWC3_VER_IS_PRIOR(DWC3, 250A)) { in dwc3_core_init()
1447 if (!DWC3_VER_IS_PRIOR(DWC3, 290A)) in dwc3_core_init()
1456 if (!DWC3_VER_IS_PRIOR(DWC3, 300A)) in dwc3_core_init()
1468 if (DWC3_VER_IS_WITHIN(DWC3, 290A, ANY)) { in dwc3_core_init()
1529 static int dwc3_core_get_phy(struct dwc3 *dwc) in dwc3_core_get_phy()
1598 static int dwc3_core_init_mode(struct dwc3 *dwc) in dwc3_core_init_mode()
1645 static void dwc3_core_exit_mode(struct dwc3 *dwc) in dwc3_core_exit_mode()
1666 static void dwc3_get_software_properties(struct dwc3 *dwc) in dwc3_get_software_properties()
1687 static void dwc3_get_properties(struct dwc3 *dwc) in dwc3_get_properties()
1857 bool dwc3_has_imod(struct dwc3 *dwc) in dwc3_has_imod()
1859 return DWC3_VER_IS_WITHIN(DWC3, 300A, ANY) || in dwc3_has_imod()
1864 static void dwc3_check_params(struct dwc3 *dwc) in dwc3_check_params()
1963 static struct extcon_dev *dwc3_get_extcon(struct dwc3 *dwc) in dwc3_get_extcon()
2013 static int dwc3_get_clocks(struct dwc3 *dwc) in dwc3_get_clocks()
2085 static int dwc3_get_num_ports(struct dwc3 *dwc) in dwc3_get_num_ports()
2134 static struct power_supply *dwc3_get_usb_power_supply(struct dwc3 *dwc) in dwc3_get_usb_power_supply()
2157 struct dwc3 *dwc; in dwc3_probe()
2188 if (of_device_is_compatible(parent, "realtek,rtd-dwc3")) { in dwc3_probe()
2246 * Currently only DWC3 controllers that are host-only capable in dwc3_probe()
2333 struct dwc3 *dwc = platform_get_drvdata(pdev); in dwc3_remove()
2361 static int dwc3_core_init_for_resume(struct dwc3 *dwc) in dwc3_core_init_for_resume()
2387 static int dwc3_suspend_common(struct dwc3 *dwc, pm_message_t msg) in dwc3_suspend_common()
2459 static int dwc3_resume_common(struct dwc3 *dwc, pm_message_t msg) in dwc3_resume_common()
2531 static int dwc3_runtime_checks(struct dwc3 *dwc) in dwc3_runtime_checks()
2549 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_runtime_suspend()
2564 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_runtime_resume()
2592 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_runtime_idle()
2615 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_suspend()
2629 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_resume()
2651 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_complete()
2681 .compatible = "snps,dwc3"
2684 .compatible = "synopsys,dwc3"
2706 .name = "dwc3",
2715 MODULE_ALIAS("platform:dwc3");