Searched refs:mem_vtop (Results 1 – 6 of 6) sorted by relevance
508 mem_vtop_t mem_vtop; in mmioctl_vtop() local516 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 …]
329 mem_vtop_t mem_vtop; in dump_xpv_addr() local335 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()
451 mem_vtop_t mem_vtop; in kvm_physaddr() local455 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()
1248 mem_vtop_t mem_vtop; in dump_plat_addr() local1255 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()
56 typedef struct mem_vtop { struct
1394 mem_vtop_t mem_vtop; in dump_addpage() local1403 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()