Lines Matching refs:memInfo
463 int QCameraMemory::allocOneBuffer(QCameraMemInfo &memInfo, in allocOneBuffer() argument
509 memInfo.main_ion_fd = main_ion_fd; in allocOneBuffer()
510 memInfo.fd = ion_info_fd.fd; in allocOneBuffer()
511 memInfo.handle = ion_info_fd.handle; in allocOneBuffer()
512 memInfo.size = alloc.len; in allocOneBuffer()
513 memInfo.cached = cached; in allocOneBuffer()
514 memInfo.heap_id = heap_id; in allocOneBuffer()
517 (unsigned long)memInfo.handle, alloc.len); in allocOneBuffer()
540 void QCameraMemory::deallocOneBuffer(QCameraMemInfo &memInfo) in deallocOneBuffer() argument
544 if (memInfo.fd >= 0) { in deallocOneBuffer()
545 close(memInfo.fd); in deallocOneBuffer()
546 memInfo.fd = -1; in deallocOneBuffer()
549 if (memInfo.main_ion_fd >= 0) { in deallocOneBuffer()
551 handle_data.handle = memInfo.handle; in deallocOneBuffer()
552 ioctl(memInfo.main_ion_fd, ION_IOC_FREE, &handle_data); in deallocOneBuffer()
553 close(memInfo.main_ion_fd); in deallocOneBuffer()
554 memInfo.main_ion_fd = -1; in deallocOneBuffer()
556 memInfo.handle = 0; in deallocOneBuffer()
557 memInfo.size = 0; in deallocOneBuffer()
602 struct QCameraMemory::QCameraMemInfo &memInfo, in releaseBuffer() argument
607 mPools[streamType].push_back(memInfo); in releaseBuffer()
655 struct QCameraMemory::QCameraMemInfo &memInfo, unsigned int heap_id, in findBufferLocked() argument
670 memInfo = *it; in findBufferLocked()
672 (unsigned long)memInfo.handle, memInfo.size); in findBufferLocked()
683 memInfo = *it; in findBufferLocked()
685 (unsigned long)memInfo.handle, memInfo.size); in findBufferLocked()
715 struct QCameraMemory::QCameraMemInfo &memInfo, unsigned int heap_id, in allocateBuffer() argument
723 rc = findBufferLocked(memInfo, heap_id, size, cached, streamType); in allocateBuffer()
726 rc = QCameraMemory::allocOneBuffer(memInfo, heap_id, size, cached, in allocateBuffer()