Lines Matching refs:pte

163 #define pte_mkhuge(pte) __pte((pte_val(pte) & ~0x3) | HVM_HUGEPAGE_SIZE)
170 extern void sync_icache_dcache(pte_t pte);
172 #define pte_present_exec_user(pte) \
173 ((pte_val(pte) & (_PAGE_EXECUTE | _PAGE_USER)) == \
213 * MIPS checks it against that "invalid pte table" thing.
248 * pte_none - check if pte is mapped
249 * @pte: pte_t entry
251 static inline int pte_none(pte_t pte)
253 return pte_val(pte) == _NULL_PTE;
259 static inline int pte_present(pte_t pte)
261 return pte_val(pte) & _PAGE_PRESENT;
271 static inline pte_t pte_mkold(pte_t pte)
273 pte_val(pte) &= ~_PAGE_ACCESSED;
274 return pte;
278 static inline pte_t pte_mkyoung(pte_t pte)
280 pte_val(pte) |= _PAGE_ACCESSED;
281 return pte;
285 static inline pte_t pte_mkclean(pte_t pte)
287 pte_val(pte) &= ~_PAGE_DIRTY;
288 return pte;
292 static inline pte_t pte_mkdirty(pte_t pte)
294 pte_val(pte) |= _PAGE_DIRTY;
295 return pte;
299 static inline int pte_young(pte_t pte)
301 return pte_val(pte) & _PAGE_ACCESSED;
305 static inline int pte_dirty(pte_t pte)
307 return pte_val(pte) & _PAGE_DIRTY;
311 static inline pte_t pte_modify(pte_t pte, pgprot_t prot)
313 pte_val(pte) &= PAGE_MASK;
314 pte_val(pte) |= pgprot_val(prot);
315 return pte;
319 static inline pte_t pte_wrprotect(pte_t pte)
321 pte_val(pte) &= ~_PAGE_WRITE;
322 return pte;
326 static inline pte_t pte_mkwrite(pte_t pte)
328 pte_val(pte) |= _PAGE_WRITE;
329 return pte;
333 static inline pte_t pte_mkexec(pte_t pte)
335 pte_val(pte) |= _PAGE_EXECUTE;
336 return pte;
340 static inline int pte_read(pte_t pte)
342 return pte_val(pte) & _PAGE_READ;
346 static inline int pte_write(pte_t pte)
348 return pte_val(pte) & _PAGE_WRITE;
353 static inline int pte_exec(pte_t pte)
355 return pte_val(pte) & _PAGE_EXECUTE;
359 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
367 /* pte_pfn - convert pte to page frame number */
368 #define pte_pfn(pte) (pte_val(pte) >> PAGE_SHIFT)
377 #define set_pte_at(mm, addr, ptep, pte) set_pte(ptep, pte)