Home
last modified time | relevance | path

Searched refs:mregs (Results 1 – 25 of 26) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/sun/
Dsunqe.c88 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 …]
Dsunqe.h336 void __iomem *mregs; /* Per-channel MACE Registers */ member
/kernel/linux/linux-5.10/drivers/usb/musb/
Dmusb_regs.h285 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 …]
Domap2430.c46 l = musb_readl(musb->mregs, OTG_FORCESTDBY); in omap2430_low_level_exit()
48 musb_writel(musb->mregs, OTG_FORCESTDBY, l); in omap2430_low_level_exit()
55 l = musb_readl(musb->mregs, OTG_FORCESTDBY); in omap2430_low_level_init()
57 musb_writel(musb->mregs, OTG_FORCESTDBY, l); in omap2430_low_level_init()
96 musb_readb(musb->mregs, MUSB_DEVCTL)); in omap_musb_set_mailbox()
173 musb->int_usb = musb_readb(musb->mregs, MUSB_INTRUSB); in omap2430_musb_interrupt()
174 musb->int_tx = musb_readw(musb->mregs, MUSB_INTRTX); in omap2430_musb_interrupt()
175 musb->int_rx = musb_readw(musb->mregs, MUSB_INTRRX); in omap2430_musb_interrupt()
225 l = musb_readl(musb->mregs, OTG_INTERFSEL); in omap2430_musb_init()
235 musb_writel(musb->mregs, OTG_INTERFSEL, l); in omap2430_musb_init()
[all …]
Dmusb_debugfs.c96 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()
177 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 …]
Dmediatek.c121 u8 devctl = readb(musb->mregs + MUSB_DEVCTL); in mtk_otg_switch_set()
136 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in mtk_otg_switch_set()
144 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in mtk_otg_switch_set()
154 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in mtk_otg_switch_set()
207 musb->int_usb = musb_clearb(musb->mregs, MUSB_INTRUSB); in generic_interrupt()
208 musb->int_rx = musb_clearw(musb->mregs, MUSB_INTRRX); in generic_interrupt()
209 musb->int_tx = musb_clearw(musb->mregs, MUSB_INTRTX); in generic_interrupt()
213 musb_ep_select(musb->mregs, 0); in generic_interrupt()
214 musb_writeb(musb->mregs, MUSB_FADDR, 0); in generic_interrupt()
231 l1_ints = musb_readl(musb->mregs, USB_L1INTS) & in mtk_musb_interrupt()
[all …]
Dsunxi.c105 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 …]
Dux500.c43 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()
Ddavinci.c189 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()
Dda8xx.c125 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()
Dmusb_gadget.c411 u8 __iomem *mbase = musb->mregs; in musb_g_tx()
795 void __iomem *mbase = musb->mregs; in musb_g_rx()
929 mbase = musb->mregs; in musb_gadget_enable()
1098 musb_ep_select(musb->mregs, epnum); in musb_gadget_disable()
1103 musb_writew(musb->mregs, MUSB_INTRTXE, musb->intrtxe); in musb_gadget_disable()
1107 musb_writew(musb->mregs, MUSB_INTRRXE, musb->intrrxe); in musb_gadget_disable()
1174 musb_ep_select(musb->mregs, req->epnum); in musb_ep_restart()
1303 musb_ep_select(musb->mregs, musb_ep->current_epnum); in musb_gadget_dequeue()
1342 mbase = musb->mregs; in musb_gadget_set_halt()
1435 void __iomem *mbase = musb->mregs; in musb_gadget_fifo_status()
[all …]
Dam35x.c123 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()
Dmusb_core.c458 return musb_readb(musb->mregs, MUSB_DEVCTL); in musb_read_devctl()
490 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in musb_set_host()
537 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in musb_set_peripheral()
584 musb_ep_select(musb->mregs, 0); in musb_load_testpacket()
629 void __iomem *mbase = musb->mregs; in musb_hnp_stop()
732 void __iomem *mbase = musb->mregs; in musb_handle_intr_sessreq()
790 void __iomem *mbase = musb->mregs; in musb_handle_intr_vbuserr()
895 musb_writew(musb->mregs, MUSB_INTRTXE, musb->intrtxe); in musb_handle_intr_connect()
897 musb_writew(musb->mregs, MUSB_INTRRXE, musb->intrrxe); in musb_handle_intr_connect()
898 musb_writeb(musb->mregs, MUSB_INTRUSBE, 0xf7); in musb_handle_intr_connect()
[all …]
Dmusb_virthub.c31 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()
Dmusb_dsps.c210 void __iomem *mregs = musb->mregs; in dsps_check_status() local
224 devctl = musb_readb(mregs, MUSB_DEVCTL); in dsps_check_status()
243 musb_writeb(musb->mregs, MUSB_DEVCTL, 0); in dsps_check_status()
262 musb_writeb(mregs, MUSB_DEVCTL, in dsps_check_status()
349 void __iomem *mregs = musb->mregs; in dsps_interrupt() local
350 u8 devctl = musb_readb(mregs, MUSB_DEVCTL); in dsps_interrupt()
485 val = musb_readb(musb->mregs, MUSB_BABBLE_CTL); in dsps_musb_init()
489 musb_writeb(musb->mregs, MUSB_BABBLE_CTL, val); in dsps_musb_init()
562 babble_ctl = musb_readb(musb->mregs, MUSB_BABBLE_CTL); in dsps_sw_babble_control()
579 babble_ctl = musb_readb(musb->mregs, MUSB_BABBLE_CTL); in dsps_sw_babble_control()
[all …]
Dmusb_gadget_ep0.c54 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()
507 musb_ep_select(musb->mregs, 0); in ep0_rxstate()
564 musb_ep_select(musb->mregs, 0); in ep0_txstate()
645 void __iomem *mbase = musb->mregs; in musb_g_ep0_irq()
952 musb_ep_select(musb->mregs, 0); in musb_g_ep0_queue()
1004 base = musb->mregs; in musb_g_ep0_halt()
Djz4740.c38 musb->int_usb = musb_readb(musb->mregs, MUSB_INTRUSB); in jz4740_musb_interrupt()
39 musb->int_tx = musb_readw(musb->mregs, MUSB_INTRTX); in jz4740_musb_interrupt()
40 musb->int_rx = musb_readw(musb->mregs, MUSB_INTRRX); in jz4740_musb_interrupt()
Dcppi_dma.c354 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()
Dmusb_core.h104 (musb_readb((_x)->mregs, MUSB_DEVCTL)&MUSB_DEVCTL_HM)
325 void __iomem *mregs; member
455 void __iomem *mbase = musb->mregs; in musb_read_fifosize()
Dcppi_dma.h111 void __iomem *mregs; /* Mentor regs */ member
Dmusb_cppi41.c82 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()
Dtusb6010.c564 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in tusb_musb_set_vbus()
611 musb_writeb(musb->mregs, MUSB_DEVCTL, devctl); in tusb_musb_set_vbus()
615 musb_readb(musb->mregs, MUSB_DEVCTL), in tusb_musb_set_vbus()
783 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in tusb_otg_ints()
1133 musb->mregs += TUSB_BASE_OFFSET; in tusb_musb_init()
Dmusb_host.c199 void __iomem *mbase = musb->mregs; in musb_start_urb()
551 musb_writeb(musb->mregs, MUSB_FADDR, qh->addr_reg); in musb_rx_reinit()
676 void __iomem *mbase = musb->mregs; in musb_ep_program()
904 void __iomem *mbase = musb->mregs; in musb_bulk_nak_timeout()
1059 void __iomem *mbase = musb->mregs; in musb_h_ep0_irq()
1207 void __iomem *mbase = musb->mregs; in musb_host_tx()
1737 void __iomem *mbase = musb->mregs; in musb_host_rx()
2314 void __iomem *regs = ep->musb->mregs; in musb_cleanup_urb()
2476 return musb_readw(musb->mregs, MUSB_FRAME); in musb_h_get_frame_number()
2518 devctl = musb_readb(musb->mregs, MUSB_DEVCTL); in musb_bus_suspend()
Dtusb6010_omap.c106 void __iomem *mbase = musb->mregs; in tusb_omap_dma_cb()
189 void __iomem *mbase = musb->mregs; in tusb_omap_dma_program()
/kernel/linux/linux-5.10/drivers/usb/mtu3/
Dmtu3_debugfs.c128 struct mtu3_regset *mregs; in mtu3_debugfs_regset() local
130 mregs = devm_kzalloc(mtu->dev, sizeof(*mregs), GFP_KERNEL); in mtu3_debugfs_regset()
131 if (!mregs) in mtu3_debugfs_regset()
134 sprintf(mregs->name, "%s", name); in mtu3_debugfs_regset()
135 regset = &mregs->regset; in mtu3_debugfs_regset()
140 debugfs_create_regset32(mregs->name, 0444, parent, regset); in mtu3_debugfs_regset()

12