Lines Matching refs:page

58 void copy_to_user_page(struct vm_area_struct *vma, struct page *page,  in copy_to_user_page()  argument
62 if (boot_cpu_data.dcache.n_aliases && page_mapped(page) && in copy_to_user_page()
63 test_bit(PG_dcache_clean, &page->flags)) { in copy_to_user_page()
64 void *vto = kmap_coherent(page, vaddr) + (vaddr & ~PAGE_MASK); in copy_to_user_page()
70 clear_bit(PG_dcache_clean, &page->flags); in copy_to_user_page()
74 flush_cache_page(vma, vaddr, page_to_pfn(page)); in copy_to_user_page()
77 void copy_from_user_page(struct vm_area_struct *vma, struct page *page, in copy_from_user_page() argument
81 if (boot_cpu_data.dcache.n_aliases && page_mapped(page) && in copy_from_user_page()
82 test_bit(PG_dcache_clean, &page->flags)) { in copy_from_user_page()
83 void *vfrom = kmap_coherent(page, vaddr) + (vaddr & ~PAGE_MASK); in copy_from_user_page()
89 clear_bit(PG_dcache_clean, &page->flags); in copy_from_user_page()
93 void copy_user_highpage(struct page *to, struct page *from, in copy_user_highpage()
121 void clear_user_highpage(struct page *page, unsigned long vaddr) in clear_user_highpage() argument
123 void *kaddr = kmap_atomic(page); in clear_user_highpage()
137 struct page *page; in __update_cache() local
143 page = pfn_to_page(pfn); in __update_cache()
145 int dirty = !test_and_set_bit(PG_dcache_clean, &page->flags); in __update_cache()
147 __flush_purge_region(page_address(page), PAGE_SIZE); in __update_cache()
151 void __flush_anon_page(struct page *page, unsigned long vmaddr) in __flush_anon_page() argument
153 unsigned long addr = (unsigned long) page_address(page); in __flush_anon_page()
156 if (boot_cpu_data.dcache.n_aliases && page_mapped(page) && in __flush_anon_page()
157 test_bit(PG_dcache_clean, &page->flags)) { in __flush_anon_page()
160 kaddr = kmap_coherent(page, vmaddr); in __flush_anon_page()
216 void flush_dcache_page(struct page *page) in flush_dcache_page() argument
218 cacheop_on_each_cpu(local_flush_dcache_page, page, 1); in flush_dcache_page()
234 void flush_icache_page(struct vm_area_struct *vma, struct page *page) in flush_icache_page() argument
237 cacheop_on_each_cpu(local_flush_icache_page, page, 1); in flush_icache_page()