/hardware/google/aemu/host-common/ |
D | address_space_device.cpp | 90 void tellPingInfo(uint32_t handle, uint64_t gpa) { in tellPingInfo() argument 95 sVmOps->physicalMemoryGetAddr(gpa); in tellPingInfo() 96 contextDesc.pingInfoGpa = gpa; in tellPingInfo() 97 AS_DEVICE_DPRINT("Ping info: gpa 0x%llx @ %p\n", (unsigned long long)gpa, in tellPingInfo() 159 …void registerDeallocationCallback(uint64_t gpa, void* context, address_space_device_deallocation_c… in registerDeallocationCallback() argument 161 auto& currentCallbacks = mDeallocationCallbacks[gpa]; in registerDeallocationCallback() 171 void runDeallocationCallbacks(uint64_t gpa) { in runDeallocationCallbacks() argument 174 auto it = mDeallocationCallbacks.find(gpa); in runDeallocationCallbacks() 180 entry.func(entry.context, gpa); in runDeallocationCallbacks() 183 mDeallocationCallbacks.erase(gpa); in runDeallocationCallbacks() [all …]
|
D | address_space_host_memory_allocator_unittests.cpp | 26 int empty_add_memory_mapping(uint64_t gpa, void *ptr, uint64_t size) { in empty_add_memory_mapping() argument 27 return (gpa == BAD_GPA) ? 0 : 1; in empty_add_memory_mapping() 30 int empty_remove_memory_mapping(uint64_t gpa, void *ptr, uint64_t size) { return 1; } in empty_remove_memory_mapping() argument
|
D | DmaMap.cpp | 165 uint64_t gpa = stream->getBe64(); in load() local 172 return std::make_pair(gpa, info); in load()
|
D | address_space_shared_slots_host_memory_allocator_unittests.cpp | 25 int add_memory_mapping(uint64_t gpa, void *ptr, uint64_t size) { in add_memory_mapping() argument 29 int remove_memory_mapping(uint64_t gpa, void *ptr, uint64_t size) { return 1; } in remove_memory_mapping() argument
|
D | address_space_shared_slots_host_memory_allocator.cpp | 56 uint64_t allocateAddressSpaceBlockFixed(uint64_t gpa, const AddressSpaceHwFuncs* hw, uint32_t size)… in allocateAddressSpaceBlockFixed() argument 57 uint64_t offset = gpa - hw->getPhysAddrStartLocked(); in allocateAddressSpaceBlockFixed()
|
/hardware/google/aemu/host-common/testing/ |
D | MockAndroidVmOperations.cpp | 68 [](uint64_t gpa, void* hva, uint64_t size) { in __anonebad62460802() 69 HostAddressSpaceDevice::get()->setHostAddrByPhysAddr(gpa, in __anonebad62460802() 73 [](uint64_t gpa, uint64_t size) { in __anonebad62460902() 74 HostAddressSpaceDevice::get()->unsetHostAddrByPhysAddr(gpa); in __anonebad62460902() 81 [](uint64_t gpa) { in __anonebad62460a02() 82 void* res = HostAddressSpaceDevice::get()->getHostAddr(gpa); in __anonebad62460a02() 84 return (void*)(uintptr_t)gpa; in __anonebad62460a02()
|
/hardware/google/aemu/host-common/include/host-common/ |
D | address_space_device.h | 39 typedef void (*address_space_device_tell_ping_info_t)(uint32_t handle, uint64_t gpa); 41 typedef int (*address_space_device_add_memory_mapping_t)(uint64_t gpa, void *ptr, uint64_t size); 42 typedef int (*address_space_device_remove_memory_mapping_t)(uint64_t gpa, void *ptr, uint64_t size); 43 typedef void* (*address_space_device_get_host_ptr_t)(uint64_t gpa); 51 typedef void (*address_space_device_deallocation_callback_t)(void* context, uint64_t gpa); 52 typedef void (*address_space_device_register_deallocation_callback_t)(void* context, uint64_t gpa, … 53 typedef void (*address_space_device_run_deallocation_callbacks_t)(uint64_t gpa);
|
D | vm_operations.h | 214 void (*mapUserBackedRam)(uint64_t gpa, void* hva, uint64_t size); 215 void (*unmapUserBackedRam)(uint64_t gpa, uint64_t size); 232 void* (*physicalMemoryGetAddr)(uint64_t gpa);
|
/hardware/google/gfxstream/guest/renderControl_enc/ |
D | renderControl_entry.cpp | 60 int rcMapGpaToBufferHandle(uint32_t bufferHandle, uint64_t gpa); 62 int rcMapGpaToBufferHandle2(uint32_t bufferHandle, uint64_t gpa, uint64_t size); 398 int rcMapGpaToBufferHandle(uint32_t bufferHandle, uint64_t gpa) in rcMapGpaToBufferHandle() argument 401 return ctx->rcMapGpaToBufferHandle(ctx, bufferHandle, gpa); in rcMapGpaToBufferHandle() 410 int rcMapGpaToBufferHandle2(uint32_t bufferHandle, uint64_t gpa, uint64_t size) in rcMapGpaToBufferHandle2() argument 413 return ctx->rcMapGpaToBufferHandle2(ctx, bufferHandle, gpa, size); in rcMapGpaToBufferHandle2()
|
D | renderControl_enc.cpp | 2123 int rcMapGpaToBufferHandle_enc(void *self , uint32_t bufferHandle, uint64_t gpa) in rcMapGpaToBufferHandle_enc() argument 2125 ENCODER_DEBUG_LOG("rcMapGpaToBufferHandle(bufferHandle:0x%08x, gpa:0x%016lx)", bufferHandle, gpa); in rcMapGpaToBufferHandle_enc() 2144 memcpy(ptr, &gpa, 8); ptr += 8; in rcMapGpaToBufferHandle_enc() 2209 int rcMapGpaToBufferHandle2_enc(void *self , uint32_t bufferHandle, uint64_t gpa, uint64_t size) in rcMapGpaToBufferHandle2_enc() argument 2211 …MapGpaToBufferHandle2(bufferHandle:0x%08x, gpa:0x%016lx, size:0x%016lx)", bufferHandle, gpa, size); in rcMapGpaToBufferHandle2_enc() 2230 memcpy(ptr, &gpa, 8); ptr += 8; in rcMapGpaToBufferHandle2_enc()
|
/hardware/google/gfxstream/host/ |
D | GfxStreamAgents.cpp | 406 [](uint64_t gpa, void* hva, uint64_t size) { in __anon6361db8d2e02() 410 [](uint64_t gpa, uint64_t size) { in __anon6361db8d2f02() 433 [](uint64_t gpa) { in __anon6361db8d3402()
|
D | RenderControl.cpp | 1426 static int32_t rcMapGpaToBufferHandle(uint32_t bufferHandle, uint64_t gpa) { in rcMapGpaToBufferHandle() argument 1427 int32_t result = vk::mapGpaToBufferHandle(bufferHandle, gpa); in rcMapGpaToBufferHandle() 1431 __func__, gpa, bufferHandle, result); in rcMapGpaToBufferHandle() 1437 uint64_t gpa, in rcMapGpaToBufferHandle2() argument 1439 int32_t result = vk::mapGpaToBufferHandle(bufferHandle, gpa, size); in rcMapGpaToBufferHandle2() 1443 __func__, gpa, bufferHandle, result); in rcMapGpaToBufferHandle2()
|
/hardware/google/gfxstream/codegen/renderControl/ |
D | renderControl.in | 53 GL_ENTRY(int, rcMapGpaToBufferHandle, uint32_t bufferHandle, uint64_t gpa) 55 GL_ENTRY(int, rcMapGpaToBufferHandle2, uint32_t bufferHandle, uint64_t gpa, uint64_t size)
|
/hardware/google/gfxstream/host/vulkan/ |
D | VkCommonOperations.h | 252 uintptr_t gpa = 0u; member 500 int32_t mapGpaToBufferHandle(uint32_t bufferHandle, uint64_t gpa, uint64_t size = 0);
|
D | VkCommonOperations.cpp | 1573 if (sVkEmulation->occupiedGpas.find(info->gpa) != sVkEmulation->occupiedGpas.end()) { in freeExternalMemoryLocked() 1574 sVkEmulation->occupiedGpas.erase(info->gpa); in freeExternalMemoryLocked() 1575 get_emugl_vm_operations().unmapUserBackedRam(info->gpa, info->sizeToPage); in freeExternalMemoryLocked() 1576 info->gpa = 0u; in freeExternalMemoryLocked() 2857 int32_t mapGpaToBufferHandle(uint32_t bufferHandle, uint64_t gpa, uint64_t size) { in mapGpaToBufferHandle() argument 2882 memoryInfoPtr->gpa = gpa; in mapGpaToBufferHandle() 2896 memoryInfoPtr->gpa, memoryInfoPtr->gpa + memoryInfoPtr->sizeToPage); in mapGpaToBufferHandle() 2898 if (sVkEmulation->occupiedGpas.find(gpa) != sVkEmulation->occupiedGpas.end()) { in mapGpaToBufferHandle() 2903 get_emugl_vm_operations().mapUserBackedRam(gpa, memoryInfoPtr->pageAlignedHva, in mapGpaToBufferHandle() 2906 sVkEmulation->occupiedGpas.insert(gpa); in mapGpaToBufferHandle()
|
D | VkDecoderGlobalState.cpp | 4119 uint64_t gpa = info->guestPhysAddr; in mapHostVisibleMemoryToGuestPhysicalAddressLocked() local 4125 auto* existingMemoryInfo = android::base::find(mOccupiedGpas, gpa); in mapHostVisibleMemoryToGuestPhysicalAddressLocked() 4128 (unsigned long long)gpa); in mapHostVisibleMemoryToGuestPhysicalAddressLocked() 4130 get_emugl_vm_operations().unmapUserBackedRam(existingMemoryInfo->gpa, in mapHostVisibleMemoryToGuestPhysicalAddressLocked() 4133 mOccupiedGpas.erase(gpa); in mapHostVisibleMemoryToGuestPhysicalAddressLocked() 4136 get_emugl_vm_operations().mapUserBackedRam(gpa, hva, sizeToPage); in mapHostVisibleMemoryToGuestPhysicalAddressLocked() 4140 (unsigned long long)gpa); in mapHostVisibleMemoryToGuestPhysicalAddressLocked() 4143 mOccupiedGpas[gpa] = { in mapHostVisibleMemoryToGuestPhysicalAddressLocked() 4144 vk, device, memory, gpa, sizeToPage, in mapHostVisibleMemoryToGuestPhysicalAddressLocked() 4149 this, gpa, [](void* thisPtr, uint64_t gpa) { in mapHostVisibleMemoryToGuestPhysicalAddressLocked() argument [all …]
|