Home
last modified time | relevance | path

Searched refs:iomem (Results 1 – 25 of 111) sorted by relevance

12345

/linux-6.1.9/drivers/dma/ti/
Ddma-crossbar.c38 void __iomem *iomem; member
51 static inline void ti_am335x_xbar_write(void __iomem *iomem, int event, u8 val) in ti_am335x_xbar_write() argument
59 writeb_relaxed(val, iomem + (63 - event % 4)); in ti_am335x_xbar_write()
61 writeb_relaxed(val, iomem + event); in ti_am335x_xbar_write()
72 ti_am335x_xbar_write(xbar->iomem, map->dma_line, 0); in ti_am335x_xbar_free()
120 ti_am335x_xbar_write(xbar->iomem, map->dma_line, map->mux_val); in ti_am335x_xbar_route_allocate()
136 void __iomem *iomem; in ti_am335x_xbar_probe() local
175 iomem = devm_platform_ioremap_resource(pdev, 0); in ti_am335x_xbar_probe()
176 if (IS_ERR(iomem)) in ti_am335x_xbar_probe()
177 return PTR_ERR(iomem); in ti_am335x_xbar_probe()
[all …]
/linux-6.1.9/drivers/dma/
Dstm32-dmamux.c38 void __iomem *iomem; member
52 static inline u32 stm32_dmamux_read(void __iomem *iomem, u32 reg) in stm32_dmamux_read() argument
54 return readl_relaxed(iomem + reg); in stm32_dmamux_read()
57 static inline void stm32_dmamux_write(void __iomem *iomem, u32 reg, u32 val) in stm32_dmamux_write() argument
59 writel_relaxed(val, iomem + reg); in stm32_dmamux_write()
71 stm32_dmamux_write(dmamux->iomem, STM32_DMAMUX_CCR(mux->chan_id), 0); in stm32_dmamux_free()
156 stm32_dmamux_write(dmamux->iomem, STM32_DMAMUX_CCR(mux->chan_id), in stm32_dmamux_route_allocate()
183 void __iomem *iomem; in stm32_dmamux_probe() local
242 iomem = devm_ioremap_resource(&pdev->dev, res); in stm32_dmamux_probe()
243 if (IS_ERR(iomem)) in stm32_dmamux_probe()
[all …]
Dtimb_dma.c616 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()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp6000_pcie.c136 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()
587 bar->iomem = NULL; in enable_bars()
609 bar->iomem = ioremap(nfp_bar_resource_start(bar), in enable_bars()
611 if (bar->iomem) { in enable_bars()
620 nfp->expl.data = bar->iomem + NFP_PCIE_SRAM + in enable_bars()
626 nfp->iomem.csr = bar->iomem + NFP_PCIE_BAR(pf); in enable_bars()
[all …]
/linux-6.1.9/drivers/spi/
Dspi-lp8841-rtc.c36 void *iomem; member
47 writeb(data->state, data->iomem); in setsck()
57 writeb(data->state, data->iomem); in setmosi()
63 return ioread8(data->iomem) & SPI_LP8841_RTC_MISO; in getmiso()
112 writeb(data->state, data->iomem); in spi_lp8841_rtc_transfer_one()
121 writeb(data->state, data->iomem); in spi_lp8841_rtc_transfer_one()
143 writeb(data->state, data->iomem); in spi_lp8841_rtc_set_cs()
147 writeb(data->state, data->iomem); in spi_lp8841_rtc_set_cs()
209 data->iomem = devm_platform_ioremap_resource(pdev, 0); in spi_lp8841_rtc_probe()
210 ret = PTR_ERR_OR_ZERO(data->iomem); in spi_lp8841_rtc_probe()
/linux-6.1.9/drivers/irqchip/
Dirq-renesas-intc-irqpin.c48 void __iomem *iomem; member
49 unsigned long (*read)(void __iomem *iomem);
50 void (*write)(void __iomem *iomem, unsigned long data);
62 struct intc_irqpin_iomem iomem[INTC_IRQPIN_REG_NR]; member
77 static unsigned long intc_irqpin_read32(void __iomem *iomem) in intc_irqpin_read32() argument
79 return ioread32(iomem); in intc_irqpin_read32()
82 static unsigned long intc_irqpin_read8(void __iomem *iomem) in intc_irqpin_read8() argument
84 return ioread8(iomem); in intc_irqpin_read8()
87 static void intc_irqpin_write32(void __iomem *iomem, unsigned long data) in intc_irqpin_write32() argument
89 iowrite32(data, iomem); in intc_irqpin_write32()
[all …]
Dirq-renesas-irqc.c46 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()
/linux-6.1.9/drivers/gpu/drm/nouveau/nvkm/subdev/instmem/
Dnv40.c33 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()
/linux-6.1.9/drivers/mfd/
Dtc6387xb.c136 struct resource *iomem, *rscr; in tc6387xb_probe() local
141 iomem = platform_get_resource(dev, IORESOURCE_MEM, 0); in tc6387xb_probe()
142 if (!iomem) in tc6387xb_probe()
163 rscr->start = iomem->start; in tc6387xb_probe()
164 rscr->end = iomem->start + 0xff; in tc6387xb_probe()
167 ret = request_resource(iomem, rscr); in tc6387xb_probe()
186 ARRAY_SIZE(tc6387xb_cells), iomem, irq, NULL); in tc6387xb_probe()
Dfsl-imx25-tsadc.c142 void __iomem *iomem; in mx25_tsadc_probe() local
149 iomem = devm_ioremap_resource(dev, res); in mx25_tsadc_probe()
150 if (IS_ERR(iomem)) in mx25_tsadc_probe()
151 return PTR_ERR(iomem); in mx25_tsadc_probe()
153 tsadc->regs = devm_regmap_init_mmio(dev, iomem, in mx25_tsadc_probe()
Dt7l66xb.c302 struct resource *iomem, *rscr; in t7l66xb_probe() local
308 iomem = platform_get_resource(dev, IORESOURCE_MEM, 0); in t7l66xb_probe()
309 if (!iomem) in t7l66xb_probe()
342 rscr->start = iomem->start; in t7l66xb_probe()
343 rscr->end = iomem->start + 0xff; in t7l66xb_probe()
346 ret = request_resource(iomem, rscr); in t7l66xb_probe()
368 (unsigned long)iomem->start, t7l66xb->irq); in t7l66xb_probe()
377 iomem, t7l66xb->irq_base, NULL); in t7l66xb_probe()
Dtc6393xb.c110 struct resource *iomem; member
688 struct resource *iomem, *rscr; in tc6393xb_probe() local
691 iomem = platform_get_resource(dev, IORESOURCE_MEM, 0); in tc6393xb_probe()
692 if (!iomem) in tc6393xb_probe()
712 tc6393xb->iomem = iomem; in tc6393xb_probe()
723 rscr->start = iomem->start; in tc6393xb_probe()
724 rscr->end = iomem->start + 0xff; in tc6393xb_probe()
727 ret = request_resource(iomem, rscr); in tc6393xb_probe()
758 (unsigned long) iomem->start, tc6393xb->irq); in tc6393xb_probe()
774 iomem, tcpd->irq_base, NULL); in tc6393xb_probe()
/linux-6.1.9/drivers/gpu/drm/i915/display/
Dintel_dpt.c20 void __iomem *iomem; member
47 gen8_pte_t __iomem *base = dpt->iomem; in dpt_insert_page()
59 gen8_pte_t __iomem *base = dpt->iomem; in dpt_insert_entries()
129 void __iomem *iomem; in intel_dpt_pin() local
152 iomem = i915_vma_pin_iomap(vma); in intel_dpt_pin()
155 if (IS_ERR(iomem)) { in intel_dpt_pin()
156 err = PTR_ERR(iomem); in intel_dpt_pin()
161 dpt->iomem = iomem; in intel_dpt_pin()
/linux-6.1.9/arch/arm/mach-shmobile/
Dplatsmp-apmu.c26 void __iomem *iomem; member
81 void __iomem *p = apmu_cpus[cpu].iomem; in apmu_wrap()
189 if ((cpu >= ARRAY_SIZE(apmu_cpus)) || apmu_cpus[cpu].iomem) in apmu_init_cpu()
192 apmu_cpus[cpu].iomem = ioremap(res->start, resource_size(res)); in apmu_init_cpu()
198 x = readl(apmu_cpus[cpu].iomem + DBGRCR_OFFS); in apmu_init_cpu()
200 writel(x, apmu_cpus[cpu].iomem + DBGRCR_OFFS); in apmu_init_cpu()
/linux-6.1.9/include/linux/
Dio-mapping.h27 void __iomem *iomem; member
129 iomap->iomem = ioremap_wc(base, size); in io_mapping_init_wc()
130 if (!iomap->iomem) in io_mapping_init_wc()
143 iounmap(mapping->iomem); in io_mapping_fini()
152 return mapping->iomem + offset; in io_mapping_map_wc()
/linux-6.1.9/drivers/net/arcnet/
Dcom90xx.c102 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 …]
/linux-6.1.9/drivers/acpi/apei/
Dapei-base.c288 .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 …]
Dapei-internal.h99 struct list_head iomem; member
105 INIT_LIST_HEAD(&resources->iomem); in apei_resources_init()
112 bool iomem);
/linux-6.1.9/drivers/vfio/pci/
Dvfio_pci_rdwr.c297 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()
/linux-6.1.9/drivers/phy/microchip/
Dsparx5_serdes.h94 static inline void sdx5_inst_rmw(u32 val, u32 mask, void __iomem *iomem, in sdx5_inst_rmw() argument
101 sdx5_inst_baseaddr(iomem, in sdx5_inst_rmw()
124 static inline void __iomem *sdx5_inst_addr(void __iomem *iomem, in sdx5_inst_addr() argument
131 return sdx5_inst_baseaddr(iomem, gbase, ginst, gcnt, gwidth, in sdx5_inst_addr()
/linux-6.1.9/drivers/gpu/drm/lima/
Dlima_l2_cache.c11 #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()
Dlima_pmu.c11 #define pmu_write(reg, data) writel(data, ip->iomem + reg)
12 #define pmu_read(reg) readl(ip->iomem + reg)
20 err = readl_poll_timeout(ip->iomem + LIMA_PMU_INT_RAWSTAT, in lima_pmu_wait_cmd()
Dlima_bcast.c11 #define bcast_write(reg, data) writel(data, ip->iomem + reg)
12 #define bcast_read(reg) readl(ip->iomem + reg)
/linux-6.1.9/drivers/dma/sh/
Dusb-dmac.c78 void __iomem *iomem; member
100 void __iomem *iomem; member
153 writel(data, dmac->iomem + reg); in usb_dmac_write()
158 return readl(dmac->iomem + reg); in usb_dmac_read()
163 return readl(chan->iomem + reg); in usb_dmac_chan_read()
168 writel(data, chan->iomem + reg); in usb_dmac_chan_write()
680 if (!dmac->channels[i].iomem) in usb_dmac_runtime_suspend()
717 uchan->iomem = dmac->iomem + USB_DMAC_CHAN_OFFSET(index); in usb_dmac_chan_probe()
793 dmac->iomem = devm_ioremap_resource(&pdev->dev, mem); in usb_dmac_probe()
794 if (IS_ERR(dmac->iomem)) in usb_dmac_probe()
[all …]
/linux-6.1.9/drivers/scsi/
Dg_NCR5380.c235 u8 __iomem *iomem; in generic_NCR5380_init_one() local
305 iomem = ioport_map(base, region_size); in generic_NCR5380_init_one()
307 iomem = ioremap(base, region_size); in generic_NCR5380_init_one()
309 if (!iomem) { in generic_NCR5380_init_one()
322 hostdata->io = iomem; in generic_NCR5380_init_one()
457 iounmap(iomem); in generic_NCR5380_init_one()
469 void __iomem *iomem = hostdata->io; in generic_NCR5380_release_resources() local
479 iounmap(iomem); in generic_NCR5380_release_resources()

12345