Home
last modified time | relevance | path

Searched refs:dmabuf_fd (Results 1 – 7 of 7) sorted by relevance

/aosp12/system/memory/libdmabufheap/tests/
H A Ddmabuf_heap_bench.c62 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 …]
/aosp12/system/memory/libdmabufheap/
H A DBufferAllocator.cpp290 int BufferAllocator::LegacyIonCpuSync(unsigned int dmabuf_fd, in LegacyIonCpuSync() argument
294 return ion_sync_fd(ion_fd_, dmabuf_fd); in LegacyIonCpuSync()
303 int ret = legacy_ion_cpu_sync_custom(new_ion_fd, dmabuf_fd, legacy_ion_custom_data); in LegacyIonCpuSync()
309 int BufferAllocator::DoSync(unsigned int dmabuf_fd, bool start, SyncType sync_type, in DoSync() argument
313 return LegacyIonCpuSync(dmabuf_fd, legacy_ion_cpu_sync_custom, in DoSync()
321 return TEMP_FAILURE_RETRY(ioctl(dmabuf_fd, DMA_BUF_IOCTL_SYNC, &sync)); in DoSync()
324 int BufferAllocator::CpuSyncStart(unsigned int dmabuf_fd, SyncType sync_type, in CpuSyncStart() argument
327 int ret = DoSync(dmabuf_fd, true /* start */, sync_type, legacy_ion_cpu_sync_custom, in CpuSyncStart()
334 int BufferAllocator::CpuSyncEnd(unsigned int dmabuf_fd, SyncType sync_type, in CpuSyncEnd() argument
337 int ret = DoSync(dmabuf_fd, false /* start */, sync_type, legacy_ion_cpu_sync_custom, in CpuSyncEnd()
H A DBufferAllocatorWrapper.cpp55 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()
/aosp12/system/core/trusty/apploader/
H A Dapploader.cpp123 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()
/aosp12/system/memory/libdmabufheap/include/BufferAllocator/
H A DBufferAllocator.h134 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,
H A DBufferAllocatorWrapper.h44 int DmabufHeapCpuSyncStart(BufferAllocator* buffer_allocator, unsigned int dmabuf_fd,
48 int DmabufHeapCpuSyncEnd(BufferAllocator* buffer_allocator, unsigned int dmabuf_fd,
/aosp12/bionic/libc/kernel/uapi/linux/
H A Dkfd_ioctl.h282 __u32 dmabuf_fd; member
288 __u32 dmabuf_fd; member