Home
last modified time | relevance | path

Searched refs:mbase (Results 1 – 25 of 31) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/usb/mtu3/
Dmtu3_core.c156 void __iomem *mbase = mtu->mac_base; in mtu3_intr_status_clear() local
159 mtu3_writel(mbase, U3D_EPISR, ~0x0); in mtu3_intr_status_clear()
161 mtu3_writel(mbase, U3D_COMMON_USB_INTR, ~0x0); in mtu3_intr_status_clear()
163 mtu3_writel(mbase, U3D_LTSSM_INTR, ~0x0); in mtu3_intr_status_clear()
165 mtu3_writel(mbase, U3D_DEV_LINK_INTR, ~0x0); in mtu3_intr_status_clear()
167 mtu3_writel(mbase, U3D_QISAR0, ~0x0); in mtu3_intr_status_clear()
183 void __iomem *mbase = mtu->mac_base; in mtu3_intr_enable() local
188 mtu3_writel(mbase, U3D_LV1IESR, value); in mtu3_intr_enable()
192 mtu3_writel(mbase, U3D_COMMON_USB_INTR_ENABLE, value); in mtu3_intr_enable()
198 mtu3_writel(mbase, U3D_LTSSM_INTR_ENABLE, value); in mtu3_intr_enable()
[all …]
Dmtu3_qmu.c73 static dma_addr_t read_txq_cur_addr(void __iomem *mbase, u8 epnum) in read_txq_cur_addr() argument
78 txcpr = mtu3_readl(mbase, USB_QMU_TQCPR(epnum)); in read_txq_cur_addr()
79 txhiar = mtu3_readl(mbase, USB_QMU_TQHIAR(epnum)); in read_txq_cur_addr()
84 static dma_addr_t read_rxq_cur_addr(void __iomem *mbase, u8 epnum) in read_rxq_cur_addr() argument
89 rxcpr = mtu3_readl(mbase, USB_QMU_RQCPR(epnum)); in read_rxq_cur_addr()
90 rxhiar = mtu3_readl(mbase, USB_QMU_RQHIAR(epnum)); in read_rxq_cur_addr()
95 static void write_txq_start_addr(void __iomem *mbase, u8 epnum, dma_addr_t dma) in write_txq_start_addr() argument
99 mtu3_writel(mbase, USB_QMU_TQSAR(epnum), in write_txq_start_addr()
101 tqhiar = mtu3_readl(mbase, USB_QMU_TQHIAR(epnum)); in write_txq_start_addr()
104 mtu3_writel(mbase, USB_QMU_TQHIAR(epnum), tqhiar); in write_txq_start_addr()
[all …]
Dmtu3_gadget_ep0.c138 void __iomem *mbase = mtu->mac_base; in ep0_stall_set() local
142 csr = mtu3_readl(mbase, U3D_EP0CSR) & EP0_W1C_BITS; in ep0_stall_set()
158 void __iomem *mbase = mtu->mac_base; in ep0_do_status_stage() local
161 value = mtu3_readl(mbase, U3D_EP0CSR) & EP0_W1C_BITS; in ep0_do_status_stage()
162 mtu3_writel(mbase, U3D_EP0CSR, value | EP0_SETUPPKTRDY | EP0_DATAEND); in ep0_do_status_stage()
276 void __iomem *mbase = mtu->mac_base; in handle_test_mode() local
312 readl_poll_timeout_atomic(mbase + U3D_EP0CSR, value, in handle_test_mode()
315 mtu3_writel(mbase, U3D_USB2_TEST_MODE, mtu->test_mode_nr); in handle_test_mode()
326 void __iomem *mbase = mtu->mac_base; in ep0_handle_feature_dev() local
347 lpc = mtu3_readl(mbase, U3D_LINK_POWER_CONTROL); in ep0_handle_feature_dev()
[all …]
Dmtu3_debugfs.c81 void __iomem *mbase = mtu->mac_base; in mtu3_link_state_show() local
84 mtu3_readl(mbase, U3D_USB20_OPSTATE), in mtu3_link_state_show()
85 LTSSM_STATE(mtu3_readl(mbase, U3D_LINK_STATE_MACHINE))); in mtu3_link_state_show()
/kernel/linux/linux-5.10/drivers/usb/musb/
Dmusbhsdma.c18 #define musb_read_hsdma_addr(mbase, bchannel) \ argument
19 musb_readl(mbase, \
22 #define musb_write_hsdma_addr(mbase, bchannel, addr) \ argument
23 musb_writel(mbase, \
27 #define musb_read_hsdma_count(mbase, bchannel) \ argument
28 musb_readl(mbase, \
31 #define musb_write_hsdma_count(mbase, bchannel, len) \ argument
32 musb_writel(mbase, \
150 void __iomem *mbase = controller->base; in configure_channel() local
172 musb_write_hsdma_addr(mbase, bchannel, dma_addr); in configure_channel()
[all …]
Dmusb_virthub.c55 void __iomem *mbase = musb->mregs; in musb_port_suspend() local
65 power = musb_readb(mbase, MUSB_POWER); in musb_port_suspend()
74 musb_writeb(mbase, MUSB_POWER, power); in musb_port_suspend()
77 power = musb_readb(mbase, MUSB_POWER); in musb_port_suspend()
79 power = musb_readb(mbase, MUSB_POWER); in musb_port_suspend()
110 musb_writeb(mbase, MUSB_POWER, power); in musb_port_suspend()
124 void __iomem *mbase = musb->mregs; in musb_port_reset() local
138 power = musb_readb(mbase, MUSB_POWER); in musb_port_reset()
157 musb_writeb(mbase, MUSB_POWER, in musb_port_reset()
167 musb_writeb(mbase, MUSB_POWER, in musb_port_reset()
[all …]
Dmusb_gadget_ep0.c54 void __iomem *mbase = musb->mregs; in service_tx_status_request() local
109 musb_ep_select(mbase, epnum); in service_tx_status_request()
116 musb_ep_select(mbase, 0); in service_tx_status_request()
185 void __iomem *mbase = musb->mregs; in musb_try_b_hnp_enable() local
189 devctl = musb_readb(mbase, MUSB_DEVCTL); in musb_try_b_hnp_enable()
190 musb_writeb(mbase, MUSB_DEVCTL, devctl | MUSB_DEVCTL_HR); in musb_try_b_hnp_enable()
210 void __iomem *mbase = musb->mregs; in service_zero_data_request() local
264 musb_ep_select(mbase, epnum); in service_zero_data_request()
290 musb_ep_select(mbase, 0); in service_zero_data_request()
419 musb_ep_select(mbase, epnum); in service_zero_data_request()
[all …]
Dmusb_dsps.c973 void __iomem *mbase; in dsps_suspend() local
988 mbase = musb->ctrl_base; in dsps_suspend()
989 glue->context.control = musb_readl(mbase, wrp->control); in dsps_suspend()
990 glue->context.epintr = musb_readl(mbase, wrp->epintr_set); in dsps_suspend()
991 glue->context.coreintr = musb_readl(mbase, wrp->coreintr_set); in dsps_suspend()
992 glue->context.phy_utmi = musb_readl(mbase, wrp->phy_utmi); in dsps_suspend()
993 glue->context.mode = musb_readl(mbase, wrp->mode); in dsps_suspend()
994 glue->context.tx_mode = musb_readl(mbase, wrp->tx_mode); in dsps_suspend()
995 glue->context.rx_mode = musb_readl(mbase, wrp->rx_mode); in dsps_suspend()
1007 void __iomem *mbase; in dsps_resume() local
[all …]
Dmusb_core.c225 static void musb_flat_ep_select(void __iomem *mbase, u8 epnum) in musb_flat_ep_select() argument
235 static void musb_indexed_ep_select(void __iomem *mbase, u8 epnum) in musb_indexed_ep_select() argument
237 musb_writeb(mbase, MUSB_INDEX, epnum); in musb_indexed_ep_select()
629 void __iomem *mbase = musb->mregs; in musb_hnp_stop() local
647 reg = musb_readb(mbase, MUSB_POWER); in musb_hnp_stop()
649 musb_writeb(mbase, MUSB_POWER, reg); in musb_hnp_stop()
732 void __iomem *mbase = musb->mregs; in musb_handle_intr_sessreq() local
750 musb_writeb(mbase, MUSB_DEVCTL, MUSB_DEVCTL_SESSION); in musb_handle_intr_sessreq()
790 void __iomem *mbase = musb->mregs; in musb_handle_intr_vbuserr() local
795 musb_writeb(mbase, MUSB_DEVCTL, devctl); in musb_handle_intr_vbuserr()
[all …]
Dmusb_gadget.c411 u8 __iomem *mbase = musb->mregs; in musb_g_tx() local
416 musb_ep_select(mbase, epnum); in musb_g_tx()
500 musb_ep_select(mbase, epnum); in musb_g_tx()
795 void __iomem *mbase = musb->mregs; in musb_g_rx() local
806 musb_ep_select(mbase, epnum); in musb_g_rx()
892 musb_ep_select(mbase, epnum); in musb_g_rx()
916 void __iomem *mbase; in musb_gadget_enable() local
929 mbase = musb->mregs; in musb_gadget_enable()
969 musb_ep_select(mbase, epnum); in musb_gadget_enable()
983 musb_writew(mbase, MUSB_INTRTXE, musb->intrtxe); in musb_gadget_enable()
[all …]
Dmusb_host.c199 void __iomem *mbase = musb->mregs; in musb_start_urb() local
260 musb_writeb(mbase, MUSB_INTRUSBE, 0xff); in musb_start_urb()
676 void __iomem *mbase = musb->mregs; in musb_ep_program() local
692 musb_ep_select(mbase, epnum); in musb_ep_program()
729 musb_writew(mbase, MUSB_INTRTXE, int_txe & ~(1 << epnum)); in musb_ep_program()
777 musb_writeb(mbase, MUSB_FADDR, qh->addr_reg); in musb_ep_program()
836 musb_writew(mbase, MUSB_INTRTXE, int_txe); in musb_ep_program()
904 void __iomem *mbase = musb->mregs; in musb_bulk_nak_timeout() local
910 musb_ep_select(mbase, ep->epnum); in musb_bulk_nak_timeout()
1059 void __iomem *mbase = musb->mregs; in musb_h_ep0_irq() local
[all …]
Dmusb_regs.h276 static inline u8 musb_read_configdata(void __iomem *mbase) in musb_read_configdata() argument
278 musb_writeb(mbase, MUSB_INDEX, 0); in musb_read_configdata()
279 return musb_readb(mbase, 0x10 + MUSB_CONFIGDATA); in musb_read_configdata()
Dmusb_core.h165 void (*ep_select)(void __iomem *mbase, u8 epnum);
455 void __iomem *mbase = musb->mregs; in musb_read_fifosize() local
459 reg = musb_readb(mbase, musb->io.ep_offset(epnum, MUSB_FIFOSIZE)); in musb_read_fifosize()
Dtusb6010_omap.c106 void __iomem *mbase = musb->mregs; in tusb_omap_dma_cb() local
170 musb_ep_select(mbase, chdat->epnum); in tusb_omap_dma_cb()
189 void __iomem *mbase = musb->mregs; in tusb_omap_dma_program() local
326 musb_ep_select(mbase, chdat->epnum); in tusb_omap_dma_program()
Dmusb_io.h30 void (*ep_select)(void __iomem *mbase, u8 epnum);
/kernel/linux/linux-5.10/arch/powerpc/platforms/4xx/
Dpci.c1236 void __iomem *mbase; in ppc460sx_pciex_check_link() local
1241 mbase = ioremap(port->cfg_space.start + 0x10000000, 0x1000); in ppc460sx_pciex_check_link()
1242 if (mbase == NULL) { in ppc460sx_pciex_check_link()
1248 while (attempt && (0 == (in_le32(mbase + PECFG_460SX_DLLSTA) in ppc460sx_pciex_check_link()
1255 iounmap(mbase); in ppc460sx_pciex_check_link()
1374 void __iomem *mbase = ioremap(port->cfg_space.start + 0x10000000, in ppc_476fpe_pciex_check_link() local
1379 if (mbase == NULL) { in ppc_476fpe_pciex_check_link()
1386 val = in_le32(mbase + PECFG_TLDLP); in ppc_476fpe_pciex_check_link()
1399 iounmap(mbase); in ppc_476fpe_pciex_check_link()
1710 void __iomem *mbase, in ppc4xx_setup_one_pciex_POM() argument
[all …]
/kernel/linux/linux-5.10/drivers/edac/
Di10nm_base.c28 readl((m)->mbase + 0x2080c + (i) * 0x4000 + (j) * 4)
30 readl((m)->mbase + 0x20970 + (i) * 0x4000)
32 readl((m)->mbase + 0x20ef8 + (i) * 0x4000)
66 void __iomem *mbase; in i10nm_get_all_munits() local
113 mbase = ioremap(base + off, size); in i10nm_get_all_munits()
114 if (!mbase) { in i10nm_get_all_munits()
120 d->imc[i].mbase = mbase; in i10nm_get_all_munits()
168 if (!imc->mbase) in i10nm_get_dimm_config()
Dskx_common.h61 void __iomem *mbase; /* for i10nm CPU */ member
/kernel/linux/linux-5.10/arch/microblaze/pci/
Dindirect_pci.c149 void __iomem *mbase; in setup_indirect_pci() local
151 mbase = ioremap(base, PAGE_SIZE); in setup_indirect_pci()
152 hose->cfg_addr = mbase + (cfg_addr & ~PAGE_MASK); in setup_indirect_pci()
154 mbase = ioremap(cfg_data & PAGE_MASK, PAGE_SIZE); in setup_indirect_pci()
155 hose->cfg_data = mbase + (cfg_data & ~PAGE_MASK); in setup_indirect_pci()
/kernel/linux/linux-5.10/arch/powerpc/sysdev/
Dindirect_pci.c164 void __iomem *mbase; in setup_indirect_pci() local
166 mbase = ioremap(base, PAGE_SIZE); in setup_indirect_pci()
167 hose->cfg_addr = mbase + (cfg_addr & ~PAGE_MASK); in setup_indirect_pci()
169 mbase = ioremap(cfg_data & PAGE_MASK, PAGE_SIZE); in setup_indirect_pci()
170 hose->cfg_data = mbase + (cfg_data & ~PAGE_MASK); in setup_indirect_pci()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/
Dmbox.c136 mdev->mbase = mbox->hwbase + (devid * MBOX_SIZE); in otx2_mbox_init()
188 if (mdev->mbase != hw_mbase) in otx2_mbox_msg_send()
190 mdev->mbase + mbox->tx_start + msgs_offset, in otx2_mbox_msg_send()
243 msghdr = mdev->mbase + mbox->tx_start + msgs_offset + mdev->msg_size; in otx2_mbox_alloc_msg_rsp()
273 struct mbox_msghdr *pmsg = mdev->mbase + imsg; in otx2_mbox_get_rsp()
274 struct mbox_msghdr *prsp = mdev->mbase + irsp; in otx2_mbox_get_rsp()
307 struct mbox_msghdr *preq = mdev->mbase + ireq; in otx2_mbox_check_rsp_msgs()
308 struct mbox_msghdr *prsp = mdev->mbase + irsp; in otx2_mbox_check_rsp_msgs()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_vf.c93 rsp_hdr = (struct mbox_hdr *)(mdev->mbase + mbox->rx_start); in otx2vf_vfaf_mbox_handler()
99 msg = (struct mbox_msghdr *)(mdev->mbase + offset); in otx2vf_vfaf_mbox_handler()
157 rsp_hdr = (struct mbox_hdr *)(mdev->mbase + mbox->rx_start); in otx2vf_vfaf_mbox_up_handler()
164 msg = (struct mbox_msghdr *)(mdev->mbase + offset); in otx2vf_vfaf_mbox_up_handler()
192 hdr = (struct mbox_hdr *)(mdev->mbase + mbox->rx_start); in otx2vf_vfaf_mbox_intr_handler()
205 hdr = (struct mbox_hdr *)(mdev->mbase + mbox->rx_start); in otx2vf_vfaf_mbox_intr_handler()
Dotx2_pf.c302 hdr = mdev->mbase + mbox->rx_start; in otx2_queue_work()
325 hdr = mdev->mbase + mbox->rx_start; in otx2_queue_work()
353 src_mdev->mbase = bbuf_base; in otx2_forward_msg_pfvf()
385 dst_mdev->mbase = src_mdev->mbase; in otx2_forward_vf_mbox_msgs()
398 dst_mdev->mbase = pf->mbox.bbuf_base; in otx2_forward_vf_mbox_msgs()
406 req_hdr = (struct mbox_hdr *)(dst_mdev->mbase + in otx2_forward_vf_mbox_msgs()
416 req_hdr = (struct mbox_hdr *)(src_mdev->mbase + in otx2_forward_vf_mbox_msgs()
428 dst_mdev->mbase = src_mdev->mbase; in otx2_forward_vf_mbox_msgs()
438 req_hdr = (struct mbox_hdr *)(src_mbox->dev[0].mbase + in otx2_forward_vf_mbox_msgs()
466 req_hdr = (struct mbox_hdr *)(mdev->mbase + mbox->rx_start); in otx2_pfvf_mbox_handler()
[all …]
Dotx2_common.h372 mdev->mbase = mbox->bbuf_base; in otx2_mbox_bbuf_init()
376 mdev->mbase = mbox->bbuf_base; in otx2_mbox_bbuf_init()
388 if (mdev->mbase == hw_mbase) in otx2_sync_mbox_bbuf()
398 memcpy(mdev->mbase + mbox->rx_start, in otx2_sync_mbox_bbuf()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dfadump.c1112 u64 mbase, msize; in fadump_create_elfcore_headers() local
1114 mbase = crash_mrange_info.mem_ranges[i].base; in fadump_create_elfcore_headers()
1123 phdr->p_offset = mbase; in fadump_create_elfcore_headers()
1125 if (mbase == raddr) { in fadump_create_elfcore_headers()
1138 phdr->p_paddr = mbase; in fadump_create_elfcore_headers()
1139 phdr->p_vaddr = (unsigned long)__va(mbase); in fadump_create_elfcore_headers()

12