Lines Matching refs:ionAllocData
76 struct ion_allocation_data ionAllocData; in alloc_buffer() local
79 ionAllocData.len = data.size; in alloc_buffer()
80 ionAllocData.align = data.align; in alloc_buffer()
81 ionAllocData.heap_id_mask = data.flags & ~ION_SECURE; in alloc_buffer()
83 ionAllocData.heap_id_mask &= (data.flags & ~ION_FLAG_ALLOW_NON_CONTIG); in alloc_buffer()
85 ionAllocData.flags = data.uncached ? 0 : ION_FLAG_CACHED; in alloc_buffer()
89 ionAllocData.flags |= ION_SECURE; in alloc_buffer()
92 ionAllocData.flags |= ION_FLAG_ALLOW_NON_CONTIG; in alloc_buffer()
97 if(ioctl(mIonFd, ION_IOC_ALLOC, &ionAllocData)) { in alloc_buffer()
103 fd_data.handle = ionAllocData.handle; in alloc_buffer()
104 handle_data.handle = ionAllocData.handle; in alloc_buffer()
114 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE, in alloc_buffer()
129 data.base, ionAllocData.len, data.fd); in alloc_buffer()