Searched refs:heap_mask (Results 1 – 3 of 3) sorted by relevance
/device/amlogic/yukawa/hal/gralloc/ |
D | mali_gralloc_ion.cpp | 154 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/gralloc960/ |
D | mali_gralloc_ion.cpp | 199 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 206 if (heap_mask == ION_HEAP_TYPE_DMA_MASK) in alloc_ion_fd() 214 if (heap_mask == ION_HEAP_TYPE_DMA_MASK) in alloc_ion_fd() 217 heap = heap_mask; in alloc_ion_fd() 222 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 230 if ((size <= 0) || (heap_mask == 0) || (min_pgsz == NULL)) in alloc_from_ion_heap() 233 ret = alloc_ion_fd(ion_fd, size, heap_mask, flags, &(shared_fd)); in alloc_from_ion_heap() 238 if (heap_mask == ION_HEAP_SECURE_MASK) in alloc_from_ion_heap() 247 heap_mask = ION_HEAP_SYSTEM_MASK; in alloc_from_ion_heap() 248 ret = alloc_ion_fd(ion_fd, size, heap_mask, flags, &(shared_fd)); in alloc_from_ion_heap() [all …]
|
/device/linaro/hikey/gralloc/ |
D | alloc_device.cpp | 175 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 182 if (heap_mask == ION_HEAP_TYPE_DMA_MASK) in alloc_ion_fd() 190 if (heap_mask == ION_HEAP_TYPE_DMA_MASK) in alloc_ion_fd() 193 heap = heap_mask; in alloc_ion_fd() 207 unsigned int heap_mask; in gralloc_alloc_buffer() local 213 heap_mask = ION_HEAP_SECURE_MASK; in gralloc_alloc_buffer() 220 heap_mask = ION_HEAP_TYPE_DMA_MASK; in gralloc_alloc_buffer() 223 heap_mask = ION_HEAP_SYSTEM_MASK; in gralloc_alloc_buffer() 226 ret = alloc_ion_fd(m->ion_client, size, heap_mask, 0, &shared_fd); in gralloc_alloc_buffer()
|