| /drivers/usb/dwc3/ |
| A D | Makefile | 5 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 48 obj-$(CONFIG_USB_DWC3_PCI) += dwc3-pci.o 53 obj-$(CONFIG_USB_DWC3_ST) += dwc3-st.o [all …]
|
| A D | glue.h | 20 struct dwc3 *dwc; 26 void dwc3_core_remove(struct dwc3 *dwc); 28 int dwc3_runtime_suspend(struct dwc3 *dwc); 29 int dwc3_runtime_resume(struct dwc3 *dwc); 30 int dwc3_runtime_idle(struct dwc3 *dwc); 31 int dwc3_pm_suspend(struct dwc3 *dwc); 32 int dwc3_pm_resume(struct dwc3 *dwc); 33 void dwc3_pm_complete(struct dwc3 *dwc); 34 int dwc3_pm_prepare(struct dwc3 *dwc);
|
| A D | core.h | 706 struct dwc3 *dwc; 756 struct dwc3 *dwc; 1172 struct dwc3 { struct 1609 bool dwc3_has_imod(struct dwc3 *dwc); 1618 int dwc3_host_init(struct dwc3 *dwc); 1619 void dwc3_host_exit(struct dwc3 *dwc); 1663 int dwc3_drd_init(struct dwc3 *dwc); 1664 void dwc3_drd_exit(struct dwc3 *dwc); 1665 void dwc3_otg_init(struct dwc3 *dwc); 1666 void dwc3_otg_exit(struct dwc3 *dwc); [all …]
|
| A D | dwc3-haps.c | 24 struct platform_device *dwc3; member 60 dwc->dwc3 = platform_device_alloc("dwc3", PLATFORM_DEVID_AUTO); in dwc3_haps_probe() 61 if (!dwc->dwc3) in dwc3_haps_probe() 75 ret = platform_device_add_resources(dwc->dwc3, res, ARRAY_SIZE(res)); in dwc3_haps_probe() 82 dwc->dwc3->dev.parent = dev; in dwc3_haps_probe() 84 ret = device_add_software_node(&dwc->dwc3->dev, &dwc3_haps_swnode); in dwc3_haps_probe() 88 ret = platform_device_add(dwc->dwc3); in dwc3_haps_probe() 98 device_remove_software_node(&dwc->dwc3->dev); in dwc3_haps_probe() 99 platform_device_put(dwc->dwc3); in dwc3_haps_probe() 107 device_remove_software_node(&dwc->dwc3->dev); in dwc3_haps_remove() [all …]
|
| A D | ep0.c | 33 static int dwc3_ep0_delegate_req(struct dwc3 *dwc, 40 struct dwc3 *dwc; in dwc3_ep0_prepare_one_trb() 68 struct dwc3 *dwc; in dwc3_ep0_start_trans() 92 struct dwc3 *dwc = dep->dwc; in __dwc3_gadget_ep0_queue() 195 struct dwc3 *dwc = dep->dwc; in dwc3_gadget_ep0_queue() 258 struct dwc3 *dwc = dep->dwc; in __dwc3_gadget_ep0_set_halt() 268 struct dwc3 *dwc = dep->dwc; in dwc3_gadget_ep0_set_halt() 279 void dwc3_ep0_out_start(struct dwc3 *dwc) in dwc3_ep0_out_start() 696 struct dwc3 *dwc = dep->dwc; in dwc3_ep0_set_sel_cmpl() 1069 struct dwc3 *dwc = dep->dwc; in dwc3_ep0_start_control_status() [all …]
|
| A D | drd.c | 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() 435 struct dwc3 *dwc = container_of(nb, struct dwc3, edev_nb); in dwc3_drd_notifier() 540 int dwc3_drd_init(struct dwc3 *dwc) in dwc3_drd_init() [all …]
|
| A D | dwc3-pci.c | 81 struct platform_device *dwc3; member 287 dwc->dwc3->id = PLATFORM_DEVID_NONE; in dwc3_pci_quirks() 315 struct platform_device *dwc3 = dwc->dwc3; in dwc3_pci_resume_work() local 318 ret = pm_runtime_get_sync(&dwc3->dev); in dwc3_pci_resume_work() 324 pm_runtime_mark_last_busy(&dwc3->dev); in dwc3_pci_resume_work() 325 pm_runtime_put_sync_autosuspend(&dwc3->dev); in dwc3_pci_resume_work() 349 if (!dwc->dwc3) in dwc3_pci_probe() 370 dwc->dwc3->dev.parent = dev; in dwc3_pci_probe() 377 ret = platform_device_add(dwc->dwc3); in dwc3_pci_probe() 393 platform_device_put(dwc->dwc3); in dwc3_pci_probe() [all …]
|
| A D | dwc3-imx8mp.c | 54 struct platform_device *dwc3; member 103 struct dwc3 *dwc3 = platform_get_drvdata(dwc3_imx->dwc3); in dwc3_imx8mp_wakeup_enable() local 106 if (!dwc3) in dwc3_imx8mp_wakeup_enable() 111 if ((dwc3->current_dr_role == DWC3_GCTL_PRTCAP_HOST) && dwc3->xhci) { in dwc3_imx8mp_wakeup_enable() 145 struct dwc3 *dwc = platform_get_drvdata(dwc3_imx->dwc3); in dwc3_imx8mp_interrupt() 236 dwc3_imx->dwc3 = of_find_device_by_node(dwc3_np); in dwc3_imx8mp_probe() 237 if (!dwc3_imx->dwc3) { in dwc3_imx8mp_probe() 256 put_device(&dwc3_imx->dwc3->dev); in dwc3_imx8mp_probe() 273 put_device(&dwc3_imx->dwc3->dev); in dwc3_imx8mp_remove() 299 struct dwc3 *dwc = platform_get_drvdata(dwc3_imx->dwc3); in dwc3_imx8mp_resume()
|
| A D | gadget.h | 18 struct dwc3; 110 void dwc3_ep0_interrupt(struct dwc3 *dwc, 112 void dwc3_ep0_out_start(struct dwc3 *dwc); 113 void dwc3_ep0_end_control_data(struct dwc3 *dwc, struct dwc3_ep *dep); 114 void dwc3_ep0_stall_and_restart(struct dwc3 *dwc); 120 void dwc3_ep0_send_delayed_status(struct dwc3 *dwc); 122 int dwc3_gadget_start_config(struct dwc3 *dwc, unsigned int resource_index); 147 static inline void dwc3_gadget_dctl_write_safe(struct dwc3 *dwc, u32 value) in dwc3_gadget_dctl_write_safe()
|
| A D | core.c | 52 static int dwc3_get_dr_mode(struct dwc3 *dwc) in dwc3_get_dr_mode() 163 struct dwc3 *dwc = work_to_dwc(work); in __dwc3_set_mode() 303 struct dwc3 *dwc = dep->dwc; in dwc3_core_fifo_space() 319 int dwc3_core_soft_reset(struct dwc3 *dwc) in dwc3_core_soft_reset() 1871 bool dwc3_has_imod(struct dwc3 *dwc) in dwc3_has_imod() 2167 struct dwc3 *dwc = data->dwc; in dwc3_core_probe() 2341 struct dwc3 *dwc; in dwc3_probe() 2361 void dwc3_core_remove(struct dwc3 *dwc) in dwc3_core_remove() 2669 int dwc3_pm_suspend(struct dwc3 *dwc) in dwc3_pm_suspend() 2684 int dwc3_pm_resume(struct dwc3 *dwc) in dwc3_pm_resume() [all …]
|
| A D | gadget.c | 196 struct dwc3 *dwc = dep->dwc; in dwc3_gadget_del_and_unmap_request() 229 struct dwc3 *dwc = dep->dwc; in dwc3_gadget_giveback() 309 struct dwc3 *dwc = dep->dwc; in dwc3_send_gadget_ep_cmd() 453 struct dwc3 *dwc = dep->dwc; in dwc3_send_clear_stall_ep_cmd() 485 struct dwc3 *dwc = dep->dwc; in dwc3_alloc_trb_pool() 504 struct dwc3 *dwc = dep->dwc; in dwc3_free_trb_pool() 581 struct dwc3 *dwc = dep->dwc; in dwc3_gadget_set_ep_config() 797 struct dwc3 *dwc = dep->dwc; in dwc3_gadget_resize_tx_fifos() 1121 struct dwc3 *dwc; in dwc3_gadget_ep_enable() 1153 struct dwc3 *dwc; in dwc3_gadget_ep_disable() [all …]
|
| A D | debugfs.c | 287 struct dwc3 *dwc = s->private; in dwc3_host_lsp() 689 struct dwc3 *dwc = dep->dwc; in dwc3_tx_fifo_size_show() 718 struct dwc3 *dwc = dep->dwc; in dwc3_rx_fifo_size_show() 747 struct dwc3 *dwc = dep->dwc; in dwc3_tx_request_queue_show() 769 struct dwc3 *dwc = dep->dwc; in dwc3_rx_request_queue_show() 791 struct dwc3 *dwc = dep->dwc; in dwc3_rx_info_queue_show() 813 struct dwc3 *dwc = dep->dwc; in dwc3_descriptor_fetch_queue_show() 835 struct dwc3 *dwc = dep->dwc; in dwc3_event_queue_show() 857 struct dwc3 *dwc = dep->dwc; in dwc3_transfer_type_show() 892 struct dwc3 *dwc = dep->dwc; in dwc3_trb_ring_show() [all …]
|
| A D | ulpi.c | 24 static int dwc3_ulpi_busyloop(struct dwc3 *dwc, u8 addr, bool read) in dwc3_ulpi_busyloop() 53 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_ulpi_read() 71 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_ulpi_write() 86 int dwc3_ulpi_init(struct dwc3 *dwc) in dwc3_ulpi_init() 98 void dwc3_ulpi_exit(struct dwc3 *dwc) in dwc3_ulpi_exit()
|
| A D | host.c | 29 static void dwc3_power_off_all_roothub_ports(struct dwc3 *dwc) in dwc3_power_off_all_roothub_ports() 66 struct dwc3 *dwc; in dwc3_xhci_plat_start() 81 static void dwc3_host_fill_xhci_irq_res(struct dwc3 *dwc, in dwc3_host_fill_xhci_irq_res() 96 static int dwc3_host_get_irq(struct dwc3 *dwc) in dwc3_host_get_irq() 127 int dwc3_host_init(struct dwc3 *dwc) in dwc3_host_init() 221 void dwc3_host_exit(struct dwc3 *dwc) in dwc3_host_exit()
|
| A D | dwc3-qcom-legacy.c | 76 struct platform_device *dwc3; member 263 max_speed = usb_get_maximum_speed(&qcom->dwc3->dev); in dwc3_qcom_interconnect_init() 306 struct dwc3 *dwc; in dwc3_qcom_is_host() 311 dwc = platform_get_drvdata(qcom->dwc3); in dwc3_qcom_is_host() 322 struct dwc3 *dwc = platform_get_drvdata(qcom->dwc3); in dwc3_qcom_read_usb2_speed() 501 struct dwc3 *dwc = platform_get_drvdata(qcom->dwc3); in qcom_dwc3_resume_irq() 723 qcom->dwc3 = of_find_device_by_node(dwc3_np); in dwc3_qcom_of_register_core() 724 if (!qcom->dwc3) { in dwc3_qcom_of_register_core() 806 qcom->mode = usb_get_dr_mode(&qcom->dwc3->dev); in dwc3_qcom_probe() 832 platform_device_put(qcom->dwc3); in dwc3_qcom_probe() [all …]
|
| A D | dwc3-qcom.c | 75 struct dwc3 dwc; 319 struct dwc3 *dwc = &qcom->dwc; in dwc3_qcom_read_usb2_speed() 489 struct dwc3 *dwc = &qcom->dwc; in qcom_dwc3_resume_irq() 764 struct dwc3 *dwc = platform_get_drvdata(pdev); in dwc3_qcom_remove() 776 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_qcom_pm_suspend() 796 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_qcom_pm_resume() 816 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_qcom_complete() 823 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_qcom_prepare() 830 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_qcom_runtime_suspend() 843 struct dwc3 *dwc = dev_get_drvdata(dev); in dwc3_qcom_runtime_resume()
|
| A D | debug.h | 420 extern void dwc3_debugfs_init(struct dwc3 *d); 421 extern void dwc3_debugfs_exit(struct dwc3 *d); 427 static inline void dwc3_debugfs_init(struct dwc3 *d) in dwc3_debugfs_init() 429 static inline void dwc3_debugfs_exit(struct dwc3 *d) in dwc3_debugfs_exit()
|
| A D | trace.h | 11 #define TRACE_SYSTEM dwc3 52 TP_PROTO(u32 event, struct dwc3 *dwc), 68 TP_PROTO(u32 event, struct dwc3 *dwc),
|
| A D | dwc3-rtk.c | 59 struct dwc3 *dwc;
|
| A D | Kconfig | 14 module, the module will be called dwc3.ko.
|
| /drivers/usb/ |
| A D | Makefile | 12 obj-$(CONFIG_USB_DWC3) += dwc3/
|
| A D | Kconfig | 134 source "drivers/usb/dwc3/Kconfig"
|
| /drivers/usb/roles/ |
| A D | Kconfig | 23 lines between the xHCI host controller and the dwc3 gadget controller
|