Lines Matching refs:index
104 int QCameraMemory::cacheOpsInternal(uint32_t index, unsigned int cmd, void *vaddr) in cacheOpsInternal() argument
116 if (index >= mBufferCount) { in cacheOpsInternal()
117 ALOGE("%s: index %d out of bound [0, %d)", __func__, index, mBufferCount); in cacheOpsInternal()
124 cache_inv_data.fd = mMemInfo[index].fd; in cacheOpsInternal()
125 cache_inv_data.handle = mMemInfo[index].handle; in cacheOpsInternal()
128 mMemInfo[index].size; in cacheOpsInternal()
135 mMemInfo[index].main_ion_fd); in cacheOpsInternal()
136 ret = ioctl(mMemInfo[index].main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal()
153 int QCameraMemory::getFd(uint32_t index) const in getFd()
155 if (index >= mBufferCount) in getFd()
158 return mMemInfo[index].fd; in getFd()
171 ssize_t QCameraMemory::getSize(uint32_t index) const in getSize()
173 if (index >= mBufferCount) in getSize()
176 return (ssize_t)mMemInfo[index].size; in getSize()
230 mm_camera_buf_def_t &bufDef, uint32_t index) const in getBufDef()
236 bufDef.fd = mMemInfo[index].fd; in getBufDef()
241 bufDef.buffer = getPtr(index); in getBufDef()
242 bufDef.buf_idx = index; in getBufDef()
246 bufDef.planes_buf.planes[0].m.userptr = (long unsigned int)mMemInfo[index].fd; in getBufDef()
279 uint32_t index, in getUserBufDef() argument
285 uint32_t plane_idx = (index * buf_info.frame_buf_cnt); in getUserBufDef()
298 + (index * buf_info.size)); in getUserBufDef()
299 bufDef.buf_idx = index; in getUserBufDef()
316 __func__, bufDef.user_buf.num_buffers, index, plane_idx); in getUserBufDef()
761 void *QCameraHeapMemory::getPtr(uint32_t index) const in getPtr()
763 if (index >= mBufferCount) { in getPtr()
767 return mPtr[index]; in getPtr()
896 int QCameraHeapMemory::cacheOps(uint32_t index, unsigned int cmd) in cacheOps() argument
898 if (index >= mBufferCount) in cacheOps()
900 return cacheOpsInternal(index, cmd, mPtr[index]); in cacheOps()
952 int index = -1; in getMatchBufIndex() local
958 index = i; in getMatchBufIndex()
962 return index; in getMatchBufIndex()
1096 int QCameraStreamMemory::cacheOps(uint32_t index, unsigned int cmd) in cacheOps() argument
1098 if (index >= mBufferCount) in cacheOps()
1100 return cacheOpsInternal(index, cmd, mCameraMemory[index]->data); in cacheOps()
1134 camera_memory_t *QCameraStreamMemory::getMemory(uint32_t index, in getMemory() argument
1137 if (index >= mBufferCount || metadata) in getMemory()
1139 return mCameraMemory[index]; in getMemory()
1157 int index = -1; in getMatchBufIndex() local
1163 index = i; in getMatchBufIndex()
1167 return index; in getMatchBufIndex()
1180 void *QCameraStreamMemory::getPtr(uint32_t index) const in getPtr()
1182 if (index >= mBufferCount) { in getPtr()
1186 if (mCameraMemory[index] == 0) { in getPtr()
1189 return mCameraMemory[index]->data; in getPtr()
1427 camera_memory_t *QCameraVideoMemory::getMemory(uint32_t index, in getMemory() argument
1430 if (index >= mMetaBufCount || (!metadata && index >= mBufferCount)) in getMemory()
1434 return mMetadata[index]; in getMemory()
1436 return mCameraMemory[index]; in getMemory()
1454 int index = -1; in getMatchBufIndex() local
1459 index = i; in getMatchBufIndex()
1466 index = i; in getMatchBufIndex()
1471 return index; in getMatchBufIndex()
1551 int QCameraGrallocMemory::displayBuffer(uint32_t index) in displayBuffer() argument
1556 if (BUFFER_NOT_OWNED == mLocalFlag[index]) { in displayBuffer()
1561 err = mWindow->enqueue_buffer(mWindow, (buffer_handle_t *)mBufferHandle[index]); in displayBuffer()
1565 CDBG("%s: enqueue_buffer hdl=%p", __func__, *mBufferHandle[index]); in displayBuffer()
1566 mLocalFlag[index] = BUFFER_NOT_OWNED; in displayBuffer()
1843 int QCameraGrallocMemory::cacheOps(uint32_t index, unsigned int cmd) in cacheOps() argument
1845 if (index >= mBufferCount) in cacheOps()
1847 return cacheOpsInternal(index, cmd, mCameraMemory[index]->data); in cacheOps()
1884 camera_memory_t *QCameraGrallocMemory::getMemory(uint32_t index, in getMemory() argument
1887 if (index >= mBufferCount || metadata) in getMemory()
1889 return mCameraMemory[index]; in getMemory()
1907 int index = -1; in getMatchBufIndex() local
1913 index = i; in getMatchBufIndex()
1917 return index; in getMatchBufIndex()
1930 void *QCameraGrallocMemory::getPtr(uint32_t index) const in getPtr()
1932 if (index >= mBufferCount) { in getPtr()
1936 return mCameraMemory[index]->data; in getPtr()