Lines Matching defs:folio
124 void flush_dcache_folio(struct folio *folio)
126 struct address_space *mapping = folio_flush_mapping(folio);
135 if (!test_bit(PG_arch_1, &folio->flags))
136 set_bit(PG_arch_1, &folio->flags);
140 unsigned long phys = folio_pfn(folio) * PAGE_SIZE;
141 unsigned long temp = folio_pos(folio);
142 unsigned int i, nr = folio_nr_pages(folio);
218 struct folio *folio;
224 folio = page_folio(pfn_to_page(pfn));
229 nr = folio_nr_pages(folio);
233 if (!folio_test_reserved(folio) && test_bit(PG_arch_1, &folio->flags)) {
234 unsigned long phys = folio_pfn(folio) * PAGE_SIZE;
248 clear_bit(PG_arch_1, &folio->flags);
251 if (!folio_test_reserved(folio) && !test_bit(PG_arch_1, &folio->flags)
254 void *paddr = kmap_local_folio(folio, i * PAGE_SIZE);
259 set_bit(PG_arch_1, &folio->flags);