Lines Matching refs:pte
51 #define update_mmu_cache(vma, address, pte) do { } while (0) argument
251 extern inline int pte_present(pte_t pte) { return pte_val(pte) & _PAGE_PRESENT; } in pte_present() argument
252 extern inline int pte_none(pte_t pte) in pte_none() argument
254 return ((pte_val(pte) & in pte_none()
264 extern inline int pte_write(pte_t pte) in pte_write() argument
266 return (pte_val(pte) & _PAGE_RO) == 0; in pte_write()
269 extern inline int pte_dirty(pte_t pte) in pte_dirty() argument
273 if (pte_val(pte) & _PAGE_ISCLEAN) in pte_dirty()
275 asm volatile ("iske %0,%1" : "=d" (skey) : "a" (pte_val(pte))); in pte_dirty()
279 extern inline int pte_young(pte_t pte) in pte_young() argument
283 asm volatile ("iske %0,%1" : "=d" (skey) : "a" (pte_val(pte))); in pte_young()
311 extern inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
313 pte_val(pte) &= PAGE_MASK | _PAGE_ISCLEAN; in pte_modify()
314 pte_val(pte) |= pgprot_val(newprot) & ~_PAGE_ISCLEAN; in pte_modify()
315 return pte; in pte_modify()
318 extern inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() argument
320 pte_val(pte) |= _PAGE_RO; in pte_wrprotect()
321 return pte; in pte_wrprotect()
324 extern inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() argument
326 pte_val(pte) &= ~(_PAGE_RO | _PAGE_ISCLEAN); in pte_mkwrite()
327 return pte; in pte_mkwrite()
330 extern inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() argument
336 return pte; in pte_mkclean()
339 extern inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() argument
345 pte_val(pte) &= ~_PAGE_ISCLEAN; in pte_mkdirty()
346 return pte; in pte_mkdirty()
349 extern inline pte_t pte_mkold(pte_t pte) in pte_mkold() argument
351 asm volatile ("rrbe 0,%0" : : "a" (pte_val(pte)) : "cc" ); in pte_mkold()
352 return pte; in pte_mkold()
355 extern inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() argument
360 asm volatile ("lura 0,%0" : : "a" (pte_val(pte) & PAGE_MASK) : "0" ); in pte_mkyoung()
361 return pte; in pte_mkyoung()
393 pte_t pte = *ptep; in ptep_get_and_clear() local
395 return pte; in ptep_get_and_clear()
479 pte_t pte; in mk_swap_pte() local
480 pte_val(pte) = (type << 1) | (offset << 12) | _PAGE_INVALID | _PAGE_RO; in mk_swap_pte()
481 pte_val(pte) &= 0x7ffff6fe; /* better to be paranoid */ in mk_swap_pte()
482 return pte; in mk_swap_pte()
489 #define pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) argument