Lines Matching refs:pte
47 #define update_mmu_cache(vma, address, pte) do { } while (0) argument
284 extern inline int pte_present(pte_t pte) in pte_present() argument
286 return pte_val(pte) & _PAGE_PRESENT; in pte_present()
289 extern inline int pte_none(pte_t pte) in pte_none() argument
291 return ((pte_val(pte) & in pte_none()
301 extern inline int pte_write(pte_t pte) in pte_write() argument
303 return (pte_val(pte) & _PAGE_RO) == 0; in pte_write()
306 extern inline int pte_dirty(pte_t pte) in pte_dirty() argument
310 if (pte_val(pte) & _PAGE_ISCLEAN) in pte_dirty()
312 asm volatile ("iske %0,%1" : "=d" (skey) : "a" (pte_val(pte))); in pte_dirty()
316 extern inline int pte_young(pte_t pte) in pte_young() argument
320 asm volatile ("iske %0,%1" : "=d" (skey) : "a" (pte_val(pte))); in pte_young()
369 extern inline pte_t pte_modify(pte_t pte, pgprot_t newprot) in pte_modify() argument
371 pte_val(pte) &= PAGE_MASK | _PAGE_ISCLEAN; in pte_modify()
372 pte_val(pte) |= pgprot_val(newprot) & ~_PAGE_ISCLEAN; in pte_modify()
373 return pte; in pte_modify()
376 extern inline pte_t pte_wrprotect(pte_t pte) in pte_wrprotect() argument
378 pte_val(pte) |= _PAGE_RO; in pte_wrprotect()
379 return pte; in pte_wrprotect()
382 extern inline pte_t pte_mkwrite(pte_t pte) in pte_mkwrite() argument
384 pte_val(pte) &= ~(_PAGE_RO | _PAGE_ISCLEAN); in pte_mkwrite()
385 return pte; in pte_mkwrite()
388 extern inline pte_t pte_mkclean(pte_t pte) in pte_mkclean() argument
394 return pte; in pte_mkclean()
397 extern inline pte_t pte_mkdirty(pte_t pte) in pte_mkdirty() argument
403 pte_val(pte) &= ~_PAGE_ISCLEAN; in pte_mkdirty()
404 return pte; in pte_mkdirty()
407 extern inline pte_t pte_mkold(pte_t pte) in pte_mkold() argument
409 asm volatile ("rrbe 0,%0" : : "a" (pte_val(pte)) : "cc" ); in pte_mkold()
410 return pte; in pte_mkold()
413 extern inline pte_t pte_mkyoung(pte_t pte) in pte_mkyoung() argument
418 asm volatile ("lura 0,%0" : : "a" (pte_val(pte) & PAGE_MASK) : "0" ); in pte_mkyoung()
419 return pte; in pte_mkyoung()
451 pte_t pte = *ptep; in ptep_get_and_clear() local
453 return pte; in ptep_get_and_clear()
537 pte_t pte; in mk_swap_pte() local
538 pte_val(pte) = (type << 1) | (offset << 12) | _PAGE_INVALID | _PAGE_RO; in mk_swap_pte()
539 pte_val(pte) &= 0xfffffffffffff6fe; /* better to be paranoid */ in mk_swap_pte()
540 return pte; in mk_swap_pte()
547 #define pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) argument