Lines Matching full:mapping
11 * It is very strongly tied to the statically allocated mapping table in struct
13 * functions in this file providing things like ranged mapping by bypassing
15 * enter the mapping addresses into the table for users of the old API.
42 * A requested region spanning an entire BAR, and a mapping for
48 * A mapping within a BAR, either spanning the whole BAR or just a
435 * mapping's address directly from one of the pcim_* mapping functions. For
457 * Fill the legacy mapping-table, so that drivers using the old API can
458 * still get a BAR's mapping address through pcim_iomap_table().
461 void __iomem *mapping, int bar) in pcim_add_mapping_to_legacy_table() argument
472 legacy_iomap_table[bar] = mapping; in pcim_add_mapping_to_legacy_table()
478 * Remove a mapping. The table only contains whole-BAR mappings, so this will
501 * mapping by its BAR index.
537 void __iomem *mapping; in pcim_iomap() local
548 mapping = pci_iomap(pdev, bar, maxlen); in pcim_iomap()
549 if (!mapping) in pcim_iomap()
551 res->baseaddr = mapping; in pcim_iomap()
553 if (pcim_add_mapping_to_legacy_table(pdev, mapping, bar) != 0) in pcim_iomap()
557 return mapping; in pcim_iomap()
560 pci_iounmap(pdev, mapping); in pcim_iomap()
572 * Managed pci_iounmap(). @addr must have been mapped using a pcim_* mapping
601 * Mapping and region will get automatically released on driver detach. If
680 void __iomem *mapping; in pcim_iomap_regions() local
686 mapping = pcim_iomap_region(pdev, bar, name); in pcim_iomap_regions()
687 if (IS_ERR(mapping)) { in pcim_iomap_regions()
688 ret = PTR_ERR(mapping); in pcim_iomap_regions()
691 ret = pcim_add_mapping_to_legacy_table(pdev, mapping, bar); in pcim_iomap_regions()
817 * pcim_iomap_range - Create a ranged __iomap mapping within a PCI BAR
821 * @len: Length in bytes for the mapping
825 * Creates a new IO-Mapping within the specified @bar, ranging from @offset to
828 * The mapping will automatically get unmapped on driver detach. If desired,
834 void __iomem *mapping; in pcim_iomap_range() local
844 mapping = pci_iomap_range(pdev, bar, offset, len); in pcim_iomap_range()
845 if (!mapping) { in pcim_iomap_range()
851 res->baseaddr = mapping; in pcim_iomap_range()
859 return mapping; in pcim_iomap_range()