Home
last modified time | relevance | path

Searched refs:dwc3 (Results 1 – 25 of 194) sorted by relevance

12345678

/OK3568_Linux_fs/u-boot/drivers/usb/dwc3/
H A Dgadget.su
H A Ddwc3-generic.su
H A Dcore.su
H A Dep0.su
H A D.built-in.o.cmd
H A Ddwc3-generic.c40 struct dwc3 dwc3; member
55 struct dwc3 *dwc3 = &priv->dwc3; in dwc3_generic_probe() local
58 dwc3->dev = dev; in dwc3_generic_probe()
59 dwc3->maximum_speed = plat->maximum_speed; in dwc3_generic_probe()
60 dwc3->dr_mode = plat->dr_mode; in dwc3_generic_probe()
62 dwc3_of_parse(dwc3); in dwc3_generic_probe()
82 dwc3->regs = priv->base + DWC3_GLOBALS_REGS_START; in dwc3_generic_probe()
85 rc = dwc3_init(dwc3); in dwc3_generic_probe()
97 struct dwc3 *dwc3 = &priv->dwc3; in dwc3_generic_remove() local
99 dwc3_remove(dwc3); in dwc3_generic_remove()
[all …]
H A Dcore.h416 struct dwc3 *dwc;
460 struct dwc3 *dwc;
722 struct dwc3 { struct
1020 int dwc3_gadget_resize_tx_fifos(struct dwc3 *dwc);
1021 void dwc3_of_parse(struct dwc3 *dwc);
1022 int dwc3_init(struct dwc3 *dwc);
1023 void dwc3_remove(struct dwc3 *dwc);
1025 static inline int dwc3_host_init(struct dwc3 *dwc) in dwc3_host_init()
1027 static inline void dwc3_host_exit(struct dwc3 *dwc) in dwc3_host_exit()
1031 int dwc3_gadget_init(struct dwc3 *dwc);
[all …]
H A DMakefile5 obj-$(CONFIG_USB_DWC3) += dwc3.o
7 dwc3-y := core.o
11 obj-$(CONFIG_USB_DWC3_OMAP) += dwc3-omap.o
12 obj-$(CONFIG_USB_DWC3_MESON_G12A) += dwc3-meson-g12a.o
13 obj-$(CONFIG_USB_DWC3_GENERIC) += dwc3-generic.o
14 obj-$(CONFIG_USB_DWC3_UNIPHIER) += dwc3-uniphier.o
H A Dep0.c30 static void __dwc3_ep0_do_control_status(struct dwc3 *dwc, struct dwc3_ep *dep);
31 static void __dwc3_ep0_do_control_data(struct dwc3 *dwc,
50 static int dwc3_ep0_start_trans(struct dwc3 *dwc, u8 epnum, dma_addr_t buf_dma, in dwc3_ep0_start_trans()
113 struct dwc3 *dwc = dep->dwc; in __dwc3_gadget_ep0_queue()
218 struct dwc3 *dwc = dep->dwc; in dwc3_gadget_ep0_queue()
250 static void dwc3_ep0_stall_and_restart(struct dwc3 *dwc) in dwc3_ep0_stall_and_restart()
278 struct dwc3 *dwc = dep->dwc; in __dwc3_gadget_ep0_set_halt()
297 void dwc3_ep0_out_start(struct dwc3 *dwc) in dwc3_ep0_out_start()
306 static struct dwc3_ep *dwc3_wIndex_to_dep(struct dwc3 *dwc, __le16 wIndex_le) in dwc3_wIndex_to_dep()
329 static int dwc3_ep0_handle_status(struct dwc3 *dwc, in dwc3_ep0_handle_status()
[all …]
H A Dgadget.c41 int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode) in dwc3_gadget_set_test_mode()
72 int dwc3_gadget_get_link_state(struct dwc3 *dwc) in dwc3_gadget_get_link_state()
89 int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state) in dwc3_gadget_set_link_state()
162 int dwc3_gadget_resize_tx_fifos(struct dwc3 *dwc) in dwc3_gadget_resize_tx_fifos()
228 struct dwc3 *dwc = dep->dwc; in dwc3_gadget_giveback()
267 int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned cmd, u32 param) in dwc3_send_gadget_generic_command()
294 int dwc3_send_gadget_ep_cmd(struct dwc3 *dwc, unsigned ep, in dwc3_send_gadget_ep_cmd()
361 static int dwc3_gadget_start_config(struct dwc3 *dwc, struct dwc3_ep *dep) in dwc3_gadget_start_config()
384 static int dwc3_gadget_set_ep_config(struct dwc3 *dwc, struct dwc3_ep *dep, in dwc3_gadget_set_ep_config()
447 static int dwc3_gadget_set_xfer_resource(struct dwc3 *dwc, struct dwc3_ep *dep) in dwc3_gadget_set_xfer_resource()
[all …]
H A Dcore.c39 static void dwc3_set_mode(struct dwc3 *dwc, u32 mode) in dwc3_set_mode()
53 static int dwc3_core_soft_reset(struct dwc3 *dwc) in dwc3_core_soft_reset()
99 static void dwc3_free_one_event_buffer(struct dwc3 *dwc, in dwc3_free_one_event_buffer()
113 static struct dwc3_event_buffer *dwc3_alloc_one_event_buffer(struct dwc3 *dwc, in dwc3_alloc_one_event_buffer()
139 static void dwc3_free_event_buffers(struct dwc3 *dwc) in dwc3_free_event_buffers()
159 static int dwc3_alloc_event_buffers(struct dwc3 *dwc, unsigned length) in dwc3_alloc_event_buffers()
192 static int dwc3_event_buffers_setup(struct dwc3 *dwc) in dwc3_event_buffers_setup()
217 static void dwc3_event_buffers_cleanup(struct dwc3 *dwc) in dwc3_event_buffers_cleanup()
235 static int dwc3_alloc_scratch_buffers(struct dwc3 *dwc) in dwc3_alloc_scratch_buffers()
251 static int dwc3_setup_scratch_buffers(struct dwc3 *dwc) in dwc3_setup_scratch_buffers()
[all …]
H A D.dwc3.o.cmd
/OK3568_Linux_fs/kernel/drivers/usb/dwc3/
H A DMakefile5 obj-$(CONFIG_USB_DWC3) += dwc3.o
7 dwc3-y := core.o
10 dwc3-y += trace.o
14 dwc3-y += host.o
18 dwc3-y += gadget.o ep0.o
22 dwc3-y += drd.o
26 dwc3-y += ulpi.o
30 dwc3-y += debugfs.o
45 obj-$(CONFIG_USB_DWC3_OMAP) += dwc3-omap.o
46 obj-$(CONFIG_USB_DWC3_EXYNOS) += dwc3-exynos.o
[all …]
H A Dcore.h668 struct dwc3 *dwc;
718 struct dwc3 *dwc;
1114 struct dwc3 { struct
1341 struct dwc3 dwc;
1349 #define work_to_dwc(w) (container_of((w), struct dwc3, drd_work))
1508 void dwc3_set_prtcap(struct dwc3 *dwc, u32 mode);
1509 void dwc3_set_mode(struct dwc3 *dwc, u32 mode);
1539 static inline u32 dwc3_mdwidth(struct dwc3 *dwc) in dwc3_mdwidth()
1550 bool dwc3_has_imod(struct dwc3 *dwc);
1552 int dwc3_event_buffers_setup(struct dwc3 *dwc);
[all …]
H A Ddwc3-pci.c65 struct platform_device *dwc3; member
226 struct platform_device *dwc3 = dwc->dwc3; in dwc3_pci_resume_work() local
229 ret = pm_runtime_get_sync(&dwc3->dev); in dwc3_pci_resume_work()
231 pm_runtime_put_sync_autosuspend(&dwc3->dev); in dwc3_pci_resume_work()
235 pm_runtime_mark_last_busy(&dwc3->dev); in dwc3_pci_resume_work()
236 pm_runtime_put_sync_autosuspend(&dwc3->dev); in dwc3_pci_resume_work()
259 dwc->dwc3 = platform_device_alloc("dwc3", PLATFORM_DEVID_AUTO); in dwc3_pci_probe()
260 if (!dwc->dwc3) in dwc3_pci_probe()
274 ret = platform_device_add_resources(dwc->dwc3, res, ARRAY_SIZE(res)); in dwc3_pci_probe()
281 dwc->dwc3->dev.parent = dev; in dwc3_pci_probe()
[all …]
H A Ddwc3-haps.c24 struct platform_device *dwc3; member
56 dwc->dwc3 = platform_device_alloc("dwc3", PLATFORM_DEVID_AUTO); in dwc3_haps_probe()
57 if (!dwc->dwc3) in dwc3_haps_probe()
71 ret = platform_device_add_resources(dwc->dwc3, res, ARRAY_SIZE(res)); in dwc3_haps_probe()
78 dwc->dwc3->dev.parent = dev; in dwc3_haps_probe()
80 ret = platform_device_add_properties(dwc->dwc3, initial_properties); in dwc3_haps_probe()
84 ret = platform_device_add(dwc->dwc3); in dwc3_haps_probe()
94 platform_device_put(dwc->dwc3); in dwc3_haps_probe()
102 platform_device_unregister(dwc->dwc3); in dwc3_haps_remove()
H A Dep0.c30 static void __dwc3_ep0_do_control_status(struct dwc3 *dwc, struct dwc3_ep *dep);
31 static void __dwc3_ep0_do_control_data(struct dwc3 *dwc,
38 struct dwc3 *dwc; in dwc3_ep0_prepare_one_trb()
66 struct dwc3 *dwc; in dwc3_ep0_start_trans()
90 struct dwc3 *dwc = dep->dwc; in __dwc3_gadget_ep0_queue()
193 struct dwc3 *dwc = dep->dwc; in dwc3_gadget_ep0_queue()
221 void dwc3_ep0_stall_and_restart(struct dwc3 *dwc) in dwc3_ep0_stall_and_restart()
251 struct dwc3 *dwc = dep->dwc; in __dwc3_gadget_ep0_set_halt()
261 struct dwc3 *dwc = dep->dwc; in dwc3_gadget_ep0_set_halt()
272 void dwc3_ep0_out_start(struct dwc3 *dwc) in dwc3_ep0_out_start()
[all …]
H A Ddrd.c19 static void dwc3_otg_disable_events(struct dwc3 *dwc, u32 disable_mask) in dwc3_otg_disable_events()
27 static void dwc3_otg_enable_events(struct dwc3 *dwc, u32 enable_mask) in dwc3_otg_enable_events()
35 static void dwc3_otg_clear_events(struct dwc3 *dwc) in dwc3_otg_clear_events()
54 struct dwc3 *dwc = _dwc; in dwc3_otg_thread_irq()
72 struct dwc3 *dwc = _dwc; in dwc3_otg_irq()
93 static void dwc3_otgregs_init(struct dwc3 *dwc) in dwc3_otgregs_init()
137 static int dwc3_otg_get_irq(struct dwc3 *dwc) in dwc3_otg_get_irq()
167 void dwc3_otg_init(struct dwc3 *dwc) in dwc3_otg_init()
186 void dwc3_otg_exit(struct dwc3 *dwc) in dwc3_otg_exit()
195 void dwc3_otg_host_init(struct dwc3 *dwc) in dwc3_otg_host_init()
[all …]
H A Ddwc3-imx8mp.c41 struct platform_device *dwc3; member
52 struct dwc3 *dwc3 = platform_get_drvdata(dwc3_imx->dwc3); in dwc3_imx8mp_wakeup_enable() local
55 if (!dwc3) in dwc3_imx8mp_wakeup_enable()
60 if ((dwc3->current_dr_role == DWC3_GCTL_PRTCAP_HOST) && dwc3->xhci) in dwc3_imx8mp_wakeup_enable()
63 else if (dwc3->current_dr_role == DWC3_GCTL_PRTCAP_DEVICE) in dwc3_imx8mp_wakeup_enable()
82 struct dwc3 *dwc = platform_get_drvdata(dwc3_imx->dwc3); in dwc3_imx8mp_interrupt()
181 dwc3_imx->dwc3 = of_find_device_by_node(dwc3_np); in dwc3_imx8mp_probe()
182 if (!dwc3_imx->dwc3) { in dwc3_imx8mp_probe()
245 struct dwc3 *dwc = platform_get_drvdata(dwc3_imx->dwc3); in dwc3_imx8mp_resume()
H A Dgadget.c41 int dwc3_gadget_set_test_mode(struct dwc3 *dwc, int mode) in dwc3_gadget_set_test_mode()
72 int dwc3_gadget_get_link_state(struct dwc3 *dwc) in dwc3_gadget_get_link_state()
89 int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state) in dwc3_gadget_set_link_state()
178 struct dwc3 *dwc = dep->dwc; in dwc3_gadget_del_and_unmap_request()
211 struct dwc3 *dwc = dep->dwc; in dwc3_gadget_giveback()
230 int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned int cmd, in dwc3_send_gadget_generic_command()
261 static int __dwc3_gadget_wakeup(struct dwc3 *dwc);
276 struct dwc3 *dwc = dep->dwc; in dwc3_send_gadget_ep_cmd()
441 struct dwc3 *dwc = dep->dwc; in dwc3_send_clear_stall_ep_cmd()
473 struct dwc3 *dwc = dep->dwc; in dwc3_alloc_trb_pool()
[all …]
H A Dcore.c47 static int dwc3_get_dr_mode(struct dwc3 *dwc) 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()
266 void dwc3_set_mode(struct dwc3 *dwc, u32 mode) in dwc3_set_mode()
282 struct dwc3 *dwc = dep->dwc; in dwc3_core_fifo_space()
298 int dwc3_core_soft_reset(struct dwc3 *dwc) in dwc3_core_soft_reset()
355 static void dwc3_frame_length_adjustment(struct dwc3 *dwc) in dwc3_frame_length_adjustment()
380 static void dwc3_free_one_event_buffer(struct dwc3 *dwc, in dwc3_free_one_event_buffer()
394 static struct dwc3_event_buffer *dwc3_alloc_one_event_buffer(struct dwc3 *dwc, in dwc3_alloc_one_event_buffer()
421 static void dwc3_free_event_buffers(struct dwc3 *dwc) in dwc3_free_event_buffers()
[all …]
H A Dgadget.h18 struct dwc3;
126 void dwc3_ep0_interrupt(struct dwc3 *dwc,
128 void dwc3_ep0_out_start(struct dwc3 *dwc);
129 void dwc3_ep0_end_control_data(struct dwc3 *dwc, struct dwc3_ep *dep);
130 void dwc3_ep0_stall_and_restart(struct dwc3 *dwc);
136 void dwc3_ep0_send_delayed_status(struct dwc3 *dwc);
162 static inline void dwc3_gadget_dctl_write_safe(struct dwc3 *dwc, u32 value) in dwc3_gadget_dctl_write_safe()
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/usb/
H A Ddwc3-st.txt3 This file documents the parameters for the dwc3-st driver.
4 This driver controls the glue logic used to configure the dwc3 core on
8 - compatible : must be "st,stih407-dwc3"
32 The dwc3 core should be added as subnode to ST DWC3 glue as shown in the
33 example below. The DT binding details of dwc3 can be found in:
34 Documentation/devicetree/bindings/usb/dwc3.txt
37 is "otg", which isn't supported by this SoC. Valid dr_mode values for dwc3-st are either "host"
44 st_dwc3: dwc3@8f94000 {
45 compatible = "st,stih407-dwc3";
58 dwc3: dwc3@9900000 {
[all …]
H A Drockchip,dwc3.txt4 - compatible: should contain "rockchip,rk3399-dwc3" for rk3399 SoC
16 the node is not important. The content of the node is defined in dwc3.txt.
25 compatible = "rockchip,rk3399-dwc3";
33 usbdrd_dwc3_0: dwc3@fe800000 {
34 compatible = "snps,dwc3";
42 compatible = "rockchip,rk3399-dwc3";
50 usbdrd_dwc3_1: dwc3@fe900000 {
51 compatible = "snps,dwc3";
/OK3568_Linux_fs/u-boot/drivers/usb/host/
H A Dxhci-dwc3.su

12345678