Home
last modified time | relevance | path

Searched refs:ehci (Results 1 – 25 of 240) sorted by relevance

12345678910

/linux-6.3-rc2/drivers/usb/host/
A Dehci-hcd.c288 ehci_writel(ehci, ehci->command, &ehci->regs->command); in ehci_quiesce()
584 ehci_writel(ehci, ehci->periodic_dma, &ehci->regs->frame_list); in ehci_run()
585 ehci_writel(ehci, (u32)ehci->async->qh_dma, &ehci->regs->async_next); in ehci_run()
614 ehci_writel(ehci, ehci->command, &ehci->regs->command); in ehci_run()
615 dbg_cmd (ehci, "init", ehci->command); in ehci_run()
659 temp = HC_VERSION(ehci, ehci_readl(ehci, &ehci->caps->hc_capbase)); in ehci_run()
684 ehci->regs = (void __iomem *)ehci->caps + in ehci_setup()
685 HC_LENGTH(ehci, ehci_readl(ehci, &ehci->caps->hc_capbase)); in ehci_setup()
690 ehci->hcs_params = ehci_readl(ehci, &ehci->caps->hcs_params); in ehci_setup()
848 ehci_writel(ehci, ehci->command, &ehci->regs->command); in ehci_irq()
[all …]
A Dehci-timer.c14 ehci_writel(ehci, ehci->command, &ehci->regs->command); in ehci_set_command_bit()
17 ehci_readl(ehci, &ehci->regs->command); in ehci_set_command_bit()
24 ehci_writel(ehci, ehci->command, &ehci->regs->command); in ehci_clear_command_bit()
27 ehci_readl(ehci, &ehci->regs->command); in ehci_clear_command_bit()
104 actual = ehci_readl(ehci, &ehci->regs->status) & STS_ASS; in ehci_poll_ASS()
202 ehci_writel(ehci, 0, &ehci->regs->configured_flag); in ehci_handle_controller_death()
203 ehci_writel(ehci, 0, &ehci->regs->intr_enable); in ehci_handle_controller_death()
339 cmd = ehci_readl(ehci, &ehci->regs->command); in ehci_iaa_watchdog()
348 status = ehci_readl(ehci, &ehci->regs->status); in ehci_iaa_watchdog()
351 ehci_writel(ehci, STS_IAA, &ehci->regs->status); in ehci_iaa_watchdog()
[all …]
A Dehci-hub.c131 if (ehci_readl(ehci, &ehci->regs->status) & STS_PCD) in ehci_port_change()
349 ehci_writel(ehci, STS_IAA, &ehci->regs->status); in ehci_bus_suspend()
361 ehci_writel(ehci, mask, &ehci->regs->intr_enable); in ehci_bus_suspend()
362 ehci_readl(ehci, &ehci->regs->intr_enable); in ehci_bus_suspend()
410 ehci_writel(ehci, 0, &ehci->regs->intr_enable); in ehci_bus_resume()
413 ehci_writel(ehci, 0, &ehci->regs->segment); in ehci_bus_resume()
414 ehci_writel(ehci, ehci->periodic_dma, &ehci->regs->frame_list); in ehci_bus_resume()
415 ehci_writel(ehci, (u32) ehci->async->qh_dma, &ehci->regs->async_next); in ehci_bus_resume()
419 ehci_writel(ehci, ehci->command, &ehci->regs->command); in ehci_bus_resume()
444 if (ehci->bus_suspended && ehci->has_tdi_phy_lpm) { in ehci_bus_resume()
[all …]
A Dehci-mem.c108 if (ehci->async) in ehci_mem_cleanup()
109 qh_destroy(ehci, ehci->async); in ehci_mem_cleanup()
110 ehci->async = NULL; in ehci_mem_cleanup()
112 if (ehci->dummy) in ehci_mem_cleanup()
113 qh_destroy(ehci, ehci->dummy); in ehci_mem_cleanup()
114 ehci->dummy = NULL; in ehci_mem_cleanup()
129 ehci->periodic, ehci->periodic_dma); in ehci_mem_cleanup()
161 ehci->async = ehci_qh_alloc (ehci, flags); in ehci_mem_init()
197 ehci->dummy = ehci_qh_alloc(ehci, flags); in ehci_mem_init()
208 ehci->periodic[i] = cpu_to_hc32(ehci, in ehci_mem_init()
[all …]
A Dehci-q.c269 ehci_dbg (ehci, in ehci_urb_done()
355 ehci_dbg(ehci, in qh_completions()
376 ehci_dbg(ehci, in qh_completions()
997 head = ehci->async; in qh_link_async()
1010 enable_async(ehci); in qh_link_async()
1120 ehci_dbg(ehci, in submit_async()
1290 ehci_writel(ehci, ehci->command | CMD_IAAD, in start_iaa_cycle()
1292 ehci_readl(ehci, &ehci->regs->command); in start_iaa_cycle()
1301 ehci_writel(ehci, (u32) ehci->async->qh_dma, in end_iaa_cycle()
1330 list_splice_tail_init(&ehci->async_unlink, &ehci->async_idle); in end_unlink_async()
[all …]
A Dehci-sched.c88 *shadow_next_periodic(ehci, &here, Q_NEXT_TYPE(ehci, *hw_p)) in periodic_unlink()
93 *hw_p = cpu_to_hc32(ehci, ehci->dummy->qh_dma); in periodic_unlink()
434 type = Q_NEXT_TYPE(ehci, ehci->periodic[frame]); in tt_no_collision()
472 ehci_dbg(ehci, in tt_no_collision()
1794 itd_link(ehci, frame & (ehci->periodic_size - 1), itd); in itd_link_urb()
1933 ehci_dbg(ehci, in itd_submit()
1961 itd_link_urb(ehci, urb, ehci->periodic_size << 3, stream); in itd_submit()
2312 ehci_dbg(ehci, in sitd_submit()
2338 sitd_link_urb(ehci, urb, ehci->periodic_size << 3, stream); in sitd_submit()
2423 *hw_p = cpu_to_hc32(ehci, ehci->dummy->qh_dma); in scan_isoc()
[all …]
A Dehci-pci.c97 ehci->caps = hcd->regs; in ehci_pci_setup()
115 ehci_warn(ehci, in ehci_pci_setup()
155 ehci->amd_pll_fix = 1; in ehci_pci_setup()
171 ehci->use_dummy_qh = 1; in ehci_pci_setup()
192 ehci->amd_pll_fix = 1; in ehci_pci_setup()
202 ehci->use_dummy_qh = 1; in ehci_pci_setup()
231 ehci->is_aspeed = 1; in ehci_pci_setup()
251 temp = ehci_readl(ehci, &ehci->debug->control); in ehci_pci_setup()
256 ehci->debug = NULL; in ehci_pci_setup()
280 ehci->has_ppcd = 0; in ehci_pci_setup()
[all …]
A Dehci-dbg.c17 u32 params = ehci_readl(ehci, &ehci->caps->hcs_params); in dbg_hcs_params()
19 ehci_dbg(ehci, in dbg_hcs_params()
53 u32 params = ehci_readl(ehci, &ehci->caps->hcc_params); in dbg_hcc_params()
655 tag = Q_NEXT_TYPE(ehci, ehci->periodic[i]); in fill_periodic_buffer()
784 i = HC_VERSION(ehci, ehci_readl(ehci, &ehci->caps->hc_capbase)); in fill_registers_buffer()
836 i = ehci_readl(ehci, &ehci->caps->hcs_params); in fill_registers_buffer()
841 i = ehci_readl(ehci, &ehci->caps->hcc_params); in fill_registers_buffer()
848 ehci_readl(ehci, &ehci->regs->status)); in fill_registers_buffer()
854 ehci_readl(ehci, &ehci->regs->command)); in fill_registers_buffer()
898 ehci->stats.normal, ehci->stats.error, ehci->stats.iaa, in fill_registers_buffer()
[all …]
A Dehci-fsl.c463 tmp = ehci_readl(ehci, &ehci->regs->command); in ehci_fsl_mpc512x_drv_suspend()
465 ehci_writel(ehci, tmp, &ehci->regs->command); in ehci_fsl_mpc512x_drv_suspend()
468 pdata->pm_command = ehci_readl(ehci, &ehci->regs->command); in ehci_fsl_mpc512x_drv_suspend()
470 pdata->pm_status = ehci_readl(ehci, &ehci->regs->status); in ehci_fsl_mpc512x_drv_suspend()
477 ehci_readl(ehci, &ehci->regs->configured_flag); in ehci_fsl_mpc512x_drv_suspend()
488 tmp = ehci_readl(ehci, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_suspend()
490 ehci_writel(ehci, tmp, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_suspend()
536 ehci_writel(ehci, pdata->pm_command, &ehci->regs->command); in ehci_fsl_mpc512x_drv_resume()
550 tmp = ehci_readl(ehci, &ehci->regs->command); in ehci_fsl_mpc512x_drv_resume()
552 ehci_writel(ehci, tmp, &ehci->regs->command); in ehci_fsl_mpc512x_drv_resume()
[all …]
A Dehci-sysfs.c14 struct ehci_hcd *ehci; in companion_show() local
19 ehci = hcd_to_ehci(dev_get_drvdata(dev)); in companion_show()
20 nports = HCS_N_PORTS(ehci->hcs_params); in companion_show()
41 struct ehci_hcd *ehci; in companion_store() local
59 set_owner(ehci, portnum, new_owner); in companion_store()
72 struct ehci_hcd *ehci; in uframe_periodic_max_show() local
85 struct ehci_hcd *ehci; in uframe_periodic_max_store() local
118 ehci->bandwidth[uframe]); in uframe_periodic_max_store()
121 ehci_info(ehci, in uframe_periodic_max_store()
155 if (!ehci_is_TDI(ehci)) in create_sysfs_files()
[all …]
A Dehci.h280 #define QTD_NEXT(ehci, dma) cpu_to_hc32(ehci, (u32)dma) argument
309 #define ACTIVE_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_ACTIVE) argument
310 #define HALT_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_HALT) argument
311 #define STATUS_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_STS) argument
324 #define QTD_MASK(ehci) cpu_to_hc32(ehci, ~0x1f) argument
331 #define Q_NEXT_TYPE(ehci, dma) ((dma) & cpu_to_hc32(ehci, 3 << 1)) argument
347 #define QH_NEXT(ehci, dma) \ argument
351 #define EHCI_LIST_END(ehci) cpu_to_hc32(ehci, 1) /* "null pointer" to hw */ argument
522 #define ITD_ACTIVE(ehci) cpu_to_hc32(ehci, EHCI_ISOC_ACTIVE) argument
567 #define SITD_ACTIVE(ehci) cpu_to_hc32(ehci, SITD_STS_ACTIVE) argument
[all …]
A Dehci-brcm.c29 u32 frame_idx = ehci_readl(ehci, &ehci->regs->frame_index); in ehci_brcm_wait_for_sof()
78 ehci->reset_done[wIndex-1] && in ehci_brcm_hub_control()
89 ehci_brcm_wait_for_sof(ehci, 5); in ehci_brcm_hub_control()
102 ehci->big_endian_mmio = 1; in ehci_brcm_reset()
104 ehci->caps = (void __iomem *)hcd->regs; in ehci_brcm_reset()
105 len = HC_LENGTH(ehci, ehci_readl(ehci, &ehci->caps->hc_capbase)); in ehci_brcm_reset()
109 ehci_writel(ehci, CMD_RESET, &ehci->regs->command); in ehci_brcm_reset()
116 ehci_writel(ehci, 0x00800040, &ehci->regs->brcm_insnreg[1]); in ehci_brcm_reset()
117 ehci_writel(ehci, 0x00000001, &ehci->regs->brcm_insnreg[3]); in ehci_brcm_reset()
230 ehci_writel(ehci, 0x00800040, &ehci->regs->brcm_insnreg[1]); in ehci_brcm_resume()
[all …]
A Dehci-platform.c77 ehci->need_io_watchdog = 0; in ehci_platform_reset()
144 u32 port_status = ehci_readl(ehci, &ehci->regs->port_status[0]); in quirk_poll_check_port_status()
242 struct ehci_hcd *ehci; in ehci_platform_probe() local
274 ehci = hcd_to_ehci(hcd); in ehci_platform_probe()
278 ehci->big_endian_mmio = 1; in ehci_platform_probe()
284 ehci->big_endian_mmio = ehci->big_endian_desc = 1; in ehci_platform_probe()
287 ehci->spurious_oc = 1; in ehci_platform_probe()
301 ehci->is_aspeed = 1; in ehci_platform_probe()
329 ehci->big_endian_desc = 1; in ehci_platform_probe()
331 ehci->big_endian_mmio = 1; in ehci_platform_probe()
[all …]
A Dehci-ppc-of.c98 struct ehci_hcd *ehci = NULL; in ehci_hcd_ppc_of_probe() local
135 ehci = hcd_to_ehci(hcd); in ehci_hcd_ppc_of_probe()
140 ehci->ohci_hcctrl_reg = in ehci_hcd_ppc_of_probe()
149 ehci->has_amcc_usb23 = 1; in ehci_hcd_ppc_of_probe()
155 ehci->big_endian_mmio = 1; in ehci_hcd_ppc_of_probe()
156 ehci->big_endian_desc = 1; in ehci_hcd_ppc_of_probe()
159 ehci->big_endian_mmio = 1; in ehci_hcd_ppc_of_probe()
161 ehci->big_endian_desc = 1; in ehci_hcd_ppc_of_probe()
163 ehci->caps = hcd->regs; in ehci_hcd_ppc_of_probe()
204 if (ehci->has_amcc_usb23) { in ehci_hcd_ppc_of_remove()
[all …]
A DMakefile37 obj-$(CONFIG_USB_EHCI_HCD) += ehci-hcd.o
38 obj-$(CONFIG_USB_EHCI_PCI) += ehci-pci.o
41 obj-$(CONFIG_USB_EHCI_HCD_OMAP) += ehci-omap.o
42 obj-$(CONFIG_USB_EHCI_HCD_ORION) += ehci-orion.o
43 obj-$(CONFIG_USB_EHCI_HCD_SPEAR) += ehci-spear.o
44 obj-$(CONFIG_USB_EHCI_HCD_STI) += ehci-st.o
45 obj-$(CONFIG_USB_EHCI_EXYNOS) += ehci-exynos.o
46 obj-$(CONFIG_USB_EHCI_HCD_AT91) += ehci-atmel.o
47 obj-$(CONFIG_USB_EHCI_BRCMSTB) += ehci-brcm.o
83 obj-$(CONFIG_USB_EHCI_FSL) += ehci-fsl.o
[all …]
A Dehci-grlib.c76 struct ehci_hcd *ehci = NULL; in ehci_hcd_grlib_probe() local
115 ehci = hcd_to_ehci(hcd); in ehci_hcd_grlib_probe()
117 ehci->caps = hcd->regs; in ehci_hcd_grlib_probe()
120 hc_capbase = ehci_readl(ehci, &ehci->caps->hc_capbase); in ehci_hcd_grlib_probe()
121 if (HC_VERSION(ehci, hc_capbase) != GRUSBHC_HCIVERSION) { in ehci_hcd_grlib_probe()
122 ehci->big_endian_mmio = 1; in ehci_hcd_grlib_probe()
123 ehci->big_endian_desc = 1; in ehci_hcd_grlib_probe()
124 ehci->big_endian_capbase = 1; in ehci_hcd_grlib_probe()
A Dehci-mv.c70 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in mv_ehci_reset() local
86 status = ehci_readl(ehci, &ehci->regs->port_status[0]); in mv_ehci_reset()
88 ehci_writel(ehci, status, &ehci->regs->port_status[0]); in mv_ehci_reset()
90 ehci_writel(ehci, status, &ehci->regs->port_status[0]); in mv_ehci_reset()
107 struct ehci_hcd *ehci; in mv_ehci_probe() local
173 ehci = hcd_to_ehci(hcd); in mv_ehci_probe()
174 ehci->caps = (struct ehci_caps __iomem *) ehci_mv->cap_regs; in mv_ehci_probe()
213 status = ehci_readl(ehci, &ehci->regs->port_status[0]); in mv_ehci_probe()
217 ehci_writel(ehci, status, &ehci->regs->port_status[0]); in mv_ehci_probe()
A Dehci-xilinx-of.c122 struct ehci_hcd *ehci; in ehci_hcd_xilinx_of_probe() local
159 ehci = hcd_to_ehci(hcd); in ehci_hcd_xilinx_of_probe()
164 ehci->big_endian_mmio = 1; in ehci_hcd_xilinx_of_probe()
165 ehci->big_endian_desc = 1; in ehci_hcd_xilinx_of_probe()
171 ehci_dbg(ehci, "USB host controller supports FS devices\n"); in ehci_hcd_xilinx_of_probe()
174 ehci_dbg(ehci, in ehci_hcd_xilinx_of_probe()
181 ehci->caps = hcd->regs + 0x100; in ehci_hcd_xilinx_of_probe()
A Dehci-ps3.c12 static void ps3_ehci_setup_insnreg(struct ehci_hcd *ehci) in ps3_ehci_setup_insnreg() argument
31 writel_be(0x01000020, (void __iomem *)ehci->regs + in ps3_ehci_setup_insnreg()
36 writel_be(0x00000001, (void __iomem *)ehci->regs + in ps3_ehci_setup_insnreg()
43 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ps3_ehci_hc_reset() local
45 ehci->big_endian_mmio = 1; in ps3_ehci_hc_reset()
46 ehci->caps = hcd->regs; in ps3_ehci_hc_reset()
52 ps3_ehci_setup_insnreg(ehci); in ps3_ehci_hc_reset()
/linux-6.3-rc2/Documentation/devicetree/bindings/usb/
A Dgeneric-ehci.yaml60 - hpe,gxp-ehci
61 - ibm,476gtr-ehci
63 - qca,ar7100-ehci
66 - const: generic-ehci
74 - const: usb-ehci
76 - generic-ehci
78 - marvell,orion-ehci
81 - ti,ehci-omap
82 - usb-ehci
165 compatible = "ibm,usb-ehci-440epx", "usb-ehci";
[all …]
A Dbrcm,bcm7445-ehci.yaml4 $id: http://devicetree.org/schemas/usb/brcm,bcm7445-ehci.yaml#
17 const: brcm,bcm7445-ehci
50 compatible = "brcm,bcm7445-ehci";
/linux-6.3-rc2/drivers/usb/chipidea/
A Dhost.c40 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_portpower() local
95 ehci->need_io_watchdog = 0; in ehci_ci_reset()
123 struct ehci_hcd *ehci; in host_start() local
149 ehci = hcd_to_ehci(hcd); in host_start()
150 ehci->caps = ci->hw_bank.cap; in host_start()
151 ehci->has_hostpc = ci->hw_bank.lpm; in host_start()
345 u32 portsc = ehci_readl(ehci, reg); in ci_ehci_bus_suspend()
358 tmp = ehci_readl(ehci, &ehci->regs->command); in ci_ehci_bus_suspend()
360 ehci_writel(ehci, tmp, &ehci->regs->command); in ci_ehci_bus_suspend()
370 tmp = ehci_readl(ehci, reg); in ci_ehci_bus_suspend()
[all …]
A Dci_hdrc_tegra.c155 struct ehci_hcd *ehci; in tegra_usb_notify_event() local
160 ehci = hcd_to_ehci(ci->hcd); in tegra_usb_notify_event()
161 ehci->has_tdi_phy_lpm = false; in tegra_usb_notify_event()
163 &ehci->regs->txfill_tuning); in tegra_usb_notify_event()
179 saved_usbintr = ehci_readl(ehci, &ehci->regs->intr_enable); in tegra_usb_internal_port_reset()
181 ehci_writel(ehci, 0, &ehci->regs->intr_enable); in tegra_usb_internal_port_reset()
189 temp = ehci_readl(ehci, portsc_reg); in tegra_usb_internal_port_reset()
191 ehci_writel(ehci, temp, portsc_reg); in tegra_usb_internal_port_reset()
224 temp = ehci_readl(ehci, &ehci->regs->status); in tegra_usb_internal_port_reset()
225 ehci_writel(ehci, temp, &ehci->regs->status); in tegra_usb_internal_port_reset()
[all …]
/linux-6.3-rc2/Documentation/devicetree/bindings/mfd/
A Domap-usb-host.txt18 "ehci-phy",
19 "ehci-tll",
20 "ehci-hsic",
67 See Documentation/devicetree/bindings/usb/generic-ehci.yaml and
87 usbhsehci: ehci@4a064c00 {
88 compatible = "ti,ehci-omap";
96 port1-mode = "ehci-phy";
97 port2-mode = "ehci-tll";
98 port3-mode = "ehci-phy";
/linux-6.3-rc2/include/linux/usb/
A Dehci_def.h22 #define HC_LENGTH(ehci, p) (0x00ff&((p) >> /* bits 7:0 / offset 00h */ \ argument
23 (ehci_big_endian_capbase(ehci) ? 24 : 0)))
24 #define HC_VERSION(ehci, p) (0xffff&((p) >> /* bits 31:16 / offset 02h */ \ argument
25 (ehci_big_endian_capbase(ehci) ? 0 : 16)))

Completed in 59 milliseconds

12345678910