Lines Matching refs:buffer_allocator
28 void FreeDmabufHeapBufferAllocator(BufferAllocator* buffer_allocator) { in FreeDmabufHeapBufferAllocator() argument
29 delete buffer_allocator; in FreeDmabufHeapBufferAllocator()
32 int DmabufHeapAlloc(BufferAllocator* buffer_allocator, const char* heap_name, size_t len, in DmabufHeapAlloc() argument
34 if (!buffer_allocator) in DmabufHeapAlloc()
36 return buffer_allocator->Alloc(heap_name, len, heap_flags, legacy_align); in DmabufHeapAlloc()
39 int DmabufHeapAllocSystem(BufferAllocator* buffer_allocator, bool cpu_access, size_t len, in DmabufHeapAllocSystem() argument
41 if (!buffer_allocator) return -EINVAL; in DmabufHeapAllocSystem()
42 return buffer_allocator->AllocSystem(cpu_access, len, heap_flags, legacy_align); in DmabufHeapAllocSystem()
45 int MapDmabufHeapNameToIonHeap(BufferAllocator* buffer_allocator, const char* heap_name, in MapDmabufHeapNameToIonHeap() argument
49 if (!buffer_allocator) in MapDmabufHeapNameToIonHeap()
51 return buffer_allocator->MapNameToIonHeap(heap_name, ion_heap_name, ion_heap_flags, in MapDmabufHeapNameToIonHeap()
55 int DmabufHeapCpuSyncStart(BufferAllocator* buffer_allocator, unsigned int dmabuf_fd, in DmabufHeapCpuSyncStart() argument
58 if (!buffer_allocator) in DmabufHeapCpuSyncStart()
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
67 if (!buffer_allocator) in DmabufHeapCpuSyncEnd()
69 return buffer_allocator->CpuSyncEnd(dmabuf_fd, sync_type, legacy_ion_cpu_sync, custom_data); in DmabufHeapCpuSyncEnd()