/drivers/mmc/host/ |
D | sdhci-pltfm.c | 123 struct resource *iomem; in sdhci_pltfm_init() local 126 iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in sdhci_pltfm_init() 127 if (!iomem) { in sdhci_pltfm_init() 132 if (resource_size(iomem) < 0x100) in sdhci_pltfm_init() 157 if (!request_mem_region(iomem->start, resource_size(iomem), in sdhci_pltfm_init() 164 host->ioaddr = ioremap(iomem->start, resource_size(iomem)); in sdhci_pltfm_init() 183 release_mem_region(iomem->start, resource_size(iomem)); in sdhci_pltfm_init() 195 struct resource *iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in sdhci_pltfm_free() local 198 release_mem_region(iomem->start, resource_size(iomem)); in sdhci_pltfm_free()
|
D | sdhci-acpi.c | 171 struct resource *iomem; in sdhci_acpi_probe() local 184 iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in sdhci_acpi_probe() 185 if (!iomem) in sdhci_acpi_probe() 188 len = resource_size(iomem); in sdhci_acpi_probe() 192 if (!devm_request_mem_region(dev, iomem->start, len, dev_name(dev))) in sdhci_acpi_probe() 211 host->ioaddr = devm_ioremap_nocache(dev, iomem->start, in sdhci_acpi_probe() 212 resource_size(iomem)); in sdhci_acpi_probe()
|
D | sdhci-spear.c | 108 struct resource *iomem; in sdhci_probe() local 112 iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in sdhci_probe() 113 if (!iomem) { in sdhci_probe() 119 if (!devm_request_mem_region(&pdev->dev, iomem->start, in sdhci_probe() 120 resource_size(iomem), "spear-sdhci")) { in sdhci_probe() 180 host->ioaddr = devm_ioremap(&pdev->dev, iomem->start, in sdhci_probe() 181 resource_size(iomem)); in sdhci_probe()
|
/drivers/rtc/ |
D | rtc-mrst.c | 48 struct resource *iomem; member 325 static int vrtc_mrst_do_probe(struct device *dev, struct resource *iomem, in vrtc_mrst_do_probe() argument 335 if (!iomem) in vrtc_mrst_do_probe() 338 iomem = request_mem_region(iomem->start, resource_size(iomem), in vrtc_mrst_do_probe() 340 if (!iomem) { in vrtc_mrst_do_probe() 346 mrst_rtc.iomem = iomem; in vrtc_mrst_do_probe() 357 rename_region(iomem, dev_name(&mrst_rtc.rtc->dev)); in vrtc_mrst_do_probe() 385 release_mem_region(iomem->start, resource_size(iomem)); in vrtc_mrst_do_probe() 400 struct resource *iomem; in rtc_mrst_do_remove() local 410 iomem = mrst->iomem; in rtc_mrst_do_remove() [all …]
|
/drivers/irqchip/ |
D | irq-renesas-intc-irqpin.c | 56 void __iomem *iomem; member 57 unsigned long (*read)(void __iomem *iomem); 58 void (*write)(void __iomem *iomem, unsigned long data); 70 struct intc_irqpin_iomem iomem[INTC_IRQPIN_REG_NR]; member 81 static unsigned long intc_irqpin_read32(void __iomem *iomem) in intc_irqpin_read32() argument 83 return ioread32(iomem); in intc_irqpin_read32() 86 static unsigned long intc_irqpin_read8(void __iomem *iomem) in intc_irqpin_read8() argument 88 return ioread8(iomem); in intc_irqpin_read8() 91 static void intc_irqpin_write32(void __iomem *iomem, unsigned long data) in intc_irqpin_write32() argument 93 iowrite32(data, iomem); in intc_irqpin_write32() [all …]
|
D | irq-renesas-irqc.c | 50 void __iomem *iomem; member 107 tmp = ioread32(p->iomem + IRQC_CONFIG(hw_irq)); in irqc_irq_set_type() 110 iowrite32(tmp, p->iomem + IRQC_CONFIG(hw_irq)); in irqc_irq_set_type() 122 if (ioread32(p->iomem + DETECT_STATUS) & bit) { in irqc_irq_handler() 123 iowrite32(bit, p->iomem + DETECT_STATUS); in irqc_irq_handler() 202 p->iomem = ioremap_nocache(io->start, resource_size(io)); in irqc_probe() 203 if (!p->iomem) { in irqc_probe() 209 p->cpu_int_base = p->iomem + IRQC_INT_CPU_BASE(0); /* SYS-SPI */ in irqc_probe() 256 iounmap(p->iomem); in irqc_probe() 272 iounmap(p->iomem); in irqc_remove()
|
/drivers/gpu/drm/nouveau/core/subdev/bar/ |
D | base.c | 31 void __iomem *iomem; member 53 barobj->iomem = bar->iomem + (u32)barobj->vma.offset; in nouveau_barobj_ctor() 71 return ioread32_native(barobj->iomem + addr); in nouveau_barobj_rd32() 78 iowrite32_native(data, barobj->iomem + addr); in nouveau_barobj_wr32() 117 bar->iomem = ioremap(pci_resource_start(device->pdev, 3), in nouveau_bar_create_() 125 if (bar->iomem) in nouveau_bar_destroy() 126 iounmap(bar->iomem); in nouveau_bar_destroy()
|
/drivers/vfio/pci/ |
D | vfio_pci_rdwr.c | 185 void __iomem *iomem = NULL; in vfio_pci_vga_rw() local 196 iomem = ioremap_nocache(0xa0000, 0xbffff - 0xa0000 + 1); in vfio_pci_vga_rw() 203 iomem = ioport_map(0x3b0, 0x3bb - 0x3b0 + 1); in vfio_pci_vga_rw() 210 iomem = ioport_map(0x3c0, 0x3df - 0x3c0 + 1); in vfio_pci_vga_rw() 219 if (!iomem) in vfio_pci_vga_rw() 224 is_ioport ? ioport_unmap(iomem) : iounmap(iomem); in vfio_pci_vga_rw() 228 done = do_io_rw(iomem, buf, off, count, 0, 0, iswrite); in vfio_pci_vga_rw() 232 is_ioport ? ioport_unmap(iomem) : iounmap(iomem); in vfio_pci_vga_rw()
|
/drivers/scsi/ |
D | g_NCR5380.h | 106 #define NCR5380_read(reg) readb(iomem + NCR53C400_mem_base + (reg)) 107 #define NCR5380_write(reg, value) writeb(value, iomem + NCR53C400_mem_base + (reg)) 111 void __iomem *iomem; 114 register void __iomem *iomem 117 iomem = (((struct NCR5380_hostdata *)(instance)->hostdata)->iomem)
|
D | g_NCR5380.c | 303 void __iomem *iomem; in generic_NCR5380_detect() local 431 iomem = ioremap(base, NCR5380_region_size); in generic_NCR5380_detect() 432 if (!iomem) { in generic_NCR5380_detect() 442 iounmap(iomem); in generic_NCR5380_detect() 452 ((struct NCR5380_hostdata *)instance->hostdata)->iomem = iomem; in generic_NCR5380_detect() 523 iounmap(((struct NCR5380_hostdata *)instance->hostdata)->iomem); in generic_NCR5380_release_resources() 601 memcpy_fromio(dst + start, iomem + NCR53C400_host_buffer, 128); in NCR5380_pread() 621 memcpy_fromio(dst + start, iomem + NCR53C400_host_buffer, 128); in NCR5380_pread() 686 memcpy_toio(iomem + NCR53C400_host_buffer, src + start, 128); in NCR5380_pwrite() 702 memcpy_toio(iomem + NCR53C400_host_buffer, src + start, 128); in NCR5380_pwrite()
|
/drivers/gpio/ |
D | gpio-timberdale.c | 229 struct resource *iomem; in timbgpio_probe() local 238 iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in timbgpio_probe() 239 if (!iomem) { in timbgpio_probe() 253 if (!request_mem_region(iomem->start, resource_size(iomem), in timbgpio_probe() 259 tgpio->membase = ioremap(iomem->start, resource_size(iomem)); in timbgpio_probe() 309 release_mem_region(iomem->start, resource_size(iomem)); in timbgpio_probe() 323 struct resource *iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in timbgpio_remove() local 342 release_mem_region(iomem->start, resource_size(iomem)); in timbgpio_remove()
|
/drivers/mfd/ |
D | tc6387xb.c | 144 struct resource *iomem, *rscr; in tc6387xb_probe() local 149 iomem = platform_get_resource(dev, IORESOURCE_MEM, 0); in tc6387xb_probe() 150 if (!iomem) { in tc6387xb_probe() 172 rscr->start = iomem->start; in tc6387xb_probe() 173 rscr->end = iomem->start + 0xff; in tc6387xb_probe() 176 ret = request_resource(iomem, rscr); in tc6387xb_probe() 195 ARRAY_SIZE(tc6387xb_cells), iomem, irq, NULL); in tc6387xb_probe()
|
D | t7l66xb.c | 318 struct resource *iomem, *rscr; in t7l66xb_probe() local 324 iomem = platform_get_resource(dev, IORESOURCE_MEM, 0); in t7l66xb_probe() 325 if (!iomem) in t7l66xb_probe() 358 rscr->start = iomem->start; in t7l66xb_probe() 359 rscr->end = iomem->start + 0xff; in t7l66xb_probe() 362 ret = request_resource(iomem, rscr); in t7l66xb_probe() 382 (unsigned long)iomem->start, t7l66xb->irq); in t7l66xb_probe() 391 iomem, t7l66xb->irq_base, NULL); in t7l66xb_probe()
|
D | tc6393xb.c | 109 struct resource *iomem; member 609 struct resource *iomem, *rscr; in tc6393xb_probe() local 612 iomem = platform_get_resource(dev, IORESOURCE_MEM, 0); in tc6393xb_probe() 613 if (!iomem) in tc6393xb_probe() 632 tc6393xb->iomem = iomem; in tc6393xb_probe() 643 rscr->start = iomem->start; in tc6393xb_probe() 644 rscr->end = iomem->start + 0xff; in tc6393xb_probe() 647 ret = request_resource(iomem, rscr); in tc6393xb_probe() 678 (unsigned long) iomem->start, tc6393xb->irq); in tc6393xb_probe() 704 iomem, tcpd->irq_base, NULL); in tc6393xb_probe()
|
/drivers/acpi/apei/ |
D | apei-base.c | 303 .iomem = LIST_HEAD_INIT(apei_resources_all.iomem), 397 apei_res_clean(&resources->iomem); in apei_resources_fini() 408 list_for_each_entry(res, &resources2->iomem, list) { in apei_resources_merge() 409 rc = apei_res_add(&resources1->iomem, res->start, in apei_resources_merge() 426 bool iomem) in apei_resources_add() argument 428 if (iomem) in apei_resources_add() 429 return apei_res_add(&resources->iomem, start, size); in apei_resources_add() 445 rc = apei_res_sub(&resources1->iomem, &resources2->iomem); in apei_resources_sub() 455 return apei_res_add(&resources->iomem, start, size); in apei_get_nvs_callback() 494 list_for_each_entry(res, &resources->iomem, list) { in apei_resources_request() [all …]
|
D | apei-internal.h | 99 struct list_head iomem; member 105 INIT_LIST_HEAD(&resources->iomem); in apei_resources_init() 112 bool iomem);
|
/drivers/net/arcnet/ |
D | com90xx.c | 122 void __iomem **iomem; in com90xx_probe() local 134 iomem = kzalloc(((0x100000-0xa0000) / 0x800) * sizeof(void __iomem *), in com90xx_probe() 136 if (!iomem) { in com90xx_probe() 197 kfree(iomem); in com90xx_probe() 266 iomem[index] = base; in com90xx_probe() 283 kfree(iomem); in com90xx_probe() 383 writeb(TESTvalue, iomem[0]); in com90xx_probe() 392 void __iomem *base = iomem[index]; in com90xx_probe() 405 iomem[index] = iomem[numshmems]; in com90xx_probe() 426 writeb(TESTvalue, iomem[index]); in com90xx_probe() [all …]
|
/drivers/misc/ |
D | atmel_tclib.c | 65 if (!pdev || tc->iomem) in atmel_tc_alloc() 81 tc->iomem = r; in atmel_tc_alloc() 108 release_mem_region(tc->iomem->start, resource_size(tc->iomem)); in atmel_tc_free() 110 tc->iomem = NULL; in atmel_tc_free()
|
/drivers/gpu/drm/nouveau/core/subdev/instmem/ |
D | nv40.c | 56 priv->iomem = ioremap(pci_resource_start(pdev, bar), in nv40_instmem_ctor() 58 if (!priv->iomem) { in nv40_instmem_ctor() 119 return ioread32_native(priv->iomem + addr); in nv40_instmem_rd32() 126 iowrite32_native(data, priv->iomem + addr); in nv40_instmem_wr32()
|
/drivers/pcmcia/ |
D | omap_cf.c | 70 struct resource iomem; member 252 cf->iomem.start = cf->phys_cf; in omap_cf_probe() 253 cf->iomem.end = cf->iomem.end + SZ_8K - 1; in omap_cf_probe() 254 cf->iomem.flags = IORESOURCE_MEM; in omap_cf_probe() 299 cf->socket.io[0].res = &cf->iomem; in omap_cf_probe()
|
D | electra_cf.c | 55 struct resource iomem; member 236 cf->iomem.start = (unsigned long)cf->mem_base; in electra_cf_probe() 237 cf->iomem.end = (unsigned long)cf->mem_base + (mem.end - mem.start); in electra_cf_probe() 238 cf->iomem.flags = IORESOURCE_MEM; in electra_cf_probe()
|
/drivers/dma/ |
D | timb_dma.c | 674 struct resource *iomem; in td_probe() local 684 iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in td_probe() 685 if (!iomem) in td_probe() 692 if (!request_mem_region(iomem->start, resource_size(iomem), in td_probe() 705 td->membase = ioremap(iomem->start, resource_size(iomem)); in td_probe() 795 release_mem_region(iomem->start, resource_size(iomem)); in td_probe() 804 struct resource *iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in td_remove() local 812 release_mem_region(iomem->start, resource_size(iomem)); in td_remove()
|
/drivers/net/ethernet/micrel/ |
D | ks8842.c | 1146 struct resource *iomem; in ks8842_probe() local 1153 iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in ks8842_probe() 1154 if (!request_mem_region(iomem->start, resource_size(iomem), DRV_NAME)) in ks8842_probe() 1166 adapter->hw_addr = ioremap(iomem->start, resource_size(iomem)); in ks8842_probe() 1167 adapter->conf_flags = iomem->flags; in ks8842_probe() 1237 release_mem_region(iomem->start, resource_size(iomem)); in ks8842_probe() 1246 struct resource *iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in ks8842_remove() local 1252 release_mem_region(iomem->start, resource_size(iomem)); in ks8842_remove()
|
/drivers/usb/musb/ |
D | ux500_dma.c | 373 struct resource *iomem; in dma_controller_create() local 382 iomem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in dma_controller_create() 383 if (!iomem) { in dma_controller_create() 388 controller->phy_base = (dma_addr_t) iomem->start; in dma_controller_create()
|
/drivers/media/pci/ngene/ |
D | ngene-core.c | 60 #define ngwriteb(dat, adr) writeb((dat), (char *)(dev->iomem + (adr))) 61 #define ngwritel(dat, adr) writel((dat), (char *)(dev->iomem + (adr))) 62 #define ngwriteb(dat, adr) writeb((dat), (char *)(dev->iomem + (adr))) 63 #define ngreadl(adr) readl(dev->iomem + (adr)) 64 #define ngreadb(adr) readb(dev->iomem + (adr)) 66 (dev->iomem + (adr)), (src), (count)) 68 (dev->iomem + (adr)), (count)) 1162 if (dev->iomem) in ngene_release_buffers() 1163 iounmap(dev->iomem); in ngene_release_buffers() 1202 dev->iomem = ioremap(pci_resource_start(dev->pci_dev, 0), in ngene_get_buffers() [all …]
|