Home | History | Annotate | Download | only in HAL3

Lines Matching refs:alloc

254  * FUNCTION   : alloc
267 int QCamera3HeapMemory::alloc(int count, int size, int heap_id)
324 struct ion_allocation_data alloc;
334 memset(&alloc, 0, sizeof(alloc));
335 alloc.len = size;
337 alloc.len = (alloc.len + 4095) & (~4095);
338 alloc.align = 4096;
339 alloc.flags = ION_FLAG_CACHED;
340 alloc.heap_id_mask = heap_id;
341 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc);
343 ALOGE("ION allocation for len %d failed: %s\n", alloc.len,
349 ion_info_fd.handle = alloc.handle;
359 memInfo.size = alloc.len;
438 int rc = alloc(count, size, heap_mask);