Lines Matching refs:mMemInfo

70         mMemInfo[i].fd = -1;  in QCamera3Memory()
71 mMemInfo[i].handle = 0; in QCamera3Memory()
72 mMemInfo[i].size = 0; in QCamera3Memory()
121 if (0 == mMemInfo[index].handle) { in cacheOpsInternal()
129 cache_inv_data.fd = mMemInfo[index].fd; in cacheOpsInternal()
130 cache_inv_data.handle = mMemInfo[index].handle; in cacheOpsInternal()
131 cache_inv_data.length = (unsigned int)mMemInfo[index].size; in cacheOpsInternal()
164 if (0 == mMemInfo[index].handle) { in getFd()
168 return mMemInfo[index].fd; in getFd()
189 if (0 == mMemInfo[index].handle) { in getSize()
193 return (ssize_t)mMemInfo[index].size; in getSize()
237 bufDef.fd = mMemInfo[index].fd; in getBufDef()
238 bufDef.frame_len = mMemInfo[index].size; in getBufDef()
246 bufDef.planes_buf.planes[0].m.userptr = (long unsigned int)mMemInfo[index].fd; in getBufDef()
251 bufDef.planes_buf.planes[i].m.userptr = (long unsigned int)mMemInfo[i].fd; in getBufDef()
429 if (0 == mMemInfo[index].handle) { in markFrameNumber()
464 if (0 == mMemInfo[index].handle) { in getFrameNumber()
494 if (mMemInfo[index].handle) { in getOldestFrameNumber()
529 if (mMemInfo[index].handle && in getBufferIndex()
578 rc = allocOneBuffer(mMemInfo[i], heap_id_mask, size); in allocate()
585 mMemInfo[i].size, in allocate()
588 mMemInfo[i].fd, 0); in allocate()
590 deallocOneBuffer(mMemInfo[i]); in allocate()
603 munmap(mPtr[j], mMemInfo[j].size); in allocate()
605 deallocOneBuffer(mMemInfo[j]); in allocate()
636 rc = allocOneBuffer(mMemInfo[mBufferCount], heap_id_mask, size, isCached); in allocateOne()
643 mMemInfo[mBufferCount].size, in allocateOne()
646 mMemInfo[mBufferCount].fd, 0); in allocateOne()
648 deallocOneBuffer(mMemInfo[mBufferCount]); in allocateOne()
672 munmap(mPtr[i], mMemInfo[i].size); in deallocate()
674 deallocOneBuffer(mMemInfo[i]); in deallocate()
833 mMemInfo[idx].fd = mPrivateHandle[idx]->fd; in registerBuffer()
834 mMemInfo[idx].size = in registerBuffer()
837 mMemInfo[idx].handle = ion_info_fd.handle; in registerBuffer()
861 munmap(mPtr[idx], mMemInfo[idx].size); in unregisterBufferLocked()
867 ion_handle.handle = mMemInfo[idx].handle; in unregisterBufferLocked()
871 memset(&mMemInfo[idx], 0, sizeof(struct QCamera3MemInfo)); in unregisterBufferLocked()
910 if (0 == mMemInfo[idx].handle) { in unregisterBuffer()
940 if (0 == mMemInfo[cnt].handle) { in unregisterBuffers()
983 if (0 == mMemInfo[index].handle) { in markFrameNumber()
1021 if (0 == mMemInfo[index].handle) { in getFrameNumber()
1047 if (mMemInfo[index].handle) { in getOldestFrameNumber()
1081 if (mMemInfo[index].handle && in getBufferIndex()
1188 if (0 == mMemInfo[i].handle) { in getFreeIndexLocked()
1222 if (0 == mMemInfo[index].handle) { in getPtrLocked()
1230 mMemInfo[index].size, in getPtrLocked()
1233 mMemInfo[index].fd, 0); in getPtrLocked()
1237 index, mMemInfo[index].size, strerror(errno), errno); in getPtrLocked()
1289 if (0 == mMemInfo[index].handle) { in getBufferHandle()