Home
last modified time | relevance | path

Searched refs:mem_vtop (Results 1 – 6 of 6) sorted by relevance

/illumos-gate/usr/src/uts/common/io/
H A Dmem.c508 mem_vtop_t mem_vtop; in mmioctl_vtop() local
516 if (copyin((void *)data, &mem_vtop, sizeof (mem_vtop_t))) in mmioctl_vtop()
523 mem_vtop.m_as = (struct as *)(uintptr_t)vtop32.m_as; in mmioctl_vtop()
524 mem_vtop.m_va = (void *)(uintptr_t)vtop32.m_va; in mmioctl_vtop()
526 if (mem_vtop.m_as != NULL) in mmioctl_vtop()
531 if (mem_vtop.m_as == &kas) { in mmioctl_vtop()
532 pfn = hat_getpfnum(kas.a_hat, mem_vtop.m_va); in mmioctl_vtop()
534 if (mem_vtop.m_as == NULL) { in mmioctl_vtop()
542 mem_vtop.m_as = p->p_as; in mmioctl_vtop()
547 if (p->p_as == mem_vtop.m_as) { in mmioctl_vtop()
[all …]
/illumos-gate/usr/src/uts/i86xpv/os/
H A Dxpv_panic.c329 mem_vtop_t mem_vtop; in dump_xpv_addr() local
335 mem_vtop.m_as = &kas; in dump_xpv_addr()
336 mem_vtop.m_va = (void *)va; in dump_xpv_addr()
337 mem_vtop.m_pfn = (pfn_t)xpv_dump_pages | PFN_IS_FOREIGN_MFN; in dump_xpv_addr()
339 dumpvp_write(&mem_vtop, sizeof (mem_vtop_t)); in dump_xpv_addr()
351 mem_vtop.m_as = &kas; in dump_xpv_addr()
352 mem_vtop.m_va = HYPERVISOR_shared_info; in dump_xpv_addr()
353 mem_vtop.m_pfn = (pfn_t)xpv_dump_pages | PFN_IS_FOREIGN_MFN; in dump_xpv_addr()
354 dumpvp_write(&mem_vtop, sizeof (mem_vtop_t)); in dump_xpv_addr()
/illumos-gate/usr/src/lib/libkvm/common/
H A Dkvm.c451 mem_vtop_t mem_vtop; in kvm_physaddr() local
455 mem_vtop.m_as = as; in kvm_physaddr()
456 mem_vtop.m_va = (void *)addr; in kvm_physaddr()
457 if (ioctl(kd->kvm_kmemfd, MEM_VTOP, &mem_vtop) == 0) in kvm_physaddr()
458 return ((uint64_t)mem_vtop.m_pfn * getpagesize() + in kvm_physaddr()
/illumos-gate/usr/src/uts/i86pc/os/
H A Dmachdep.c1248 mem_vtop_t mem_vtop; in dump_plat_addr() local
1255 mem_vtop.m_as = &kas; in dump_plat_addr()
1256 mem_vtop.m_va = HYPERVISOR_shared_info; in dump_plat_addr()
1257 mem_vtop.m_pfn = pfn; in dump_plat_addr()
1258 dumpvp_write(&mem_vtop, sizeof (mem_vtop_t)); in dump_plat_addr()
/illumos-gate/usr/src/uts/common/sys/
H A Dmem.h56 typedef struct mem_vtop { struct
/illumos-gate/usr/src/uts/common/os/
H A Ddumpsubr.c1394 mem_vtop_t mem_vtop; in dump_addpage() local
1403 mem_vtop.m_as = as; in dump_addpage()
1404 mem_vtop.m_va = va; in dump_addpage()
1405 mem_vtop.m_pfn = pfn; in dump_addpage()
1406 dumpvp_write(&mem_vtop, sizeof (mem_vtop_t)); in dump_addpage()