Lines Matching defs:mapping
199 void __flush_dcache_folio(struct address_space *mapping, struct folio *folio)
202 * Writeback any data associated with the kernel mapping of this
204 * coherent with the kernels mapping.
234 if (mapping && cache_is_vipt_aliasing())
238 static void __flush_dcache_aliases(struct address_space *mapping, struct folio *folio)
248 * - aliasing VIPT: we only need to find one mapping of this page.
253 flush_dcache_mmap_lock(mapping);
254 vma_interval_tree_foreach(vma, &mapping->i_mmap, pgoff, pgoff_end) {
281 flush_dcache_mmap_unlock(mapping);
289 struct address_space *mapping;
300 mapping = folio_flush_mapping(folio);
302 mapping = NULL;
305 __flush_dcache_folio(mapping, folio);
313 * Ensure cache coherency between kernel mapping and userspace mapping
333 struct address_space *mapping;
348 mapping = folio_flush_mapping(folio);
351 mapping && !folio_mapped(folio))
354 __flush_dcache_folio(mapping, folio);
355 if (mapping && cache_is_vivt())
356 __flush_dcache_aliases(mapping, folio);
357 else if (mapping)
388 * Write back and invalidate userspace mapping.
403 * Invalidate kernel mapping. No data should be contained
404 * in this mapping of the page. FIXME: this is overkill