/Linux-v5.10/drivers/usb/mtu3/ |
D | mtu3_qmu.c | 73 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 …]
|
D | mtu3_core.c | 156 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 …]
|
D | mtu3_gadget_ep0.c | 138 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 …]
|
D | mtu3_debugfs.c | 81 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()
|
/Linux-v5.10/drivers/usb/musb/ |
D | musbhsdma.c | 18 #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 …]
|
D | musb_virthub.c | 55 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 …]
|
D | musb_gadget_ep0.c | 54 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 …]
|
D | musb_dsps.c | 972 void __iomem *mbase; in dsps_suspend() local 987 mbase = musb->ctrl_base; in dsps_suspend() 988 glue->context.control = musb_readl(mbase, wrp->control); in dsps_suspend() 989 glue->context.epintr = musb_readl(mbase, wrp->epintr_set); in dsps_suspend() 990 glue->context.coreintr = musb_readl(mbase, wrp->coreintr_set); in dsps_suspend() 991 glue->context.phy_utmi = musb_readl(mbase, wrp->phy_utmi); in dsps_suspend() 992 glue->context.mode = musb_readl(mbase, wrp->mode); in dsps_suspend() 993 glue->context.tx_mode = musb_readl(mbase, wrp->tx_mode); in dsps_suspend() 994 glue->context.rx_mode = musb_readl(mbase, wrp->rx_mode); in dsps_suspend() 1006 void __iomem *mbase; in dsps_resume() local [all …]
|
D | musb_core.c | 225 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 …]
|
D | musb_gadget.c | 411 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() 792 void __iomem *mbase = musb->mregs; in musb_g_rx() local 803 musb_ep_select(mbase, epnum); in musb_g_rx() 889 musb_ep_select(mbase, epnum); in musb_g_rx() 913 void __iomem *mbase; in musb_gadget_enable() local 926 mbase = musb->mregs; in musb_gadget_enable() 966 musb_ep_select(mbase, epnum); in musb_gadget_enable() 980 musb_writew(mbase, MUSB_INTRTXE, musb->intrtxe); in musb_gadget_enable() [all …]
|
D | musb_host.c | 199 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 …]
|
D | musb_regs.h | 276 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()
|
D | musb_core.h | 165 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()
|
D | tusb6010_omap.c | 106 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()
|
D | musb_io.h | 30 void (*ep_select)(void __iomem *mbase, u8 epnum);
|
/Linux-v5.10/arch/powerpc/platforms/4xx/ |
D | pci.c | 1236 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 …]
|
/Linux-v5.10/drivers/edac/ |
D | i10nm_base.c | 27 (*(u32 *)((m)->mbase + 0x2080c + (i) * 0x4000 + (j) * 4)) 29 (*(u32 *)((m)->mbase + 0x20970 + (i) * 0x4000 + (j) * 4)) 64 void __iomem *mbase; in i10nm_get_all_munits() local 111 mbase = ioremap(base + off, size); in i10nm_get_all_munits() 112 if (!mbase) { in i10nm_get_all_munits() 118 d->imc[i].mbase = mbase; in i10nm_get_all_munits() 151 mcmtr = *(u32 *)(imc->mbase + 0x20ef8 + chan * 0x4000); in i10nm_check_ecc() 166 if (!imc->mbase) in i10nm_get_dimm_config()
|
D | skx_common.h | 61 void __iomem *mbase; /* for i10nm CPU */ member
|
/Linux-v5.10/arch/microblaze/pci/ |
D | indirect_pci.c | 149 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()
|
/Linux-v5.10/arch/powerpc/sysdev/ |
D | indirect_pci.c | 164 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()
|
/Linux-v5.10/drivers/net/ethernet/marvell/octeontx2/af/ |
D | mbox.c | 136 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()
|
/Linux-v5.10/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_vf.c | 93 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()
|
D | otx2_pf.c | 302 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() 393 dst_mdev->mbase = pf->mbox.bbuf_base; in otx2_forward_vf_mbox_msgs() 401 req_hdr = (struct mbox_hdr *)(dst_mdev->mbase + in otx2_forward_vf_mbox_msgs() 411 req_hdr = (struct mbox_hdr *)(src_mdev->mbase + in otx2_forward_vf_mbox_msgs() 423 dst_mdev->mbase = src_mdev->mbase; in otx2_forward_vf_mbox_msgs() 433 req_hdr = (struct mbox_hdr *)(src_mbox->dev[0].mbase + in otx2_forward_vf_mbox_msgs() 461 req_hdr = (struct mbox_hdr *)(mdev->mbase + mbox->rx_start); in otx2_pfvf_mbox_handler() [all …]
|
D | otx2_common.h | 372 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()
|
/Linux-v5.10/arch/powerpc/kernel/ |
D | fadump.c | 1108 u64 mbase, msize; in fadump_create_elfcore_headers() local 1110 mbase = crash_mrange_info.mem_ranges[i].base; in fadump_create_elfcore_headers() 1119 phdr->p_offset = mbase; in fadump_create_elfcore_headers() 1121 if (mbase == raddr) { in fadump_create_elfcore_headers() 1134 phdr->p_paddr = mbase; in fadump_create_elfcore_headers() 1135 phdr->p_vaddr = (unsigned long)__va(mbase); in fadump_create_elfcore_headers()
|