Home | History | Annotate | Download | only in HAL

Lines Matching refs:memInfo

287  *   @memInfo : [output] reference to struct to store additional memory allocation info
295 int QCameraMemory::allocOneBuffer(QCameraMemInfo &memInfo, int heap_id, int size)
332 memInfo.main_ion_fd = main_ion_fd;
333 memInfo.fd = ion_info_fd.fd;
334 memInfo.handle = ion_info_fd.handle;
335 memInfo.size = alloc.len;
354 * @memInfo : reference to struct that stores additional memory allocation info
358 void QCameraMemory::deallocOneBuffer(QCameraMemInfo &memInfo)
362 if (memInfo.fd > 0) {
363 close(memInfo.fd);
364 memInfo.fd = 0;
367 if (memInfo.main_ion_fd > 0) {
369 handle_data.handle = memInfo.handle;
370 ioctl(memInfo.main_ion_fd, ION_IOC_FREE, &handle_data);
371 close(memInfo.main_ion_fd);
372 memInfo.main_ion_fd = 0;
374 memInfo.handle = NULL;
375 memInfo.size = 0;