Lines Matching refs:refchg
1353 int64_t refchg; in moea64_unwire() local
1375 refchg = moea64_pte_replace(pvo, 0 /* No invalidation */); in moea64_unwire()
1378 if (refchg < 0) in moea64_unwire()
1379 refchg = LPTE_CHG; in moea64_unwire()
1382 refchg |= atomic_readandclear_32(&m->md.mdpg_attrs); in moea64_unwire()
1383 if (refchg & LPTE_CHG) in moea64_unwire()
1385 if (refchg & LPTE_REF) in moea64_unwire()
2063 int64_t refchg, ret; in moea64_remove_write() local
2075 refchg = 0; in moea64_remove_write()
2090 refchg |= ret; in moea64_remove_write()
2096 if ((refchg | atomic_readandclear_32(&m->md.mdpg_attrs)) & LPTE_CHG) in moea64_remove_write()
2130 int64_t refchg; in moea64_page_set_memattr() local
2159 refchg = moea64_pte_replace(pvo, MOEA64_PTE_INVALIDATE); in moea64_page_set_memattr()
2160 if (refchg < 0) in moea64_page_set_memattr()
2161 refchg = (pvo->pvo_pte.prot & VM_PROT_WRITE) ? in moea64_page_set_memattr()
2165 refchg |= in moea64_page_set_memattr()
2167 if (refchg & LPTE_CHG) in moea64_page_set_memattr()
2169 if (refchg & LPTE_REF) in moea64_page_set_memattr()
2564 int32_t refchg; in moea64_pvo_protect() local
2578 refchg = moea64_pte_replace(pvo, MOEA64_PTE_PROT_UPDATE); in moea64_pvo_protect()
2579 if (refchg < 0) in moea64_pvo_protect()
2580 refchg = (oldprot & VM_PROT_WRITE) ? LPTE_CHG : 0; in moea64_pvo_protect()
2597 refchg |= atomic_readandclear_32(&pg->md.mdpg_attrs); in moea64_pvo_protect()
2598 if (refchg & LPTE_CHG) in moea64_pvo_protect()
2600 if (refchg & LPTE_REF) in moea64_pvo_protect()
2945 int32_t refchg; in moea64_pvo_remove_from_pmap() local
2954 refchg = moea64_pte_unset(pvo); in moea64_pvo_remove_from_pmap()
2955 if (refchg < 0) { in moea64_pvo_remove_from_pmap()
2961 refchg = LPTE_CHG; in moea64_pvo_remove_from_pmap()
2963 refchg = 0; in moea64_pvo_remove_from_pmap()
2988 refchg |= atomic_readandclear_32(&pg->md.mdpg_attrs); in moea64_pvo_remove_from_pmap()
2989 if (refchg & LPTE_CHG) in moea64_pvo_remove_from_pmap()
2991 if (refchg & LPTE_REF) in moea64_pvo_remove_from_pmap()
3519 int64_t refchg; in moea64_pte_replace_default() local
3521 refchg = moea64_pte_unset(pvo); in moea64_pte_replace_default()
3524 return (refchg); in moea64_pte_replace_default()
3674 int64_t refchg; in moea64_sp_refchg_process() local
3678 refchg = sp_refchg | in moea64_sp_refchg_process()
3680 if (refchg & LPTE_CHG) in moea64_sp_refchg_process()
3682 if (refchg & LPTE_REF) in moea64_sp_refchg_process()
3945 int64_t refchg; in moea64_sp_demote_aligned() local
3972 refchg = moea64_pte_replace_sp(sp); in moea64_sp_demote_aligned()
3988 moea64_sp_refchg_process(sp, m, refchg, sp->pvo_pte.prot); in moea64_sp_demote_aligned()
4015 int64_t ret, refchg; in moea64_sp_unwire() local
4023 refchg = 0; in moea64_sp_unwire()
4033 refchg |= LPTE_CHG; in moea64_sp_unwire()
4035 refchg |= ret; in moea64_sp_unwire()
4042 refchg, sp->pvo_pte.prot); in moea64_sp_unwire()
4054 int64_t ret, refchg; in moea64_sp_protect() local
4068 refchg = 0; in moea64_sp_protect()
4078 refchg |= LPTE_CHG; in moea64_sp_protect()
4080 refchg |= ret; in moea64_sp_protect()
4084 moea64_sp_refchg_process(sp, m, refchg, oldprot); in moea64_sp_protect()
4139 int64_t refchg, ret; in moea64_sp_query_locked() local
4157 refchg = 0; in moea64_sp_query_locked()
4162 refchg |= ret & (LPTE_CHG | LPTE_REF); in moea64_sp_query_locked()
4163 if ((refchg & ptebit) != 0) in moea64_sp_query_locked()
4169 if (refchg != 0) { in moea64_sp_query_locked()
4171 atomic_set_32(&m->md.mdpg_attrs, refchg | MDPG_ATTR_SP); in moea64_sp_query_locked()
4174 return (refchg); in moea64_sp_query_locked()
4180 int64_t refchg; in moea64_sp_query() local
4196 refchg = moea64_sp_query_locked(pvo, ptebit); in moea64_sp_query()
4201 (uintmax_t)PVO_PADDR(pvo), (uintmax_t)refchg); in moea64_sp_query()
4203 return (refchg); in moea64_sp_query()
4209 int64_t refchg, ret; in moea64_sp_pvo_clear() local
4237 refchg = 0; in moea64_sp_pvo_clear()
4242 refchg |= ret & (LPTE_CHG | LPTE_REF); in moea64_sp_pvo_clear()
4251 (uintmax_t)PVO_PADDR(sp), (uintmax_t)refchg); in moea64_sp_pvo_clear()
4253 return (refchg); in moea64_sp_pvo_clear()