Lines Matching refs:va

101 	caddr_t va;  in ppmapinit()  local
105 va = (caddr_t)PPMAPBASE; in ppmapinit()
116 (caddr_t)((uintptr_t)va + (nset * MMU_PAGESIZE)); in ppmapinit()
146 caddr_t va; in ppmapin() local
157 va = ppmap_vaddrs[nset]; in ppmapin()
158 if (va != NULL) { in ppmapin()
162 if (atomic_cas_ptr(&ppmap_vaddrs[nset], va, NULL) == in ppmapin()
163 va) { in ppmapin()
164 hat_memload(kas.a_hat, va, pp, in ppmapin()
167 return (va); in ppmapin()
179 va = vmem_alloc(heap_arena, PAGESIZE, VM_SLEEP); in ppmapin()
181 hat_memload(kas.a_hat, va, pp, vprot | HAT_NOSYNC, HAT_LOAD_LOCK); in ppmapin()
183 return (va); in ppmapin()
188 ppmapout(caddr_t va) in ppmapout() argument
192 if (va >= kernelheap && va < ekernelheap) { in ppmapout()
197 hat_unload(kas.a_hat, va, PAGESIZE, in ppmapout()
199 vmem_free(heap_arena, va, PAGESIZE); in ppmapout()
204 nset = ((uintptr_t)va >> ppmap_shift) & (nsets - 1); in ppmapout()
205 hat_unload(kas.a_hat, va, PAGESIZE, in ppmapout()
209 ppmap_vaddrs[nset] = va; in ppmapout()
222 pp_unload_tlb(caddr_t *pslot, caddr_t va) in pp_unload_tlb() argument
224 ASSERT(*pslot == va); in pp_unload_tlb()
226 vtag_flushpage(va, (uint64_t)ksfmmup); in pp_unload_tlb()
314 caddr_t va; in pagezero() local
337 va = hat_kpm_mapin(pp, NULL); in pagezero()
339 va = NULL; in pagezero()
341 if (va == NULL) { in pagezero()
343 va = ppmapin(pp, PROT_READ | PROT_WRITE, (caddr_t)-1); in pagezero()
347 bzero(va + off, len); in pagezero()
348 sync_icache(va + off, len); in pagezero()
349 } else if (hwblkclr(va + off, len)) { in pagezero()
354 sync_icache(va + off, len); in pagezero()
361 doflush(va); in pagezero()
365 hat_kpm_mapout(pp, NULL, va); in pagezero()
367 ppmapout(va); in pagezero()