Lines Matching refs:ionAllocData
71 struct ion_allocation_data ionAllocData;
74 ionAllocData.len = data.size;
75 ionAllocData.align = data.align;
76 ionAllocData.heap_mask = data.flags & ~ION_SECURE;
77 ionAllocData.flags = data.uncached ? 0 : ION_FLAG_CACHED;
81 ionAllocData.flags |= ION_SECURE;
86 if(ioctl(mIonFd, ION_IOC_ALLOC, &ionAllocData)) {
92 fd_data.handle = ionAllocData.handle;
93 handle_data.handle = ionAllocData.handle;
103 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE,
112 memset(base, 0, ionAllocData.len);
122 data.base, ionAllocData.len, data.fd);