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)
472 legacy_iomap_table[bar] = mapping;
478 * Remove a mapping. The table only contains whole-BAR mappings, so this will
501 * mapping by its BAR index.
537 void __iomem *mapping;
548 mapping = pci_iomap(pdev, bar, maxlen);
549 if (!mapping)
551 res->baseaddr = mapping;
553 if (pcim_add_mapping_to_legacy_table(pdev, mapping, bar) != 0)
557 return mapping;
560 pci_iounmap(pdev, mapping);
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;
686 mapping = pcim_iomap_region(pdev, bar, name);
687 if (IS_ERR(mapping)) {
688 ret = PTR_ERR(mapping);
691 ret = pcim_add_mapping_to_legacy_table(pdev, mapping, bar);
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;
844 mapping = pci_iomap_range(pdev, bar, offset, len);
845 if (!mapping) {
851 res->baseaddr = mapping;
859 return mapping;