Searched refs:heap_mask (Results 1 – 2 of 2) sorted by relevance
/device/linaro/hikey/gralloc960/ |
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/gralloc/ |
D | alloc_device.cpp | 131 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()
|