Lines Matching full:mapping

17  * The io_mapping mechanism provides an abstraction for mapping
20 * See Documentation/driver-api/io-mapping.rst
35 * For small address space machines, mapping large objects
58 io_mapping_fini(struct io_mapping *mapping) in io_mapping_fini() argument
60 iomap_free(mapping->base, mapping->size); in io_mapping_fini()
65 io_mapping_map_atomic_wc(struct io_mapping *mapping, in io_mapping_map_atomic_wc() argument
70 BUG_ON(offset >= mapping->size); in io_mapping_map_atomic_wc()
71 phys_addr = mapping->base + offset; in io_mapping_map_atomic_wc()
74 return __iomap_local_pfn_prot(PHYS_PFN(phys_addr), mapping->prot); in io_mapping_map_atomic_wc()
86 io_mapping_map_local_wc(struct io_mapping *mapping, unsigned long offset) in io_mapping_map_local_wc() argument
90 BUG_ON(offset >= mapping->size); in io_mapping_map_local_wc()
91 phys_addr = mapping->base + offset; in io_mapping_map_local_wc()
92 return __iomap_local_pfn_prot(PHYS_PFN(phys_addr), mapping->prot); in io_mapping_map_local_wc()
101 io_mapping_map_wc(struct io_mapping *mapping, in io_mapping_map_wc() argument
107 BUG_ON(offset >= mapping->size); in io_mapping_map_wc()
108 phys_addr = mapping->base + offset; in io_mapping_map_wc()
141 io_mapping_fini(struct io_mapping *mapping) in io_mapping_fini() argument
143 iounmap(mapping->iomem); in io_mapping_fini()
148 io_mapping_map_wc(struct io_mapping *mapping, in io_mapping_map_wc() argument
152 return mapping->iomem + offset; in io_mapping_map_wc()
162 io_mapping_map_atomic_wc(struct io_mapping *mapping, in io_mapping_map_atomic_wc() argument
167 return io_mapping_map_wc(mapping, offset, PAGE_SIZE); in io_mapping_map_atomic_wc()
179 io_mapping_map_local_wc(struct io_mapping *mapping, unsigned long offset) in io_mapping_map_local_wc() argument
181 return io_mapping_map_wc(mapping, offset, PAGE_SIZE); in io_mapping_map_local_wc()