Lines Matching refs:mapping
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()
77 return __iomap_local_pfn_prot(PHYS_PFN(phys_addr), mapping->prot); in io_mapping_map_atomic_wc()
92 io_mapping_map_local_wc(struct io_mapping *mapping, unsigned long offset) in io_mapping_map_local_wc() argument
96 BUG_ON(offset >= mapping->size); in io_mapping_map_local_wc()
97 phys_addr = mapping->base + offset; in io_mapping_map_local_wc()
98 return __iomap_local_pfn_prot(PHYS_PFN(phys_addr), mapping->prot); in io_mapping_map_local_wc()
107 io_mapping_map_wc(struct io_mapping *mapping, in io_mapping_map_wc() argument
113 BUG_ON(offset >= mapping->size); in io_mapping_map_wc()
114 phys_addr = mapping->base + offset; in io_mapping_map_wc()
147 io_mapping_fini(struct io_mapping *mapping) in io_mapping_fini() argument
149 iounmap(mapping->iomem); in io_mapping_fini()
154 io_mapping_map_wc(struct io_mapping *mapping, in io_mapping_map_wc() argument
158 return mapping->iomem + offset; in io_mapping_map_wc()
168 io_mapping_map_atomic_wc(struct io_mapping *mapping, in io_mapping_map_atomic_wc() argument
176 return io_mapping_map_wc(mapping, offset, PAGE_SIZE); in io_mapping_map_atomic_wc()
191 io_mapping_map_local_wc(struct io_mapping *mapping, unsigned long offset) in io_mapping_map_local_wc() argument
193 return io_mapping_map_wc(mapping, offset, PAGE_SIZE); in io_mapping_map_local_wc()