Lines Matching refs:memInfo
454 int QCameraMemory::allocOneBuffer(QCameraMemInfo &memInfo, in allocOneBuffer() argument
500 memInfo.main_ion_fd = main_ion_fd; in allocOneBuffer()
501 memInfo.fd = ion_info_fd.fd; in allocOneBuffer()
502 memInfo.handle = ion_info_fd.handle; in allocOneBuffer()
503 memInfo.size = alloc.len; in allocOneBuffer()
504 memInfo.cached = cached; in allocOneBuffer()
505 memInfo.heap_id = heap_id; in allocOneBuffer()
508 (unsigned long)memInfo.handle, alloc.len); in allocOneBuffer()
531 void QCameraMemory::deallocOneBuffer(QCameraMemInfo &memInfo) in deallocOneBuffer() argument
535 if (memInfo.fd >= 0) { in deallocOneBuffer()
536 close(memInfo.fd); in deallocOneBuffer()
537 memInfo.fd = -1; in deallocOneBuffer()
540 if (memInfo.main_ion_fd >= 0) { in deallocOneBuffer()
542 handle_data.handle = memInfo.handle; in deallocOneBuffer()
543 ioctl(memInfo.main_ion_fd, ION_IOC_FREE, &handle_data); in deallocOneBuffer()
544 close(memInfo.main_ion_fd); in deallocOneBuffer()
545 memInfo.main_ion_fd = -1; in deallocOneBuffer()
547 memInfo.handle = 0; in deallocOneBuffer()
548 memInfo.size = 0; in deallocOneBuffer()
593 struct QCameraMemory::QCameraMemInfo &memInfo, in releaseBuffer() argument
598 mPools[streamType].push_back(memInfo); in releaseBuffer()
646 struct QCameraMemory::QCameraMemInfo &memInfo, unsigned int heap_id, in findBufferLocked() argument
661 memInfo = *it; in findBufferLocked()
663 (unsigned long)memInfo.handle, memInfo.size); in findBufferLocked()
674 memInfo = *it; in findBufferLocked()
676 (unsigned long)memInfo.handle, memInfo.size); in findBufferLocked()
705 struct QCameraMemory::QCameraMemInfo &memInfo, unsigned int heap_id, in allocateBuffer() argument
713 rc = findBufferLocked(memInfo, heap_id, size, cached, streamType); in allocateBuffer()
716 rc = QCameraMemory::allocOneBuffer(memInfo, heap_id, size, cached, in allocateBuffer()