/openbmc/linux/drivers/usb/host/ |
H A D | ehci-hcd.c | 288 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() 852 ehci_writel(ehci, ehci->command, &ehci->regs->command); in ehci_irq() [all …]
|
H A D | ehci-timer.c | 14 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 …]
|
H A D | ehci-hub.c | 131 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 …]
|
H A D | ehci-mem.c | 108 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 …]
|
H A D | ehci-q.c | 269 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 …]
|
H A D | ehci-sched.c | 88 *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() 1795 itd_link(ehci, frame & (ehci->periodic_size - 1), itd); in itd_link_urb() 1934 ehci_dbg(ehci, in itd_submit() 1962 itd_link_urb(ehci, urb, ehci->periodic_size << 3, stream); in itd_submit() 2313 ehci_dbg(ehci, in sitd_submit() 2339 sitd_link_urb(ehci, urb, ehci->periodic_size << 3, stream); in sitd_submit() 2424 *hw_p = cpu_to_hc32(ehci, ehci->dummy->qh_dma); in scan_isoc() [all …]
|
H A D | ehci-pci.c | 97 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 …]
|
H A D | ehci-dbg.c | 17 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 …]
|
H A D | ehci-fsl.c | 462 tmp = ehci_readl(ehci, &ehci->regs->command); in ehci_fsl_mpc512x_drv_suspend() 464 ehci_writel(ehci, tmp, &ehci->regs->command); in ehci_fsl_mpc512x_drv_suspend() 467 pdata->pm_command = ehci_readl(ehci, &ehci->regs->command); in ehci_fsl_mpc512x_drv_suspend() 469 pdata->pm_status = ehci_readl(ehci, &ehci->regs->status); in ehci_fsl_mpc512x_drv_suspend() 476 ehci_readl(ehci, &ehci->regs->configured_flag); in ehci_fsl_mpc512x_drv_suspend() 487 tmp = ehci_readl(ehci, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_suspend() 489 ehci_writel(ehci, tmp, &ehci->regs->port_status[0]); in ehci_fsl_mpc512x_drv_suspend() 535 ehci_writel(ehci, pdata->pm_command, &ehci->regs->command); in ehci_fsl_mpc512x_drv_resume() 549 tmp = ehci_readl(ehci, &ehci->regs->command); in ehci_fsl_mpc512x_drv_resume() 551 ehci_writel(ehci, tmp, &ehci->regs->command); in ehci_fsl_mpc512x_drv_resume() [all …]
|
H A D | ehci-sysfs.c | 14 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 …]
|
H A D | ehci-brcm.c | 29 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() 229 ehci_writel(ehci, 0x00800040, &ehci->regs->brcm_insnreg[1]); in ehci_brcm_resume() [all …]
|
H A D | ehci.h | 281 #define QTD_NEXT(ehci, dma) cpu_to_hc32(ehci, (u32)dma) argument 310 #define ACTIVE_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_ACTIVE) argument 311 #define HALT_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_HALT) argument 312 #define STATUS_BIT(ehci) cpu_to_hc32(ehci, QTD_STS_STS) argument 325 #define QTD_MASK(ehci) cpu_to_hc32(ehci, ~0x1f) argument 332 #define Q_NEXT_TYPE(ehci, dma) ((dma) & cpu_to_hc32(ehci, 3 << 1)) argument 348 #define QH_NEXT(ehci, dma) \ argument 352 #define EHCI_LIST_END(ehci) cpu_to_hc32(ehci, 1) /* "null pointer" to hw */ argument 523 #define ITD_ACTIVE(ehci) cpu_to_hc32(ehci, EHCI_ISOC_ACTIVE) argument 568 #define SITD_ACTIVE(ehci) cpu_to_hc32(ehci, SITD_STS_ACTIVE) argument [all …]
|
H A D | ehci-platform.c | 77 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 …]
|
H A D | ehci-ppc-of.c | 98 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 …]
|
H A D | Makefile | 37 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 82 obj-$(CONFIG_USB_EHCI_FSL) += ehci-fsl.o [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/usb/ |
H A D | generic-ehci.yaml | 61 - hpe,gxp-ehci 62 - ibm,476gtr-ehci 64 - qca,ar7100-ehci 68 - const: generic-ehci 77 - const: usb-ehci 79 - generic-ehci 81 - marvell,orion-ehci 84 - ti,ehci-omap 85 - usb-ehci 168 compatible = "ibm,usb-ehci-440epx", "usb-ehci"; [all …]
|
/openbmc/u-boot/drivers/usb/host/ |
H A D | ehci-fsl.c | 30 struct ehci_ctrl ehci; member 49 in_be32(&ehci->prictrl))) { in usb_phy_clk_valid() 75 struct usb_ehci *ehci = NULL; in ehci_fsl_init_after_reset() local 77 ehci); in ehci_fsl_init_after_reset() 80 if (ehci_fsl_init(priv, ehci, priv->ehci.hccr, priv->ehci.hcor) < 0) in ehci_fsl_init_after_reset() 93 struct usb_ehci *ehci = NULL; in ehci_fsl_probe() local 153 struct usb_ehci *ehci = NULL; in ehci_hcd_init() local 264 if (!usb_phy_clk_valid(ehci)) in ehci_fsl_init() 269 out_be32(&ehci->prictrl, 0x0000000c); in ehci_fsl_init() 271 out_be32(&ehci->sictrl, 0x00000001); in ehci_fsl_init() [all …]
|
H A D | Makefile | 22 obj-$(CONFIG_USB_EHCI_HCD) += ehci-hcd.o 26 obj-$(CONFIG_USB_EHCI_FSL) += ehci-fsl.o 30 obj-$(CONFIG_USB_EHCI_MXC) += ehci-mxc.o 31 obj-$(CONFIG_USB_EHCI_MXS) += ehci-mxs.o 32 obj-$(CONFIG_USB_EHCI_MX5) += ehci-mx5.o 33 obj-$(CONFIG_USB_EHCI_MX6) += ehci-mx6.o 34 obj-$(CONFIG_USB_EHCI_MX7) += ehci-mx6.o 37 obj-$(CONFIG_USB_EHCI_MSM) += ehci-msm.o 38 obj-$(CONFIG_USB_EHCI_PCI) += ehci-pci.o 41 obj-$(CONFIG_USB_EHCI_VCT) += ehci-vct.o [all …]
|
H A D | ehci-vf.c | 92 usb_cmd = (void __iomem *)&ehci->usbcmd; in usb_phy_enable() 151 usb_phy_enable(index, ehci); in ehci_vf_common_init() 160 struct usb_ehci *ehci; in ehci_hcd_init() local 184 setbits_le32(&ehci->portsc, USB_EN); in ehci_hcd_init() 188 setbits_le32(&ehci->portsc, USB_EN); in ehci_hcd_init() 209 struct usb_ehci *ehci; member 272 struct usb_ehci *ehci = priv->ehci; in vf_init_after_reset() local 282 setbits_le32(&ehci->usbmode, CM_HOST); in vf_init_after_reset() 284 setbits_le32(&ehci->portsc, USB_EN); in vf_init_after_reset() 315 struct usb_ehci *ehci = priv->ehci; in ehci_usb_probe() local [all …]
|
H A D | ehci-msm.c | 26 struct usb_ehci *ehci; /* Start of IP core*/ member 34 struct usb_ehci *ehci = p->ehci; in msm_init_after_reset() local 39 writel(CM_HOST, &ehci->usbmode); in msm_init_after_reset() 51 struct usb_ehci *ehci = p->ehci; in ehci_usb_probe() local 57 hccr = (struct ehci_hccr *)((phys_addr_t)&ehci->caplength); in ehci_usb_probe() 76 struct usb_ehci *ehci = p->ehci; in ehci_usb_remove() local 84 clrbits_le32(&ehci->usbcmd, CMD_RUN); in ehci_usb_remove() 95 setbits_le32(&ehci->usbcmd, CMD_RESET); in ehci_usb_remove() 98 if (wait_for_bit_le32(&ehci->usbcmd, CMD_RESET, false, 30, false)) { in ehci_usb_remove() 111 priv->ehci = (void *)devfdt_get_addr(dev); in ehci_usb_ofdata_to_platdata() [all …]
|
H A D | ehci-mx6.c | 140 usb_cmd = (void __iomem *)&ehci->usbcmd; in usb_phy_enable() 332 usb_phy_enable(index, ehci); in ehci_mx6_common_init() 374 setbits_le32(&ehci->usbmode, CM_HOST); in ehci_hcd_init() 376 setbits_le32(&ehci->portsc, USB_EN); in ehci_hcd_init() 390 struct usb_ehci *ehci; member 400 struct usb_ehci *ehci = priv->ehci; in mx6_init_after_reset() local 422 setbits_le32(&ehci->usbmode, CM_HOST); in mx6_init_after_reset() 424 setbits_le32(&ehci->portsc, USB_EN); in mx6_init_after_reset() 515 priv->ehci = ehci; in ehci_usb_probe() 542 setbits_le32(&ehci->usbmode, CM_HOST); in ehci_usb_probe() [all …]
|
/openbmc/qemu/hw/usb/ |
H A D | hcd-ehci.c | 549 EHCIQueueHead *head = async ? &ehci->aqueues : &ehci->pqueues; in ehci_alloc_queue() 553 q->ehci = ehci; in ehci_alloc_queue() 623 EHCIQueueHead *head = async ? &ehci->aqueues : &ehci->pqueues; in ehci_find_queue_by_qh() 636 EHCIQueueHead *head = async ? &ehci->aqueues : &ehci->pqueues; in ehci_queues_rip_unused() 656 EHCIQueueHead *head = async ? &ehci->aqueues : &ehci->pqueues; in ehci_queues_rip_unseen() 668 EHCIQueueHead *head = async ? &ehci->aqueues : &ehci->pqueues; in ehci_queues_rip_device() 1434 qemu_sglist_init(&ehci->isgl, ehci->device, 2, ehci->as); in ehci_process_itd() 2240 if (!ehci_enabled(ehci) && ehci->pstate == EST_INACTIVE) { in ehci_update_frindex() 2261 ehci->frindex = (ehci->frindex + uframes) % 0x4000; in ehci_update_frindex() 2324 } else if (ehci->async_stepdown < ehci->maxframes / 2) { in ehci_work_bh() [all …]
|
/openbmc/linux/drivers/usb/chipidea/ |
H A D | host.c | 39 struct ehci_hcd *ehci = hcd_to_ehci(hcd); in ehci_ci_portpower() local 94 ehci->need_io_watchdog = 0; in ehci_ci_reset() 122 struct ehci_hcd *ehci; in host_start() local 148 ehci = hcd_to_ehci(hcd); in host_start() 149 ehci->caps = ci->hw_bank.cap; in host_start() 150 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 …]
|
H A D | ci_hdrc_tegra.c | 156 struct ehci_hcd *ehci; in tegra_usb_notify_event() local 161 ehci = hcd_to_ehci(ci->hcd); in tegra_usb_notify_event() 162 ehci->has_tdi_phy_lpm = false; in tegra_usb_notify_event() 164 &ehci->regs->txfill_tuning); in tegra_usb_notify_event() 180 saved_usbintr = ehci_readl(ehci, &ehci->regs->intr_enable); in tegra_usb_internal_port_reset() 182 ehci_writel(ehci, 0, &ehci->regs->intr_enable); in tegra_usb_internal_port_reset() 190 temp = ehci_readl(ehci, portsc_reg); in tegra_usb_internal_port_reset() 192 ehci_writel(ehci, temp, portsc_reg); in tegra_usb_internal_port_reset() 225 temp = ehci_readl(ehci, &ehci->regs->status); in tegra_usb_internal_port_reset() 226 ehci_writel(ehci, temp, &ehci->regs->status); in tegra_usb_internal_port_reset() [all …]
|
/openbmc/u-boot/drivers/phy/ |
H A D | msm8916-usbh-phy.c | 24 struct usb_ehci *ehci; /* Start of IP core*/ member 54 writel(PORT_PTS_ULPI, &p->ehci->portsc); in msm_phy_reset() 57 setbits_le32(&p->ehci->genconfig2, GEN2_SESS_VLD_CTRL_EN); in msm_phy_reset() 60 setbits_le32(&p->ehci->usbcmd, SESS_VLD_CTRL); in msm_phy_reset() 63 writel(0x0, &p->ehci->sbuscfg); in msm_phy_reset() 67 writel(0x08, &p->ehci->sbusmode); in msm_phy_reset() 80 priv->ehci = (struct usb_ehci *)priv->regs; in msm_phy_probe() 86 priv->ulpi_vp.viewport_addr = (phys_addr_t)&priv->ehci->ulpi_viewpoint; in msm_phy_probe()
|