/external/u-boot/drivers/usb/musb-new/ |
D | omap2430.c | 60 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_do_idle() 72 power = musb_readb(musb->mregs, MUSB_POWER); in musb_do_idle() 75 musb_writeb(musb->mregs, MUSB_POWER, power); in musb_do_idle() 86 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_do_idle() 143 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in omap2430_musb_set_vbus() 149 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in omap2430_musb_set_vbus() 154 while (musb_readb(musb->mregs, MUSB_DEVCTL) & 0x80) { in omap2430_musb_set_vbus() 188 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in omap2430_musb_set_vbus() 193 musb_readb(musb->mregs, MUSB_DEVCTL)); in omap2430_musb_set_vbus() 198 u8 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in omap2430_musb_set_mode() [all …]
|
D | pic32.c | 60 musb_writeb(musb->mregs, MUSB_SOFTRST, MUSB_SOFTRST_NRSTX); in pic32_musb_enable() 74 musb->int_usb = musb_readb(musb->mregs, MUSB_INTRUSB); in pic32_interrupt() 76 musb_writeb(musb->mregs, MUSB_INTRUSB, musb->int_usb); in pic32_interrupt() 79 musb->int_rx = musb_readw(musb->mregs, MUSB_INTRRX) & PIC32_RX_EP_MASK; in pic32_interrupt() 81 musb_writew(musb->mregs, MUSB_INTRRX, musb->int_rx); in pic32_interrupt() 83 musb->int_tx = musb_readw(musb->mregs, MUSB_INTRTX) & PIC32_TX_EP_MASK; in pic32_interrupt() 85 musb_writew(musb->mregs, MUSB_INTRTX, musb->int_tx); in pic32_interrupt() 131 hwvers = musb_read_hwvers(musb->mregs); in pic32_musb_init() 136 power = musb_readb(musb->mregs, MUSB_POWER); in pic32_musb_init() 138 musb_writeb(musb->mregs, MUSB_POWER, power); in pic32_musb_init() [all …]
|
D | sunxi.c | 201 musb->int_usb = musb_readb(musb->mregs, MUSB_INTRUSB); in sunxi_musb_interrupt() 204 musb_writeb(musb->mregs, MUSB_INTRUSB, musb->int_usb); in sunxi_musb_interrupt() 205 musb->int_tx = musb_readw(musb->mregs, MUSB_INTRTX); in sunxi_musb_interrupt() 207 musb_writew(musb->mregs, MUSB_INTRTX, musb->int_tx); in sunxi_musb_interrupt() 208 musb->int_rx = musb_readw(musb->mregs, MUSB_INTRRX); in sunxi_musb_interrupt() 210 musb_writew(musb->mregs, MUSB_INTRRX, musb->int_rx); in sunxi_musb_interrupt() 228 musb_ep_select(musb->mregs, 0); in sunxi_musb_enable() 229 musb_writeb(musb->mregs, MUSB_FADDR, 0); in sunxi_musb_enable() 235 musb_writeb(musb->mregs, USBC_REG_o_VEND0, 0); in sunxi_musb_enable() 257 USBC_ForceVbusValidToHigh(musb->mregs); in sunxi_musb_enable() [all …]
|
D | musb_gadget.c | 490 u8 __iomem *mbase = musb->mregs; in musb_g_tx() 909 void __iomem *mbase = musb->mregs; in musb_g_rx() 1047 mbase = musb->mregs; in musb_gadget_enable() 1226 musb_ep_select(musb->mregs, epnum); in musb_gadget_disable() 1230 u16 int_txe = musb_readw(musb->mregs, MUSB_INTRTXE); in musb_gadget_disable() 1232 musb_writew(musb->mregs, MUSB_INTRTXE, int_txe); in musb_gadget_disable() 1235 u16 int_rxe = musb_readw(musb->mregs, MUSB_INTRRXE); in musb_gadget_disable() 1237 musb_writew(musb->mregs, MUSB_INTRRXE, int_rxe); in musb_gadget_disable() 1308 musb_ep_select(musb->mregs, req->epnum); in musb_ep_restart() 1402 musb_ep_select(musb->mregs, musb_ep->current_epnum); in musb_gadget_dequeue() [all …]
|
D | am35x.c | 123 musb_writeb(musb->mregs, MUSB_DEVCTL, 0); in am35x_musb_disable() 142 void __iomem *mregs = musb->mregs; in otg_timer() local 150 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() 158 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in otg_timer() 160 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in otg_timer() 178 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() 284 void __iomem *mregs = musb->mregs; in am35x_musb_interrupt() local 285 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in am35x_musb_interrupt() 384 musb->mregs += USB_MENTOR_CORE_OFFSET; in am35x_musb_init()
|
D | musb_core.c | 324 musb_ep_select(musb->mregs, 0); in musb_load_testpacket() 370 void __iomem *mbase = musb->mregs; in musb_hnp_stop() 438 void __iomem *mbase = musb->mregs; in musb_stage0_irq() 511 void __iomem *mbase = musb->mregs; in musb_stage0_irq() 568 void __iomem *mbase = musb->mregs; in musb_stage0_irq() 679 musb_writew(musb->mregs, MUSB_INTRTXE, musb->epmask); in musb_stage0_irq() 680 musb_writew(musb->mregs, MUSB_INTRRXE, musb->epmask & 0xfffe); in musb_stage0_irq() 681 musb_writeb(musb->mregs, MUSB_INTRUSBE, 0xf7); in musb_stage0_irq() 795 musb_writeb(musb->mregs, MUSB_DEVCTL, 0); in musb_stage0_irq() 855 void __iomem *mbase = musb->mregs; in musb_stage0_irq() [all …]
|
D | musb_dsps.c | 193 dsps_writeb(musb->mregs, MUSB_DEVCTL, 0); in dsps_musb_disable() 202 void __iomem *mregs = musb->mregs; in otg_timer() local 214 devctl = dsps_readb(mregs, MUSB_DEVCTL); in otg_timer() 222 dsps_writeb(musb->mregs, MUSB_DEVCTL, devctl); in otg_timer() 224 devctl = dsps_readb(musb->mregs, MUSB_DEVCTL); in otg_timer() 242 devctl = dsps_readb(mregs, MUSB_DEVCTL); in otg_timer() 343 void __iomem *mregs = musb->mregs; in dsps_interrupt() local 344 u8 devctl = dsps_readb(mregs, MUSB_DEVCTL); in dsps_interrupt() 427 musb->mregs += wrp->musb_core_offset; in dsps_musb_init()
|
D | musb_gadget_ep0.c | 60 void __iomem *mbase = musb->mregs; in service_tx_status_request() 187 void __iomem *mbase = musb->mregs; in musb_try_b_hnp_enable() 212 void __iomem *mbase = musb->mregs; in service_zero_data_request() 511 musb_ep_select(musb->mregs, 0); in ep0_rxstate() 555 musb_ep_select(musb->mregs, 0); in ep0_txstate() 649 void __iomem *mbase = musb->mregs; in musb_g_ep0_irq() 958 musb_ep_select(musb->mregs, 0); in musb_g_ep0_queue() 1010 base = musb->mregs; in musb_g_ep0_halt()
|
D | musb_core.h | 188 (musb_readb((_x)->mregs, MUSB_DEVCTL)&MUSB_DEVCTL_HM) 356 void __iomem *mregs; member 463 void *mbase = musb->mregs; in musb_read_fifosize()
|
D | musb_host.c | 192 void __iomem *mbase = musb->mregs; in musb_start_urb() 598 musb_writeb(musb->mregs, MUSB_FADDR, qh->addr_reg); in musb_rx_reinit() 689 void __iomem *mbase = musb->mregs; in musb_ep_program() 969 void __iomem *mbase = musb->mregs; in musb_h_ep0_irq() 1114 void __iomem *mbase = musb->mregs; in musb_host_tx() 1390 void __iomem *mbase = musb->mregs; in musb_bulk_rx_nak_timeout() 1438 void __iomem *mbase = musb->mregs; in musb_host_rx() 1902 if ((musb_readb(musb->mregs, MUSB_POWER) & MUSB_POWER_HSMODE) && in tt_needed() 2127 void __iomem *regs = ep->musb->mregs; 2303 return musb_readw(musb->mregs, MUSB_FRAME); [all …]
|
D | musb_uboot.c | 186 void *mbase = host->host->mregs; in _musb_reset_root_port() 229 mbase = host->host->mregs; in musb_lowlevel_init()
|