Home | History | Annotate | Download | only in gralloc960

Lines Matching defs:heap_mask

84 static ion_user_handle_t alloc_from_ion_heap(int ion_fd, size_t size, unsigned int heap_mask,
90 if ((ion_fd < 0) || (size <= 0) || (heap_mask == 0) || (min_pgsz == NULL))
93 ret = ion_alloc(ion_fd, size, 0, heap_mask, flags, &ion_hnd);
97 if (heap_mask == ION_HEAP_SECURE_MASK)
106 heap_mask = ION_HEAP_SYSTEM_MASK;
107 ret = ion_alloc(ion_fd, size, 0, heap_mask, flags, &ion_hnd);
113 switch (heap_mask)
200 unsigned int heap_mask;
205 heap_mask = ION_HEAP_SECURE_MASK;
214 heap_mask = ION_HEAP_TYPE_COMPOUND_PAGE_MASK;
219 heap_mask = ION_HEAP_TYPE_DMA_MASK;
224 heap_mask = ION_HEAP_SYSTEM_MASK;
227 return heap_mask;
230 void set_ion_flags(unsigned int heap_mask, int usage, unsigned int *priv_heap_flag, int *ion_flags)
233 GRALLOC_UNUSED(heap_mask);
239 if (heap_mask == ION_HEAP_TYPE_DMA_MASK)
249 if(heap_mask != ION_HEAP_TYPE_DMA_MASK)
268 unsigned int heap_mask, priv_heap_flag = 0;
278 heap_mask = pick_ion_heap(usage);
279 if(heap_mask == 0)
284 set_ion_flags(heap_mask, usage, &priv_heap_flag, &ion_flags);
286 ion_hnd = alloc_from_ion_heap(m->ion_client, size, heap_mask, ion_flags, &min_pgsz);