/openbmc/linux/drivers/usb/host/ |
H A D | uhci-debug.c | 308 unsigned short usbcmd, usbstat, usbint, usbfrnum; in uhci_show_status() local 314 usbcmd = uhci_readw(uhci, USBCMD); in uhci_show_status() 323 out += sprintf(out, " usbcmd = %04x %s%s%s%s%s%s%s%s\n", in uhci_show_status() 324 usbcmd, in uhci_show_status() 325 (usbcmd & USBCMD_MAXP) ? "Maxp64 " : "Maxp32 ", in uhci_show_status() 326 (usbcmd & USBCMD_CF) ? "CF " : "", in uhci_show_status() 327 (usbcmd & USBCMD_SWDBG) ? "SWDBG " : "", in uhci_show_status() 328 (usbcmd & USBCMD_FGR) ? "FGR " : "", in uhci_show_status() 329 (usbcmd & USBCMD_EGSM) ? "EGSM " : "", in uhci_show_status() 330 (usbcmd & USBCMD_GRESET) ? "GRESET " : "", in uhci_show_status() [all …]
|
H A D | uhci-hcd.c | 192 uhci_writew(uhci, USBCMD_HCRESET, USBCMD); in uhci_generic_reset_hc() 195 if (uhci_readw(uhci, USBCMD) & USBCMD_HCRESET) in uhci_generic_reset_hc() 202 uhci_writew(uhci, 0, USBCMD); in uhci_generic_reset_hc() 225 cmd = uhci_readw(uhci, USBCMD); in uhci_generic_check_and_reset_hc() 349 uhci_writew(uhci, egsm_enable | USBCMD_CF, USBCMD); in suspend_rh() 402 uhci_writew(uhci, USBCMD_RS | USBCMD_CF | USBCMD_MAXP, USBCMD); in start_rh() 427 egsm = uhci_readw(uhci, USBCMD) & USBCMD_EGSM; in wakeup_rh() 429 uhci_writew(uhci, USBCMD_FGR | USBCMD_CF | egsm, USBCMD); in wakeup_rh() 437 uhci_writew(uhci, USBCMD_CF, USBCMD); in wakeup_rh() 440 if (uhci_readw(uhci, USBCMD) & USBCMD_FGR) in wakeup_rh()
|
H A D | xhci-tegra.c | 2171 u32 usbcmd; in tegra_xusb_enter_elpg() local 2176 usbcmd = readl(&xhci->op_regs->command); in tegra_xusb_enter_elpg() 2177 usbcmd &= ~CMD_EIE; in tegra_xusb_enter_elpg() 2178 writel(usbcmd, &xhci->op_regs->command); in tegra_xusb_enter_elpg() 2223 usbcmd = readl(&xhci->op_regs->command); in tegra_xusb_enter_elpg() 2224 usbcmd |= CMD_EIE; in tegra_xusb_enter_elpg() 2225 writel(usbcmd, &xhci->op_regs->command); in tegra_xusb_enter_elpg() 2240 u32 usbcmd; in tegra_xusb_exit_elpg() local 2295 usbcmd = readl(&xhci->op_regs->command); in tegra_xusb_exit_elpg() 2296 usbcmd |= CMD_EIE; in tegra_xusb_exit_elpg() [all …]
|
H A D | ehci-timer.c | 10 /* Set a bit in the USBCMD register */ 20 /* Clear a bit in the USBCMD register */
|
/openbmc/linux/drivers/usb/gadget/udc/ |
H A D | fsl_udc_core.c | 276 tmp = fsl_readl(&dr_regs->usbcmd); in dr_controller_setup() 278 fsl_writel(tmp, &dr_regs->usbcmd); in dr_controller_setup() 280 tmp = fsl_readl(&dr_regs->usbcmd); in dr_controller_setup() 282 fsl_writel(tmp, &dr_regs->usbcmd); in dr_controller_setup() 286 while (fsl_readl(&dr_regs->usbcmd) & USB_CMD_CTRL_RESET) { in dr_controller_setup() 367 temp = fsl_readl(&dr_regs->usbcmd); in dr_controller_run() 369 fsl_writel(temp, &dr_regs->usbcmd); in dr_controller_run() 399 tmp = fsl_readl(&dr_regs->usbcmd); in dr_controller_stop() 401 fsl_writel(tmp, &dr_regs->usbcmd); in dr_controller_stop() 743 /* Set ATDTW bit in USBCMD */ in fsl_queue_td() [all …]
|
H A D | mv_udc_core.c | 256 u32 usbcmd, epstatus; in queue_dtd() local 280 usbcmd = readl(&udc->op_regs->usbcmd); in queue_dtd() 281 usbcmd |= USBCMD_ATDTW_TRIPWIRE_SET; in queue_dtd() 282 writel(usbcmd, &udc->op_regs->usbcmd); in queue_dtd() 294 if (readl(&udc->op_regs->usbcmd) in queue_dtd() 309 usbcmd = readl(&udc->op_regs->usbcmd); in queue_dtd() 310 usbcmd &= USBCMD_ATDTW_TRIPWIRE_CLEAR; in queue_dtd() 311 writel(usbcmd, &udc->op_regs->usbcmd); in queue_dtd() 982 tmp = readl(&udc->op_regs->usbcmd); in udc_stop() 984 writel(tmp, &udc->op_regs->usbcmd); in udc_stop() [all …]
|
H A D | mv_u3d_core.c | 1027 tmp = ioread32(&u3d->op_regs->usbcmd); in mv_u3d_controller_stop() 1029 iowrite32(tmp, &u3d->op_regs->usbcmd); in mv_u3d_controller_stop() 1030 dev_dbg(u3d->dev, "after u3d_stop, USBCMD 0x%x\n", in mv_u3d_controller_stop() 1031 ioread32(&u3d->op_regs->usbcmd)); in mv_u3d_controller_stop() 1055 iowrite32(MV_U3D_CMD_RUN_STOP, &u3d->op_regs->usbcmd); in mv_u3d_controller_start() 1056 dev_dbg(u3d->dev, "after u3d_start, USBCMD 0x%x\n", in mv_u3d_controller_start() 1057 ioread32(&u3d->op_regs->usbcmd)); in mv_u3d_controller_start() 1066 tmp = ioread32(&u3d->op_regs->usbcmd); in mv_u3d_controller_reset() 1068 iowrite32(tmp, &u3d->op_regs->usbcmd); in mv_u3d_controller_reset() 1071 iowrite32(MV_U3D_CMD_CTRL_RESET, &u3d->op_regs->usbcmd); in mv_u3d_controller_reset() [all …]
|
/openbmc/u-boot/drivers/usb/host/ |
H A D | ehci-msm.c | 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()
|
H A D | ehci-vf.c | 34 /* USBCMD */ 92 usb_cmd = (void __iomem *)&ehci->usbcmd; in usb_phy_enable()
|
H A D | ehci-mx6.c | 62 /* USBCMD */ 140 usb_cmd = (void __iomem *)&ehci->usbcmd; in usb_phy_enable()
|
/openbmc/linux/drivers/usb/phy/ |
H A D | phy-fsl-usb.c | 449 command = fsl_readl(&usb_dr_regs->usbcmd); in otg_reset_controller() 451 fsl_writel(command, &usb_dr_regs->usbcmd); in otg_reset_controller() 452 while (fsl_readl(&usb_dr_regs->usbcmd) & (1 << 1)) in otg_reset_controller() 890 temp = fsl_readl(&p_otg->dr_mem_map->usbcmd); in usb_otg_start() 892 fsl_writel(temp, &p_otg->dr_mem_map->usbcmd); in usb_otg_start() 895 temp = fsl_readl(&p_otg->dr_mem_map->usbcmd); in usb_otg_start() 897 fsl_writel(temp, &p_otg->dr_mem_map->usbcmd); in usb_otg_start() 900 while (fsl_readl(&p_otg->dr_mem_map->usbcmd) & USB_CMD_CTRL_RESET) in usb_otg_start()
|
H A D | phy-mv-usb.c | 143 tmp = readl(&mvotg->op_regs->usbcmd); in mv_otg_reset() 145 writel(tmp, &mvotg->op_regs->usbcmd); in mv_otg_reset() 148 writel(USBCMD_CTRL_RESET, &mvotg->op_regs->usbcmd); in mv_otg_reset() 150 ret = readl_poll_timeout_atomic(&mvotg->op_regs->usbcmd, tmp, in mv_otg_reset()
|
H A D | phy-mv-usb.h | 106 u32 usbcmd; /* Command register */ member
|
/openbmc/u-boot/arch/arm/mach-rmobile/include/mach/ |
H A D | ehci-rmobile.h | 134 u32 usbcmd; /* usbcmd */ member
|
/openbmc/u-boot/drivers/usb/gadget/ |
H A D | ci_udc.h | 13 u32 usbcmd; /* 0x130 */ member 34 u32 usbcmd; /* 0x140 */ member
|
/openbmc/qemu/hw/usb/ |
H A D | hcd-ehci.c | 113 [USBCMD] = "USBCMD", 241 itc = (s->usbcmd >> 16) & 0xff; in ehci_commit_irq() 250 if (s->usbcmd & USBCMD_RUNSTOP) { in ehci_update_halt() 359 return s->usbcmd & USBCMD_RUNSTOP; in ehci_enabled() 364 return ehci_enabled(s) && (s->usbcmd & USBCMD_ASE); in ehci_async_enabled() 369 return ehci_enabled(s) && (s->usbcmd & USBCMD_PSE); in ehci_periodic_enabled() 380 ehci->usbcmd &= ~USBCMD_RUNSTOP; in get_dwords() 402 ehci->usbcmd &= ~USBCMD_RUNSTOP; in put_dwords() 871 s->usbcmd = NB_MAXINTRATE << USBCMD_ITC_SH; in ehci_reset() 1031 case USBCMD: in ehci_opreg_write() [all …]
|
H A D | hcd-xhci.h | 199 uint32_t usbcmd; member
|
H A D | hcd-xhci.c | 447 if ((xhci->usbcmd & bits) == bits) { in xhci_mfwrap_update() 562 xhci->usbcmd & USBCMD_INTE) { in xhci_intr_update() 592 if (!(xhci->usbcmd & USBCMD_INTE)) { in xhci_intr_raise() 2697 xhci->usbcmd = 0; in xhci_reset() 2896 case 0x00: /* USBCMD */ in xhci_oper_read() 2897 ret = xhci->usbcmd; in xhci_oper_read() 2940 case 0x00: /* USBCMD */ in xhci_oper_write() 2941 if ((val & USBCMD_RS) && !(xhci->usbcmd & USBCMD_RS)) { in xhci_oper_write() 2943 } else if (!(val & USBCMD_RS) && (xhci->usbcmd & USBCMD_RS)) { in xhci_oper_write() 2954 xhci->usbcmd = val & 0xc0f; in xhci_oper_write() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/usb/ |
H A D | cdns,usb3.yaml | 34 - description: interrupt used to wake up core, e.g when usbcmd.rs is
|
H A D | msm-hsusb.txt | 78 before starting controller using usbcmd run/stop bit.
|
/openbmc/u-boot/drivers/phy/ |
H A D | msm8916-usbh-phy.c | 60 setbits_le32(&p->ehci->usbcmd, SESS_VLD_CTRL); in msm_phy_reset()
|
/openbmc/qemu/include/hw/usb/ |
H A D | ehci-regs.h | 13 #define USBCMD 0x0000 macro
|
/openbmc/linux/drivers/usb/cdns3/ |
H A D | host.c | 37 /* set usbcmd.EU3S */ in xhci_cdns3_plat_start()
|
/openbmc/u-boot/arch/arm/include/asm/ |
H A D | ehci-omap.h | 104 u32 usbcmd; /* 0x10 */ member
|
/openbmc/linux/drivers/usb/chipidea/ |
H A D | bits.h | 39 /* USBCMD */
|