Home
last modified time | relevance | path

Searched refs:heap_mask (Results 1 – 3 of 3) sorted by relevance

/device/linaro/hikey/gralloc960/
Dmali_gralloc_ion.cpp153 static int alloc_ion_fd(int ion_fd, size_t size, unsigned int heap_mask, unsigned int flags, int *s… in alloc_ion_fd() argument
159 if (heap_mask == ION_HEAP_TYPE_DMA_MASK) in alloc_ion_fd()
162 heap = heap_mask; in alloc_ion_fd()
168 static int alloc_from_ion_heap(int ion_fd, size_t size, unsigned int heap_mask, unsigned int flags,… in alloc_from_ion_heap() argument
173 if ((ion_fd < 0) || (size <= 0) || (heap_mask == 0) || (min_pgsz == NULL)) in alloc_from_ion_heap()
178 ret = alloc_ion_fd(ion_fd, size, heap_mask, flags, &(shared_fd)); in alloc_from_ion_heap()
183 if (heap_mask == ION_HEAP_SECURE_MASK) in alloc_from_ion_heap()
192 heap_mask = ION_HEAP_SYSTEM_MASK; in alloc_from_ion_heap()
193 ret = alloc_ion_fd(ion_fd, size, heap_mask, flags, &(shared_fd)); in alloc_from_ion_heap()
199 switch (heap_mask) in alloc_from_ion_heap()
[all …]
/device/amlogic/yukawa/gralloc/
Dmali_gralloc_ion.cpp154 static int alloc_from_ion_heap(int ion_fd, size_t size, unsigned int heap_mask, unsigned int flags,… in alloc_from_ion_heap() argument
159 if ((ion_fd < 0) || (size <= 0) || (heap_mask == 0) || (min_pgsz == NULL)) in alloc_from_ion_heap()
172 ret = ion_alloc(ion_fd, size, 0, heap_mask, flags, &ion_hnd); in alloc_from_ion_heap()
178 if (heap_mask == ION_HEAP_SECURE_MASK) in alloc_from_ion_heap()
187 heap_mask = ION_HEAP_SYSTEM_MASK; in alloc_from_ion_heap()
188 ret = ion_alloc(ion_fd, size, 0, heap_mask, flags, &ion_hnd); in alloc_from_ion_heap()
211 switch (heap_mask) in alloc_from_ion_heap()
258 unsigned int heap_mask; in pick_ion_heap() local
263 heap_mask = ION_HEAP_SECURE_MASK; in pick_ion_heap()
273 heap_mask = ION_HEAP_TYPE_COMPOUND_PAGE_MASK; in pick_ion_heap()
[all …]
/device/linaro/hikey/gralloc/
Dalloc_device.cpp131 unsigned int heap_mask; in gralloc_alloc_buffer() local
138 heap_mask = ION_HEAP_SECURE_MASK; in gralloc_alloc_buffer()
146 heap_mask = ION_HEAP_SYSTEM_MASK; in gralloc_alloc_buffer()