/arch/s390/include/asm/ |
D | hugetlb.h | 20 pte_t *ptep, pte_t pte); 21 pte_t huge_ptep_get(pte_t *ptep); 22 pte_t huge_ptep_get_and_clear(struct mm_struct *mm, 23 unsigned long addr, pte_t *ptep); 46 pte_t *ptep) in huge_pte_clear() 52 unsigned long address, pte_t *ptep) in huge_ptep_clear_flush() 58 unsigned long addr, pte_t *ptep, in huge_ptep_set_access_flags() 59 pte_t pte, int dirty) in huge_ptep_set_access_flags() 70 unsigned long addr, pte_t *ptep) in huge_ptep_set_wrprotect() 72 pte_t pte = huge_ptep_get_and_clear(mm, addr, ptep); in huge_ptep_set_wrprotect() [all …]
|
/arch/powerpc/include/asm/ |
D | pgtable.h | 33 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write() 34 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 35 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 36 static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } in pte_file() 37 static inline int pte_special(pte_t pte) { return pte_val(pte) & _PAGE_SPECIAL; } in pte_special() 38 static inline int pte_none(pte_t pte) { return (pte_val(pte) & ~_PTE_NONE_MASK) == 0; } in pte_none() 39 static inline pgprot_t pte_pgprot(pte_t pte) { return __pgprot(pte_val(pte) & PAGE_PROT_BITS); } in pte_pgprot() 42 static inline int pte_present(pte_t pte) in pte_present() 48 static inline int pte_present_nonuma(pte_t pte) in pte_present_nonuma() 55 pte_t *ptep) in ptep_set_numa() [all …]
|
D | hugetlb.h | 15 static inline pte_t *hugepd_page(hugepd_t hpd) in hugepd_page() 22 return (pte_t *)(hpd.pd & ~HUGEPD_SHIFT_MASK); in hugepd_page() 37 static inline pte_t *hugepd_page(hugepd_t hpd) in hugepd_page() 40 return (pte_t *)((hpd.pd & ~HUGEPD_SHIFT_MASK) | PD_HUGE); in hugepd_page() 51 static inline pte_t *hugepte_offset(hugepd_t *hpdp, unsigned long addr, in hugepte_offset() 61 pte_t *dir = hugepd_page(*hpdp); in hugepte_offset() 69 pte_t *huge_pte_offset_and_shift(struct mm_struct *mm, 87 pte_t pte); 121 pte_t *ptep, pte_t pte) in set_huge_pte_at() 126 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear() [all …]
|
/arch/x86/include/asm/ |
D | pgtable.h | 92 static inline int pte_dirty(pte_t pte) in pte_dirty() 97 static inline int pte_young(pte_t pte) in pte_young() 112 static inline int pte_write(pte_t pte) in pte_write() 117 static inline int pte_file(pte_t pte) in pte_file() 122 static inline int pte_huge(pte_t pte) in pte_huge() 127 static inline int pte_global(pte_t pte) in pte_global() 132 static inline int pte_exec(pte_t pte) in pte_exec() 137 static inline int pte_special(pte_t pte) in pte_special() 148 static inline unsigned long pte_pfn(pte_t pte) in pte_pfn() 187 static inline pte_t pte_set_flags(pte_t pte, pteval_t set) in pte_set_flags() [all …]
|
D | hugetlb.h | 42 pte_t *ptep, pte_t pte) in set_huge_pte_at() 47 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear() 48 unsigned long addr, pte_t *ptep) in huge_ptep_get_and_clear() 54 unsigned long addr, pte_t *ptep) in huge_ptep_clear_flush() 59 static inline int huge_pte_none(pte_t pte) in huge_pte_none() 64 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect() 70 unsigned long addr, pte_t *ptep) in huge_ptep_set_wrprotect() 76 unsigned long addr, pte_t *ptep, in huge_ptep_set_access_flags() 77 pte_t pte, int dirty) in huge_ptep_set_access_flags() 82 static inline pte_t huge_ptep_get(pte_t *ptep) in huge_ptep_get()
|
/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 | mcf_pgtable.h | 159 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() 175 static inline int pte_none(pte_t pte) in pte_none() 180 static inline int pte_present(pte_t pte) in pte_present() 186 pte_t *ptep) in pte_clear() 221 static inline int pte_read(pte_t pte) in pte_read() 226 static inline int pte_write(pte_t pte) in pte_write() 231 static inline int pte_exec(pte_t pte) in pte_exec() 236 static inline int pte_dirty(pte_t pte) in pte_dirty() 241 static inline int pte_young(pte_t pte) in pte_young() 246 static inline int pte_file(pte_t pte) in pte_file() [all …]
|
D | motorola_pgtable.h | 103 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() 109 static inline void pmd_set(pmd_t *pmdp, pte_t *ptep) in pmd_set() 116 ptbl += (sizeof(pte_t)*PTRS_PER_PTE/16); in pmd_set() 168 static inline int pte_write(pte_t pte) { return !(pte_val(pte) & _PAGE_RONLY); } in pte_write() 169 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 170 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 171 static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } in pte_file() 172 static inline int pte_special(pte_t pte) { return 0; } in pte_special() 174 static inline pte_t pte_wrprotect(pte_t pte) { pte_val(pte) |= _PAGE_RONLY; return pte; } in pte_wrprotect() 175 static inline pte_t pte_mkclean(pte_t pte) { pte_val(pte) &= ~_PAGE_DIRTY; return pte; } in pte_mkclean() [all …]
|
/arch/um/include/asm/ |
D | pgtable.h | 128 static inline int pte_none(pte_t pte) in pte_none() 137 static inline int pte_read(pte_t pte) in pte_read() 143 static inline int pte_exec(pte_t pte){ in pte_exec() 148 static inline int pte_write(pte_t pte) in pte_write() 157 static inline int pte_file(pte_t pte) in pte_file() 162 static inline int pte_dirty(pte_t pte) in pte_dirty() 167 static inline int pte_young(pte_t pte) in pte_young() 172 static inline int pte_newpage(pte_t pte) in pte_newpage() 177 static inline int pte_newprot(pte_t pte) in pte_newprot() 182 static inline int pte_special(pte_t pte) in pte_special() [all …]
|
/arch/sparc/include/asm/ |
D | hugetlb.h | 9 pte_t *ptep, pte_t pte); 11 pte_t huge_ptep_get_and_clear(struct mm_struct *mm, unsigned long addr, 12 pte_t *ptep); 47 unsigned long addr, pte_t *ptep) in huge_ptep_clear_flush() 51 static inline int huge_pte_none(pte_t pte) in huge_pte_none() 56 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect() 62 unsigned long addr, pte_t *ptep) in huge_ptep_set_wrprotect() 64 pte_t old_pte = *ptep; in huge_ptep_set_wrprotect() 69 unsigned long addr, pte_t *ptep, in huge_ptep_set_access_flags() 70 pte_t pte, int dirty) in huge_ptep_set_access_flags() [all …]
|
D | pgtable_32.h | 114 static inline void set_pte(pte_t *ptep, pte_t pteval) in set_pte() 143 static inline int pte_present(pte_t pte) in pte_present() 148 static inline int pte_none(pte_t pte) in pte_none() 153 static inline void __pte_clear(pte_t *ptep) in __pte_clear() 158 static inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) in pte_clear() 182 set_pte((pte_t *)&pmdp->pmdv[i], __pte(0)); in pmd_clear() 202 set_pte((pte_t *)pgdp, __pte(0)); in pgd_clear() 209 static inline int pte_write(pte_t pte) in pte_write() 214 static inline int pte_dirty(pte_t pte) in pte_dirty() 219 static inline int pte_young(pte_t pte) in pte_young() [all …]
|
/arch/openrisc/include/asm/ |
D | pgtable.h | 238 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_READ; } in pte_read() 239 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write() 240 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 241 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 242 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 243 static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } in pte_file() 244 static inline int pte_special(pte_t pte) { return 0; } in pte_special() 245 static inline pte_t pte_mkspecial(pte_t pte) { return pte; } in pte_mkspecial() 247 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() 253 static inline pte_t pte_rdprotect(pte_t pte) in pte_rdprotect() [all …]
|
/arch/microblaze/include/asm/ |
D | pgtable.h | 41 #define __swp_entry_to_pte(x) ((pte_t) { (x).val }) 44 static inline int pte_file(pte_t pte) { return 0; } in pte_file() 80 extern pte_t *va_to_pte(unsigned long address); 87 static inline int pte_special(pte_t pte) { return 0; } in pte_special() 89 static inline pte_t pte_mkspecial(pte_t pte) { return pte; } in pte_mkspecial() 335 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } in pte_read() 336 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write() 337 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec() 338 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 339 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() [all …]
|
/arch/ia64/include/asm/ |
D | hugetlb.h | 28 pte_t *ptep, pte_t pte) in set_huge_pte_at() 33 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear() 34 unsigned long addr, pte_t *ptep) in huge_ptep_get_and_clear() 40 unsigned long addr, pte_t *ptep) in huge_ptep_clear_flush() 44 static inline int huge_pte_none(pte_t pte) in huge_pte_none() 49 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect() 55 unsigned long addr, pte_t *ptep) in huge_ptep_set_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()
|
/arch/metag/include/asm/ |
D | hugetlb.h | 30 pte_t *ptep, pte_t pte) in set_huge_pte_at() 35 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear() 36 unsigned long addr, pte_t *ptep) in huge_ptep_get_and_clear() 42 unsigned long addr, pte_t *ptep) in huge_ptep_clear_flush() 46 static inline int huge_pte_none(pte_t pte) in huge_pte_none() 51 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect() 57 unsigned long addr, pte_t *ptep) in huge_ptep_set_wrprotect() 63 unsigned long addr, pte_t *ptep, in huge_ptep_set_access_flags() 64 pte_t pte, int dirty) in huge_ptep_set_access_flags() 69 static inline pte_t huge_ptep_get(pte_t *ptep) in huge_ptep_get()
|
/arch/arm/include/asm/ |
D | hugetlb-3level.h | 32 static inline pte_t huge_ptep_get(pte_t *ptep) in huge_ptep_get() 34 pte_t retval = *ptep; in huge_ptep_get() 41 pte_t *ptep, pte_t pte) in set_huge_pte_at() 47 unsigned long addr, pte_t *ptep) in huge_ptep_clear_flush() 53 unsigned long addr, pte_t *ptep) in huge_ptep_set_wrprotect() 58 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear() 59 unsigned long addr, pte_t *ptep) in huge_ptep_get_and_clear() 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()
|
/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 | 41 pte_t *ptep, pte_t pte) in set_huge_pte_at() 46 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear() 47 unsigned long addr, pte_t *ptep) in huge_ptep_get_and_clear() 53 unsigned long addr, pte_t *ptep) in huge_ptep_clear_flush() 57 static inline int huge_pte_none(pte_t pte) in huge_pte_none() 62 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect() 68 unsigned long addr, pte_t *ptep) in huge_ptep_set_wrprotect() 74 unsigned long addr, pte_t *ptep, in huge_ptep_set_access_flags() 75 pte_t pte, int dirty) in huge_ptep_set_access_flags() 80 static inline pte_t huge_ptep_get(pte_t *ptep) in huge_ptep_get()
|
/arch/tile/include/asm/ |
D | hugetlb.h | 56 pte_t *ptep, pte_t pte) in set_huge_pte_at() 61 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear() 62 unsigned long addr, pte_t *ptep) in huge_ptep_get_and_clear() 68 unsigned long addr, pte_t *ptep) in huge_ptep_clear_flush() 73 static inline int huge_pte_none(pte_t pte) in huge_pte_none() 78 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect() 84 unsigned long addr, pte_t *ptep) in huge_ptep_set_wrprotect() 90 unsigned long addr, pte_t *ptep, in huge_ptep_set_access_flags() 91 pte_t pte, int dirty) in huge_ptep_set_access_flags() 96 static inline pte_t huge_ptep_get(pte_t *ptep) in huge_ptep_get() [all …]
|
/arch/mips/include/asm/ |
D | hugetlb.h | 55 pte_t *ptep, pte_t pte) in set_huge_pte_at() 60 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear() 61 unsigned long addr, pte_t *ptep) in huge_ptep_get_and_clear() 63 pte_t clear; in huge_ptep_get_and_clear() 64 pte_t pte = *ptep; in huge_ptep_get_and_clear() 72 unsigned long addr, pte_t *ptep) in huge_ptep_clear_flush() 77 static inline int huge_pte_none(pte_t pte) in huge_pte_none() 83 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect() 89 unsigned long addr, pte_t *ptep) in huge_ptep_set_wrprotect() 96 pte_t *ptep, pte_t pte, in huge_ptep_set_access_flags() [all …]
|
D | pgtable.h | 136 static inline void set_pte(pte_t *ptep, pte_t pte) in set_pte() 143 pte_t *buddy = ptep_buddy(ptep); in set_pte() 154 static inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) in pte_clear() 156 pte_t null = __pte(0); in pte_clear() 176 static inline void set_pte(pte_t *ptep, pte_t pteval) in set_pte() 181 pte_t *buddy = ptep_buddy(ptep); in set_pte() 224 static inline void pte_clear(struct mm_struct *mm, unsigned long addr, pte_t *ptep) in pte_clear() 254 #define PTE_T_LOG2 (__builtin_ffs(sizeof(pte_t)) - 1) 267 static inline int pte_write(pte_t pte) { return pte.pte_low & _PAGE_WRITE; } in pte_write() 268 static inline int pte_dirty(pte_t pte) { return pte.pte_low & _PAGE_MODIFIED; } in pte_dirty() [all …]
|
/arch/arm64/include/asm/ |
D | hugetlb.h | 28 static inline pte_t huge_ptep_get(pte_t *ptep) in huge_ptep_get() 34 pte_t *ptep, pte_t pte) in set_huge_pte_at() 40 unsigned long addr, pte_t *ptep) in huge_ptep_clear_flush() 46 unsigned long addr, pte_t *ptep) in huge_ptep_set_wrprotect() 51 static inline pte_t huge_ptep_get_and_clear(struct mm_struct *mm, in huge_ptep_get_and_clear() 52 unsigned long addr, pte_t *ptep) in huge_ptep_get_and_clear() 58 unsigned long addr, pte_t *ptep, in huge_ptep_set_access_flags() 59 pte_t pte, int dirty) in huge_ptep_set_access_flags() 93 static inline int huge_pte_none(pte_t pte) in huge_pte_none() 98 static inline pte_t huge_pte_wrprotect(pte_t pte) in huge_pte_wrprotect()
|
/arch/xtensa/include/asm/ |
D | pgtable.h | 259 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITABLE; } in pte_write() 260 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty() 261 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young() 262 static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } in pte_file() 263 static inline int pte_special(pte_t pte) { return 0; } in pte_special() 265 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() 267 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 269 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 271 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() 273 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() [all …]
|
/arch/score/include/asm/ |
D | pgtable.h | 12 extern pte_t invalid_pte_table[PAGE_SIZE/sizeof(pte_t)]; 85 ((pte_t *) pmd_page_vaddr(*(dir)) + __pte_offset(address)) 87 ((pte_t *) pmd_page_vaddr(*(dir)) + __pte_offset(address)) 90 ((pte_t *)page_address(pmd_page(*(dir))) + __pte_offset(address)) 101 ((pte_t) {((off) & 0x1ff) | (((off) >> 9) << 11) | _PAGE_FILE}) 104 #define __swp_entry_to_pte(x) ((pte_t) {(x).val}) 109 static inline pte_t pte_mkspecial(pte_t pte) { return pte; } in pte_mkspecial() 186 static inline int pte_write(pte_t pte) in pte_write() 191 static inline int pte_dirty(pte_t pte) in pte_dirty() 196 static inline int pte_young(pte_t pte) in pte_young() [all …]
|
/arch/hexagon/include/asm/ |
D | pgtable.h | 194 extern void sync_icache_dcache(pte_t pte); 200 static inline void set_pte(pte_t *ptep, pte_t pteval) in set_pte() 228 pte_t *ptep) in pte_clear() 302 static inline int pte_none(pte_t pte) in pte_none() 310 static inline int pte_present(pte_t pte) in pte_present() 322 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() 329 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() 336 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() 343 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() 350 static inline int pte_young(pte_t pte) in pte_young() [all …]
|