/openbmc/linux/drivers/dma/ti/ |
H A D | dma-crossbar.c | 39 void __iomem *iomem; member 52 static inline void ti_am335x_xbar_write(void __iomem *iomem, int event, u8 val) in ti_am335x_xbar_write() argument 60 writeb_relaxed(val, iomem + (63 - event % 4)); in ti_am335x_xbar_write() 62 writeb_relaxed(val, iomem + event); in ti_am335x_xbar_write() 73 ti_am335x_xbar_write(xbar->iomem, map->dma_line, 0); in ti_am335x_xbar_free() 121 ti_am335x_xbar_write(xbar->iomem, map->dma_line, map->mux_val); in ti_am335x_xbar_route_allocate() 137 void __iomem *iomem; in ti_am335x_xbar_probe() local 176 iomem = devm_platform_ioremap_resource(pdev, 0); in ti_am335x_xbar_probe() 177 if (IS_ERR(iomem)) in ti_am335x_xbar_probe() 178 return PTR_ERR(iomem); in ti_am335x_xbar_probe() [all …]
|
/openbmc/linux/drivers/dma/ |
H A D | stm32-dmamux.c | 40 void __iomem *iomem; member 54 static inline u32 stm32_dmamux_read(void __iomem *iomem, u32 reg) in stm32_dmamux_read() argument 56 return readl_relaxed(iomem + reg); in stm32_dmamux_read() 59 static inline void stm32_dmamux_write(void __iomem *iomem, u32 reg, u32 val) in stm32_dmamux_write() argument 61 writel_relaxed(val, iomem + reg); in stm32_dmamux_write() 73 stm32_dmamux_write(dmamux->iomem, STM32_DMAMUX_CCR(mux->chan_id), 0); in stm32_dmamux_free() 158 stm32_dmamux_write(dmamux->iomem, STM32_DMAMUX_CCR(mux->chan_id), in stm32_dmamux_route_allocate() 184 void __iomem *iomem; in stm32_dmamux_probe() local 242 iomem = devm_platform_ioremap_resource(pdev, 0); in stm32_dmamux_probe() 243 if (IS_ERR(iomem)) in stm32_dmamux_probe() [all …]
|
H A D | timb_dma.c | 616 struct resource *iomem; in td_probe() local 626 iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in td_probe() 627 if (!iomem) in td_probe() 634 if (!request_mem_region(iomem->start, resource_size(iomem), in td_probe() 647 td->membase = ioremap(iomem->start, resource_size(iomem)); in td_probe() 737 release_mem_region(iomem->start, resource_size(iomem)); in td_probe() 746 struct resource *iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in td_remove() local 754 release_mem_region(iomem->start, resource_size(iomem)); in td_remove()
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
H A D | nfp6000_pcie.c | 136 void __iomem *iomem; member 158 } iomem; member 274 if (nfp->iomem.csr) { in nfp6000_bar_write() 275 writel(newcfg, nfp->iomem.csr + xbar); in nfp6000_bar_write() 277 readl(nfp->iomem.csr + xbar); in nfp6000_bar_write() 589 bar->iomem = NULL; in enable_bars() 611 bar->iomem = ioremap(nfp_bar_resource_start(bar), in enable_bars() 613 if (bar->iomem) { in enable_bars() 622 nfp->expl.data = bar->iomem + NFP_PCIE_SRAM + in enable_bars() 628 nfp->iomem.csr = bar->iomem + NFP_PCIE_BAR(pf); in enable_bars() [all …]
|
/openbmc/linux/drivers/irqchip/ |
H A D | irq-renesas-intc-irqpin.c | 47 void __iomem *iomem; member 48 unsigned long (*read)(void __iomem *iomem); 49 void (*write)(void __iomem *iomem, unsigned long data); 61 struct intc_irqpin_iomem iomem[INTC_IRQPIN_REG_NR]; member 76 static unsigned long intc_irqpin_read32(void __iomem *iomem) in intc_irqpin_read32() argument 78 return ioread32(iomem); in intc_irqpin_read32() 81 static unsigned long intc_irqpin_read8(void __iomem *iomem) in intc_irqpin_read8() argument 83 return ioread8(iomem); in intc_irqpin_read8() 86 static void intc_irqpin_write32(void __iomem *iomem, unsigned long data) in intc_irqpin_write32() argument 88 iowrite32(data, iomem); in intc_irqpin_write32() [all …]
|
H A D | irq-renesas-irqc.c | 46 void __iomem *iomem; member 86 tmp = ioread32(p->iomem + IRQC_CONFIG(hw_irq)); in irqc_irq_set_type() 89 iowrite32(tmp, p->iomem + IRQC_CONFIG(hw_irq)); in irqc_irq_set_type() 115 if (ioread32(p->iomem + DETECT_STATUS) & bit) { in irqc_irq_handler() 116 iowrite32(bit, p->iomem + DETECT_STATUS); in irqc_irq_handler() 163 p->iomem = devm_platform_ioremap_resource(pdev, 0); in irqc_probe() 164 if (IS_ERR(p->iomem)) { in irqc_probe() 165 ret = PTR_ERR(p->iomem); in irqc_probe() 169 p->cpu_int_base = p->iomem + IRQC_INT_CPU_BASE(0); /* SYS-SPI */ in irqc_probe()
|
/openbmc/linux/drivers/spi/ |
H A D | spi-lp8841-rtc.c | 35 void *iomem; member 46 writeb(data->state, data->iomem); in setsck() 56 writeb(data->state, data->iomem); in setmosi() 62 return ioread8(data->iomem) & SPI_LP8841_RTC_MISO; in getmiso() 111 writeb(data->state, data->iomem); in spi_lp8841_rtc_transfer_one() 120 writeb(data->state, data->iomem); in spi_lp8841_rtc_transfer_one() 142 writeb(data->state, data->iomem); in spi_lp8841_rtc_set_cs() 146 writeb(data->state, data->iomem); in spi_lp8841_rtc_set_cs() 208 data->iomem = devm_platform_ioremap_resource(pdev, 0); in spi_lp8841_rtc_probe() 209 ret = PTR_ERR_OR_ZERO(data->iomem); in spi_lp8841_rtc_probe()
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/ |
H A D | nv40.c | 33 void __iomem *iomem; member 51 iowrite32_native(data, iobj->imem->iomem + iobj->node->offset + offset); in nv40_instobj_wr32() 58 return ioread32_native(iobj->imem->iomem + iobj->node->offset + offset); in nv40_instobj_rd32() 77 return iobj->imem->iomem + iobj->node->offset; in nv40_instobj_acquire() 148 return ioread32_native(nv40_instmem(base)->iomem + addr); in nv40_instmem_rd32() 154 iowrite32_native(data, nv40_instmem(base)->iomem + addr); in nv40_instmem_wr32() 222 if (imem->iomem) in nv40_instmem_dtor() 223 iounmap(imem->iomem); in nv40_instmem_dtor() 255 imem->iomem = ioremap_wc(device->func->resource_addr(device, bar), in nv40_instmem_new() 257 if (!imem->iomem) { in nv40_instmem_new()
|
/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_dpt.c | 23 void __iomem *iomem; member 50 gen8_pte_t __iomem *base = dpt->iomem; in dpt_insert_page() 62 gen8_pte_t __iomem *base = dpt->iomem; in dpt_insert_entries() 132 void __iomem *iomem; in intel_dpt_pin() local 155 iomem = i915_vma_pin_iomap(vma); in intel_dpt_pin() 158 if (IS_ERR(iomem)) { in intel_dpt_pin() 159 err = PTR_ERR(iomem); in intel_dpt_pin() 164 dpt->iomem = iomem; in intel_dpt_pin()
|
/openbmc/linux/arch/arm/mach-shmobile/ |
H A D | platsmp-apmu.c | 27 void __iomem *iomem; member 82 void __iomem *p = apmu_cpus[cpu].iomem; in apmu_wrap() 190 if ((cpu >= ARRAY_SIZE(apmu_cpus)) || apmu_cpus[cpu].iomem) in apmu_init_cpu() 193 apmu_cpus[cpu].iomem = ioremap(res->start, resource_size(res)); in apmu_init_cpu() 199 x = readl(apmu_cpus[cpu].iomem + DBGRCR_OFFS); in apmu_init_cpu() 201 writel(x, apmu_cpus[cpu].iomem + DBGRCR_OFFS); in apmu_init_cpu()
|
/openbmc/linux/include/linux/ |
H A D | io-mapping.h | 27 void __iomem *iomem; member 135 iomap->iomem = ioremap_wc(base, size); in io_mapping_init_wc() 136 if (!iomap->iomem) in io_mapping_init_wc() 149 iounmap(mapping->iomem); in io_mapping_fini() 158 return mapping->iomem + offset; in io_mapping_map_wc()
|
/openbmc/linux/drivers/net/arcnet/ |
H A D | com90xx.c | 102 void __iomem **iomem; in com90xx_probe() local 114 iomem = kzalloc(((0x100000 - 0xa0000) / 0x800) * sizeof(void __iomem *), in com90xx_probe() 116 if (!iomem) { in com90xx_probe() 183 kfree(iomem); in com90xx_probe() 257 iomem[index] = base; in com90xx_probe() 274 kfree(iomem); in com90xx_probe() 379 arcnet_writeb(TESTvalue, iomem[0], in com90xx_probe() 389 void __iomem *base = iomem[index]; in com90xx_probe() 402 iomem[index] = iomem[numshmems]; in com90xx_probe() 428 arcnet_writeb(TESTvalue, iomem[index], COM9026_REG_W_INTMASK); in com90xx_probe() [all …]
|
/openbmc/linux/drivers/acpi/apei/ |
H A D | apei-base.c | 288 .iomem = LIST_HEAD_INIT(apei_resources_all.iomem), 382 apei_res_clean(&resources->iomem); in apei_resources_fini() 393 list_for_each_entry(res, &resources2->iomem, list) { in apei_resources_merge() 394 rc = apei_res_add(&resources1->iomem, res->start, in apei_resources_merge() 411 bool iomem) in apei_resources_add() argument 413 if (iomem) in apei_resources_add() 414 return apei_res_add(&resources->iomem, start, size); in apei_resources_add() 430 rc = apei_res_sub(&resources1->iomem, &resources2->iomem); in apei_resources_sub() 440 return apei_res_add(&resources->iomem, start, size); in apei_get_res_callback() 497 list_for_each_entry(res, &resources->iomem, list) { in apei_resources_request() [all …]
|
/openbmc/linux/drivers/vfio/pci/ |
H A D | vfio_pci_rdwr.c | 297 void __iomem *iomem = NULL; in vfio_pci_vga_rw() local 311 iomem = ioremap(0xa0000, 0xbffff - 0xa0000 + 1); in vfio_pci_vga_rw() 318 iomem = ioport_map(0x3b0, 0x3bb - 0x3b0 + 1); in vfio_pci_vga_rw() 325 iomem = ioport_map(0x3c0, 0x3df - 0x3c0 + 1); in vfio_pci_vga_rw() 334 if (!iomem) in vfio_pci_vga_rw() 339 is_ioport ? ioport_unmap(iomem) : iounmap(iomem); in vfio_pci_vga_rw() 348 done = do_io_rw(vdev, false, iomem, buf, off, count, 0, 0, iswrite); in vfio_pci_vga_rw() 352 is_ioport ? ioport_unmap(iomem) : iounmap(iomem); in vfio_pci_vga_rw()
|
/openbmc/qemu/hw/usb/ |
H A D | chipidea.c | 98 for (i = 0; i < ARRAY_SIZE(ci->iomem); i++) { in chipidea_init() 104 } regions[ARRAY_SIZE(ci->iomem)] = { in chipidea_init() 134 memory_region_init_io(&ci->iomem[i], in chipidea_init() 143 &ci->iomem[i]); in chipidea_init()
|
/openbmc/linux/drivers/mfd/ |
H A D | fsl-imx25-tsadc.c | 141 void __iomem *iomem; in mx25_tsadc_probe() local 147 iomem = devm_platform_get_and_ioremap_resource(pdev, 0, NULL); in mx25_tsadc_probe() 148 if (IS_ERR(iomem)) in mx25_tsadc_probe() 149 return PTR_ERR(iomem); in mx25_tsadc_probe() 151 tsadc->regs = devm_regmap_init_mmio(dev, iomem, in mx25_tsadc_probe()
|
/openbmc/qemu/hw/arm/ |
H A D | musicpal.c | 118 MemoryRegion iomem; member 267 memory_region_init_io(&s->iomem, obj, &musicpal_lcd_ops, s, in musicpal_lcd_init() 269 sysbus_init_mmio(sbd, &s->iomem); in musicpal_lcd_init() 318 MemoryRegion iomem; member 394 memory_region_init_io(&s->iomem, obj, &mv88w8618_pic_ops, s, in mv88w8618_pic_init() 396 sysbus_init_mmio(dev, &s->iomem); in mv88w8618_pic_init() 454 MemoryRegion iomem; member 566 memory_region_init_io(&s->iomem, obj, &mv88w8618_pit_ops, s, in mv88w8618_pit_init() 568 sysbus_init_mmio(dev, &s->iomem); in mv88w8618_pit_init() 632 MemoryRegion iomem; member [all …]
|
/openbmc/qemu/hw/display/ |
H A D | vga-mmio.c | 48 MemoryRegion iomem; member 93 memory_region_init_io(&s->iomem, OBJECT(dev), &vga_mm_ctrl_ops, s, in vga_mmio_realizefn() 95 memory_region_set_flush_coalesced(&s->iomem); in vga_mmio_realizefn() 96 sysbus_init_mmio(sbd, &s->iomem); in vga_mmio_realizefn()
|
/openbmc/qemu/hw/misc/ |
H A D | grlib_ahb_apb_pnp.c | 58 MemoryRegion iomem; member 166 memory_region_init_io(&ahb_pnp->iomem, OBJECT(dev), &grlib_ahb_pnp_ops, in grlib_ahb_pnp_realize() 168 sysbus_init_mmio(sbd, &ahb_pnp->iomem); in grlib_ahb_pnp_realize() 189 MemoryRegion iomem; member 278 memory_region_init_io(&apb_pnp->iomem, OBJECT(dev), &grlib_apb_pnp_ops, in grlib_apb_pnp_realize() 280 sysbus_init_mmio(sbd, &apb_pnp->iomem); in grlib_apb_pnp_realize()
|
H A D | arm_integrator_debug.c | 29 MemoryRegion iomem; member 83 memory_region_init_io(&s->iomem, obj, &intdbg_control_ops, in intdbg_control_init() 85 sysbus_init_mmio(sd, &s->iomem); in intdbg_control_init()
|
H A D | sbsa_ec.c | 20 MemoryRegion iomem; member 71 memory_region_init_io(&s->iomem, obj, &sbsa_ec_ops, s, "sbsa-ec", in sbsa_ec_init() 73 sysbus_init_mmio(dev, &s->iomem); in sbsa_ec_init()
|
H A D | aspeed_sli.c | 112 memory_region_init_io(&s->iomem, OBJECT(s), &aspeed_sli_ops, s, in aspeed_sli_realize() 114 sysbus_init_mmio(sbd, &s->iomem); in aspeed_sli_realize() 122 memory_region_init_io(&s->iomem, OBJECT(s), &aspeed_sliio_ops, s, in aspeed_sliio_realize() 124 sysbus_init_mmio(sbd, &s->iomem); in aspeed_sliio_realize()
|
/openbmc/qemu/hw/rtc/ |
H A D | sun4v-rtc.c | 28 MemoryRegion iomem; member 73 memory_region_init_io(&s->iomem, OBJECT(s), &sun4v_rtc_ops, s, in sun4v_rtc_realize() 75 sysbus_init_mmio(sbd, &s->iomem); in sun4v_rtc_realize()
|
/openbmc/linux/drivers/phy/microchip/ |
H A D | sparx5_serdes.h | 93 static inline void sdx5_inst_rmw(u32 val, u32 mask, void __iomem *iomem, in sdx5_inst_rmw() argument 100 sdx5_inst_baseaddr(iomem, in sdx5_inst_rmw() 123 static inline void __iomem *sdx5_inst_addr(void __iomem *iomem, in sdx5_inst_addr() argument 130 return sdx5_inst_baseaddr(iomem, gbase, ginst, gcnt, gwidth, in sdx5_inst_addr()
|
/openbmc/linux/drivers/gpu/drm/lima/ |
H A D | lima_l2_cache.c | 11 #define l2_cache_write(reg, data) writel(data, ip->iomem + reg) 12 #define l2_cache_read(reg) readl(ip->iomem + reg) 20 err = readl_poll_timeout(ip->iomem + LIMA_L2_CACHE_STATUS, v, in lima_l2_cache_wait_idle()
|