/linux-master/arch/arm/include/asm/ |
H A D | hugetlb-3level.h | 24 if (pte_val(retval)) 25 pte_val(retval) |= L_PTE_VALID;
|
H A D | pgtable-2level-types.h | 26 #define pte_val(x) ((x).pte) macro 44 #define pte_val(x) (x) macro
|
/linux-master/arch/m68k/include/asm/ |
H A D | mcf_pgtable.h | 107 pte_val(pte) = (pte_val(pte) & CF_PAGE_CHG_MASK) | pgprot_val(newprot); 118 #define __pte_page(pte) ((void *) (pte_val(pte) & PAGE_MASK)) 123 return !pte_val(pte); 128 return pte_val(pte) & CF_PAGE_VALID; 134 pte_val(*ptep) = 0; 148 __FILE__, __LINE__, pte_val(e)) 160 return pte_val(pte) & CF_PAGE_READABLE; 165 return pte_val(pte) & CF_PAGE_WRITABLE; 170 return pte_val(pt [all...] |
H A D | motorola_pgtable.h | 92 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); 106 #define __pte_page(pte) ((unsigned long)__va(pte_val(pte) & PAGE_MASK)) 111 #define pte_none(pte) (!pte_val(pte)) 112 #define pte_present(pte) (pte_val(pte) & (_PAGE_PRESENT | _PAGE_PROTNONE)) 113 #define pte_clear(mm,addr,ptep) ({ pte_val(*(ptep)) = 0; }) 116 #define pte_page(pte) virt_to_page(__va(pte_val(pte))) 117 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) 141 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 152 static inline int pte_write(pte_t pte) { return !(pte_val(pt [all...] |
H A D | sun3_pgtable.h | 87 pte_val(pte) = (pte_val(pte) & SUN3_PAGE_CHG_MASK) | pgprot_val(newprot); 94 (__va ((pte_val (pte) & SUN3_PAGE_PGNUM_MASK) << PAGE_SHIFT)) 101 static inline int pte_none (pte_t pte) { return !pte_val (pte); } 102 static inline int pte_present (pte_t pte) { return pte_val (pte) & SUN3_PAGE_VALID; } 105 pte_val (*ptep) = 0; 109 #define pte_pfn(pte) (pte_val(pte) & SUN3_PAGE_PGNUM_MASK) 111 ({ pte_t __pte; pte_val(__pte) = pfn | pgprot_val(pgprot); __pte; }) 130 pr_err("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 140 static inline int pte_write(pte_t pte) { return pte_val(pt [all...] |
/linux-master/arch/powerpc/include/asm/nohash/ |
H A D | pgtable.h | 53 pte_basic_t old = pte_val(*p); 111 unsigned long set = pte_val(entry) & 128 return __pte(pte_val(pte) | _PAGE_RW); 134 return __pte(pte_val(pte) | _PAGE_DIRTY); 139 return __pte(pte_val(pte) | _PAGE_ACCESSED); 145 return __pte(pte_val(pte) & ~_PAGE_WRITE); 152 return __pte(pte_val(pte) | _PAGE_EXEC); 159 return pte_val(pte) & _PAGE_WRITE; 162 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } 163 static inline int pte_special(pte_t pte) { return pte_val(pt [all...] |
/linux-master/arch/parisc/include/asm/ |
H A D | kfence.h | 35 set_pte(pte, __pte(pte_val(*pte) & ~_PAGE_PRESENT)); 37 set_pte(pte, __pte(pte_val(*pte) | _PAGE_PRESENT));
|
H A D | pgtable.h | 79 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 276 #define pte_none(x) (pte_val(x) == 0) 277 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 278 #define pte_user(x) (pte_val(x) & _PAGE_USER) 315 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } 316 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } 317 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } 318 static inline int pte_special(pte_t pte) { return pte_val(pte) & _PAGE_SPECIAL; } 320 static inline pte_t pte_mkclean(pte_t pte) { pte_val(pte) &= ~_PAGE_DIRTY; return pte; } 321 static inline pte_t pte_mkold(pte_t pte) { pte_val(pt [all...] |
/linux-master/arch/riscv/include/asm/ |
H A D | kfence.h | 21 set_pte(pte, __pte(pte_val(ptep_get(pte)) & ~_PAGE_PRESENT)); 23 set_pte(pte, __pte(pte_val(ptep_get(pte)) | _PAGE_PRESENT));
|
/linux-master/arch/hexagon/include/asm/ |
H A D | pgtable.h | 136 #define pte_mkhuge(pte) __pte((pte_val(pte) & ~0x3) | HVM_HUGEPAGE_SIZE) 146 ((pte_val(pte) & (_PAGE_EXECUTE | _PAGE_USER)) == \ 179 pte_val(*ptep) = _NULL_PTE; 230 return pte_val(pte) == _NULL_PTE; 238 return pte_val(pte) & _PAGE_PRESENT; 250 pte_val(pte) &= ~_PAGE_ACCESSED; 257 pte_val(pte) |= _PAGE_ACCESSED; 264 pte_val(pte) &= ~_PAGE_DIRTY; 271 pte_val(pte) |= _PAGE_DIRTY; 278 return pte_val(pt [all...] |
/linux-master/arch/microblaze/include/asm/ |
H A D | pgtable.h | 109 __FILE__, __LINE__, pte_val(e)) 221 #define pte_none(pte) ((pte_val(pte) & ~_PTE_NONE_MASK) == 0) 222 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) 232 ((pte_val(x) - memory_start) >> PAGE_SHIFT)) 235 #define pte_pfn(x) (pte_val(x) >> PFN_PTE_SHIFT) 245 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } 246 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } 247 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } 248 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } 249 static inline int pte_young(pte_t pte) { return pte_val(pt [all...] |
/linux-master/arch/openrisc/include/asm/ |
H A D | pgtable.h | 203 #define pte_none(x) (!pte_val(x)) 204 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT) 205 #define pte_clear(mm, addr, xp) do { pte_val(*(xp)) = 0; } while (0) 217 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_READ; } 218 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } 219 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } 220 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } 221 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } 225 pte_val(pte) &= ~(_PAGE_WRITE); 231 pte_val(pt [all...] |
/linux-master/arch/nios2/include/asm/ |
H A D | pgtable.h | 85 { return pte_val(pte) & _PAGE_WRITE; } 87 { return pte_val(pte) & _PAGE_DIRTY; } 89 { return pte_val(pte) & _PAGE_ACCESSED; } 104 return !(pte_val(pte) & ~(_PAGE_GLOBAL|0xf)); 108 { return pte_val(pte) & _PAGE_PRESENT; } 116 pte_val(pte) &= ~_PAGE_WRITE; 122 pte_val(pte) &= ~_PAGE_DIRTY; 128 pte_val(pte) &= ~_PAGE_ACCESSED; 134 pte_val(pte) |= _PAGE_WRITE; 140 pte_val(pt [all...] |
/linux-master/arch/powerpc/include/asm/ |
H A D | pgtable-types.h | 21 static inline pte_basic_t pte_val(pte_t x) function 27 static inline pte_basic_t pte_val(pte_t x) function 82 return pte_val(old) == __cmpxchg_u64(p, pte_val(old), pte_val(new));
|
/linux-master/arch/csky/include/asm/ |
H A D | pgtable.h | 36 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) 37 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) 42 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) 163 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_DIRTY); 169 pte_val(pte) &= ~(_PAGE_MODIFIED|_PAGE_DIRTY); 175 pte_val(pte) &= ~(_PAGE_ACCESSED|_PAGE_VALID); 181 pte_val(pte) |= _PAGE_WRITE; 182 if (pte_val(pte) & _PAGE_MODIFIED) 183 pte_val(pte) |= _PAGE_DIRTY; 189 pte_val(pt [all...] |
/linux-master/arch/powerpc/include/asm/book3s/32/ |
H A D | pgtable.h | 287 old = pte_val(*p); 332 unsigned long set = pte_val(entry) & 341 #define pte_same(A,B) (((pte_val(A) ^ pte_val(B)) & ~_PAGE_HASHPTE) == 0) 364 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) >> 3 }) 369 return pte_val(pte) & _PAGE_SWP_EXCLUSIVE; 374 return __pte(pte_val(pte) | _PAGE_SWP_EXCLUSIVE); 379 return __pte(pte_val(pte) & ~_PAGE_SWP_EXCLUSIVE); 385 return !!(pte_val(pte) & _PAGE_READ); 390 return !!(pte_val(pt [all...] |
/linux-master/arch/alpha/include/asm/ |
H A D | pgtable.h | 192 #define pte_pfn(pte) (pte_val(pte) >> PFN_PTE_SHIFT) 199 pte_val(pte) = (page_to_pfn(page) << 32) | pgprot_val(pgprot); \ 204 { pte_t pte; pte_val(pte) = (PHYS_TWIDDLE(physpfn) << 32) | pgprot_val(pgprot); return pte; } 207 { pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); return pte; } 231 extern inline int pte_none(pte_t pte) { return !pte_val(pte); } 232 extern inline int pte_present(pte_t pte) { return pte_val(pte) & _PAGE_VALID; } 235 pte_val(*ptep) = 0; 252 extern inline int pte_write(pte_t pte) { return !(pte_val(pte) & _PAGE_FOW); } 253 extern inline int pte_dirty(pte_t pte) { return pte_val(pt [all...] |
/linux-master/arch/arc/include/asm/ |
H A D | pgtable-bits-arcv2.h | 80 #define pte_write(pte) (pte_val(pte) & _PAGE_WRITE) 81 #define pte_dirty(pte) (pte_val(pte) & _PAGE_DIRTY) 82 #define pte_young(pte) (pte_val(pte) & _PAGE_ACCESSED) 83 #define pte_special(pte) (pte_val(pte) & _PAGE_SPECIAL) 86 static inline pte_t pte_##fn(pte_t pte) { pte_val(pte) op; return pte; } 100 return __pte((pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot)); 130 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) 135 return pte_val(pte) & _PAGE_SWP_EXCLUSIVE;
|
/linux-master/arch/xtensa/include/asm/ |
H A D | pgtable.h | 209 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e)) 235 # define pte_none(pte) (pte_val(pte) == (_PAGE_CA_INVALID | _PAGE_USER)) 237 # define pte_present(pte) ((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) 240 (((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) \ 241 || ((pte_val(pte) & _PAGE_ATTRIB_MASK) == _PAGE_NONE)) 251 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITABLE; } 252 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } 253 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } 256 { pte_val(pte) &= ~(_PAGE_WRITABLE | _PAGE_HW_WRITE); return pte; } 258 { pte_val(pt [all...] |
/linux-master/arch/mips/include/asm/ |
H A D | pgtable.h | 162 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) 163 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT) 164 #define pte_no_exec(pte) (pte_val(pte) & _PAGE_NO_EXEC) 175 if (pte_val(pteval) & _PAGE_GLOBAL) { 195 if (pte_val(*ptep_buddy(ptep)) & _PAGE_GLOBAL) 227 pte = __pte(pte_val(pte) + (1UL << PFN_PTE_SHIFT)); 275 return pte_val(pte) & _PAGE_SPECIAL; 280 pte_val(pte) |= _PAGE_SPECIAL; 355 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } 356 static inline int pte_dirty(pte_t pte) { return pte_val(pt [all...] |
/linux-master/arch/sparc/include/asm/ |
H A D | pgtable_32.h | 101 srmmu_swap((unsigned long *)ptep, pte_val(pteval)); 150 return ((pte_val(pte) & SRMMU_ET_MASK) == SRMMU_ET_PTE); 155 return !pte_val(pte); 214 return pte_val(pte) & SRMMU_WRITE; 219 return pte_val(pte) & SRMMU_DIRTY; 224 return pte_val(pte) & SRMMU_REF; 229 return __pte(pte_val(pte) & ~SRMMU_WRITE); 234 return __pte(pte_val(pte) & ~SRMMU_DIRTY); 239 return __pte(pte_val(pte) & ~SRMMU_REF); 244 return __pte(pte_val(pt [all...] |
/linux-master/arch/powerpc/include/asm/nohash/32/ |
H A D | pte-8xx.h | 90 return __pte(pte_val(pte) | _PAGE_RO); 97 return (pte_val(pte) & _PAGE_RO) != _PAGE_NA; 104 return !(pte_val(pte) & _PAGE_RO); 111 return __pte(pte_val(pte) & ~_PAGE_RO); 118 return __pte(pte_val(pte) | _PAGE_SPS | _PAGE_HUGE); 135 unsigned long set = pte_val(entry) & (_PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_EXEC); 136 unsigned long clr = ~pte_val(entry) & _PAGE_RO; 156 pte_basic_t val = pte_val(pte); 192 pte_basic_t old = pte_val(*p);
|
/linux-master/arch/loongarch/include/asm/ |
H A D | pgtable.h | 110 pr_err("%s:%d: bad pte %016lx.\n", __FILE__, __LINE__, pte_val(e)) 282 { pte_t pte; pte_val(pte) = ((type & 0x7f) << 16) | (offset << 24); return pte; } 286 #define __swp_entry(type, offset) ((swp_entry_t) { pte_val(mk_swap_pte((type), (offset))) }) 287 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) 294 return pte_val(pte) & _PAGE_SWP_EXCLUSIVE; 299 pte_val(pte) |= _PAGE_SWP_EXCLUSIVE; 305 pte_val(pte) &= ~_PAGE_SWP_EXCLUSIVE; 311 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL)) 312 #define pte_present(pte) (pte_val(pte) & (_PAGE_PRESENT | _PAGE_PROTNONE)) 313 #define pte_no_exec(pte) (pte_val(pt [all...] |
/linux-master/arch/um/include/asm/ |
H A D | pgtable-2level.h | 29 pte_val(e)) 39 #define pte_pfn(x) phys_to_pfn(pte_val(x))
|
/linux-master/arch/x86/include/asm/ |
H A D | kfence.h | 57 set_pte(pte, __pte(pte_val(*pte) & ~_PAGE_PRESENT)); 59 set_pte(pte, __pte(pte_val(*pte) | _PAGE_PRESENT));
|