Lines Matching refs:page
73 static void flush_aliases(struct address_space *mapping, struct page *page) in flush_aliases() argument
79 pgoff = page->index; in flush_aliases()
92 page_to_pfn(page)); in flush_aliases()
140 void flush_icache_page(struct vm_area_struct *vma, struct page *page) in flush_icache_page() argument
142 unsigned long start = (unsigned long) page_address(page); in flush_icache_page()
160 void __flush_dcache_page(struct address_space *mapping, struct page *page) in __flush_dcache_page() argument
167 unsigned long start = (unsigned long)page_address(page); in __flush_dcache_page()
172 void flush_dcache_page(struct page *page) in flush_dcache_page() argument
180 if (page == ZERO_PAGE(0)) in flush_dcache_page()
183 mapping = page_mapping_file(page); in flush_dcache_page()
187 clear_bit(PG_dcache_clean, &page->flags); in flush_dcache_page()
189 __flush_dcache_page(mapping, page); in flush_dcache_page()
191 unsigned long start = (unsigned long)page_address(page); in flush_dcache_page()
192 flush_aliases(mapping, page); in flush_dcache_page()
195 set_bit(PG_dcache_clean, &page->flags); in flush_dcache_page()
205 struct page *page; in update_mmu_cache() local
217 page = pfn_to_page(pfn); in update_mmu_cache()
218 if (page == ZERO_PAGE(0)) in update_mmu_cache()
221 mapping = page_mapping_file(page); in update_mmu_cache()
222 if (!test_and_set_bit(PG_dcache_clean, &page->flags)) in update_mmu_cache()
223 __flush_dcache_page(mapping, page); in update_mmu_cache()
227 flush_aliases(mapping, page); in update_mmu_cache()
229 flush_icache_page(vma, page); in update_mmu_cache()
234 struct page *to) in copy_user_page()
243 void clear_user_page(void *addr, unsigned long vaddr, struct page *page) in clear_user_page() argument
252 void copy_from_user_page(struct vm_area_struct *vma, struct page *page, in copy_from_user_page() argument
256 flush_cache_page(vma, user_vaddr, page_to_pfn(page)); in copy_from_user_page()
263 void copy_to_user_page(struct vm_area_struct *vma, struct page *page, in copy_to_user_page() argument
267 flush_cache_page(vma, user_vaddr, page_to_pfn(page)); in copy_to_user_page()