/Linux-v4.19/drivers/net/ethernet/sun/ |
D | sunqe.c | 88 void __iomem *mregs = qep->mregs; in qe_stop() local 92 sbus_writeb(MREGS_BCONFIG_RESET, mregs + MREGS_BCONFIG); in qe_stop() 95 u8 tmp = sbus_readb(mregs + MREGS_BCONFIG); in qe_stop() 145 void __iomem *mregs = qep->mregs; in qe_init() local 184 sbus_writeb(MREGS_PHYCONFIG_AUTO, mregs + MREGS_PHYCONFIG); in qe_init() 185 sbus_writeb(MREGS_TXFCNTL_AUTOPAD, mregs + MREGS_TXFCNTL); in qe_init() 186 sbus_writeb(0, mregs + MREGS_RXFCNTL); in qe_init() 192 sbus_writeb(MREGS_IMASK_COLL | MREGS_IMASK_RXIRQ, mregs + MREGS_IMASK); in qe_init() 193 sbus_writeb(MREGS_BCONFIG_BSWAP | MREGS_BCONFIG_64TS, mregs + MREGS_BCONFIG); in qe_init() 196 mregs + MREGS_FCONFIG); in qe_init() [all …]
|
D | sunqe.h | 336 void __iomem *mregs; /* Per-channel MACE Registers */ member
|
/Linux-v4.19/drivers/usb/musb/ |
D | omap2430.c | 51 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in omap2430_musb_set_vbus() 58 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in omap2430_musb_set_vbus() 63 while (musb_readb(musb->mregs, MUSB_DEVCTL) & in omap2430_musb_set_vbus() 96 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in omap2430_musb_set_vbus() 101 musb_readb(musb->mregs, MUSB_DEVCTL)); in omap2430_musb_set_vbus() 109 l = musb_readl(musb->mregs, OTG_FORCESTDBY); in omap2430_low_level_exit() 111 musb_writel(musb->mregs, OTG_FORCESTDBY, l); in omap2430_low_level_exit() 118 l = musb_readl(musb->mregs, OTG_FORCESTDBY); in omap2430_low_level_init() 120 musb_writel(musb->mregs, OTG_FORCESTDBY, l); in omap2430_low_level_init() 212 musb->int_usb = musb_readb(musb->mregs, MUSB_INTRUSB); in omap2430_musb_interrupt() [all …]
|
D | musb_regs.h | 285 musb_writeb(musb->mregs, in musb_write_rxfunaddr() 293 musb_writeb(musb->mregs, musb->io.busctl_offset(epnum, MUSB_RXHUBADDR), in musb_write_rxhubaddr() 300 musb_writeb(musb->mregs, musb->io.busctl_offset(epnum, MUSB_RXHUBPORT), in musb_write_rxhubport() 307 musb_writeb(musb->mregs, in musb_write_txfunaddr() 315 musb_writeb(musb->mregs, musb->io.busctl_offset(epnum, MUSB_TXHUBADDR), in musb_write_txhubaddr() 322 musb_writeb(musb->mregs, musb->io.busctl_offset(epnum, MUSB_TXHUBPORT), in musb_write_txhubport() 328 return musb_readb(musb->mregs, in musb_read_rxfunaddr() 334 return musb_readb(musb->mregs, in musb_read_rxhubaddr() 340 return musb_readb(musb->mregs, in musb_read_rxhubport() 346 return musb_readb(musb->mregs, in musb_read_txfunaddr() [all …]
|
D | musb_debugfs.c | 96 musb_readb(musb->mregs, musb_regmap[i].offset)); in musb_regdump_show() 100 musb_readw(musb->mregs, musb_regmap[i].offset)); in musb_regdump_show() 104 musb_readl(musb->mregs, musb_regmap[i].offset)); in musb_regdump_show() 121 test = musb_readb(musb->mregs, MUSB_TESTMODE); in musb_test_mode_show() 172 test = musb_readb(musb->mregs, MUSB_TESTMODE); in musb_test_mode_write() 216 musb_writeb(musb->mregs, MUSB_TESTMODE, test); in musb_test_mode_write() 243 reg = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_softconnect_show() 281 reg = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_softconnect_write() 283 musb_writeb(musb->mregs, MUSB_DEVCTL, reg); in musb_softconnect_write() 298 reg = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_softconnect_write() [all …]
|
D | sunxi.c | 105 devctl = readb(musb->mregs + SUNXI_MUSB_DEVCTL); in sunxi_musb_work() 117 writeb(devctl, musb->mregs + SUNXI_MUSB_DEVCTL); in sunxi_musb_work() 174 musb->int_usb = readb(musb->mregs + SUNXI_MUSB_INTRUSB); in sunxi_musb_interrupt() 176 writeb(musb->int_usb, musb->mregs + SUNXI_MUSB_INTRUSB); in sunxi_musb_interrupt() 180 musb_ep_select(musb->mregs, 0); in sunxi_musb_interrupt() 181 musb_writeb(musb->mregs, MUSB_FADDR, 0); in sunxi_musb_interrupt() 184 musb->int_tx = readw(musb->mregs + SUNXI_MUSB_INTRTX); in sunxi_musb_interrupt() 186 writew(musb->int_tx, musb->mregs + SUNXI_MUSB_INTRTX); in sunxi_musb_interrupt() 188 musb->int_rx = readw(musb->mregs + SUNXI_MUSB_INTRRX); in sunxi_musb_interrupt() 190 writew(musb->int_rx, musb->mregs + SUNXI_MUSB_INTRRX); in sunxi_musb_interrupt() [all …]
|
D | ux500.c | 43 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in ux500_musb_set_vbus() 49 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in ux500_musb_set_vbus() 54 while (musb_readb(musb->mregs, MUSB_DEVCTL) & 0x80) { in ux500_musb_set_vbus() 78 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in ux500_musb_set_vbus() 91 musb_readb(musb->mregs, MUSB_DEVCTL)); in ux500_musb_set_vbus() 132 musb->int_usb = musb_readb(musb->mregs, MUSB_INTRUSB); in ux500_musb_interrupt() 133 musb->int_tx = musb_readw(musb->mregs, MUSB_INTRTX); in ux500_musb_interrupt() 134 musb->int_rx = musb_readw(musb->mregs, MUSB_INTRRX); in ux500_musb_interrupt()
|
D | davinci.c | 189 void __iomem *mregs = musb->mregs; in otg_timer() local 196 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() 229 musb_writeb(mregs, MUSB_DEVCTL, in otg_timer() 231 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() 292 void __iomem *mregs = musb->mregs; in davinci_musb_interrupt() local 293 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in davinci_musb_interrupt() 369 musb->mregs += DAVINCI_BASE_OFFSET; in davinci_musb_init() 448 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in davinci_musb_exit()
|
D | da8xx.c | 125 void __iomem *mregs = musb->mregs; in otg_timer() local 133 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() 141 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in otg_timer() 143 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in otg_timer() 180 musb_writeb(mregs, MUSB_DEVCTL, devctl | MUSB_DEVCTL_SESSION); in otg_timer() 181 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() 259 void __iomem *mregs = musb->mregs; in da8xx_musb_interrupt() local 260 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in da8xx_musb_interrupt() 361 musb->mregs += DA8XX_MENTOR_CORE_OFFSET; in da8xx_musb_init()
|
D | am35x.c | 123 void __iomem *mregs = musb->mregs; in otg_timer() local 131 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() 139 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in otg_timer() 141 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in otg_timer() 156 devctl = musb_readb(mregs, MUSB_DEVCTL); in otg_timer() 243 void __iomem *mregs = musb->mregs; in am35x_musb_interrupt() local 244 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in am35x_musb_interrupt() 336 musb->mregs += USB_MENTOR_CORE_OFFSET; in am35x_musb_init()
|
D | musb_gadget.c | 411 u8 __iomem *mbase = musb->mregs; in musb_g_tx() 803 void __iomem *mbase = musb->mregs; in musb_g_rx() 937 mbase = musb->mregs; in musb_gadget_enable() 1107 musb_ep_select(musb->mregs, epnum); in musb_gadget_disable() 1112 musb_writew(musb->mregs, MUSB_INTRTXE, musb->intrtxe); in musb_gadget_disable() 1116 musb_writew(musb->mregs, MUSB_INTRRXE, musb->intrrxe); in musb_gadget_disable() 1183 musb_ep_select(musb->mregs, req->epnum); in musb_ep_restart() 1310 musb_ep_select(musb->mregs, musb_ep->current_epnum); in musb_gadget_dequeue() 1349 mbase = musb->mregs; in musb_gadget_set_halt() 1442 void __iomem *mbase = musb->mregs; in musb_gadget_fifo_status() [all …]
|
D | musb_virthub.c | 31 power = musb_readb(musb->mregs, MUSB_POWER); in musb_host_finish_resume() 34 musb_writeb(musb->mregs, MUSB_POWER, power); in musb_host_finish_resume() 55 void __iomem *mbase = musb->mregs; in musb_port_suspend() 124 void __iomem *mbase = musb->mregs; in musb_port_reset() 410 musb_writeb(musb->mregs, MUSB_DEVCTL, in musb_hub_control() 420 musb_writeb(musb->mregs, MUSB_TESTMODE, temp); in musb_hub_control()
|
D | musb_dsps.c | 210 void __iomem *mregs = musb->mregs; in dsps_check_status() local 224 devctl = musb_readb(mregs, MUSB_DEVCTL); in dsps_check_status() 238 musb_writeb(musb->mregs, MUSB_DEVCTL, 0); in dsps_check_status() 253 musb_writeb(mregs, MUSB_DEVCTL, in dsps_check_status() 340 void __iomem *mregs = musb->mregs; in dsps_interrupt() local 341 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in dsps_interrupt() 476 val = musb_readb(musb->mregs, MUSB_BABBLE_CTL); in dsps_musb_init() 480 musb_writeb(musb->mregs, MUSB_BABBLE_CTL, val); in dsps_musb_init() 553 babble_ctl = musb_readb(musb->mregs, MUSB_BABBLE_CTL); in dsps_sw_babble_control() 570 babble_ctl = musb_readb(musb->mregs, MUSB_BABBLE_CTL); in dsps_sw_babble_control() [all …]
|
D | musb_core.c | 443 musb_ep_select(musb->mregs, 0); in musb_load_testpacket() 488 void __iomem *mbase = musb->mregs; in musb_hnp_stop() 591 void __iomem *mbase = musb->mregs; in musb_handle_intr_sessreq() 649 void __iomem *mbase = musb->mregs; in musb_handle_intr_vbuserr() 754 musb_writew(musb->mregs, MUSB_INTRTXE, musb->intrtxe); in musb_handle_intr_connect() 756 musb_writew(musb->mregs, MUSB_INTRRXE, musb->intrrxe); in musb_handle_intr_connect() 757 musb_writeb(musb->mregs, MUSB_INTRUSBE, 0xf7); in musb_handle_intr_connect() 976 void __iomem *mbase = musb->mregs; in musb_stage0_irq() 1017 void __iomem *mbase = musb->mregs; in musb_disable_interrupts() 1035 void __iomem *regs = musb->mregs; in musb_enable_interrupts() [all …]
|
D | jz4740.c | 32 musb->int_usb = musb_readb(musb->mregs, MUSB_INTRUSB); in jz4740_musb_interrupt() 33 musb->int_tx = musb_readw(musb->mregs, MUSB_INTRTX); in jz4740_musb_interrupt() 34 musb->int_rx = musb_readw(musb->mregs, MUSB_INTRRX); in jz4740_musb_interrupt()
|
D | musb_gadget_ep0.c | 54 void __iomem *mbase = musb->mregs; in service_tx_status_request() 185 void __iomem *mbase = musb->mregs; in musb_try_b_hnp_enable() 210 void __iomem *mbase = musb->mregs; in service_zero_data_request() 511 musb_ep_select(musb->mregs, 0); in ep0_rxstate() 568 musb_ep_select(musb->mregs, 0); in ep0_txstate() 649 void __iomem *mbase = musb->mregs; in musb_g_ep0_irq() 956 musb_ep_select(musb->mregs, 0); in musb_g_ep0_queue() 1008 base = musb->mregs; in musb_g_ep0_halt()
|
D | cppi_dma.c | 354 void __iomem *base = c->controller->mregs; in cppi_dump_rx() 384 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 | 103 (musb_readb((_x)->mregs, MUSB_DEVCTL)&MUSB_DEVCTL_HM) 316 void __iomem *mregs; member 446 void __iomem *mbase = musb->mregs; in musb_read_fifosize()
|
D | cppi_dma.h | 111 void __iomem *mregs; /* Mentor regs */ member
|
D | musb_cppi41.c | 82 musb_ep_select(musb->mregs, hw_ep->epnum); in update_rx_toggle() 107 musb_ep_select(musb->mregs, hw_ep->epnum); in musb_is_tx_fifo_empty() 139 musb_ep_select(musb->mregs, hw_ep->epnum); in cppi41_trans_done() 177 musb_ep_select(musb->mregs, hw_ep->epnum); in cppi41_trans_done()
|
D | tusb6010.c | 563 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in tusb_musb_set_vbus() 610 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in tusb_musb_set_vbus() 614 musb_readb(musb->mregs, MUSB_DEVCTL), in tusb_musb_set_vbus() 782 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in tusb_otg_ints() 1127 musb->mregs += TUSB_BASE_OFFSET; in tusb_musb_init()
|
D | musb_host.c | 199 void __iomem *mbase = musb->mregs; in musb_start_urb() 569 musb_writeb(musb->mregs, MUSB_FADDR, qh->addr_reg); in musb_rx_reinit() 694 void __iomem *mbase = musb->mregs; in musb_ep_program() 932 void __iomem *mbase = musb->mregs; in musb_bulk_nak_timeout() 1085 void __iomem *mbase = musb->mregs; in musb_h_ep0_irq() 1233 void __iomem *mbase = musb->mregs; in musb_host_tx() 1772 void __iomem *mbase = musb->mregs; in musb_host_rx() 2341 void __iomem *regs = ep->musb->mregs; in musb_cleanup_urb() 2503 return musb_readw(musb->mregs, MUSB_FRAME); in musb_h_get_frame_number() 2545 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_bus_suspend()
|
D | tusb6010_omap.c | 106 void __iomem *mbase = musb->mregs; in tusb_omap_dma_cb() 189 void __iomem *mbase = musb->mregs; in tusb_omap_dma_program()
|
/Linux-v4.19/Documentation/driver-api/usb/ |
D | writing_musb_glue_layer.rst | 355 musb->int_usb = musb_readb(musb->mregs, MUSB_INTRUSB); 356 musb->int_tx = musb_readw(musb->mregs, MUSB_INTRTX); 357 musb->int_rx = musb_readw(musb->mregs, MUSB_INTRRX); 651 musb->int_usb = musb_readb(musb->mregs, MUSB_INTRUSB); 652 musb->int_tx = musb_readw(musb->mregs, MUSB_INTRTX); 653 musb->int_rx = musb_readw(musb->mregs, MUSB_INTRRX);
|