Lines Matching refs:ionAllocData
74 struct ion_allocation_data ionAllocData; in alloc_buffer() local
77 ionAllocData.len = data.size; in alloc_buffer()
78 ionAllocData.align = data.align; in alloc_buffer()
79 ionAllocData.heap_id_mask = data.flags & ~ION_SECURE; in alloc_buffer()
81 ionAllocData.heap_id_mask &= (data.flags & ~ION_FLAG_ALLOW_NON_CONTIG); in alloc_buffer()
83 ionAllocData.flags = data.uncached ? 0 : ION_FLAG_CACHED; in alloc_buffer()
87 ionAllocData.flags |= ION_SECURE; in alloc_buffer()
90 ionAllocData.flags |= ION_FLAG_ALLOW_NON_CONTIG; in alloc_buffer()
95 if(ioctl(mIonFd, ION_IOC_ALLOC, &ionAllocData)) { in alloc_buffer()
101 fd_data.handle = ionAllocData.handle; in alloc_buffer()
102 handle_data.handle = ionAllocData.handle; in alloc_buffer()
112 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
127 data.base, ionAllocData.len, data.fd); in alloc_buffer()