Lines Matching refs:pte
160 #define pte_mkhuge(pte) __pte((pte_val(pte) & ~0x3) | HVM_HUGEPAGE_SIZE) argument
167 extern void sync_icache_dcache(pte_t pte);
169 #define pte_present_exec_user(pte) \ argument
170 ((pte_val(pte) & (_PAGE_EXECUTE | _PAGE_USER)) == \
247 static inline int pte_none(pte_t pte) in pte_none() argument
249 return pte_val(pte) == _NULL_PTE; in pte_none()
255 static inline int pte_present(pte_t pte) in pte_present() argument
257 return pte_val(pte) & _PAGE_PRESENT; in pte_present()
267 static inline pte_t pte_mkold(pte_t pte) in pte_mkold() argument
269 pte_val(pte) &= ~_PAGE_ACCESSED; in pte_mkold()
270 return pte; in pte_mkold()
274 static inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() argument
276 pte_val(pte) |= _PAGE_ACCESSED; in pte_mkyoung()
277 return pte; in pte_mkyoung()
281 static inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() argument
283 pte_val(pte) &= ~_PAGE_DIRTY; in pte_mkclean()
284 return pte; in pte_mkclean()
288 static inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() argument
290 pte_val(pte) |= _PAGE_DIRTY; in pte_mkdirty()
291 return pte; in pte_mkdirty()
295 static inline int pte_young(pte_t pte) in pte_young() argument
297 return pte_val(pte) & _PAGE_ACCESSED; in pte_young()
301 static inline int pte_dirty(pte_t pte) in pte_dirty() argument
303 return pte_val(pte) & _PAGE_DIRTY; in pte_dirty()
307 static inline pte_t pte_modify(pte_t pte, pgprot_t prot) in pte_modify() argument
309 pte_val(pte) &= PAGE_MASK; in pte_modify()
310 pte_val(pte) |= pgprot_val(prot); in pte_modify()
311 return pte; in pte_modify()
315 static inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() argument
317 pte_val(pte) &= ~_PAGE_WRITE; in pte_wrprotect()
318 return pte; in pte_wrprotect()
322 static inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() argument
324 pte_val(pte) |= _PAGE_WRITE; in pte_mkwrite()
325 return pte; in pte_mkwrite()
329 static inline pte_t pte_mkexec(pte_t pte) in pte_mkexec() argument
331 pte_val(pte) |= _PAGE_EXECUTE; in pte_mkexec()
332 return pte; in pte_mkexec()
336 static inline int pte_read(pte_t pte) in pte_read() argument
338 return pte_val(pte) & _PAGE_READ; in pte_read()
342 static inline int pte_write(pte_t pte) in pte_write() argument
344 return pte_val(pte) & _PAGE_WRITE; in pte_write()
349 static inline int pte_exec(pte_t pte) in pte_exec() argument
351 return pte_val(pte) & _PAGE_EXECUTE; in pte_exec()
355 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) argument
364 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT) argument
373 #define set_pte_at(mm, addr, ptep, pte) set_pte(ptep, pte) argument