/arch/mips/include/asm/ |
D | pgtable.h | 94 static inline void set_pte(pte_t *ptep, pte_t pte) in set_pte() 102 pte_t *buddy = ptep_buddy(ptep); in set_pte() 115 static inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) in pte_clear() 117 pte_t null = __pte(0); in pte_clear() 135 static inline void set_pte(pte_t *ptep, pte_t pteval) in set_pte() 140 pte_t *buddy = ptep_buddy(ptep); in set_pte() 152 static inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) in pte_clear() 180 #define PTE_T_LOG2 (__builtin_ffs(sizeof(pte_t)) - 1) 193 static inline int pte_write(pte_t pte) { return pte.pte_low & _PAGE_WRITE; } in pte_write() 194 static inline int pte_dirty(pte_t pte) { return pte.pte_low & _PAGE_MODIFIED; } in pte_dirty() [all …]
|
/arch/um/include/asm/ |
D | pgtable.h | 123 static inline int pte_none(pte_t pte) in pte_none() 132 static inline int pte_read(pte_t pte) in pte_read() 138 static inline int pte_exec(pte_t pte){ in pte_exec() 143 static inline int pte_write(pte_t pte) in pte_write() 152 static inline int pte_file(pte_t pte) in pte_file() 157 static inline int pte_dirty(pte_t pte) in pte_dirty() 162 static inline int pte_young(pte_t pte) in pte_young() 167 static inline int pte_newpage(pte_t pte) in pte_newpage() 172 static inline int pte_newprot(pte_t pte) in pte_newprot() 177 static inline int pte_special(pte_t pte) in pte_special() [all …]
|
/arch/m68k/include/asm/ |
D | sun3_pgtable.h | 106 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() 124 static inline int pte_none (pte_t pte) { return !pte_val (pte); } in pte_none() 125 static inline int pte_present (pte_t pte) { return pte_val (pte) & SUN3_PAGE_VALID; } in pte_present() 126 static inline void pte_clear (struct mm_struct *mm, unsigned long addr, pte_t *ptep) in pte_clear() 133 ({ pte_t __pte; pte_val(__pte) = pfn | pgprot_val(pgprot); __pte; }) 168 static inline int pte_write(pte_t pte) { return pte_val(pte) & SUN3_PAGE_WRITEABLE; } in pte_write() 169 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & SUN3_PAGE_MODIFIED; } in pte_dirty() 170 static inline int pte_young(pte_t pte) { return pte_val(pte) & SUN3_PAGE_ACCESSED; } in pte_young() 171 static inline int pte_file(pte_t pte) { return pte_val(pte) & SUN3_PAGE_ACCESSED; } in pte_file() 172 static inline int pte_special(pte_t pte) { return 0; } in pte_special() [all …]
|
D | motorola_pgtable.h | 102 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() 108 static inline void pmd_set(pmd_t *pmdp, pte_t *ptep) in pmd_set() 115 ptbl += (sizeof(pte_t)*PTRS_PER_PTE/16); in pmd_set() 167 static inline int pte_write(pte_t pte) { return !(pte_val(pte) & _PAGE_RONLY); } in pte_write() 168 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 169 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 170 static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } in pte_file() 171 static inline int pte_special(pte_t pte) { return 0; } in pte_special() 173 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) |= _PAGE_RONLY; return pte; } in pte_wrprotect() 174 static inline pte_t pte_mkclean(pte_t pte) { pte_val(pte) &= ~_PAGE_DIRTY; return pte; } in pte_mkclean() [all …]
|
/arch/sparc/include/asm/ |
D | pgtable_32.h | 83 extern pte_t pg0[1024]; 84 extern pte_t pg1[1024]; 85 extern pte_t pg2[1024]; 86 extern pte_t pg3[1024]; 129 extern pte_t * __bad_pagetable(void); 130 extern pte_t __bad_page(void); 146 BTFIXUPDEF_CALL_CONST(int, pte_present, pte_t) in BTFIXUPDEF_CALL_CONST() 147 BTFIXUPDEF_CALL(void, pte_clear, pte_t *) in BTFIXUPDEF_CALL_CONST() 149 static inline int pte_none(pte_t pte) in BTFIXUPDEF_CALL_CONST() 188 static int pte_write(pte_t pte) __attribute_const__; [all …]
|
D | hugetlb.h | 8 pte_t *ptep, pte_t pte); 10 pte_t huge_ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, 11 pte_t *ptep); 44 unsigned long addr, pte_t *ptep) in huge_ptep_clear_flush() 48 static inline int huge_pte_none(pte_t pte) in huge_pte_none() 53 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect() 59 unsigned long addr, pte_t *ptep) in huge_ptep_set_wrprotect() 65 unsigned long addr, pte_t *ptep, in huge_ptep_set_access_flags() 66 pte_t pte, int dirty) in huge_ptep_set_access_flags() 71 static inline pte_t huge_ptep_get(pte_t *ptep) in huge_ptep_get()
|
D | pgtable_64.h | 200 extern pte_t mk_pte_io(unsigned long, pgprot_t, int, unsigned long); 226 static inline pte_t pfn_pte(unsigned long pfn, pgprot_t prot) in pfn_pte() 249 static inline unsigned long pte_pfn(pte_t pte) in pte_pfn() 270 static inline pte_t pte_modify(pte_t pte, pgprot_t prot) in pte_modify() 313 static inline pte_t pgoff_to_pte(unsigned long off) in pgoff_to_pte() 354 static inline pte_t pte_mkhuge(pte_t pte) in pte_mkhuge() 373 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() 397 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 421 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() 439 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() [all …]
|
/arch/cris/include/asm/ |
D | pgtable.h | 114 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 115 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_MODIFIED; } in pte_dirty() 116 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 117 static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } in pte_file() 118 static inline int pte_special(pte_t pte) { return 0; } in pte_special() 120 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() 126 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 132 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 138 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() 146 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() [all …]
|
/arch/sh/include/asm/ |
D | hugetlb.h | 39 pte_t *ptep, pte_t pte) in set_huge_pte_at() 44 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear() 45 unsigned long addr, pte_t *ptep) in huge_ptep_get_and_clear() 51 unsigned long addr, pte_t *ptep) in huge_ptep_clear_flush() 55 static inline int huge_pte_none(pte_t pte) in huge_pte_none() 60 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect() 66 unsigned long addr, pte_t *ptep) in huge_ptep_set_wrprotect() 72 unsigned long addr, pte_t *ptep, in huge_ptep_set_access_flags() 73 pte_t pte, int dirty) in huge_ptep_set_access_flags() 78 static inline pte_t huge_ptep_get(pte_t *ptep) in huge_ptep_get()
|
D | pgtable_64.h | 35 static __inline__ void set_pte(pte_t *pteptr, pte_t pteval) in set_pte() 46 static __inline__ void pmd_set(pmd_t *pmdp,pte_t *ptep) in pmd_set() 84 ((pte_t *) ((pmd_val(*(dir))) & PAGE_MASK) + pte_index((addr))) 257 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 258 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 259 static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } in pte_file() 260 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 261 static inline int pte_special(pte_t pte){ return 0; } in pte_special() 263 static inline pte_t pte_wrprotect(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) & ~_PAGE_WRITE)); r… in pte_wrprotect() 264 static inline pte_t pte_mkclean(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) & ~_PAGE_DIRTY)); ret… in pte_mkclean() [all …]
|
/arch/ia64/include/asm/ |
D | hugetlb.h | 27 pte_t *ptep, pte_t pte) in set_huge_pte_at() 32 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear() 33 unsigned long addr, pte_t *ptep) in huge_ptep_get_and_clear() 39 unsigned long addr, pte_t *ptep) in huge_ptep_clear_flush() 43 static inline int huge_pte_none(pte_t pte) in huge_pte_none() 48 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect() 54 unsigned long addr, pte_t *ptep) in huge_ptep_set_wrprotect() 60 unsigned long addr, pte_t *ptep, in huge_ptep_set_access_flags() 61 pte_t pte, int dirty) in huge_ptep_set_access_flags() 66 static inline pte_t huge_ptep_get(pte_t *ptep) in huge_ptep_get()
|
/arch/powerpc/include/asm/ |
D | hugetlb.h | 15 pte_t *ptep, pte_t pte); 17 pte_t huge_ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, 18 pte_t *ptep); 46 unsigned long addr, pte_t *ptep) in huge_ptep_clear_flush() 50 static inline int huge_pte_none(pte_t pte) in huge_pte_none() 55 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect() 61 unsigned long addr, pte_t *ptep, in huge_ptep_set_access_flags() 62 pte_t pte, int dirty) in huge_ptep_set_access_flags() 67 static inline pte_t huge_ptep_get(pte_t *ptep) in huge_ptep_get()
|
D | pgtable-ppc32.h | 12 extern pte_t *va_to_pte(unsigned long address); 90 #define PTE_TABLE_SIZE (sizeof(pte_t) << PTE_SHIFT) 554 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write() 555 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 556 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 557 static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } in pte_file() 558 static inline int pte_special(pte_t pte) { return pte_val(pte) & _PAGE_SPECIAL; } in pte_special() 560 static inline pte_t pte_wrprotect(pte_t pte) { in pte_wrprotect() 562 static inline pte_t pte_mkclean(pte_t pte) { in pte_mkclean() 564 static inline pte_t pte_mkold(pte_t pte) { in pte_mkold() [all …]
|
D | pgtable-ppc64.h | 171 static inline pte_t pfn_pte(unsigned long pfn, pgprot_t pgprot) in pfn_pte() 173 pte_t pte; in pfn_pte() 227 (((pte_t *) pmd_page_vaddr(*(dir))) + (((addr) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))) 242 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW;} in pte_write() 243 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY;} in pte_dirty() 244 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED;} in pte_young() 245 static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE;} in pte_file() 246 static inline int pte_special(pte_t pte) { return pte_val(pte) & _PAGE_SPECIAL; } in pte_special() 248 static inline pte_t pte_wrprotect(pte_t pte) { in pte_wrprotect() 250 static inline pte_t pte_mkclean(pte_t pte) { in pte_mkclean() [all …]
|
/arch/xtensa/include/asm/ |
D | pgtable.h | 209 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITABLE; } in pte_write() 210 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 211 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 212 static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } in pte_file() 213 static inline int pte_special(pte_t pte) { return 0; } in pte_special() 215 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() 217 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 219 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 221 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() 223 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() [all …]
|
/arch/x86/include/asm/ |
D | pgtable.h | 190 static inline int pte_dirty(pte_t pte) in pte_dirty() 195 static inline int pte_young(pte_t pte) in pte_young() 200 static inline int pte_write(pte_t pte) in pte_write() 205 static inline int pte_file(pte_t pte) in pte_file() 210 static inline int pte_huge(pte_t pte) in pte_huge() 215 static inline int pte_global(pte_t pte) in pte_global() 220 static inline int pte_exec(pte_t pte) in pte_exec() 225 static inline int pte_special(pte_t pte) in pte_special() 230 static inline unsigned long pte_pfn(pte_t pte) in pte_pfn() 243 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() [all …]
|
D | hugetlb.h | 40 pte_t *ptep, pte_t pte) in set_huge_pte_at() 45 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear() 46 unsigned long addr, pte_t *ptep) in huge_ptep_get_and_clear() 52 unsigned long addr, pte_t *ptep) in huge_ptep_clear_flush() 56 static inline int huge_pte_none(pte_t pte) in huge_pte_none() 61 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect() 67 unsigned long addr, pte_t *ptep) in huge_ptep_set_wrprotect() 73 unsigned long addr, pte_t *ptep, in huge_ptep_set_access_flags() 74 pte_t pte, int dirty) in huge_ptep_set_access_flags() 79 static inline pte_t huge_ptep_get(pte_t *ptep) in huge_ptep_get()
|
D | pgtable-3level.h | 42 static inline void native_set_pte(pte_t *ptep, pte_t pte) in native_set_pte() 57 pte_t *ptep, pte_t pte) in native_set_pte_present() 66 static inline void native_set_pte_atomic(pte_t *ptep, pte_t pte) in native_set_pte_atomic() 87 pte_t *ptep) in native_pte_clear() 133 static inline pte_t native_ptep_get_and_clear(pte_t *ptep) in native_ptep_get_and_clear() 135 pte_t res; in native_ptep_get_and_clear() 149 static inline int pte_same(pte_t a, pte_t b) in pte_same() 154 static inline int pte_none(pte_t pte) in pte_none() 165 ((pte_t) { { .pte_low = _PAGE_FILE, .pte_high = (off) } }) 174 #define __swp_entry_to_pte(x) ((pte_t){ { .pte_high = (x).val } })
|
/arch/x86/xen/ |
D | mmu.h | 21 pteval_t xen_pte_val(pte_t); 25 pte_t xen_make_pte(pteval_t); 29 void xen_set_pte(pte_t *ptep, pte_t pteval); 31 pte_t *ptep, pte_t pteval); 34 void xen_set_pte_atomic(pte_t *ptep, pte_t pte); 35 void xen_pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep); 53 pte_t xen_ptep_modify_prot_start(struct mm_struct *mm, unsigned long addr, pte_t *ptep); 55 pte_t *ptep, pte_t pte);
|
/arch/alpha/include/asm/ |
D | pgtable.h | 150 extern pte_t __bad_page(void); 212 pte_t pte; \ 219 extern inline pte_t pfn_pte(unsigned long physpfn, pgprot_t pgprot) in pfn_pte() 220 { pte_t pte; pte_val(pte) = (PHYS_TWIDDLE(physpfn) << 32) | pgprot_val(pgprot); return pte; } in pfn_pte() 222 extern inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() 225 extern inline void pmd_set(pmd_t * pmdp, pte_t * ptep) in pmd_set() 246 extern inline int pte_none(pte_t pte) { return !pte_val(pte); } in pte_none() 247 extern inline int pte_present(pte_t pte) { return pte_val(pte) & _PAGE_VALID; } in pte_present() 248 extern inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) in pte_clear() 267 extern inline int pte_write(pte_t pte) { return !(pte_val(pte) & _PAGE_FOW); } in pte_write() [all …]
|
/arch/s390/include/asm/ |
D | hugetlb.h | 19 pte_t *ptep, pte_t pte); 40 static inline pte_t pte_mkhuge(pte_t pte) in pte_mkhuge() 66 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect() 72 static inline int huge_pte_none(pte_t pte) in huge_pte_none() 78 static inline pte_t huge_ptep_get(pte_t *ptep) in huge_ptep_get() 80 pte_t pte = *ptep; in huge_ptep_get() 84 ptep = (pte_t *) (pte_val(pte) & _SEGMENT_ENTRY_ORIGIN); in huge_ptep_get() 95 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear() 96 unsigned long addr, pte_t *ptep) in huge_ptep_get_and_clear() 98 pte_t pte = huge_ptep_get(ptep); in huge_ptep_get_and_clear() [all …]
|
D | pgtable.h | 423 pte_t *ptep, pte_t entry) in set_pte_at() 523 static inline int pte_none(pte_t pte) in pte_none() 528 static inline int pte_present(pte_t pte) in pte_present() 536 static inline int pte_file(pte_t pte) in pte_file() 542 static inline int pte_special(pte_t pte) in pte_special() 550 static inline void rcp_lock(pte_t *ptep) in rcp_lock() 560 static inline void rcp_unlock(pte_t *ptep) in rcp_unlock() 573 static inline void ptep_rcp_copy(pte_t *ptep) in ptep_rcp_copy() 600 static inline int pte_write(pte_t pte) in pte_write() 605 static inline int pte_dirty(pte_t pte) in pte_dirty() [all …]
|
/arch/avr32/include/asm/ |
D | pgtable.h | 196 static inline int pte_write(pte_t pte) in pte_write() 200 static inline int pte_dirty(pte_t pte) in pte_dirty() 204 static inline int pte_young(pte_t pte) in pte_young() 208 static inline int pte_special(pte_t pte) in pte_special() 216 static inline int pte_file(pte_t pte) in pte_file() 222 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() 227 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 232 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 237 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() 242 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() [all …]
|
/arch/s390/mm/ |
D | hugetlbpage.c | 13 pte_t *pteptr, pte_t pteval) in set_huge_pte_at() 16 pte_t shadow_pteval = pteval; in set_huge_pte_at() 20 pteptr = (pte_t *) pte_page(pteval)[1].index; in set_huge_pte_at() 41 pte_t pte; in arch_prepare_hugepage() 42 pte_t *ptep; in arch_prepare_hugepage() 48 ptep = (pte_t *) pte_alloc_one(&init_mm, address); in arch_prepare_hugepage() 63 pte_t *ptep; in arch_release_hugepage() 68 ptep = (pte_t *) page[1].index; in arch_release_hugepage() 75 pte_t *huge_pte_alloc(struct mm_struct *mm, in huge_pte_alloc() 86 return (pte_t *) pmdp; in huge_pte_alloc() [all …]
|
/arch/parisc/include/asm/ |
D | pgtable.h | 156 #define pgoff_to_pte(off) ((pte_t) { ((off) << PTE_SHIFT) | _PAGE_FILE }) 244 extern pte_t pg0[]; 322 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 323 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 324 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 325 static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } in pte_file() 326 static inline int pte_special(pte_t pte) { return 0; } in pte_special() 328 static inline pte_t pte_mkclean(pte_t pte) { pte_val(pte) &= ~_PAGE_DIRTY; return pte; } in pte_mkclean() 329 static inline pte_t pte_mkold(pte_t pte) { pte_val(pte) &= ~_PAGE_ACCESSED; return pte; } in pte_mkold() 330 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) &= ~_PAGE_WRITE; return pte; } in pte_wrprotect() [all …]
|