/drivers/net/ethernet/sun/ |
D | sunqe.c | 87 void __iomem *mregs = qep->mregs; in qe_stop() local 91 sbus_writeb(MREGS_BCONFIG_RESET, mregs + MREGS_BCONFIG); in qe_stop() 94 u8 tmp = sbus_readb(mregs + MREGS_BCONFIG); in qe_stop() 144 void __iomem *mregs = qep->mregs; in qe_init() local 183 sbus_writeb(MREGS_PHYCONFIG_AUTO, mregs + MREGS_PHYCONFIG); in qe_init() 184 sbus_writeb(MREGS_TXFCNTL_AUTOPAD, mregs + MREGS_TXFCNTL); in qe_init() 185 sbus_writeb(0, mregs + MREGS_RXFCNTL); in qe_init() 191 sbus_writeb(MREGS_IMASK_COLL | MREGS_IMASK_RXIRQ, mregs + MREGS_IMASK); in qe_init() 192 sbus_writeb(MREGS_BCONFIG_BSWAP | MREGS_BCONFIG_64TS, mregs + MREGS_BCONFIG); in qe_init() 195 mregs + MREGS_FCONFIG); in qe_init() [all …]
|
D | sunqe.h | 335 void __iomem *mregs; /* Per-channel MACE Registers */ member
|
/drivers/usb/musb/ |
D | omap2430.c | 67 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in omap2430_musb_set_vbus() 74 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in omap2430_musb_set_vbus() 79 while (musb_readb(musb->mregs, MUSB_DEVCTL) & in omap2430_musb_set_vbus() 114 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in omap2430_musb_set_vbus() 119 musb_readb(musb->mregs, MUSB_DEVCTL)); in omap2430_musb_set_vbus() 127 l = musb_readl(musb->mregs, OTG_FORCESTDBY); in omap2430_low_level_exit() 129 musb_writel(musb->mregs, OTG_FORCESTDBY, l); in omap2430_low_level_exit() 136 l = musb_readl(musb->mregs, OTG_FORCESTDBY); in omap2430_low_level_init() 138 musb_writel(musb->mregs, OTG_FORCESTDBY, l); in omap2430_low_level_init() 233 musb->int_usb = musb_readb(musb->mregs, MUSB_INTRUSB); in omap2430_musb_interrupt() [all …]
|
D | blackfin.c | 211 musb->int_usb = musb_readb(musb->mregs, MUSB_INTRUSB); in blackfin_interrupt() 212 musb->int_tx = musb_readw(musb->mregs, MUSB_INTRTX); in blackfin_interrupt() 213 musb->int_rx = musb_readw(musb->mregs, MUSB_INTRRX); in blackfin_interrupt() 216 musb_writeb(musb->mregs, MUSB_INTRUSB, musb->int_usb); in blackfin_interrupt() 217 musb_writew(musb->mregs, MUSB_INTRTX, musb->int_tx); in blackfin_interrupt() 218 musb_writew(musb->mregs, MUSB_INTRRX, musb->int_rx); in blackfin_interrupt() 247 val = musb_readw(musb->mregs, MUSB_DEVCTL); in musb_conn_timer_handler() 249 musb_writew(musb->mregs, MUSB_DEVCTL, val); in musb_conn_timer_handler() 251 musb_writew(musb->mregs, MUSB_DEVCTL, val); in musb_conn_timer_handler() 253 val = musb_readw(musb->mregs, MUSB_DEVCTL); in musb_conn_timer_handler() [all …]
|
D | sunxi.c | 114 devctl = readb(musb->mregs + SUNXI_MUSB_DEVCTL); in sunxi_musb_work() 128 writeb(devctl, musb->mregs + SUNXI_MUSB_DEVCTL); in sunxi_musb_work() 185 musb->int_usb = readb(musb->mregs + SUNXI_MUSB_INTRUSB); in sunxi_musb_interrupt() 187 writeb(musb->int_usb, musb->mregs + SUNXI_MUSB_INTRUSB); in sunxi_musb_interrupt() 201 musb_ep_select(musb->mregs, 0); in sunxi_musb_interrupt() 202 musb_writeb(musb->mregs, MUSB_FADDR, 0); in sunxi_musb_interrupt() 205 musb->int_tx = readw(musb->mregs + SUNXI_MUSB_INTRTX); in sunxi_musb_interrupt() 207 writew(musb->int_tx, musb->mregs + SUNXI_MUSB_INTRTX); in sunxi_musb_interrupt() 209 musb->int_rx = readw(musb->mregs + SUNXI_MUSB_INTRRX); in sunxi_musb_interrupt() 211 writew(musb->int_rx, musb->mregs + SUNXI_MUSB_INTRRX); in sunxi_musb_interrupt() [all …]
|
D | musb_debugfs.c | 123 musb_readb(musb->mregs, musb_regmap[i].offset)); in musb_regdump_show() 127 musb_readw(musb->mregs, musb_regmap[i].offset)); in musb_regdump_show() 131 musb_readl(musb->mregs, musb_regmap[i].offset)); in musb_regdump_show() 152 test = musb_readb(musb->mregs, MUSB_TESTMODE); in musb_test_mode_show() 204 test = musb_readb(musb->mregs, MUSB_TESTMODE); in musb_test_mode_write() 242 musb_writeb(musb->mregs, MUSB_TESTMODE, test); in musb_test_mode_write() 269 reg = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_softconnect_show() 307 reg = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_softconnect_write() 309 musb_writeb(musb->mregs, MUSB_DEVCTL, reg); in musb_softconnect_write() 324 reg = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_softconnect_write() [all …]
|
D | musb_regs.h | 367 musb_writeb(musb->mregs, in musb_write_rxfunaddr() 375 musb_writeb(musb->mregs, musb->io.busctl_offset(epnum, MUSB_RXHUBADDR), in musb_write_rxhubaddr() 382 musb_writeb(musb->mregs, musb->io.busctl_offset(epnum, MUSB_RXHUBPORT), in musb_write_rxhubport() 389 musb_writeb(musb->mregs, in musb_write_txfunaddr() 397 musb_writeb(musb->mregs, musb->io.busctl_offset(epnum, MUSB_TXHUBADDR), in musb_write_txhubaddr() 404 musb_writeb(musb->mregs, musb->io.busctl_offset(epnum, MUSB_TXHUBPORT), in musb_write_txhubport() 410 return musb_readb(musb->mregs, in musb_read_rxfunaddr() 416 return musb_readb(musb->mregs, in musb_read_rxhubaddr() 422 return musb_readb(musb->mregs, in musb_read_rxhubport() 428 return musb_readb(musb->mregs, in musb_read_txfunaddr() [all …]
|
D | da8xx.c | 125 musb_writeb(musb->mregs, MUSB_DEVCTL, 0); in da8xx_musb_disable() 143 void __iomem *mregs = musb->mregs; in otg_timer() local 151 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() 159 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in otg_timer() 161 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in otg_timer() 198 musb_writeb(mregs, MUSB_DEVCTL, devctl | MUSB_DEVCTL_SESSION); in otg_timer() 199 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() 278 void __iomem *mregs = musb->mregs; in da8xx_musb_interrupt() local 279 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in da8xx_musb_interrupt() 375 musb->mregs += DA8XX_MENTOR_CORE_OFFSET; in da8xx_musb_init()
|
D | davinci.c | 136 musb_writeb(musb->mregs, MUSB_DEVCTL, 0); in davinci_musb_disable() 208 void __iomem *mregs = musb->mregs; in otg_timer() local 215 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() 248 musb_writeb(mregs, MUSB_DEVCTL, in otg_timer() 250 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() 311 void __iomem *mregs = musb->mregs; in davinci_musb_interrupt() local 312 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in davinci_musb_interrupt() 390 musb->mregs += DAVINCI_BASE_OFFSET; in davinci_musb_init() 469 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in davinci_musb_exit()
|
D | ux500.c | 56 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in ux500_musb_set_vbus() 62 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in ux500_musb_set_vbus() 67 while (musb_readb(musb->mregs, MUSB_DEVCTL) & 0x80) { in ux500_musb_set_vbus() 93 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in ux500_musb_set_vbus() 106 musb_readb(musb->mregs, MUSB_DEVCTL)); in ux500_musb_set_vbus() 147 musb->int_usb = musb_readb(musb->mregs, MUSB_INTRUSB); in ux500_musb_interrupt() 148 musb->int_tx = musb_readw(musb->mregs, MUSB_INTRTX); in ux500_musb_interrupt() 149 musb->int_rx = musb_readw(musb->mregs, MUSB_INTRRX); in ux500_musb_interrupt()
|
D | am35x.c | 124 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() 175 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() 263 void __iomem *mregs = musb->mregs; in am35x_musb_interrupt() local 264 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in am35x_musb_interrupt() 358 musb->mregs += USB_MENTOR_CORE_OFFSET; in am35x_musb_init()
|
D | musb_gadget.c | 436 u8 __iomem *mbase = musb->mregs; in musb_g_tx() 827 void __iomem *mbase = musb->mregs; in musb_g_rx() 961 mbase = musb->mregs; in musb_gadget_enable() 1142 musb_ep_select(musb->mregs, epnum); in musb_gadget_disable() 1147 musb_writew(musb->mregs, MUSB_INTRTXE, musb->intrtxe); in musb_gadget_disable() 1151 musb_writew(musb->mregs, MUSB_INTRRXE, musb->intrrxe); in musb_gadget_disable() 1218 musb_ep_select(musb->mregs, req->epnum); in musb_ep_restart() 1345 musb_ep_select(musb->mregs, musb_ep->current_epnum); in musb_gadget_dequeue() 1384 mbase = musb->mregs; in musb_gadget_set_halt() 1477 void __iomem *mbase = musb->mregs; in musb_gadget_fifo_status() [all …]
|
D | musb_dsps.c | 189 musb_writeb(musb->mregs, MUSB_DEVCTL, 0); in dsps_musb_disable() 195 void __iomem *mregs = musb->mregs; in dsps_check_status() local 206 devctl = musb_readb(mregs, MUSB_DEVCTL); in dsps_check_status() 222 musb_writeb(musb->mregs, MUSB_DEVCTL, 0); in dsps_check_status() 236 musb_writeb(mregs, MUSB_DEVCTL, MUSB_DEVCTL_SESSION); in dsps_check_status() 322 void __iomem *mregs = musb->mregs; in dsps_interrupt() local 323 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in dsps_interrupt() 471 val = musb_readb(musb->mregs, MUSB_BABBLE_CTL); in dsps_musb_init() 475 musb_writeb(musb->mregs, MUSB_BABBLE_CTL, val); in dsps_musb_init() 550 babble_ctl = musb_readb(musb->mregs, MUSB_BABBLE_CTL); in dsps_sw_babble_control() [all …]
|
D | musb_virthub.c | 56 power = musb_readb(musb->mregs, MUSB_POWER); in musb_host_finish_resume() 59 musb_writeb(musb->mregs, MUSB_POWER, power); in musb_host_finish_resume() 80 void __iomem *mbase = musb->mregs; in musb_port_suspend() 145 void __iomem *mbase = musb->mregs; in musb_port_reset() 431 musb_writeb(musb->mregs, MUSB_DEVCTL, in musb_hub_control() 441 musb_writeb(musb->mregs, MUSB_TESTMODE, temp); in musb_hub_control()
|
D | musb_core.c | 458 musb_ep_select(musb->mregs, 0); in musb_load_testpacket() 503 void __iomem *mbase = musb->mregs; in musb_hnp_stop() 631 void __iomem *mbase = musb->mregs; in musb_stage0_irq() 688 void __iomem *mbase = musb->mregs; in musb_stage0_irq() 794 musb_writew(musb->mregs, MUSB_INTRTXE, musb->intrtxe); in musb_stage0_irq() 796 musb_writew(musb->mregs, MUSB_INTRRXE, musb->intrrxe); in musb_stage0_irq() 797 musb_writeb(musb->mregs, MUSB_INTRUSBE, 0xf7); in musb_stage0_irq() 955 void __iomem *mbase = musb->mregs; in musb_stage0_irq() 996 void __iomem *mbase = musb->mregs; in musb_disable_interrupts() 1014 void __iomem *regs = musb->mregs; in musb_enable_interrupts() [all …]
|
D | jz4740.c | 40 musb->int_usb = musb_readb(musb->mregs, MUSB_INTRUSB); in jz4740_musb_interrupt() 41 musb->int_tx = musb_readw(musb->mregs, MUSB_INTRTX); in jz4740_musb_interrupt() 42 musb->int_rx = musb_readw(musb->mregs, MUSB_INTRRX); in jz4740_musb_interrupt()
|
D | musb_gadget_ep0.c | 79 void __iomem *mbase = musb->mregs; in service_tx_status_request() 210 void __iomem *mbase = musb->mregs; in musb_try_b_hnp_enable() 235 void __iomem *mbase = musb->mregs; in service_zero_data_request() 536 musb_ep_select(musb->mregs, 0); in ep0_rxstate() 593 musb_ep_select(musb->mregs, 0); in ep0_txstate() 674 void __iomem *mbase = musb->mregs; in musb_g_ep0_irq() 981 musb_ep_select(musb->mregs, 0); in musb_g_ep0_queue() 1033 base = musb->mregs; in musb_g_ep0_halt()
|
D | cppi_dma.c | 353 void __iomem *base = c->controller->mregs; in cppi_dump_rx() 383 void __iomem *base = c->controller->mregs; in cppi_dump_tx() 1100 musb_ep_select(cppi->mregs, rx->index + 1); in cppi_rx_scan() 1300 cppi_dma_controller_create(struct musb *musb, void __iomem *mregs) in cppi_dma_controller_create() argument 1311 controller->mregs = mregs; in cppi_dma_controller_create() 1312 controller->tibase = mregs - DAVINCI_BASE_OFFSET; in cppi_dma_controller_create() 1404 mbase = controller->mregs; in cppi_channel_abort()
|
D | musb_core.h | 134 (musb_readb((_x)->mregs, MUSB_DEVCTL)&MUSB_DEVCTL_HM) 351 void __iomem *mregs; member 496 void __iomem *mbase = musb->mregs; in musb_read_fifosize()
|
D | musb_cppi41.c | 69 musb_ep_select(musb->mregs, hw_ep->epnum); in update_rx_toggle() 95 musb_ep_select(musb->mregs, hw_ep->epnum); in musb_is_tx_fifo_empty() 126 musb_ep_select(musb->mregs, hw_ep->epnum); in cppi41_trans_done() 164 musb_ep_select(musb->mregs, hw_ep->epnum); in cppi41_trans_done()
|
D | musb_host.c | 225 void __iomem *mbase = musb->mregs; in musb_start_urb() 595 musb_writeb(musb->mregs, MUSB_FADDR, qh->addr_reg); in musb_rx_reinit() 723 void __iomem *mbase = musb->mregs; in musb_ep_program() 964 void __iomem *mbase = musb->mregs; in musb_bulk_nak_timeout() 1115 void __iomem *mbase = musb->mregs; in musb_h_ep0_irq() 1263 void __iomem *mbase = musb->mregs; in musb_host_tx() 1804 void __iomem *mbase = musb->mregs; in musb_host_rx() 2368 void __iomem *regs = ep->musb->mregs; in musb_cleanup_urb() 2530 return musb_readw(musb->mregs, MUSB_FRAME); in musb_h_get_frame_number() 2569 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_bus_suspend()
|
D | tusb6010.c | 568 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in tusb_musb_set_vbus() 615 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in tusb_musb_set_vbus() 619 musb_readb(musb->mregs, MUSB_DEVCTL), in tusb_musb_set_vbus() 787 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in tusb_otg_ints() 1144 musb->mregs += TUSB_BASE_OFFSET; in tusb_musb_init()
|
D | cppi_dma.h | 111 void __iomem *mregs; /* Mentor regs */ member
|
D | tusb6010_omap.c | 116 void __iomem *mbase = musb->mregs; in tusb_omap_dma_cb() 216 void __iomem *mbase = musb->mregs; in tusb_omap_dma_program()
|