Home | History | Annotate | Download | only in HAL

Lines Matching defs:alloc

359  * FUNCTION   : alloc
372 int QCameraMemory::alloc(int count, size_t size, unsigned int heap_id,
459 struct ion_allocation_data alloc;
469 memset(&alloc, 0, sizeof(alloc));
470 alloc.len = size;
472 alloc.len = (alloc.len + 4095U) & (~4095U);
473 alloc.align = 4096;
475 alloc.flags = ION_FLAG_CACHED;
477 alloc.heap_id_mask = heap_id;
480 alloc.flags = ION_SECURE;
481 alloc.heap_id_mask = ION_HEAP(ION_CP_MM_HEAP_ID);
482 alloc.align = 1048576; // 1 MiB alignment to be able to protect later
483 alloc.len = (alloc.len + 1048575U) & (~1048575U);
486 rc = ioctl(main_ion_fd, ION_IOC_ALLOC, &alloc);
493 ion_info_fd.handle = alloc.handle;
503 memInfo.size = alloc.len;
508 (unsigned long)memInfo.handle, alloc.len);
793 rc = alloc(count, size, heap_id_mask, SECURE);
799 rc = alloc(count, size, heap_id_mask, NON_SECURE);
851 int rc = alloc(count, size, heap_id_mask, NON_SECURE);
1087 int rc = alloc(count, size, heap_id_mask, isSecure);
1122 int rc = alloc(count, size, heap_id_mask, NON_SECURE);