Home
last modified time | relevance | path

Searched refs:pte_val (Results 1 – 25 of 171) sorted by relevance

1234567

/arch/powerpc/include/asm/book3s/32/
Dpgtable.h23 return pte_val(pte) & _PAGE_USER; in pte_user()
209 (unsigned long long)pte_val(e))
338 unsigned long set = pte_val(entry) & in __ptep_set_access_flags()
347 #define pte_same(A,B) (((pte_val(A) ^ pte_val(B)) & ~_PAGE_HASHPTE) == 0)
380 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) >> 3 })
384 static inline int pte_write(pte_t pte) { return !!(pte_val(pte) & _PAGE_RW);} in pte_write()
386 static inline int pte_dirty(pte_t pte) { return !!(pte_val(pte) & _PAGE_DIRTY); } in pte_dirty()
387 static inline int pte_young(pte_t pte) { return !!(pte_val(pte) & _PAGE_ACCESSED); } in pte_young()
388 static inline int pte_special(pte_t pte) { return !!(pte_val(pte) & _PAGE_SPECIAL); } in pte_special()
389 static inline int pte_none(pte_t pte) { return (pte_val(pte) & ~_PTE_NONE_MASK) == 0; } in pte_none()
[all …]
/arch/m68k/include/asm/
Dmcf_pgtable.h161 pte_val(pte) = (pte_val(pte) & CF_PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
172 #define __pte_page(pte) ((unsigned long) (pte_val(pte) & PAGE_MASK))
177 return !pte_val(pte); in pte_none()
182 return pte_val(pte) & CF_PAGE_VALID; in pte_present()
188 pte_val(*ptep) = 0; in pte_clear()
208 __FILE__, __LINE__, pte_val(e))
223 return pte_val(pte) & CF_PAGE_READABLE; in pte_read()
228 return pte_val(pte) & CF_PAGE_WRITABLE; in pte_write()
233 return pte_val(pte) & CF_PAGE_EXEC; in pte_exec()
238 return pte_val(pte) & CF_PAGE_DIRTY; in pte_dirty()
[all …]
Dsun3_pgtable.h107 pte_val(pte) = (pte_val(pte) & SUN3_PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
119 ((unsigned long) __va ((pte_val (pte) & SUN3_PAGE_PGNUM_MASK) << PAGE_SHIFT))
123 static inline int pte_none (pte_t pte) { return !pte_val (pte); } in pte_none()
124 static inline int pte_present (pte_t pte) { return pte_val (pte) & SUN3_PAGE_VALID; } in pte_present()
127 pte_val (*ptep) = 0; in pte_clear()
130 #define pte_pfn(pte) (pte_val(pte) & SUN3_PAGE_PGNUM_MASK)
132 ({ pte_t __pte; pte_val(__pte) = pfn | pgprot_val(pgprot); __pte; })
155 pr_err("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e))
167 static inline int pte_write(pte_t pte) { return pte_val(pte) & SUN3_PAGE_WRITEABLE; } in pte_write()
168 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & SUN3_PAGE_MODIFIED; } in pte_dirty()
[all …]
Dmotorola_pgtable.h105 pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); in pte_modify()
125 #define __pte_page(pte) ((unsigned long)__va(pte_val(pte) & PAGE_MASK))
130 #define pte_none(pte) (!pte_val(pte))
131 #define pte_present(pte) (pte_val(pte) & (_PAGE_PRESENT | _PAGE_PROTNONE))
132 #define pte_clear(mm,addr,ptep) ({ pte_val(*(ptep)) = 0; })
134 #define pte_page(pte) virt_to_page(__va(pte_val(pte)))
135 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT)
157 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e))
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()
[all …]
/arch/powerpc/include/asm/nohash/
Dpgtable.h45 return pte_val(pte) & _PAGE_RW; in pte_write()
51 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
52 static inline int pte_special(pte_t pte) { return pte_val(pte) & _PAGE_SPECIAL; } in pte_special()
53 static inline int pte_none(pte_t pte) { return (pte_val(pte) & ~_PTE_NONE_MASK) == 0; } in pte_none()
55 static inline bool pte_ci(pte_t pte) { return pte_val(pte) & _PAGE_NO_CACHE; } in pte_ci()
56 static inline bool pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec()
77 return pte_val(pte) & _PAGE_PRESENT; in pte_present()
82 return pte_val(pte) & _PAGE_PRESENT; in pte_hw_valid()
93 return (pte_val(pte) & _PAGE_USER) == _PAGE_USER; in pte_user()
127 return pte_val(pte) >> PTE_RPN_SHIFT; } in pte_pfn()
[all …]
/arch/openrisc/include/asm/
Dpgtable.h220 #define pte_none(x) (!pte_val(x))
221 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT)
222 #define pte_clear(mm, addr, xp) do { pte_val(*(xp)) = 0; } while (0)
234 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_READ; } in pte_read()
235 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write()
236 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec()
237 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
238 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young()
244 pte_val(pte) &= ~(_PAGE_WRITE); in pte_wrprotect()
250 pte_val(pte) &= ~(_PAGE_READ); in pte_rdprotect()
[all …]
/arch/nds32/include/asm/
Dpgtable.h40 #define pte_ERROR(pte) __pte_error(__FILE__, __LINE__, pte_val(pte))
187 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT)
190 #define pte_none(pte) !(pte_val(pte))
249 #define pte_present(pte) (pte_val(pte) & _PAGE_V)
250 #define pte_write(pte) ((pte_val(pte) & _PAGE_M_MASK) == _PAGE_M_URW_KRW)
251 #define pte_read(pte) (((pte_val(pte) & _PAGE_M_MASK) == _PAGE_M_UR_KR) || \
252 ((pte_val(pte) & _PAGE_M_MASK) == _PAGE_M_UR_KRW) || \
253 ((pte_val(pte) & _PAGE_M_MASK) == _PAGE_M_URW_KRW))
254 #define pte_kernel_write(pte) (((pte_val(pte) & _PAGE_M_MASK) == _PAGE_M_URW_KRW) || \
255 ((pte_val(pte) & _PAGE_M_MASK) == _PAGE_M_UR_KRW) || \
[all …]
/arch/hexagon/include/asm/
Dpgtable.h166 #define pte_mkhuge(pte) __pte((pte_val(pte) & ~0x3) | HVM_HUGEPAGE_SIZE)
176 ((pte_val(pte) & (_PAGE_EXECUTE | _PAGE_USER)) == \
209 pte_val(*ptep) = _NULL_PTE; in pte_clear()
283 return pte_val(pte) == _NULL_PTE; in pte_none()
291 return pte_val(pte) & _PAGE_PRESENT; in pte_present()
303 pte_val(pte) &= ~_PAGE_ACCESSED; in pte_mkold()
310 pte_val(pte) |= _PAGE_ACCESSED; in pte_mkyoung()
317 pte_val(pte) &= ~_PAGE_DIRTY; in pte_mkclean()
324 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty()
331 return pte_val(pte) & _PAGE_ACCESSED; in pte_young()
[all …]
/arch/s390/mm/
Dhugetlbpage.c49 rste = pte_val(pte) & PAGE_MASK; in __pte_to_rste()
50 rste |= move_set_bit(pte_val(pte), _PAGE_READ, in __pte_to_rste()
52 rste |= move_set_bit(pte_val(pte), _PAGE_WRITE, in __pte_to_rste()
54 rste |= move_set_bit(pte_val(pte), _PAGE_INVALID, in __pte_to_rste()
56 rste |= move_set_bit(pte_val(pte), _PAGE_PROTECT, in __pte_to_rste()
58 rste |= move_set_bit(pte_val(pte), _PAGE_DIRTY, in __pte_to_rste()
60 rste |= move_set_bit(pte_val(pte), _PAGE_YOUNG, in __pte_to_rste()
63 rste |= move_set_bit(pte_val(pte), _PAGE_SOFT_DIRTY, in __pte_to_rste()
66 rste |= move_set_bit(pte_val(pte), _PAGE_NOEXEC, in __pte_to_rste()
104 pte_val(pte) = rste & _SEGMENT_ENTRY_ORIGIN_LARGE; in __rste_to_pte()
[all …]
Dpgtable.c76 if (unlikely(pte_val(old) & _PAGE_INVALID)) in ptep_flush_direct()
95 if (unlikely(pte_val(old) & _PAGE_INVALID)) in ptep_flush_lazy()
100 pte_val(*ptep) |= _PAGE_INVALID; in ptep_flush_lazy()
161 if (!mm_uses_skeys(mm) || pte_val(pte) & _PAGE_INVALID) in pgste_update_all()
163 address = pte_val(pte) & PAGE_MASK; in pgste_update_all()
183 if (!mm_uses_skeys(mm) || pte_val(entry) & _PAGE_INVALID) in pgste_set_key()
185 VM_BUG_ON(!(pte_val(*ptep) & _PAGE_INVALID)); in pgste_set_key()
186 address = pte_val(entry) & PAGE_MASK; in pgste_set_key()
201 if ((pte_val(entry) & _PAGE_PRESENT) && in pgste_set_pte()
202 (pte_val(entry) & _PAGE_WRITE) && in pgste_set_pte()
[all …]
/arch/microblaze/include/asm/
Dpgtable.h42 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
167 __FILE__, __LINE__, pte_val(e))
296 #define pte_none(pte) ((pte_val(pte) & ~_PTE_NONE_MASK) == 0)
297 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT)
307 ((pte_val(x) - memory_start) >> PAGE_SHIFT))
310 #define pte_pfn(x) (pte_val(x) >> PFN_SHIFT_OFFSET)
332 static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_USER; } in pte_read()
333 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } in pte_write()
334 static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_EXEC; } in pte_exec()
335 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
[all …]
/arch/nios2/include/asm/
Dpgtable.h111 { return pte_val(pte) & _PAGE_WRITE; } in pte_write()
113 { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
115 { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young()
131 return !(pte_val(pte) & ~(_PAGE_GLOBAL|0xf)); in pte_none()
135 { return pte_val(pte) & _PAGE_PRESENT; } in pte_present()
143 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect()
149 pte_val(pte) &= ~_PAGE_DIRTY; in pte_mkclean()
155 pte_val(pte) &= ~_PAGE_ACCESSED; in pte_mkold()
161 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite()
167 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty()
[all …]
/arch/powerpc/include/asm/nohash/32/
Dpgtable.h61 (unsigned long long)pte_val(e))
171 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite()
177 return __pte(pte_val(pte) | _PAGE_DIRTY); in pte_mkdirty()
182 return __pte(pte_val(pte) | _PAGE_ACCESSED); in pte_mkyoung()
188 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect()
194 return __pte(pte_val(pte) | _PAGE_EXEC); in pte_mkexec()
241 unsigned long old = pte_val(*p); in pte_update()
278 unsigned long long old = pte_val(*p); in pte_update()
311 unsigned long clr = ~pte_val(pte_wrprotect(__pte(~0))); in ptep_set_wrprotect()
312 unsigned long set = pte_val(pte_wrprotect(__pte(0))); in ptep_set_wrprotect()
[all …]
Dpte-8xx.h89 return __pte(pte_val(pte) | _PAGE_RO); in pte_wrprotect()
96 return (pte_val(pte) & _PAGE_RO) != _PAGE_NA; in pte_read()
103 return !(pte_val(pte) & _PAGE_RO); in pte_write()
110 return __pte(pte_val(pte) & ~_PAGE_RO); in pte_mkwrite()
117 return !(pte_val(pte) & _PAGE_SH); in pte_user()
124 return __pte(pte_val(pte) | _PAGE_SH); in pte_mkprivileged()
131 return __pte(pte_val(pte) & ~_PAGE_SH); in pte_mkuser()
138 return __pte(pte_val(pte) | _PAGE_SPS); in pte_mkhuge()
/arch/riscv/include/asm/
Dpgtable.h181 return (pte_val(pte) >> _PAGE_PFN_SHIFT); in pte_pfn()
206 return (pte_val(pte) & (_PAGE_PRESENT | _PAGE_PROT_NONE)); in pte_present()
211 return (pte_val(pte) == 0); in pte_none()
216 return pte_val(pte) & _PAGE_WRITE; in pte_write()
221 return pte_val(pte) & _PAGE_EXEC; in pte_exec()
227 && (pte_val(pte) & (_PAGE_READ | _PAGE_WRITE | _PAGE_EXEC)); in pte_huge()
232 return pte_val(pte) & _PAGE_DIRTY; in pte_dirty()
237 return pte_val(pte) & _PAGE_ACCESSED; in pte_young()
242 return pte_val(pte) & _PAGE_SPECIAL; in pte_special()
249 return __pte(pte_val(pte) & ~(_PAGE_WRITE)); in pte_wrprotect()
[all …]
/arch/alpha/include/asm/
Dpgtable.h209 #define pte_pfn(pte) (pte_val(pte) >> 32)
215 pte_val(pte) = (page_to_pfn(page) << 32) | pgprot_val(pgprot); \
221 { pte_t pte; pte_val(pte) = (PHYS_TWIDDLE(physpfn) << 32) | pgprot_val(pgprot); return pte; } in pfn_pte()
224 { pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); return pte; } in pte_modify()
247 extern inline int pte_none(pte_t pte) { return !pte_val(pte); } in pte_none()
248 extern inline int pte_present(pte_t pte) { return pte_val(pte) & _PAGE_VALID; } in pte_present()
251 pte_val(*ptep) = 0; in pte_clear()
268 extern inline int pte_write(pte_t pte) { return !(pte_val(pte) & _PAGE_FOW); } in pte_write()
269 extern inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
270 extern inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young()
[all …]
/arch/sh/include/asm/
Dpgtable_64.h23 printk("%s:%d: bad pte %016Lx.\n", __FILE__, __LINE__, pte_val(e))
226 #define pte_present(x) (pte_val(x) & _PAGE_PRESENT)
228 #define pte_none(x) (pte_val(x) == _PTE_EMPTY)
240 #define pte_pagenr(x) (((unsigned long) (pte_val(x)) - \
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_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } in pte_write()
260 static inline int pte_special(pte_t pte){ return pte_val(pte) & _PAGE_SPECIAL; } in pte_special()
262 static inline pte_t pte_wrprotect(pte_t pte) { set_pte(&pte, __pte(pte_val(pte) & ~_PAGE_WRITE)); r… in pte_wrprotect()
263 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/
Dpgtable.h188 #define pte_ERROR(e) printk("%s:%d: bad pte %016lx.\n", __FILE__, __LINE__, pte_val(e))
251 ({ pte_t __pte; pte_val(__pte) = ((pfn) << PAGE_SHIFT) | pgprot_val(pgprot); __pte; })
254 #define pte_pfn(_pte) ((pte_val(_pte) & _PFN_MASK) >> PAGE_SHIFT)
260 ({ pte_t __pte; pte_val(__pte) = physpage + pgprot_val(pgprot); __pte; })
263 (__pte((pte_val(_pte) & ~_PAGE_CHG_MASK) | (pgprot_val(newprot) & _PAGE_CHG_MASK)))
265 #define pte_none(pte) (!pte_val(pte))
266 #define pte_present(pte) (pte_val(pte) & (_PAGE_P | _PAGE_PROTNONE))
267 #define pte_clear(mm,addr,pte) (pte_val(*(pte)) = 0UL)
269 #define pte_page(pte) virt_to_page(((pte_val(pte) & _PFN_MASK) + PAGE_OFFSET))
297 #define pte_write(pte) ((unsigned) (((pte_val(pte) & _PAGE_AR_MASK) >> _PAGE_AR_SHIFT) - 2) <= 4)
[all …]
/arch/xtensa/include/asm/
Dpgtable.h226 printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e))
251 # define pte_none(pte) (pte_val(pte) == (_PAGE_CA_INVALID | _PAGE_USER))
253 # define pte_present(pte) ((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID)
256 (((pte_val(pte) & _PAGE_CA_MASK) != _PAGE_CA_INVALID) \
257 || ((pte_val(pte) & _PAGE_ATTRIB_MASK) == _PAGE_NONE))
267 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITABLE; } in pte_write()
268 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_DIRTY; } in pte_dirty()
269 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } in pte_young()
273 { pte_val(pte) &= ~(_PAGE_WRITABLE | _PAGE_HW_WRITE); return pte; } in pte_wrprotect()
275 { pte_val(pte) &= ~(_PAGE_DIRTY | _PAGE_HW_WRITE); return pte; } in pte_mkclean()
[all …]
/arch/csky/include/asm/
Dpgtable.h49 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL))
50 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT)
67 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
195 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_DIRTY); in pte_wrprotect()
201 pte_val(pte) &= ~(_PAGE_MODIFIED|_PAGE_DIRTY); in pte_mkclean()
207 pte_val(pte) &= ~(_PAGE_ACCESSED|_PAGE_VALID); in pte_mkold()
213 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite()
214 if (pte_val(pte) & _PAGE_MODIFIED) in pte_mkwrite()
215 pte_val(pte) |= _PAGE_DIRTY; in pte_mkwrite()
221 pte_val(pte) |= _PAGE_MODIFIED; in pte_mkdirty()
[all …]
/arch/powerpc/include/asm/nohash/64/
Dpgtable.h102 return __pte(pte_val(pte) | _PAGE_RW); in pte_mkwrite()
107 return __pte(pte_val(pte) | _PAGE_DIRTY); in pte_mkdirty()
112 return __pte(pte_val(pte) | _PAGE_ACCESSED); in pte_mkyoung()
117 return __pte(pte_val(pte) & ~_PAGE_RW); in pte_wrprotect()
122 return __pte(pte_val(pte) | _PAGE_EXEC); in pte_mkexec()
175 return __pud(pte_val(pte)); in pte_pud()
227 unsigned long old = pte_val(*ptep); in pte_update()
239 return pte_val(pte) & _PAGE_ACCESSED; in pte_young()
265 if ((pte_val(*ptep) & _PAGE_RW) == 0) in ptep_set_wrprotect()
275 if ((pte_val(*ptep) & _PAGE_RW) == 0) in huge_ptep_set_wrprotect()
[all …]
/arch/arm64/include/asm/
Dpgtable.h50 #define pte_ERROR(pte) __pte_error(__FILE__, __LINE__, pte_val(pte))
59 return (pte_val(pte) & PTE_ADDR_LOW) | in __pte_to_phys()
60 ((pte_val(pte) & PTE_ADDR_HIGH) << 36); in __pte_to_phys()
67 #define __pte_to_phys(pte) (pte_val(pte) & PTE_ADDR_MASK)
75 #define pte_none(pte) (!pte_val(pte))
82 #define pte_present(pte) (!!(pte_val(pte) & (PTE_VALID | PTE_PROT_NONE)))
83 #define pte_young(pte) (!!(pte_val(pte) & PTE_AF))
84 #define pte_special(pte) (!!(pte_val(pte) & PTE_SPECIAL))
85 #define pte_write(pte) (!!(pte_val(pte) & PTE_WRITE))
86 #define pte_user_exec(pte) (!(pte_val(pte) & PTE_UXN))
[all …]
/arch/sparc/include/asm/
Dpgtable_32.h118 srmmu_swap((unsigned long *)ptep, pte_val(pteval)); in set_pte()
147 return ((pte_val(pte) & SRMMU_ET_MASK) == SRMMU_ET_PTE); in pte_present()
152 return !pte_val(pte); in pte_none()
213 return pte_val(pte) & SRMMU_WRITE; in pte_write()
218 return pte_val(pte) & SRMMU_DIRTY; in pte_dirty()
223 return pte_val(pte) & SRMMU_REF; in pte_young()
233 return __pte(pte_val(pte) & ~SRMMU_WRITE); in pte_wrprotect()
238 return __pte(pte_val(pte) & ~SRMMU_DIRTY); in pte_mkclean()
243 return __pte(pte_val(pte) & ~SRMMU_REF); in pte_mkold()
248 return __pte(pte_val(pte) | SRMMU_WRITE); in pte_mkwrite()
[all …]
Dpgtable_64.h253 return __pmd(pte_val(pte)); in pfn_pmd()
272 : "r" (pte_val(pte)), in pte_pfn()
335 return __pte((pte_val(pte) & mask) | (pgprot_val(prot) & ~mask)); in pte_modify()
345 return __pmd(pte_val(pte)); in pmd_modify()
403 return __pte(pte_val(pte) | __pte_default_huge_mask()); in pte_mkhuge()
410 return (pte_val(pte) & mask) == mask; in is_default_hugetlb_pte()
429 pte_val(pte) |= _PAGE_PMD_HUGE; in pmd_mkhuge()
431 return __pmd(pte_val(pte)); in pmd_mkhuge()
443 unsigned long val = pte_val(pte), tmp; in pte_mkdirty()
467 unsigned long val = pte_val(pte), tmp; in pte_mkclean()
[all …]
/arch/mips/include/asm/
Dpgtable.h190 #define pte_none(pte) (!(pte_val(pte) & ~_PAGE_GLOBAL))
191 #define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT)
192 #define pte_no_exec(pte) (pte_val(pte) & _PAGE_NO_EXEC)
203 if (pte_val(pteval) & _PAGE_GLOBAL) {
223 if (pte_val(*ptep_buddy(ptep)) & _PAGE_GLOBAL)
348 static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; }
349 static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_MODIFIED; }
350 static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; }
351 static inline int pte_special(pte_t pte) { return pte_val(pte) & _PAGE_SPECIAL; }
355 pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE);
[all …]

1234567