Home
last modified time | relevance | path

Searched refs:va (Results 1 – 25 of 255) sorted by relevance

1234567891011

/illumos-gate/usr/src/uts/sun4v/os/
H A Dppage.c101 caddr_t va; in ppmapinit() local
146 caddr_t va; in ppmapin() local
163 va) { in ppmapin()
167 return (va); in ppmapin()
183 return (va); in ppmapin()
192 if (va >= kernelheap && va < ekernelheap) { in ppmapout()
314 caddr_t va; in pagezero() local
339 va = NULL; in pagezero()
341 if (va == NULL) { in pagezero()
361 doflush(va); in pagezero()
[all …]
/illumos-gate/usr/src/uts/sun4u/os/
H A Dppage.c100 caddr_t va; in ppmapinit() local
159 caddr_t va; in ppmapin() local
191 va, NULL) == va) { in ppmapin()
217 return (va); in ppmapin()
226 if (va >= kernelheap && va < ekernelheap) { in ppmapout()
272 caddr_t va; in pp_load_tlb() local
346 return (va); in pp_load_tlb()
502 caddr_t va; in pagezero() local
520 va = NULL; in pagezero()
555 doflush(va); in pagezero()
[all …]
/illumos-gate/usr/src/uts/sun4u/vm/
H A Dmach_sfmmu.c156 caddr_t va = ktsb_base; in sfmmu_remap_kernel() local
167 pfn = va_to_pfn(va); in sfmmu_remap_kernel()
183 va += MMU_PAGESIZE4M; in sfmmu_remap_kernel()
200 caddr_t va; in sfmmu_clear_user_tsbs() local
204 va = utsb_vabase; in sfmmu_clear_user_tsbs()
206 while (va < end_va) { in sfmmu_clear_user_tsbs()
208 va += MMU_PAGESIZE; in sfmmu_clear_user_tsbs()
212 va = utsb4m_vabase; in sfmmu_clear_user_tsbs()
214 while (va < end_va) { in sfmmu_clear_user_tsbs()
216 va += MMU_PAGESIZE; in sfmmu_clear_user_tsbs()
[all …]
/illumos-gate/usr/src/uts/i86pc/vm/
H A Di86_mmu.c85 uintptr_t va = des_va; in va_to_pfn() local
95 if (va > des_va) in va_to_pfn()
97 if (va < des_va) in va_to_pfn()
118 uintptr_t va; in hat_kmap_init() local
145 for (va = map_addr, i = 0; i < htable_cnt; va += LEVEL_SIZE(1), ++i) { in hat_kmap_init()
233 uintptr_t va = 0; in hat_kern_alloc() local
345 last_va = va; in hat_kern_alloc()
347 va = (va & LEVEL_MASK(l)) + LEVEL_SIZE(l); in hat_kern_alloc()
510 if (va >= kernelbase) { in mmu_flush_tlb_page()
537 for (uintptr_t va = addr; va < (addr + len); va += pgsz) in mmu_flush_tlb_range() local
[all …]
H A Dhat_kdi.c152 uintptr_t vaddr = va; in kdi_vtop()
167 if (vaddr > va) in kdi_vtop()
169 if (vaddr < va) in kdi_vtop()
170 pfn += mmu_btop(va - vaddr); in kdi_vtop()
212 caddr_t va; in kdi_prw() local
232 from = va; in kdi_prw()
237 to = va; in kdi_prw()
330 va + sz >= toxic_addr && in kdi_range_is_nontoxic()
332 return (va < toxic_addr ? toxic_addr - va : 0); in kdi_range_is_nontoxic()
337 if (va + sz >= hole_start && va < hole_end) in kdi_range_is_nontoxic()
[all …]
H A Dkboot_mmu.c196 mmu_invlpg((caddr_t)va); in kbm_map()
218 if (HYPERVISOR_update_va_mapping(va, in kbm_map_ma()
228 if (HYPERVISOR_update_va_mapping(va, in kbm_map_ma()
259 probe_va = *va; in kbm_probe()
287 if (probe_va <= *va) in kbm_probe()
306 *va = probe_va & ~(*len - 1); in kbm_probe()
329 kbm_unmap(uintptr_t va) in kbm_unmap() argument
350 mmu_invlpg((caddr_t)va); in kbm_unmap()
361 kbm_remap(uintptr_t va, pfn_t pfn) in kbm_remap() argument
389 mmu_invlpg((caddr_t)va); in kbm_remap()
[all …]
H A Dhtable.h105 #define HTABLE_HASH(hat, va, lvl) \ argument
106 ((((va) >> LEVEL_SHIFT(1)) + ((va) >> 28) + (lvl) + \
144 #define NEXT_ENTRY_VA(va, l) \ argument
145 ((va & LEVEL_MASK(l)) + LEVEL_SIZE(l) == mmu.hole_start ? \
146 mmu.hole_end : (va & LEVEL_MASK(l)) + LEVEL_SIZE(l))
156 #define NEXT_ENTRY_VA(va, l) ((va & LEVEL_MASK(l)) + LEVEL_SIZE(l)) argument
207 extern htable_t *htable_getpage(struct hat *hat, uintptr_t va, uint_t *entry);
255 extern x86pte_t htable_walk(struct hat *hat, htable_t **ht, uintptr_t *va,
263 extern uint_t htable_va2entry(uintptr_t va, htable_t *ht);
307 extern void xen_flush_va(caddr_t va);
[all …]
H A Dkboot_mmu.h59 extern int kbm_probe(uintptr_t *va, size_t *len, pfn_t *pfn, uint_t *prot);
64 extern void kbm_map(uintptr_t va, paddr_t pa, uint_t level, uint_t is_kernel);
67 extern void kbm_map_ma(maddr_t ma, uintptr_t va, uint_t level);
73 extern void kbm_unmap(uintptr_t va);
79 extern pfn_t kbm_remap(uintptr_t va, pfn_t pfn);
84 extern void kbm_read_only(uintptr_t va, paddr_t pa);
H A Dhat_i86.c556 for (va = rp->hkr_start_va; va != rp->hkr_end_va; in hat_alloc()
567 eva = va + in hat_alloc()
738 return (va); in hat_kernelbase()
1080 uintptr_t va; in hat_pcp_setup() local
1194 va < (uintptr_t)&kdi_isr_end; va += MMU_PAGESIZE) { in hat_pcp_setup()
1271 for (va = rp->hkr_start_va; va != rp->hkr_end_va; in hat_init_finish()
1973 if (ht->ht_vaddr > va || va > HTABLE_LAST_PAGE(ht)) { in hati_load_common()
2113 if (mmu.kmap_addr <= va && va < mmu.kmap_eaddr) { in hat_memload()
2780 for (; va < eva; va += MMU_PAGESIZE) { in hat_kmap_unload()
2817 if (mmu.kmap_addr <= va && va < mmu.kmap_eaddr) { in hat_unload()
[all …]
H A Dhtable.c442 uintptr_t va; in htable_steal_active() local
1183 uintptr_t va; in htable_release() local
1631 va += pgsize; in htable_scan()
1651 va = mmu.hole_end + va - mmu.hole_start; in htable_scan()
1653 *vap = va; in htable_scan()
1703 *vaddr = va; in htable_walk()
1728 while (va < eaddr && va >= *vaddr) { in htable_walk()
1753 va = NEXT_ENTRY_VA(va, l + 1); in htable_walk()
1864 uintptr_t va; in htable_e2va() local
1875 return (va); in htable_e2va()
[all …]
/illumos-gate/usr/src/lib/libumem/common/
H A Dmisc.c175 va_list va; in log_message() local
177 va_start(va, format); in log_message()
179 va_end(va); in log_message()
195 va_list va; in debug_printf() local
197 va_start(va, format); in debug_printf()
199 va_end(va); in debug_printf()
218 va_list va; in umem_printf() local
220 va_start(va, format); in umem_printf()
222 va_end(va); in umem_printf()
229 va_list va; in umem_printf_warn() local
[all …]
H A Dumem_fail.c107 va_list va; in umem_panic() local
109 va_start(va, format); in umem_panic()
110 umem_vprintf(format, va); in umem_panic()
111 va_end(va); in umem_panic()
124 va_list va; in umem_err_recoverable() local
126 va_start(va, format); in umem_err_recoverable()
127 umem_vprintf(format, va); in umem_err_recoverable()
128 va_end(va); in umem_err_recoverable()
/illumos-gate/usr/src/uts/common/fs/nfs/
H A Dnfs_acl_srv.c84 vattr_t va; in acl2_getacl() local
198 vattr_t va; in acl2_setacl() local
253 vattr_t va; in acl2_getattr() local
292 vattr_t va; in acl2_access() local
420 struct vattr va; in acl2_getxattrdir() local
454 vattr_t va; in acl3_getacl() local
465 vap = rfs4_delegated_getattr(vp, &va, 0, cr) ? NULL : &va; in acl3_getacl()
496 vap = rfs4_delegated_getattr(vp, &va, 0, cr) ? NULL : &va; in acl3_getacl()
565 vattr_t va; in acl3_setacl() local
578 vap = rfs4_delegated_getattr(vp, &va, 0, cr) ? NULL : &va; in acl3_setacl()
[all …]
H A Dnfs_srv.c135 struct vattr va; in rfs_getattr() local
184 struct vattr va; in rfs_setattr() local
224 va.va_atime = va.va_mtime; in rfs_setattr()
452 struct vattr va; in rfs_lookup() local
1866 va.va_rdev = nfsv2_expdev(va.va_size); in rfs_create()
1868 va.va_rdev = (dev_t)va.va_size; in rfs_create()
1879 va.va_rdev = nfsv2_expdev(va.va_size); in rfs_create()
1881 va.va_rdev = (dev_t)va.va_size; in rfs_create()
1908 if (!(va.va_mask & AT_SIZE) || va.va_type != VREG) { in rfs_create()
1927 } else if (va.va_type != VREG && va.va_type != VFIFO && in rfs_create()
[all …]
H A Dnfs3_srv.c665 vap = &va; in rfs3_access()
809 vap = &va; in rfs3_readlink()
879 vap = VOP_GETATTR(vp, &va, 0, cr, NULL) ? NULL : &va; in rfs3_readlink()
1063 vap = &va; in rfs3_read()
1212 vap = &va; in rfs3_read()
1658 &va); in rfs3_create()
1810 vap = VOP_GETATTR(vp, &va, 0, cr, NULL) ? NULL : &va; in rfs3_create()
1839 vap = VOP_GETATTR(vp, &va, 0, cr, NULL) ? NULL : &va; in rfs3_create()
2039 vap = VOP_GETATTR(vp, &va, 0, cr, NULL) ? NULL : &va; in rfs3_mkdir()
2215 vap = VOP_GETATTR(vp, &va, 0, cr, NULL) ? NULL : &va; in rfs3_symlink()
[all …]
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dnfsops.c371 struct vattr va; in boot_nfs_fstat() local
388 bzero((char *)&va, sizeof (va)); in boot_nfs_fstat()
394 status = nfsgetattr(&filep->file, &va); in boot_nfs_fstat()
397 status = nfs3getattr(&filep->file, &va); in boot_nfs_fstat()
400 status = nfs4getattr(&filep->file, &va); in boot_nfs_fstat()
412 if (va.va_size > (u_offset_t)MAXOFF_T) { in boot_nfs_fstat()
416 stp->st_size = (off_t)va.va_size; in boot_nfs_fstat()
417 stp->st_mode = VTTOIF(va.va_type) | va.va_mode; in boot_nfs_fstat()
418 stp->st_atim.tv_sec = va.va_atime.tv_sec; in boot_nfs_fstat()
420 stp->st_ctim.tv_sec = va.va_ctime.tv_sec; in boot_nfs_fstat()
[all …]
/illumos-gate/usr/src/cmd/svc/svccfg/
H A Dsvccfg_main.c97 vmessage(const char *fmt, va_list va) in vmessage() argument
111 if (vfprintf(strm, fmt, va) < 0 && interactive) in vmessage()
126 va_list va; in warn() local
128 va_start(va, fmt); in warn()
129 vmessage(fmt, va); in warn()
130 va_end(va); in warn()
157 va_list va; in semerr() local
159 va_start(va, fmt); in semerr()
160 vmessage(fmt, va); in semerr()
161 va_end(va); in semerr()
/illumos-gate/usr/src/uts/i86pc/os/
H A Dppage.c57 caddr_t va; in ppmapin() local
59 va = vmem_alloc(heap_arena, PAGESIZE, VM_SLEEP); in ppmapin()
60 hat_memload(kas.a_hat, va, pp, vprot | HAT_NOSYNC, HAT_LOAD_LOCK); in ppmapin()
61 return (va); in ppmapin()
65 ppmapout(caddr_t va) in ppmapout() argument
67 hat_unload(kas.a_hat, va, PAGESIZE, HAT_UNLOAD_UNLOCK); in ppmapout()
68 vmem_free(heap_arena, va, PAGESIZE); in ppmapout()
/illumos-gate/usr/src/uts/i86xpv/os/
H A Dxpv_panic.c205 while (va < xpv_end && va >= *vaddr) { in xpv_va_walk()
224 scan_va = va; in xpv_va_walk()
241 va = NEXT_ENTRY_VA(va, l + 1); in xpv_va_walk()
245 va = scan_va; in xpv_va_walk()
249 if (va >= xpv_end || va < *vaddr) in xpv_va_walk()
275 if (va >= kpm1_low && va < kpm1_high) { in xpv_va_walk()
279 if (va >= kpm2_low && va < kpm2_high) { in xpv_va_walk()
299 *vaddr = va; in xpv_va_walk()
300 lastva = va; in xpv_va_walk()
328 uintptr_t va; in dump_xpv_addr() local
[all …]
/illumos-gate/usr/src/uts/sun4v/vm/
H A Dmach_sfmmu.c203 caddr_t va = ktsb_base; in sfmmu_remap_kernel() local
207 ASSERT(va >= datava + MMU_PAGESIZE4M); in sfmmu_remap_kernel()
210 ASSERT(IS_P2ALIGNED(va, tsbsz)); in sfmmu_remap_kernel()
214 pfn = va_to_pfn(va); in sfmmu_remap_kernel()
230 va += MMU_PAGESIZE4M; in sfmmu_remap_kernel()
253 caddr_t va = ktsb_base; in sfmmu_set_tlb() local
261 va += MMU_PAGESIZE4M; in sfmmu_set_tlb()
289 kdi_tlb_page_lock(caddr_t va, int do_dtlb) in kdi_tlb_page_lock() argument
292 pfn_t pfn = va_to_pfn(va); in kdi_tlb_page_lock()
302 getprocessorid(), (void *)va, ret); in kdi_tlb_page_lock()
[all …]
/illumos-gate/usr/src/contrib/bhyve/amd64/machine/
H A Dpmap.h267 #define vtophys(va) pmap_kextract(((vm_offset_t) (va))) argument
391 #define pmap_unmapbios(va, sz) pmap_unmapdev((va), (sz)) argument
401 void pmap_kenter(vm_offset_t va, vm_paddr_t pa);
426 pmap_pte_index(vm_offset_t va) in pmap_pte_index() argument
429 return ((va >> PAGE_SHIFT) & ((1ul << NPTEPGSHIFT) - 1)); in pmap_pte_index()
433 pmap_pde_index(vm_offset_t va) in pmap_pde_index() argument
436 return ((va >> PDRSHIFT) & ((1ul << NPDEPGSHIFT) - 1)); in pmap_pde_index()
440 pmap_pdpe_index(vm_offset_t va) in pmap_pdpe_index() argument
443 return ((va >> PDPSHIFT) & ((1ul << NPDPEPGSHIFT) - 1)); in pmap_pdpe_index()
447 pmap_pml4e_index(vm_offset_t va) in pmap_pml4e_index() argument
[all …]
/illumos-gate/usr/src/boot/i386/btx/lib/
H A Dbtxv86.h61 #define VTOP(va) ((vm_offset_t)(va) + __base) argument
62 #define VTOPSEG(va) (u_int16_t)(VTOP((caddr_t)va) >> 4) argument
63 #define VTOPOFF(va) (u_int16_t)(VTOP((caddr_t)va) & 0xf) argument
/illumos-gate/usr/src/uts/common/io/i40e/
H A Di40e_osdep.c28 mem->va = kmem_zalloc(size, KM_SLEEP); in i40e_allocate_virt_mem()
37 if (mem->va != NULL) in i40e_free_virt_mem()
38 kmem_free(mem->va, mem->size); in i40e_free_virt_mem()
81 NULL, (caddr_t *)&mem->va, &len, &mem->idm_acc_handle); in i40e_allocate_dma_mem()
84 mem->va = NULL; in i40e_allocate_dma_mem()
94 bzero(mem->va, len); in i40e_allocate_dma_mem()
96 rc = ddi_dma_addr_bind_handle(mem->idm_dma_handle, NULL, mem->va, len, in i40e_allocate_dma_mem()
104 mem->va = NULL; in i40e_allocate_dma_mem()
149 mem->va = NULL; in i40e_free_dma_mem()
161 ASSERT(mem->va == NULL); in i40e_free_dma_mem()
/illumos-gate/usr/src/uts/i86pc/boot/
H A Dboot_mmu.c60 vatoindex(uint64_t va, uint_t level) in vatoindex() argument
62 return ((va >> shift_amt[level]) & (ptes_per_table - 1)); in vatoindex()
70 find_pte(uint64_t va, paddr_t *pa, uint_t level, uint_t probe_only) in find_pte() argument
80 if (IN_HYPERVISOR_VA(va)) in find_pte()
92 index = vatoindex(va, l); in find_pte()
120 index = vatoindex(va, l); in find_pte()
/illumos-gate/usr/src/uts/sun4/io/
H A Dtrapstat.c672 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()
862 va += MMU_PAGESIZE; in trapstat_probe_alloc()
869 caddr_t va; in trapstat_probe_free() local
879 va += MMU_PAGESIZE; in trapstat_probe_free()
1247 uintptr_t orig, va; in trapstat_tlbent() local
1553 va += sizeof (enabled); in trapstat_make_traptab()
1689 va += sizeof (enabled); in trapstat_make_traptab()
1719 caddr_t va; in trapstat_setup() local
[all …]

1234567891011