/system/memory/libdmabufheap/tests/ |
D | dmabuf_heap_bench.c | 62 int ion_heap_alloc(int ionfd, int heap_id, size_t len, unsigned int flags, int* dmabuf_fd) { in ion_heap_alloc() argument 74 *dmabuf_fd = alloc_data.fd; in ion_heap_alloc() 94 int dmabuf_heap_alloc(int fd, size_t len, unsigned int flags, int* dmabuf_fd) { in dmabuf_heap_alloc() argument 102 if (dmabuf_fd == NULL) return -EINVAL; in dmabuf_heap_alloc() 106 *dmabuf_fd = (int)data.fd; in dmabuf_heap_alloc() 121 int ionfd = -1, dmabuf_fd = -1; in ion_heap_bench() local 155 ret = ion_heap_alloc(ionfd, heap_id, size, flags, &dmabuf_fd); in ion_heap_bench() 157 close(dmabuf_fd); in ion_heap_bench() 171 int heap_fd = -1, dmabuf_fd = -1; in dmabuf_heap_bench() local 182 ret = dmabuf_heap_alloc(heap_fd, size, 0, &dmabuf_fd); in dmabuf_heap_bench() [all …]
|
/system/memory/libdmabufheap/ |
D | BufferAllocatorWrapper.cpp | 55 int DmabufHeapCpuSyncStart(BufferAllocator* buffer_allocator, unsigned int dmabuf_fd, in DmabufHeapCpuSyncStart() argument 60 return buffer_allocator->CpuSyncStart(dmabuf_fd, sync_type, legacy_ion_cpu_sync, in DmabufHeapCpuSyncStart() 64 int DmabufHeapCpuSyncEnd(BufferAllocator* buffer_allocator, unsigned int dmabuf_fd, in DmabufHeapCpuSyncEnd() argument 69 return buffer_allocator->CpuSyncEnd(dmabuf_fd, sync_type, legacy_ion_cpu_sync, custom_data); in DmabufHeapCpuSyncEnd()
|
D | BufferAllocator.cpp | 287 int BufferAllocator::LegacyIonCpuSync(unsigned int dmabuf_fd, in LegacyIonCpuSync() argument 291 return ion_sync_fd(ion_fd_, dmabuf_fd); in LegacyIonCpuSync() 300 int ret = legacy_ion_cpu_sync_custom(new_ion_fd, dmabuf_fd, legacy_ion_custom_data); in LegacyIonCpuSync() 306 int BufferAllocator::DoSync(unsigned int dmabuf_fd, bool start, SyncType sync_type, in DoSync() argument 310 return LegacyIonCpuSync(dmabuf_fd, legacy_ion_cpu_sync_custom, in DoSync() 318 return TEMP_FAILURE_RETRY(ioctl(dmabuf_fd, DMA_BUF_IOCTL_SYNC, &sync)); in DoSync() 321 int BufferAllocator::CpuSyncStart(unsigned int dmabuf_fd, SyncType sync_type, in CpuSyncStart() argument 324 int ret = DoSync(dmabuf_fd, true /* start */, sync_type, legacy_ion_cpu_sync_custom, in CpuSyncStart() 331 int BufferAllocator::CpuSyncEnd(unsigned int dmabuf_fd, SyncType sync_type, in CpuSyncEnd() argument 334 int ret = DoSync(dmabuf_fd, false /* start */, sync_type, legacy_ion_cpu_sync_custom, in CpuSyncEnd()
|
/system/core/trusty/apploader/ |
D | apploader.cpp | 123 unique_fd dmabuf_fd(alloc.Alloc(kDmabufSystemHeapName, file_page_size)); in read_file() local 124 if (!dmabuf_fd.ok()) { in read_file() 125 LOG(ERROR) << "Error creating dmabuf: " << dmabuf_fd.get(); in read_file() 126 return dmabuf_fd; in read_file() 129 void* shm = mmap(0, file_page_size, PROT_READ | PROT_WRITE, MAP_SHARED, dmabuf_fd, 0); in read_file() 163 return dmabuf_fd; in read_file()
|
/system/memory/libdmabufheap/include/BufferAllocator/ |
D | BufferAllocatorWrapper.h | 44 int DmabufHeapCpuSyncStart(BufferAllocator* buffer_allocator, unsigned int dmabuf_fd, 48 int DmabufHeapCpuSyncEnd(BufferAllocator* buffer_allocator, unsigned int dmabuf_fd,
|
D | BufferAllocator.h | 134 int CpuSyncStart(unsigned int dmabuf_fd, SyncType sync_type = kSyncRead, 157 int CpuSyncEnd(unsigned int dmabuf_fd, SyncType sync_type = kSyncRead, 197 int DoSync(unsigned int dmabuf_fd, bool start, SyncType sync_type,
|