/linux-4.19.296/drivers/ntb/hw/intel/ |
D | ntb_hw_gen3.c | 147 void __iomem *mmio; in gen3_setup_b2b_mw() local 151 mmio = ndev->self_mmio; in gen3_setup_b2b_mw() 155 iowrite64(bar_addr, mmio + GEN3_IMBAR1XLMT_OFFSET); in gen3_setup_b2b_mw() 156 bar_addr = ioread64(mmio + GEN3_IMBAR1XLMT_OFFSET); in gen3_setup_b2b_mw() 160 iowrite64(bar_addr, mmio + GEN3_IMBAR2XLMT_OFFSET); in gen3_setup_b2b_mw() 161 bar_addr = ioread64(mmio + GEN3_IMBAR2XLMT_OFFSET); in gen3_setup_b2b_mw() 165 iowrite64(0, mmio + GEN3_IMBAR1XBASE_OFFSET); in gen3_setup_b2b_mw() 166 iowrite64(0, mmio + GEN3_IMBAR2XBASE_OFFSET); in gen3_setup_b2b_mw() 259 void __iomem *mmio; in ndev_ntb3_debugfs_read() local 266 mmio = ndev->self_mmio; in ndev_ntb3_debugfs_read() [all …]
|
D | ntb_hw_gen1.c | 204 void __iomem *mmio) in ndev_db_read() argument 209 return ndev->reg->db_ioread(mmio); in ndev_db_read() 213 void __iomem *mmio) in ndev_db_write() argument 221 ndev->reg->db_iowrite(db_bits, mmio); in ndev_db_write() 227 void __iomem *mmio) in ndev_db_set_mask() argument 240 ndev->reg->db_iowrite(ndev->db_mask, mmio); in ndev_db_set_mask() 248 void __iomem *mmio) in ndev_db_clear_mask() argument 261 ndev->reg->db_iowrite(ndev->db_mask, mmio); in ndev_db_clear_mask() 298 void __iomem *mmio) in ndev_spad_read() argument 306 return ioread32(mmio + (idx << 2)); in ndev_spad_read() [all …]
|
D | ntb_hw_intel.h | 104 u64 (*db_ioread)(void __iomem *mmio); 105 void (*db_iowrite)(u64 db_bits, void __iomem *mmio); 226 static inline u64 _ioread64(void __iomem *mmio) in _ioread64() argument 230 low = ioread32(mmio); in _ioread64() 231 high = ioread32(mmio + sizeof(u32)); in _ioread64() 242 static inline void _iowrite64(u64 val, void __iomem *mmio) in _iowrite64() argument 244 iowrite32(val, mmio); in _iowrite64() 245 iowrite32(val >> 32, mmio + sizeof(u32)); in _iowrite64()
|
D | ntb_hw_gen3.h | 94 static inline u64 gen3_db_ioread(void __iomem *mmio) in gen3_db_ioread() argument 96 return ioread64(mmio); in gen3_db_ioread() 99 static inline void gen3_db_iowrite(u64 bits, void __iomem *mmio) in gen3_db_iowrite() argument 101 iowrite64(bits, mmio); in gen3_db_iowrite()
|
D | ntb_hw_gen1.h | 150 u64 ndev_db_read(struct intel_ntb_dev *ndev, void __iomem *mmio); 152 void __iomem *mmio);
|
/linux-4.19.296/drivers/ntb/hw/amd/ |
D | ntb_hw_amd.c | 125 void __iomem *mmio, *peer_mmio; in amd_ntb_mw_set_trans() local 142 mmio = ndev->self_mmio; in amd_ntb_mw_set_trans() 163 write64(limit, mmio + limit_reg); in amd_ntb_mw_set_trans() 164 reg_val = read64(mmio + limit_reg); in amd_ntb_mw_set_trans() 166 write64(base_addr, mmio + limit_reg); in amd_ntb_mw_set_trans() 186 writel(limit, mmio + limit_reg); in amd_ntb_mw_set_trans() 187 reg_val = readl(mmio + limit_reg); in amd_ntb_mw_set_trans() 189 writel(base_addr, mmio + limit_reg); in amd_ntb_mw_set_trans() 255 void __iomem *mmio = ndev->self_mmio; in amd_ntb_link_enable() local 260 writel(ndev->int_mask, mmio + AMD_INTMASK_OFFSET); in amd_ntb_link_enable() [all …]
|
D | ntb_hw_amd.h | 70 static inline u64 _read64(void __iomem *mmio) in _read64() argument 74 low = readl(mmio); in _read64() 75 high = readl(mmio + sizeof(u32)); in _read64() 86 static inline void _write64(u64 val, void __iomem *mmio) in _write64() argument 88 writel(val, mmio); in _write64() 89 writel(val >> 32, mmio + sizeof(u32)); in _write64()
|
/linux-4.19.296/virt/kvm/arm/ |
D | mmio.c | 107 if (!run->mmio.is_write) { in kvm_handle_mmio_return() 108 len = run->mmio.len; in kvm_handle_mmio_return() 112 data = kvm_mmio_read_buf(run->mmio.data, len); in kvm_handle_mmio_return() 123 trace_kvm_mmio(KVM_TRACE_MMIO_READ, len, run->mmio.phys_addr, in kvm_handle_mmio_return() 212 run->mmio.is_write = is_write; in io_mem_abort() 213 run->mmio.phys_addr = fault_ipa; in io_mem_abort() 214 run->mmio.len = len; in io_mem_abort() 220 memcpy(run->mmio.data, data_buf, len); in io_mem_abort() 227 memcpy(run->mmio.data, data_buf, len); in io_mem_abort()
|
/linux-4.19.296/drivers/misc/mic/host/ |
D | mic_x100.c | 48 mic_mmio_write(&mdev->mmio, val, in mic_x100_write_spad() 65 u32 val = mic_mmio_read(&mdev->mmio, in mic_x100_read_spad() 81 struct mic_mw *mw = &mdev->mmio; in mic_x100_enable_interrupts() 108 struct mic_mw *mw = &mdev->mmio; in mic_x100_disable_interrupts() 131 struct mic_mw *mw = &mdev->mmio; in mic_x100_send_sbox_intr() 155 mic_mmio_write(&mdev->mmio, 0, in mic_x100_send_rdmasr_intr() 185 u32 reg = mic_mmio_read(&mdev->mmio, sicr0); in mic_x100_ack_interrupt() 186 mic_mmio_write(&mdev->mmio, reg, sicr0); in mic_x100_ack_interrupt() 199 struct mic_mw *mw = &mdev->mmio; in mic_x100_intr_workarounds() 232 return mic_mmio_read(&mdev->mmio, in mic_x100_read_msi_to_src_map() [all …]
|
D | mic_main.c | 210 mdev->mmio.pa = pci_resource_start(pdev, mdev->ops->mmio_bar); in mic_probe() 211 mdev->mmio.len = pci_resource_len(pdev, mdev->ops->mmio_bar); in mic_probe() 212 mdev->mmio.va = pci_ioremap_bar(pdev, mdev->ops->mmio_bar); in mic_probe() 213 if (!mdev->mmio.va) { in mic_probe() 267 iounmap(mdev->mmio.va); in mic_probe() 302 iounmap(mdev->mmio.va); in mic_remove()
|
/linux-4.19.296/drivers/mux/ |
D | Makefile | 10 mux-mmio-objs := mmio.o 16 obj-$(CONFIG_MUX_MMIO) += mux-mmio.o
|
/linux-4.19.296/drivers/misc/mic/card/ |
D | mic_x100.c | 50 return mic_mmio_read(&mdev->mmio, in mic_read_spad() 62 struct mic_mw *mw = &mdev->mmio; in mic_send_intr() 255 mdev->mmio.pa = MIC_X100_MMIO_BASE; in mic_probe() 256 mdev->mmio.len = MIC_X100_MMIO_LEN; in mic_probe() 257 mdev->mmio.va = devm_ioremap(&pdev->dev, MIC_X100_MMIO_BASE, in mic_probe() 259 if (!mdev->mmio.va) { in mic_probe() 268 mdrv->mdev.mmio.va); in mic_probe()
|
D | mic_device.h | 62 struct mic_mw mmio; member
|
/linux-4.19.296/drivers/iio/dac/ |
D | stm32-dac-core.c | 60 void __iomem *mmio; in stm32_dac_probe() local 73 mmio = devm_ioremap_resource(dev, res); in stm32_dac_probe() 74 if (IS_ERR(mmio)) in stm32_dac_probe() 75 return PTR_ERR(mmio); in stm32_dac_probe() 77 regmap = devm_regmap_init_mmio(dev, mmio, &stm32_dac_regmap_cfg); in stm32_dac_probe()
|
/linux-4.19.296/drivers/virt/vboxguest/ |
D | vboxguest_linux.c | 266 resource_size_t io, io_len, mmio, mmio_len; in vbg_pci_probe() local 295 mmio = pci_resource_start(pci, 1); in vbg_pci_probe() 297 if (!mmio || !mmio_len) { in vbg_pci_probe() 302 if (devm_request_mem_region(dev, mmio, mmio_len, DEVICE_NAME) == NULL) { in vbg_pci_probe() 308 vmmdev = devm_ioremap(dev, mmio, mmio_len); in vbg_pci_probe() 311 &mmio, &mmio_len); in vbg_pci_probe() 325 gdev->mmio = vmmdev; in vbg_pci_probe() 383 &mmio, &mmio_len); in vbg_pci_probe()
|
/linux-4.19.296/drivers/memstick/host/ |
D | r592.c | 58 u32 value = readl(dev->mmio + address); in r592_read_reg() 68 writel(value, dev->mmio + address); in r592_write_reg() 74 u32 value = __raw_readl(dev->mmio + address); in r592_read_reg_raw_be() 84 __raw_writel(cpu_to_be32(value), dev->mmio + address); in r592_write_reg_raw_be() 91 u32 reg = readl(dev->mmio + address); in r592_set_reg_mask() 93 writel(reg | mask , dev->mmio + address); in r592_set_reg_mask() 100 u32 reg = readl(dev->mmio + address); in r592_clear_reg_mask() 103 writel(reg & ~mask, dev->mmio + address); in r592_clear_reg_mask() 762 dev->mmio = pci_ioremap_bar(pdev, 0); in r592_probe() 763 if (!dev->mmio) { in r592_probe() [all …]
|
/linux-4.19.296/drivers/gpio/ |
D | gpio-bt8xx.c | 62 void __iomem *mmio; member 72 #define bgwrite(dat, adr) writel((dat), bg->mmio+(adr)) 73 #define bgread(adr) readl(bg->mmio+(adr)) 204 bg->mmio = devm_ioremap(&dev->dev, pci_resource_start(dev, 0), 0x1000); in bt8xxgpio_probe() 205 if (!bg->mmio) { in bt8xxgpio_probe()
|
/linux-4.19.296/drivers/misc/genwqe/ |
D | card_base.c | 187 void __iomem *mmio; in genwqe_bus_reset() local 192 mmio = cd->mmio; in genwqe_bus_reset() 193 cd->mmio = NULL; in genwqe_bus_reset() 194 pci_iounmap(pci_dev, mmio); in genwqe_bus_reset() 227 cd->mmio = pci_iomap(pci_dev, 0, 0); in genwqe_bus_reset() 228 if (cd->mmio == NULL) { in genwqe_bus_reset() 997 readq(cd->mmio + IO_SLC_CFGREG_GFIR); in genwqe_health_thread() 1122 cd->mmio = pci_iomap(pci_dev, 0, 0); in genwqe_pci_setup() 1123 if (cd->mmio == NULL) { in genwqe_pci_setup() 1141 pci_iounmap(pci_dev, cd->mmio); in genwqe_pci_setup() [all …]
|
D | card_utils.c | 61 if (cd->mmio == NULL) in __genwqe_writeq() 67 __raw_writeq((__force u64)cpu_to_be64(val), cd->mmio + byte_offs); in __genwqe_writeq() 91 if (cd->mmio == NULL) in __genwqe_readq() 94 return be64_to_cpu((__force __be64)__raw_readq(cd->mmio + byte_offs)); in __genwqe_readq() 112 if (cd->mmio == NULL) in __genwqe_writel() 118 __raw_writel((__force u32)cpu_to_be32(val), cd->mmio + byte_offs); in __genwqe_writel() 134 if (cd->mmio == NULL) in __genwqe_readl() 137 return be32_to_cpu((__force __be32)__raw_readl(cd->mmio + byte_offs)); in __genwqe_readl()
|
/linux-4.19.296/drivers/rtc/ |
D | rtc-snvs.c | 282 void __iomem *mmio; in snvs_rtc_probe() local 298 mmio = devm_ioremap_resource(&pdev->dev, res); in snvs_rtc_probe() 299 if (IS_ERR(mmio)) in snvs_rtc_probe() 300 return PTR_ERR(mmio); in snvs_rtc_probe() 302 data->regmap = devm_regmap_init_mmio(&pdev->dev, mmio, &snvs_rtc_config); in snvs_rtc_probe()
|
/linux-4.19.296/drivers/misc/mic/bus/ |
D | scif_bus.h | 55 struct mic_mw *mmio; member 118 struct mic_mw *mmio, struct mic_mw *aper,
|
D | scif_bus.c | 143 struct mic_mw *mmio, struct mic_mw *aper, void *dp, in scif_register_device() argument 164 sdev->mmio = mmio; in scif_register_device()
|
/linux-4.19.296/drivers/pwm/ |
D | pwm-sti.c | 105 void __iomem *mmio; member 561 pc->mmio = devm_ioremap_resource(dev, res); in sti_pwm_probe() 562 if (IS_ERR(pc->mmio)) in sti_pwm_probe() 563 return PTR_ERR(pc->mmio); in sti_pwm_probe() 565 pc->regmap = devm_regmap_init_mmio(dev, pc->mmio, in sti_pwm_probe()
|
/linux-4.19.296/drivers/base/regmap/ |
D | Makefile | 14 obj-$(CONFIG_REGMAP_MMIO) += regmap-mmio.o
|
/linux-4.19.296/drivers/misc/mic/scif/ |
D | scif_nodeqp.c | 290 sdev->hw_ops->send_p2p_intr(sdev, scifdev->rdb, &scifdev->mmio); in scif_send_msg_intr() 396 num_mmio_pages = psdev->mmio->len >> PAGE_SHIFT; in scif_init_p2p_info() 402 p2p->ppi_sg[SCIF_PPI_MMIO] = scif_p2p_setsg(psdev->mmio->pa, in scif_init_p2p_info() 800 newdev->mmio.va = ioremap_nocache(msg->payload[1], sdev->mmio->len); in scif_node_add() 801 if (!newdev->mmio.va) { in scif_node_add() 843 iounmap(newdev->mmio.va); in scif_node_add() 844 newdev->mmio.va = NULL; in scif_node_add()
|