• Home
  • Raw
  • Download

Lines Matching refs:index

100 int QCamera3Memory::cacheOpsInternal(uint32_t index, unsigned int cmd, void *vaddr)  in cacheOpsInternal()  argument
108 if (MM_CAMERA_MAX_NUM_FRAMES <= index) { in cacheOpsInternal()
110 __func__, index, MM_CAMERA_MAX_NUM_FRAMES); in cacheOpsInternal()
114 if (0 == mMemInfo[index].handle) { in cacheOpsInternal()
115 ALOGE("%s: Buffer at %d not registered", __func__, index); in cacheOpsInternal()
122 cache_inv_data.fd = mMemInfo[index].fd; in cacheOpsInternal()
123 cache_inv_data.handle = mMemInfo[index].handle; in cacheOpsInternal()
124 cache_inv_data.length = (unsigned int)mMemInfo[index].size; in cacheOpsInternal()
131 mMemInfo[index].main_ion_fd); in cacheOpsInternal()
132 ret = ioctl(mMemInfo[index].main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal()
149 int QCamera3Memory::getFd(uint32_t index) in getFd() argument
153 if (MM_CAMERA_MAX_NUM_FRAMES <= index) { in getFd()
157 if (0 == mMemInfo[index].handle) { in getFd()
161 return mMemInfo[index].fd; in getFd()
174 ssize_t QCamera3Memory::getSize(uint32_t index) in getSize() argument
178 if (MM_CAMERA_MAX_NUM_FRAMES <= index) { in getSize()
182 if (0 == mMemInfo[index].handle) { in getSize()
186 return (ssize_t)mMemInfo[index].size; in getSize()
220 mm_camera_buf_def_t &bufDef, uint32_t index) in getBufDef() argument
229 bufDef.fd = mMemInfo[index].fd; in getBufDef()
230 bufDef.frame_len = mMemInfo[index].size; in getBufDef()
233 bufDef.buffer = getPtrLocked(index); in getBufDef()
234 bufDef.buf_idx = (uint8_t)index; in getBufDef()
238 bufDef.planes_buf.planes[0].m.userptr = (long unsigned int)mMemInfo[index].fd; in getBufDef()
390 void *QCamera3HeapMemory::getPtrLocked(uint32_t index) in getPtrLocked() argument
392 if (index >= mBufferCount) { in getPtrLocked()
396 return mPtr[index]; in getPtrLocked()
415 int32_t QCamera3HeapMemory::markFrameNumber(uint32_t index, uint32_t frameNumber) in markFrameNumber() argument
419 if (index >= mBufferCount) { in markFrameNumber()
421 __func__, index, mBufferCount); in markFrameNumber()
425 if (0 == mMemInfo[index].handle) { in markFrameNumber()
426 ALOGE("%s: Buffer at %d not allocated", __func__, index); in markFrameNumber()
430 mCurrentFrameNumbers[index] = (int32_t)frameNumber; in markFrameNumber()
449 int32_t QCamera3HeapMemory::getFrameNumber(uint32_t index) in getFrameNumber() argument
453 if (index >= mBufferCount) { in getFrameNumber()
455 __func__, index, mBufferCount); in getFrameNumber()
459 if (0 == mMemInfo[index].handle) { in getFrameNumber()
460 ALOGE("%s: Buffer at %d not registered", __func__, index); in getFrameNumber()
464 return mCurrentFrameNumbers[index]; in getFrameNumber()
484 for (uint32_t index = 0; in getBufferIndex() local
485 index < mBufferCount; index++) { in getBufferIndex()
486 if (mMemInfo[index].handle && in getBufferIndex()
487 mCurrentFrameNumbers[index] == (int32_t)frameNumber) in getBufferIndex()
488 return (int32_t)index; in getBufferIndex()
503 void *QCamera3HeapMemory::getPtr(uint32_t index) in getPtr() argument
505 return getPtrLocked(index); in getPtr()
651 int QCamera3HeapMemory::cacheOps(uint32_t index, unsigned int cmd) in cacheOps() argument
653 if (index >= mBufferCount) in cacheOps()
655 return cacheOpsInternal(index, cmd, mPtr[index]); in cacheOps()
940 int32_t QCamera3GrallocMemory::markFrameNumber(uint32_t index, uint32_t frameNumber) in markFrameNumber() argument
944 if (index >= MM_CAMERA_MAX_NUM_FRAMES) { in markFrameNumber()
948 if (index < mStartIdx) { in markFrameNumber()
950 __func__, index, mStartIdx); in markFrameNumber()
954 if (0 == mMemInfo[index].handle) { in markFrameNumber()
955 ALOGE("%s: Buffer at %d not registered", __func__, index); in markFrameNumber()
959 mCurrentFrameNumbers[index] = (int32_t)frameNumber; in markFrameNumber()
978 int32_t QCamera3GrallocMemory::getFrameNumber(uint32_t index) in getFrameNumber() argument
982 if (index >= MM_CAMERA_MAX_NUM_FRAMES) { in getFrameNumber()
986 if (index < mStartIdx) { in getFrameNumber()
988 __func__, index, mStartIdx); in getFrameNumber()
992 if (0 == mMemInfo[index].handle) { in getFrameNumber()
993 ALOGE("%s: Buffer at %d not registered", __func__, index); in getFrameNumber()
997 return mCurrentFrameNumbers[index]; in getFrameNumber()
1015 for (uint32_t index = mStartIdx; in getBufferIndex() local
1016 index < MM_CAMERA_MAX_NUM_FRAMES; index++) { in getBufferIndex()
1017 if (mMemInfo[index].handle && in getBufferIndex()
1018 mCurrentFrameNumbers[index] == (int32_t)frameNumber) in getBufferIndex()
1019 return (int32_t)index; in getBufferIndex()
1037 int QCamera3GrallocMemory::cacheOps(uint32_t index, unsigned int cmd) in cacheOps() argument
1039 if (index >= MM_CAMERA_MAX_NUM_FRAMES) { in cacheOps()
1043 if (index < mStartIdx) { in cacheOps()
1045 __func__, index, mStartIdx); in cacheOps()
1049 return cacheOpsInternal(index, cmd, mPtr[index]); in cacheOps()
1067 int index = -1; in getMatchBufIndex() local
1074 index = (int)i; in getMatchBufIndex()
1079 return index; in getMatchBufIndex()
1095 int index = -1; in getFreeIndexLocked() local
1100 return index; in getFreeIndexLocked()
1105 index = i; in getFreeIndexLocked()
1110 return index; in getFreeIndexLocked()
1124 void *QCamera3GrallocMemory::getPtrLocked(uint32_t index) in getPtrLocked() argument
1126 if (MM_CAMERA_MAX_NUM_FRAMES <= index) { in getPtrLocked()
1128 __func__, index, MM_CAMERA_MAX_NUM_FRAMES); in getPtrLocked()
1131 if (index < mStartIdx) { in getPtrLocked()
1133 __func__, index, mStartIdx); in getPtrLocked()
1138 if (0 == mMemInfo[index].handle) { in getPtrLocked()
1139 ALOGE("%s: Buffer at %d not registered", __func__, index); in getPtrLocked()
1143 return mPtr[index]; in getPtrLocked()
1156 void *QCamera3GrallocMemory::getPtr(uint32_t index) in getPtr() argument
1159 return getPtrLocked(index); in getPtr()
1173 void *QCamera3GrallocMemory::getBufferHandle(uint32_t index) in getBufferHandle() argument
1177 if (MM_CAMERA_MAX_NUM_FRAMES <= index) { in getBufferHandle()
1179 __func__, index, MM_CAMERA_MAX_NUM_FRAMES); in getBufferHandle()
1182 if (index < mStartIdx) { in getBufferHandle()
1184 __func__, index, mStartIdx); in getBufferHandle()
1188 if (0 == mMemInfo[index].handle) { in getBufferHandle()
1189 ALOGE("%s: Buffer at %d not registered", __func__, index); in getBufferHandle()
1193 return mBufferHandle[index]; in getBufferHandle()