Home | History | Annotate | Download | only in HAL3

Lines Matching refs:memInfo

312  *   @memInfo : [output] reference to struct to store additional memory allocation info
320 int QCamera3HeapMemory::allocOneBuffer(QCamera3MemInfo &memInfo, int heap_id, int size)
356 memInfo.main_ion_fd = main_ion_fd;
357 memInfo.fd = ion_info_fd.fd;
358 memInfo.handle = ion_info_fd.handle;
359 memInfo.size = alloc.len;
378 * @memInfo : reference to struct that stores additional memory allocation info
382 void QCamera3HeapMemory::deallocOneBuffer(QCamera3MemInfo &memInfo)
386 if (memInfo.fd > 0) {
387 close(memInfo.fd);
388 memInfo.fd = 0;
391 if (memInfo.main_ion_fd > 0) {
393 handle_data.handle = memInfo.handle;
394 ioctl(memInfo.main_ion_fd, ION_IOC_FREE, &handle_data);
395 close(memInfo.main_ion_fd);
396 memInfo.main_ion_fd = 0;
398 memInfo.handle = NULL;
399 memInfo.size = 0;