Lines Matching defs:pte
120 #define _PAGE_FILE 0x040 /* nonlinear file mapping, saved PTE; unset:swap */
218 static inline int pte_dirty(pte_t pte) { return (pte).pte_low & _PAGE_DIRTY; }
219 static inline int pte_young(pte_t pte) { return (pte).pte_low & _PAGE_ACCESSED; }
220 static inline int pte_write(pte_t pte) { return (pte).pte_low & _PAGE_RW; }
221 static inline int pte_huge(pte_t pte) { return (pte).pte_low & _PAGE_PSE; }
226 static inline int pte_file(pte_t pte) { return (pte).pte_low & _PAGE_FILE; }
228 static inline pte_t pte_mkclean(pte_t pte) { (pte).pte_low &= ~_PAGE_DIRTY; return pte; }
229 static inline pte_t pte_mkold(pte_t pte) { (pte).pte_low &= ~_PAGE_ACCESSED; return pte; }
230 static inline pte_t pte_wrprotect(pte_t pte) { (pte).pte_low &= ~_PAGE_RW; return pte; }
231 static inline pte_t pte_mkdirty(pte_t pte) { (pte).pte_low |= _PAGE_DIRTY; return pte; }
232 static inline pte_t pte_mkyoung(pte_t pte) { (pte).pte_low |= _PAGE_ACCESSED; return pte; }
233 static inline pte_t pte_mkwrite(pte_t pte) { (pte).pte_low |= _PAGE_RW; return pte; }
234 static inline pte_t pte_mkhuge(pte_t pte) { (pte).pte_low |= _PAGE_PSE; return pte; }
244 * Rules for using pte_update - it must be called after any PTE update which
246 * shadow mode hypervisors to resynchronize the shadow page tables. Kernel PTE
260 /* local pte updates need not use xchg for locking */
313 pte_t pte = native_ptep_get_and_clear(ptep);
315 return pte;
321 pte_t pte;
327 pte = native_local_ptep_get_and_clear(ptep);
329 pte = ptep_get_and_clear(mm, addr, ptep);
331 return pte;
370 static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
372 pte.pte_low &= _PAGE_CHG_MASK;
373 pte.pte_low |= pgprot_val(newprot);
379 pte.pte_high &= ~(1 << (_PAGE_BIT_NX - 32));
380 pte.pte_high |= (pgprot_val(newprot) >> 32) & \
383 return pte;
420 * the pte page can be thought of an array like this: pte_t[PTRS_PER_PTE]
422 * this macro returns the index of the entry in the pte page which would
439 * as a pte too.
460 #define pte_unmap(pte) kunmap_atomic(pte, KM_PTE0)
461 #define pte_unmap_nested(pte) kunmap_atomic(pte, KM_PTE1)
466 #define pte_unmap(pte) do { } while (0)
467 #define pte_unmap_nested(pte) do { } while (0)
470 /* Clear a kernel PTE and flush it from the TLB */
481 #define update_mmu_cache(vma,address,pte) do { } while (0)