Lines Matching defs:va
100 caddr_t va;
104 va = (caddr_t)PPMAPBASE;
128 (caddr_t)((uintptr_t)va + (nset * setsize));
130 va += MMU_PAGESIZE;
159 caddr_t va;
185 va = ppmap_vaddrs[index];
186 if (va != NULL) {
191 va, NULL) == va) {
192 hat_memload(kas.a_hat, va, pp,
195 return (va);
213 va = vmem_alloc(heap_arena, PAGESIZE, VM_SLEEP);
215 hat_memload(kas.a_hat, va, pp, vprot | HAT_NOSYNC, HAT_LOAD_LOCK);
217 return (va);
222 ppmapout(caddr_t va)
226 if (va >= kernelheap && va < ekernelheap) {
231 hat_unload(kas.a_hat, va, PAGESIZE,
233 vmem_free(heap_arena, va, PAGESIZE);
238 color = addr_to_vcolor(va);
241 nset = ((uintptr_t)va >> ppmap_shift) & (nsets - 1);
243 hat_unload(kas.a_hat, va, PAGESIZE,
247 ppmap_vaddrs[index] = va;
272 caddr_t va;
280 va = (caddr_t)(PPMAP_FAST_BASE + (MMU_PAGESIZE * MAXPP_SLOTS) * cpu);
282 ASSERT(addr_to_vcolor(va) == 0);
309 va += MMU_PAGESIZE * vcolor;
320 if (atomic_cas_ptr(myslot, NULL, va) == NULL)
324 va += MMU_PAGESIZE * stride;
332 ASSERT(vcolor == -1 || addr_to_vcolor(va) == vcolor);
342 sfmmu_dtlb_ld_kva(va, &tte);
346 return (va);
350 pp_unload_tlb(caddr_t *pslot, caddr_t va)
352 ASSERT(*pslot == va);
354 vtag_flushpage(va, (uint64_t)ksfmmup);
502 caddr_t va;
520 va = NULL;
528 va = pp_load_tlb(cpu, &slot, pp, TTE_HWWR_INT);
531 if (va == NULL) {
536 va = ppmapin(pp, PROT_READ | PROT_WRITE, (caddr_t)-1);
540 if (hwblkclr(va + off, len)) {
548 sync_icache(va + off, len);
555 doflush(va);
560 pp_unload_tlb(slot, va);
562 ppmapout(va);