• Home
  • Raw
  • Download

Lines Matching refs:heap_mask

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()
279 heap_mask = ION_HEAP_TYPE_DMA_MASK; in pick_ion_heap()
285 heap_mask = ION_HEAP_SYSTEM_MASK; in pick_ion_heap()
288 return heap_mask; in pick_ion_heap()
291 void set_ion_flags(unsigned int heap_mask, uint64_t usage, unsigned int *priv_heap_flag, int *ion_f… in set_ion_flags() argument
294 GRALLOC_UNUSED(heap_mask); in set_ion_flags()
301 if (heap_mask == ION_HEAP_TYPE_DMA_MASK) in set_ion_flags()
313 if (heap_mask != ION_HEAP_TYPE_DMA_MASK) in set_ion_flags()
343 unsigned int heap_mask; in check_buffers_sharable() local
348 heap_mask = pick_ion_heap(usage); in check_buffers_sharable()
350 if (0 == heap_mask) in check_buffers_sharable()
355 set_ion_flags(heap_mask, usage, NULL, &ion_flags); in check_buffers_sharable()
359 if (shared_backend_heap_mask != heap_mask || shared_ion_flags != ion_flags) in check_buffers_sharable()
366 shared_backend_heap_mask = heap_mask; in check_buffers_sharable()
397 unsigned int heap_mask, priv_heap_flag = 0; in mali_gralloc_ion_allocate() local
443 heap_mask = pick_ion_heap(usage); in mali_gralloc_ion_allocate()
445 if (heap_mask == 0) in mali_gralloc_ion_allocate()
451 set_ion_flags(heap_mask, usage, &priv_heap_flag, &ion_flags); in mali_gralloc_ion_allocate()
454 …shared_fd = alloc_from_ion_heap(m->ion_client, max_bufDescriptor->size, heap_mask, ion_flags, &min… in mali_gralloc_ion_allocate()
459 if (heap_mask == ION_HEAP_TYPE_DMA_MASK) in mali_gralloc_ion_allocate()
521 heap_mask = pick_ion_heap(usage); in mali_gralloc_ion_allocate()
523 if (heap_mask == 0) in mali_gralloc_ion_allocate()
530 set_ion_flags(heap_mask, usage, &priv_heap_flag, &ion_flags); in mali_gralloc_ion_allocate()
533 …shared_fd = alloc_from_ion_heap(m->ion_client, bufDescriptor->size, heap_mask, ion_flags, &min_pgs… in mali_gralloc_ion_allocate()
538 if (heap_mask == ION_HEAP_TYPE_DMA_MASK) in mali_gralloc_ion_allocate()