Home
last modified time | relevance | path

Searched refs:iomap (Results 1 – 25 of 53) sorted by relevance

123

/drivers/ata/
Dpata_cs5520.c121 void __iomem *iomap[5]; in cs5520_init_one() local
166 iomap[0] = devm_ioport_map(&pdev->dev, cmd_port[0], 8); in cs5520_init_one()
167 iomap[1] = devm_ioport_map(&pdev->dev, ctl_port[0], 1); in cs5520_init_one()
168 iomap[2] = devm_ioport_map(&pdev->dev, cmd_port[1], 8); in cs5520_init_one()
169 iomap[3] = devm_ioport_map(&pdev->dev, ctl_port[1], 1); in cs5520_init_one()
170 iomap[4] = pcim_iomap(pdev, 2, 0); in cs5520_init_one()
172 if (!iomap[0] || !iomap[1] || !iomap[2] || !iomap[3] || !iomap[4]) in cs5520_init_one()
176 ioaddr->cmd_addr = iomap[0]; in cs5520_init_one()
177 ioaddr->ctl_addr = iomap[1]; in cs5520_init_one()
178 ioaddr->altstatus_addr = iomap[1]; in cs5520_init_one()
[all …]
Dsata_uli.c135 void __iomem * const *iomap; in uli_init_one() local
166 iomap = host->iomap; in uli_init_one()
177 ioaddr->cmd_addr = iomap[0] + 8; in uli_init_one()
180 ((unsigned long)iomap[1] | ATA_PCI_CTL_OFS) + 4; in uli_init_one()
181 ioaddr->bmdma_addr = iomap[4] + 16; in uli_init_one()
192 ioaddr->cmd_addr = iomap[2] + 8; in uli_init_one()
195 ((unsigned long)iomap[3] | ATA_PCI_CTL_OFS) + 4; in uli_init_one()
196 ioaddr->bmdma_addr = iomap[4] + 24; in uli_init_one()
Dsata_sx4.c442 void __iomem *mmio = ap->host->iomap[PDC_MMIO_BAR]; in pdc20621_dma_prep()
443 void __iomem *dimm_mmio = ap->host->iomap[PDC_DIMM_BAR]; in pdc20621_dma_prep()
502 void __iomem *mmio = ap->host->iomap[PDC_MMIO_BAR]; in pdc20621_nodata_prep()
503 void __iomem *dimm_mmio = ap->host->iomap[PDC_DIMM_BAR]; in pdc20621_nodata_prep()
555 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in __pdc20621_push_hdma()
609 void __iomem *dimm_mmio = ap->host->iomap[PDC_DIMM_BAR]; in pdc20621_dump_hdma()
628 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_packet_start()
786 if (!host || !host->iomap[PDC_MMIO_BAR]) { in pdc20621_interrupt()
791 mmio_base = host->iomap[PDC_MMIO_BAR]; in pdc20621_interrupt()
990 void __iomem *mmio = host->iomap[PDC_MMIO_BAR]; in pdc20621_get_from_dimm()
[all …]
Dsata_vsc.c108 mask_addr = ap->host->iomap[VSC_MMIO_BAR] + in vsc_freeze()
119 mask_addr = ap->host->iomap[VSC_MMIO_BAR] + in vsc_thaw()
131 mask_addr = ap->host->iomap[VSC_MMIO_BAR] + in vsc_intr_mask_update()
255 status = readl(host->iomap[VSC_MMIO_BAR] + VSC_SATA_INT_STAT_OFFSET); in vsc_sata_interrupt()
357 host->iomap = pcim_iomap_table(pdev); in vsc_sata_init_one()
359 mmio_base = host->iomap[VSC_MMIO_BAR]; in vsc_sata_init_one()
Dsata_sil.c254 void __iomem *mmio_base = ap->host->iomap[SIL_MMIO_BAR]; in sil_bmdma_stop()
280 void __iomem *mmio_base = ap->host->iomap[SIL_MMIO_BAR]; in sil_bmdma_start()
349 void __iomem *mmio_base = ap->host->iomap[SIL_MMIO_BAR]; in sil_set_mode()
510 void __iomem *mmio_base = host->iomap[SIL_MMIO_BAR]; in sil_interrupt()
539 void __iomem *mmio_base = ap->host->iomap[SIL_MMIO_BAR]; in sil_freeze()
567 void __iomem *mmio_base = ap->host->iomap[SIL_MMIO_BAR]; in sil_thaw()
654 void __iomem *mmio_base = host->iomap[SIL_MMIO_BAR]; in sil_init_controller()
760 host->iomap = pcim_iomap_table(pdev); in sil_init_one()
766 mmio_base = host->iomap[SIL_MMIO_BAR]; in sil_init_one()
Dsata_via.c438 void __iomem * const * iomap = ap->host->iomap; in vt6421_init_addrs() local
439 void __iomem *reg_addr = iomap[ap->port_no]; in vt6421_init_addrs()
440 void __iomem *bmdma_addr = iomap[4] + (ap->port_no * 8); in vt6421_init_addrs()
448 ioaddr->scr_addr = vt6421_scr_addr(iomap[5], ap->port_no); in vt6421_init_addrs()
478 host->ports[0]->ioaddr.scr_addr = svia_scr_addr(host->iomap[5], 0); in vt6420_prepare_host()
479 host->ports[1]->ioaddr.scr_addr = svia_scr_addr(host->iomap[5], 1); in vt6420_prepare_host()
503 host->iomap = pcim_iomap_table(pdev); in vt6421_prepare_host()
Dpata_ninja32.c125 host->iomap = pcim_iomap_table(dev); in ninja32_init_one()
133 base = host->iomap[0]; in ninja32_init_one()
162 ninja32_program(host->iomap[0]); in ninja32_reinit_one()
Dpata_pdc2027x.c183 return ap->host->iomap[PDC_MMIO_BAR] + ap->port_no * 0x100 + offset; in port_mmio()
473 void __iomem *mmio_base = host->iomap[PDC_MMIO_BAR]; in pdc_read_counter()
514 void __iomem *mmio_base = host->iomap[PDC_MMIO_BAR]; in pdc_adjust_pll()
600 void __iomem *mmio_base = host->iomap[PDC_MMIO_BAR]; in pdc_detect_pll_input_clock()
723 host->iomap = pcim_iomap_table(pdev); in pdc2027x_init_one()
729 mmio_base = host->iomap[PDC_MMIO_BAR]; in pdc2027x_init_one()
Dsata_nv.c895 u8 irq_stat = readb(host->iomap[NV_MMIO_BAR] + NV_INT_STATUS_CK804) in nv_adma_interrupt()
903 u8 irq_stat = readb(host->iomap[NV_MMIO_BAR] + NV_INT_STATUS_CK804) in nv_adma_interrupt()
1024 ap->host->iomap[NV_MMIO_BAR] + NV_INT_STATUS_CK804); in nv_adma_freeze()
1064 ap->host->iomap[NV_MMIO_BAR] + NV_INT_STATUS_CK804); in nv_adma_irq_clear()
1122 mmio = ap->host->iomap[NV_MMIO_BAR] + NV_ADMA_PORT + in nv_adma_port_start()
1125 pp->gen_block = ap->host->iomap[NV_MMIO_BAR] + NV_ADMA_GEN; in nv_adma_port_start()
1252 void __iomem *mmio = ap->host->iomap[NV_MMIO_BAR]; in nv_adma_setup_port()
1509 irq_stat = readb(host->iomap[NV_MMIO_BAR] + NV_INT_STATUS_CK804); in nv_ck804_interrupt()
1592 void __iomem *mmio_base = ap->host->iomap[NV_MMIO_BAR]; in nv_ck804_freeze()
1603 void __iomem *mmio_base = ap->host->iomap[NV_MMIO_BAR]; in nv_ck804_thaw()
[all …]
Dsata_sil24.c469 return ap->host->iomap[SIL24_PORT_BAR] + sil24_port_offset(ap); in sil24_port_base()
1145 void __iomem *host_base = host->iomap[SIL24_HOST_BAR]; in sil24_interrupt()
1224 void __iomem *host_base = host->iomap[SIL24_HOST_BAR]; in sil24_init_controller()
1268 void __iomem * const *iomap; in sil24_init_one() local
1289 iomap = pcim_iomap_table(pdev); in sil24_init_one()
1293 tmp = readl(iomap[SIL24_HOST_BAR] + HOST_CTRL); in sil24_init_one()
1306 host->iomap = iomap; in sil24_init_one()
1336 void __iomem *host_base = host->iomap[SIL24_HOST_BAR]; in sil24_pci_device_resume()
Dsata_promise.c711 void __iomem *host_mmio = host->iomap[PDC_MMIO_BAR]; in pdc_sata_freeze()
749 void __iomem *host_mmio = host->iomap[PDC_MMIO_BAR]; in pdc_sata_thaw()
776 void __iomem *host_mmio = ap->host->iomap[PDC_MMIO_BAR]; in pdc_ata_port_to_ata_no()
784 void __iomem *host_mmio = ap->host->iomap[PDC_MMIO_BAR]; in pdc_hard_reset_port()
927 if (!host || !host->iomap[PDC_MMIO_BAR]) { in pdc_interrupt()
932 host_mmio = host->iomap[PDC_MMIO_BAR]; in pdc_interrupt()
1003 void __iomem *host_mmio = ap->host->iomap[PDC_MMIO_BAR]; in pdc_packet_start()
1110 void __iomem *host_mmio = host->iomap[PDC_MMIO_BAR]; in pdc_host_init()
1211 host->iomap = pcim_iomap_table(pdev); in pdc_ata_init_one()
Dsata_qstor.c163 return host->iomap[QS_MMIO_BAR]; in qs_mmio_base()
501 void __iomem *mmio_base = host->iomap[QS_MMIO_BAR]; in qs_host_init()
577 host->iomap = pcim_iomap_table(pdev); in qs_ata_init_one()
579 rc = qs_set_dma_masks(pdev, host->iomap[QS_MMIO_BAR]); in qs_ata_init_one()
586 void __iomem *chan = host->iomap[QS_MMIO_BAR] + offset; in qs_ata_init_one()
Dpata_hpt3x3.c223 host->iomap = pcim_iomap_table(pdev); in hpt3x3_init_one()
228 base = host->iomap[4]; /* Bus mastering base */ in hpt3x3_init_one()
Dpdc_adma.c41 ADMA_REGS((ap)->host->iomap[ADMA_MMIO_BAR], ap->port_no)
569 writeb(7, host->iomap[ADMA_MMIO_BAR] + ADMA_MODE_LOCK); in adma_host_init()
603 host->iomap = pcim_iomap_table(pdev); in adma_ata_init_one()
604 mmio_base = host->iomap[ADMA_MMIO_BAR]; in adma_ata_init_one()
Dpata_atp867x.c69 #define ATP867X_IOBASE(ap) ((ap)->host->iomap[0])
420 host->iomap = pcim_iomap_table(pdev); in atp867x_ata_pci_sff_init_host()
427 (unsigned long long)(host->iomap[i])); in atp867x_ata_pci_sff_init_host()
Dsata_inic162x.c824 void __iomem * const *iomap; in inic_init_one() local
855 host->iomap = iomap = pcim_iomap_table(pdev); in inic_init_one()
856 hpriv->mmio_base = iomap[mmio_bar]; in inic_init_one()
/drivers/gpu/drm/ttm/
Dttm_resource.c187 addr = io_mapping_map_local_wc(iter_io->iomap, iter_io->cache.offs + in ttm_kmap_iter_iomap_map_local()
218 struct io_mapping *iomap, in ttm_kmap_iter_iomap_init() argument
223 iter_io->iomap = iomap; in ttm_kmap_iter_iomap_init()
/drivers/pcmcia/
Dpcmcia_resource.c486 pccard_io_map iomap; in pcmcia_enable_device() local
588 iomap.speed = io_speed; in pcmcia_enable_device()
591 iomap.map = i; in pcmcia_enable_device()
592 iomap.flags = MAP_ACTIVE; in pcmcia_enable_device()
595 iomap.flags |= MAP_16BIT; break; in pcmcia_enable_device()
597 iomap.flags |= MAP_AUTOSZ; break; in pcmcia_enable_device()
601 iomap.start = s->io[i].res->start; in pcmcia_enable_device()
602 iomap.stop = s->io[i].res->end; in pcmcia_enable_device()
603 s->ops->set_io_map(s, &iomap); in pcmcia_enable_device()
/drivers/gpu/drm/i915/gt/
Dintel_region_lmem.c73 io_mapping_fini(&mem->iomap); in region_lmem_release()
87 if (!io_mapping_init_wc(&mem->iomap, in region_lmem_init()
101 io_mapping_fini(&mem->iomap); in region_lmem_init()
/drivers/net/ethernet/microchip/sparx5/
Dsparx5_main.c221 const struct sparx5_main_io_resource *iomap = &sparx5_main_iomap[jdx]; in sparx5_create_targets() local
223 if (idx == iomap->range) { in sparx5_create_targets()
247 const struct sparx5_main_io_resource *iomap = &sparx5_main_iomap[jdx]; in sparx5_create_targets() local
249 sparx5->regs[iomap->id] = begin[iomap->range] + iomap->offset; in sparx5_create_targets()
/drivers/gpu/drm/i915/gem/
Di915_gem_mman.c251 resource_size_t iomap; in vm_fault_cpu() local
266 iomap = -1; in vm_fault_cpu()
268 iomap = obj->mm.region->iomap.base; in vm_fault_cpu()
269 iomap -= obj->mm.region->region.start; in vm_fault_cpu()
275 obj->mm.pages->sgl, iomap); in vm_fault_cpu()
384 &ggtt->iomap); in vm_fault_gtt()
Di915_gem_stolen.c531 s = io_mapping_map_wc(&ggtt->iomap, in dbg_poison()
741 if (!io_mapping_init_wc(&mem->iomap, in init_stolen_lmem()
758 io_mapping_fini(&mem->iomap); in init_stolen_lmem()
764 io_mapping_fini(&mem->iomap); in release_stolen_lmem()
/drivers/gpu/drm/i915/
Di915_mm.c92 struct io_mapping *iomap) in remap_io_mapping() argument
103 r.prot = __pgprot((pgprot_val(iomap->prot) & _PAGE_CACHE_MASK) | in remap_io_mapping()
Di915_vma.c460 ptr = READ_ONCE(vma->iomap); in i915_vma_pin_iomap()
472 ptr = io_mapping_map_wc(&i915_vm_to_ggtt(vma->vm)->iomap, in i915_vma_pin_iomap()
480 if (unlikely(cmpxchg(&vma->iomap, NULL, ptr))) { in i915_vma_pin_iomap()
482 ptr = vma->iomap; in i915_vma_pin_iomap()
511 GEM_BUG_ON(vma->iomap == NULL); in i915_vma_unpin_iomap()
1191 if (vma->iomap == NULL) in __i915_vma_iounmap()
1194 io_mapping_unmap(vma->iomap); in __i915_vma_iounmap()
1195 vma->iomap = NULL; in __i915_vma_iounmap()
/drivers/nvdimm/
DMakefile35 obj-$(CONFIG_NVDIMM_TEST_BUILD) += $(TEST_SRC)/iomap.o

123