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;
79 // ionallocdata structure.
81 ionAllocData.flags |= ION_SECURE;
84 // ionallocdata structure.
86 ionAllocData.flags |= ION_SECURE;
91 if(ioctl(mIonFd, ION_IOC_ALLOC, &ionAllocData)) {
97 fd_data.handle = ionAllocData.handle;
98 handle_data.handle = ionAllocData.handle;
108 base = mmap(0, ionAllocData.len, PROT_READ|PROT_WRITE,
123 data.base, ionAllocData.len, data.fd);