Lines Matching defs:pte
391 pte2mfn(x86pte_t pte, uint_t level)
394 if (level > 0 && (pte & PT_PAGESIZE))
395 mfn = mmu_btop(pte & PT_PADDR_LGPG);
397 mfn = mmu_btop(pte & PT_PADDR);
409 do_pte_dcmd(int level, uint64_t pte)
417 mdb_printf("pte=%llr: ", pte);
418 if (PTE_GET(pte, mmu.pt_nx))
421 mfn = pte2mfn(pte, level);
424 if (PTE_GET(pte, PT_NOCONSIST))
427 if (PTE_GET(pte, PT_NOSYNC))
430 if (PTE_GET(pte, mmu.pt_global))
433 if (level > 0 && PTE_GET(pte, PT_PAGESIZE))
436 if (level > 0 && PTE_GET(pte, PT_MOD))
439 if (level > 0 && PTE_GET(pte, PT_REF))
442 if (PTE_GET(pte, PT_USER))
445 if (PTE_GET(pte, PT_WRITABLE))
453 if (PTE_GET(pte, PT_PAGESIZE) && PTE_GET(pte, PT_PAT_LARGE))
456 if (PTE_GET(pte, PT_PAT_4K))
460 if (PTE_GET(pte, PT_NOCACHE))
463 if (PTE_GET(pte, PT_WRITETHRU))
469 if (PTE_GET(pte, PT_VALID) == 0)
488 uint64_t pte = 0;
506 pte = mdb_strtoull(pte_str);
510 pte = addr;
512 if (pte == 0)
524 return (do_pte_dcmd(level, pte));
574 x86pte_t pte;
621 pte = get_pte(&hat, &htable, addr);
625 "pte=%llr\n", level, ht, pte);
628 if (!PTE_ISVALID(pte)) {
637 if (PTE_IS_LGPG(pte, level))
638 paddr = mdb_ma_to_pa(pte &
641 paddr = mdb_ma_to_pa(pte & PT_PADDR);
646 *mfnp = pte2mfn(pte, level);
727 x86pte_t pte;
804 pte = buf;
806 pte = *pte32;
808 if ((pte & PT_VALID) == 0)
810 if (level == 0 || !(pte & PT_PAGESIZE))
811 pte &= PT_PADDR;
813 pte &= PT_PADDR_LGPG;
814 if (mmu_btop(mdb_ma_to_pa(pte)) != pfn)
868 x86pte_t pte;
932 pte = buf;
934 pte = *pte32;
936 if (pte == 0)
940 do_pte_dcmd(level, pte);