Lines Matching refs:va
616 caddr_t va = tcpu->tcpu_vabase; in trapstat_load_tlb() local
622 for (i = 0; i < tstat_total_pages; i++, va += MMU_PAGESIZE) { in trapstat_load_tlb()
628 sfmmu_itlb_ld_kva(va, &tte); in trapstat_load_tlb()
633 sfmmu_dtlb_ld_kva(va, &tte); in trapstat_load_tlb()
642 ret = hv_mmu_map_perm_addr(va, KCONTEXT, *(uint64_t *)&tte, in trapstat_load_tlb()
655 va = tcpu->tcpu_vabase; in trapstat_load_tlb()
657 (void) hv_mmu_unmap_perm_addr(va, in trapstat_load_tlb()
659 va += MMU_PAGESIZE4M; in trapstat_load_tlb()
672 va += MMU_PAGESIZE4M; in trapstat_load_tlb()
833 caddr_t va; in trapstat_probe_alloc() local
847 va = tstat_probe_area; in trapstat_probe_alloc()
860 hat_devload(kas.a_hat, va, MMU_PAGESIZE, pfn, PROT_READ, in trapstat_probe_alloc()
862 va += MMU_PAGESIZE; in trapstat_probe_alloc()
869 caddr_t va; in trapstat_probe_free() local
874 if ((va = tstat_probe_area) == NULL) in trapstat_probe_free()
878 hat_unload(kas.a_hat, va, MMU_PAGESIZE, HAT_UNLOAD_UNLOCK); in trapstat_probe_free()
879 va += MMU_PAGESIZE; in trapstat_probe_free()
1247 uintptr_t orig, va; in trapstat_tlbent() local
1401 va = (uintptr_t)tcpu->tcpu_ibase + entoffs; in trapstat_tlbent()
1412 tentva = va; /* trap vector entry va */ in trapstat_tlbent()
1417 va = TSTAT_INSTR_OFFS(tcpu, tinst_immumiss); in trapstat_tlbent()
1421 va = TSTAT_INSTR_OFFS(tcpu, tinst_dmmumiss); in trapstat_tlbent()
1424 tent[0] |= DISP22(tentva, va); in trapstat_tlbent()
1447 ent[TSTAT_TLBENT_BA] |= DISP22(va + baoffs, orig); in trapstat_tlbent()
1499 uintptr_t orig, va, en_baoffs, dis_baoffs; in trapstat_make_traptab() local
1534 va = (uintptr_t)tcpu->tcpu_ibase; in trapstat_make_traptab()
1544 ent[TSTAT_ENABLED_BA] |= DISP22(va + en_baoffs, orig); in trapstat_make_traptab()
1547 ent[TSTAT_DISABLED_BA] |= DISP22(va + dis_baoffs, orig); in trapstat_make_traptab()
1553 va += sizeof (enabled); in trapstat_make_traptab()
1579 uintptr_t orig, va, en_baoffs; in trapstat_make_traptab() local
1657 va = (uintptr_t)tcpu->tcpu_ibase; in trapstat_make_traptab()
1677 DISP22(va + en_baoffs, tstat_cont_va); in trapstat_make_traptab()
1689 va += sizeof (enabled); in trapstat_make_traptab()
1719 caddr_t va; in trapstat_setup() local
1774 va = (caddr_t)tcpu->tcpu_instr; in trapstat_setup()
1775 for (i = 0; i < TSTAT_INSTR_PAGES; i++, va += MMU_PAGESIZE) in trapstat_setup()
1776 *pfn++ = hat_getpfnum(kas.a_hat, va); in trapstat_setup()
1790 va = (caddr_t)tcpu->tcpu_data; in trapstat_setup()
1791 for (i = 0; i < tstat_data_pages; i++, va += MMU_PAGESIZE) in trapstat_setup()
1792 *pfn++ = hat_getpfnum(kas.a_hat, va); in trapstat_setup()
1868 caddr_t va = tcpu->tcpu_vabase; in trapstat_teardown() local
1884 for (i = 0; i < tstat_total_pages; i++, va += MMU_PAGESIZE) { in trapstat_teardown()
1885 xt_one(cpu, vtag_flushpage_tl1, (uint64_t)va, in trapstat_teardown()
1890 xt_one(cpu, vtag_unmap_perm_tl1, (uint64_t)va, KCONTEXT); in trapstat_teardown()
1891 va += MMU_PAGESIZE4M; in trapstat_teardown()