Lines Matching refs:pte
1573 x86pte_t pte; in hati_mkpte() local
1576 pte = MAKEPTE(pfn, level); in hati_mkpte()
1579 PTE_SET(pte, PT_WRITABLE); in hati_mkpte()
1582 PTE_SET(pte, PT_USER); in hati_mkpte()
1585 PTE_SET(pte, mmu.pt_nx); in hati_mkpte()
1592 PTE_SET(pte, PT_NOCONSIST | PT_REF | PT_MOD); in hati_mkpte()
1594 PTE_SET(pte, PT_NOSYNC | PT_REF | PT_MOD); in hati_mkpte()
1605 PTE_SET(pte, PT_NOCACHE); in hati_mkpte()
1610 PTE_SET(pte, PT_NOCACHE); in hati_mkpte()
1612 PTE_SET(pte, (level == 0) ? PT_PAT_4K : PT_PAT_LARGE); in hati_mkpte()
1614 PTE_SET(pte, PT_WRITETHRU); in hati_mkpte()
1619 return (pte); in hati_mkpte()
1755 hati_sync_pte_to_page(page_t *pp, x86pte_t pte, level_t level) in hati_sync_pte_to_page() argument
1760 if (PTE_GET(pte, PT_SOFTWARE) >= PT_NOSYNC) in hati_sync_pte_to_page()
1763 if (PTE_GET(pte, PT_REF)) in hati_sync_pte_to_page()
1766 if (PTE_GET(pte, PT_MOD)) in hati_sync_pte_to_page()
1809 x86pte_t pte, in hati_pte_map() argument
1846 old_pte = x86pte_set(ht, entry, pte, pte_ptr); in hati_pte_map()
1861 if (PTE_EQUIV(pte, old_pte)) in hati_pte_map()
1892 if (PTE2PFN(old_pte, l) != PTE2PFN(pte, l)) { in hati_pte_map()
1897 pf_is_memory(PTE2PFN(pte, l))); in hati_pte_map()
1904 if (PTE_GET(old_pte, ~PT_REMAP_BITS) != PTE_GET(pte, ~PT_REMAP_BITS)) in hati_pte_map()
1906 old_pte, pte); in hati_pte_map()
1937 x86pte_t pte; in hati_load_common() local
1992 pte = hati_mkpte(pfn, attr, level, flags); in hati_load_common()
1994 PTE_SET(pte, mmu.pt_global); in hati_load_common()
1999 rv = hati_pte_map(ht, entry, pp, pte, flags, NULL); in hati_load_common()
2020 x86pte_t pte; in hat_kmap_load() local
2032 pte = hati_mkpte(pfn, attr, 0, flags); in hat_kmap_load()
2033 PTE_SET(pte, mmu.pt_global); in hat_kmap_load()
2047 (void) hati_pte_map(ht, entry, pp, pte, flags, pte_ptr); in hat_kmap_load()
2992 x86pte_t pte; in hat_sync() local
3005 pte = htable_walk(hat, &ht, &vaddr, eaddr); in hat_sync()
3010 if (PTE_GET(pte, PT_SOFTWARE) >= PT_NOSYNC || in hat_sync()
3011 PTE_GET(pte, PT_REF | PT_MOD) == 0) in hat_sync()
3018 pp = page_numtopp_nolock(PTE2PFN(pte, ht->ht_level)); in hat_sync()
3022 save_pte = pte; in hat_sync()
3023 pte = x86pte_get(ht, entry); in hat_sync()
3024 if (pte != save_pte) { in hat_sync()
3028 if (PTE_GET(pte, PT_SOFTWARE) >= PT_NOSYNC || in hat_sync()
3029 PTE_GET(pte, PT_REF | PT_MOD) == 0) { in hat_sync()
3039 new = pte; in hat_sync()
3041 pte = hati_update_pte(ht, entry, pte, new); in hat_sync()
3042 if (pte != 0) { in hat_sync()
3080 x86pte_t pte; in hat_getattr() local
3087 ht = htable_getpte(hat, vaddr, NULL, &pte, mmu.max_page_level); in hat_getattr()
3091 if (!PTE_ISVALID(pte) || !PTE_ISPAGE(pte, ht->ht_level)) { in hat_getattr()
3097 if (PTE_GET(pte, PT_WRITABLE)) in hat_getattr()
3099 if (PTE_GET(pte, PT_USER)) in hat_getattr()
3101 if (!PTE_GET(pte, mmu.pt_nx)) in hat_getattr()
3103 if (PTE_GET(pte, PT_SOFTWARE) >= PT_NOSYNC) in hat_getattr()
3298 x86pte_t pte; in hat_getpfnum() local
3302 pte = GET_PTE(PT_INDEX_PTR(mmu.kmap_ptes, pg_index)); in hat_getpfnum()
3303 if (PTE_ISVALID(pte)) in hat_getpfnum()
3305 pfn = PTE2PFN(pte, 0); in hat_getpfnum()
3407 x86pte_t pte; in hat_share() local
3440 pte = htable_walk(ism_hat, &ism_ht, &ism_addr, e_ism_addr); in hat_share()
3494 x86pte_t pte; in hat_share() local
3495 pte = x86pte_get(ism_ht, e); in hat_share()
3496 if (!PTE_ISPAGE(pte, l)) in hat_share()
3541 pfn = PTE2PFN(pte, ism_ht->ht_level); in hat_share()
3552 if (PTE_GET(pte, PT_WRITABLE)) in hat_share()
3554 if (!PTE_GET(pte, PT_NX)) in hat_share()
4444 x86pte_t pte; in hat_mempte_remap() local
4464 pte = hati_mkpte(pfn, attr, 0, flags); in hat_mempte_remap()
4466 if (HYPERVISOR_update_va_mapping(va, pte, UVMF_INVLPG | UVMF_LOCAL)) in hat_mempte_remap()
4475 *(x86pte_t *)pteptr = pte; in hat_mempte_remap()
4477 *(x86pte32_t *)pteptr = (x86pte32_t)pte; in hat_mempte_remap()
4542 x86pte_t pte; in clear_boot_mappings() local
4549 pte = htable_walk(kas.a_hat, &ht, &vaddr, high); in clear_boot_mappings()
4556 ASSERT(PTE_ISPAGE(pte, level)); in clear_boot_mappings()