Lines Matching refs:pte

296 	pt_entry_t	pte;
317 if ((PT_ENTRY_NULL != ptp) && (((pte = *ptp) & INTEL_PTE_VALID) != 0)) {
318 ppn = (ppnum_t) i386_btop(pte_to_pa(pte));
395 * that the related pte cannot be reclaimed.
426 pt_entry_t *pte;
487 * Expand pmap to include this pte. Assume that
492 while ((pte = pmap64_pde(pmap, vaddr)) == PD_ENTRY_NULL) {
501 while ((pte = pmap_pte(pmap, vaddr)) == PT_ENTRY_NULL) {
518 if (superpage && *pte && !(*pte & INTEL_PTE_PS)) {
527 *pte = 0;
530 old_pa = pte_to_pa(*pte);
542 old_pa = pte_to_pa(*pte);
555 *pte & ~(INTEL_PTE_REF | INTEL_PTE_MOD);
600 opte = *pte;
602 } while (!pmap_cmpx_pte(pte, opte, npte));
632 pmap_update_pte(pte, INTEL_PTE_VALID, 0);
636 old_pte = *pte;
639 pmap_store_pte(pte, 0);
646 if (iswired(*pte)) {
669 if (iswired(*pte)) {
796 pmap_store_pte(pte, template);
800 * to prevent pmap_page_protect et al from finding it until the pte
824 panic("pmap_enter: pte page not in object");
839 * The virtual address is the va for the first pte.
843 * entirely within one pte-page. This is NOT checked.
844 * Assumes that the pte-page exists.
1120 pt_entry_t *pte;
1175 pte = pmap_pte(pmap, vaddr);
1177 pmap_assert2((pa_index(pte_to_pa(*pte)) == pn),
1178 "pmap_page_protect: PTE mismatch, pn: 0x%x, pmap: %p, vaddr: 0x%llx, pte: 0x%llx", pn, pmap, vaddr, *pte);
1180 if (0 == pte) {
1194 pmap_update_pte(pte, INTEL_PTE_VALID, 0);
1197 if (iswired(*pte)) {
1204 *pte & (PHYS_MODIFIED|PHYS_REFERENCED);
1205 pmap_store_pte(pte, 0);
1240 *pte & (PHYS_MODIFIED|PHYS_REFERENCED);
1241 pmap_update_pte(pte, INTEL_PTE_WRITE, 0);
1286 pt_entry_t *pte;
1333 pte = pmap_pte(pmap, va);
1334 attributes |= *pte & (PHYS_MODIFIED|PHYS_REFERENCED);
1335 pmap_update_pte(pte, bits, 0);
1371 pt_entry_t *pte;
1426 pte = pmap_pte(pmap, va);
1427 attributes |= (int)(*pte & bits);
1453 pt_entry_t *pte;
1457 if ((pte = pmap_pte(map, vaddr)) == PT_ENTRY_NULL)
1458 panic("pmap_change_wiring: pte missing");
1460 if (wired && !iswired(*pte)) {
1466 pmap_update_pte(pte, 0, INTEL_PTE_WIRED);
1468 else if (!wired && iswired(*pte)) {
1475 pmap_update_pte(pte, INTEL_PTE_WIRED, 0);
1496 pt_entry_t *pte;
1521 pte = pmap_pte(kernel_pmap, (vm_map_offset_t)virt);
1522 if (pte == PT_ENTRY_NULL) {
1525 pmap_store_pte(pte, template);