Lines Matching defs:page
10 static inline void flush_anon_page(struct page *page, unsigned long vmaddr)
16 static inline void flush_kernel_dcache_page(struct page *page)
32 static inline void *kmap(struct page *page)
35 return page_address(page);
38 #define kunmap(page) do { (void) (page); } while (0)
40 #define kmap_atomic(page, idx) page_address(page)
48 static inline void clear_user_highpage(struct page *page, unsigned long vaddr)
50 void *addr = kmap_atomic(page, KM_USER0);
51 clear_user_page(addr, vaddr, page);
53 /* Make sure this page is cleared on other CPU's too before using it */
58 static inline struct page *
61 struct page *page = alloc_page_vma(GFP_HIGHUSER, vma, vaddr);
63 if (page)
64 clear_user_highpage(page, vaddr);
66 return page;
70 static inline void clear_highpage(struct page *page)
72 void *kaddr = kmap_atomic(page, KM_USER0);
80 static inline void memclear_highpage_flush(struct page *page, unsigned int offset, unsigned int size)
86 kaddr = kmap_atomic(page, KM_USER0);
88 flush_dcache_page(page);
92 static inline void copy_user_highpage(struct page *to, struct page *from, unsigned long vaddr)
101 /* Make sure this page is cleared on other CPU's too before using it */
105 static inline void copy_highpage(struct page *to, struct page *from)