Lines Matching refs:page

63 static inline void kmap_invalidate_coherent(struct page *page,  in kmap_invalidate_coherent()  argument
66 if (!DCACHE_ALIAS_EQ(page_to_phys(page), vaddr)) { in kmap_invalidate_coherent()
69 if (!PageHighMem(page)) { in kmap_invalidate_coherent()
70 kvaddr = (unsigned long)page_to_virt(page); in kmap_invalidate_coherent()
75 (page_to_phys(page) & DCACHE_ALIAS_MASK); in kmap_invalidate_coherent()
78 page_to_phys(page)); in kmap_invalidate_coherent()
83 static inline void *coherent_kvaddr(struct page *page, unsigned long base, in coherent_kvaddr() argument
86 if (PageHighMem(page) || !DCACHE_ALIAS_EQ(page_to_phys(page), vaddr)) { in coherent_kvaddr()
87 *paddr = page_to_phys(page); in coherent_kvaddr()
91 return page_to_virt(page); in coherent_kvaddr()
95 void clear_user_highpage(struct page *page, unsigned long vaddr) in clear_user_highpage() argument
98 void *kvaddr = coherent_kvaddr(page, TLBTEMP_BASE_1, vaddr, &paddr); in clear_user_highpage()
101 kmap_invalidate_coherent(page, vaddr); in clear_user_highpage()
102 set_bit(PG_arch_1, &page->flags); in clear_user_highpage()
107 void copy_user_highpage(struct page *dst, struct page *src, in copy_user_highpage()
133 void flush_dcache_page(struct page *page) in flush_dcache_page() argument
135 struct address_space *mapping = page_mapping(page); in flush_dcache_page()
144 if (!test_bit(PG_arch_1, &page->flags)) in flush_dcache_page()
145 set_bit(PG_arch_1, &page->flags); in flush_dcache_page()
150 unsigned long phys = page_to_phys(page); in flush_dcache_page()
151 unsigned long temp = page->index << PAGE_SHIFT; in flush_dcache_page()
217 struct page *page; in update_mmu_cache() local
222 page = pfn_to_page(pfn); in update_mmu_cache()
230 if (!PageReserved(page) && test_bit(PG_arch_1, &page->flags)) { in update_mmu_cache()
231 unsigned long phys = page_to_phys(page); in update_mmu_cache()
240 clear_bit(PG_arch_1, &page->flags); in update_mmu_cache()
243 if (!PageReserved(page) && !test_bit(PG_arch_1, &page->flags) in update_mmu_cache()
245 unsigned long paddr = (unsigned long)kmap_atomic(page); in update_mmu_cache()
248 set_bit(PG_arch_1, &page->flags); in update_mmu_cache()
261 void copy_to_user_page(struct vm_area_struct *vma, struct page *page, in copy_to_user_page() argument
265 unsigned long phys = page_to_phys(page); in copy_to_user_page()
297 extern void copy_from_user_page(struct vm_area_struct *vma, struct page *page, in copy_from_user_page() argument
301 unsigned long phys = page_to_phys(page); in copy_from_user_page()