Lines Matching refs:mMemInfo
138 cache_inv_data.fd = mMemInfo[index].fd; in cacheOpsInternal()
139 cache_inv_data.handle = mMemInfo[index].handle; in cacheOpsInternal()
142 mMemInfo[index].size; in cacheOpsInternal()
149 mMemInfo[index].main_ion_fd); in cacheOpsInternal()
150 ret = ioctl(mMemInfo[index].main_ion_fd, ION_IOC_CUSTOM, &custom_data); in cacheOpsInternal()
173 return mMemInfo[index].fd; in getFd()
191 return (ssize_t)mMemInfo[index].size; in getSize()
221 memset(mMemInfo, 0, sizeof(mMemInfo)); in reset()
223 count = sizeof(mMemInfo) / sizeof(mMemInfo[0]); in reset()
225 mMemInfo[i].fd = -1; in reset()
226 mMemInfo[i].main_ion_fd = -1; in reset()
280 bufDef.fd = mMemInfo[index].fd; in getBufDef()
281 bufDef.frame_len = mMemInfo[index].size; in getBufDef()
290 bufDef.planes_buf.planes[0].m.userptr = (long unsigned int)mMemInfo[index].fd; in getBufDef()
295 bufDef.planes_buf.planes[i].m.userptr = (long unsigned int)mMemInfo[i].fd; in getBufDef()
337 bufDef.fd = mMemInfo[count].fd; in getUserBufDef()
398 rc = allocOneBuffer(mMemInfo[i], heap_id, size, m_bCached, in alloc()
403 deallocOneBuffer(mMemInfo[j]); in alloc()
407 rc = mMemoryPool->allocateBuffer(mMemInfo[i], in alloc()
416 mMemoryPool->releaseBuffer(mMemInfo[j], in alloc()
440 deallocOneBuffer(mMemInfo[i]); in dealloc()
442 mMemoryPool->releaseBuffer(mMemInfo[i], mStreamType); in dealloc()
817 mMemInfo[i].size, in allocate()
820 mMemInfo[i].fd, 0); in allocate()
823 munmap(mPtr[j], mMemInfo[j].size); in allocate()
825 deallocOneBuffer(mMemInfo[j]); in allocate()
829 deallocOneBuffer(mMemInfo[j]); in allocate()
869 mMemInfo[i].size, in allocateMore()
872 mMemInfo[i].fd, 0); in allocateMore()
875 munmap(mPtr[j], mMemInfo[j].size); in allocateMore()
877 deallocOneBuffer(mMemInfo[j]); in allocateMore()
902 munmap(mPtr[i], mMemInfo[i].size); in deallocate()
1112 mCameraMemory[i] = mGetMemory(mMemInfo[i].fd, mMemInfo[i].size, 1, mCallbackCookie); in allocate()
1144 mCameraMemory[i] = mGetMemory(mMemInfo[i].fd, mMemInfo[i].size, 1, mCallbackCookie); in allocateMore()
1357 updateNativeHandle(nh, 0, mMemInfo[i].fd, (int)mMemInfo[i].size); in allocate()
1397 deallocOneBuffer(mMemInfo[j]);; in allocateMore()
1429 updateNativeHandle(nh, 0, mMemInfo[i].fd, (int)mMemInfo[i].size); in allocateMore()
2027 mMemInfo[dequeuedIdx].main_ion_fd = open("/dev/ion", O_RDONLY); in displayBuffer()
2028 if (mMemInfo[dequeuedIdx].main_ion_fd < 0) { in displayBuffer()
2036 if (ioctl(mMemInfo[dequeuedIdx].main_ion_fd, in displayBuffer()
2055 mMemInfo[dequeuedIdx].fd = mPrivateHandle[dequeuedIdx]->fd; in displayBuffer()
2056 mMemInfo[dequeuedIdx].size = in displayBuffer()
2058 mMemInfo[dequeuedIdx].handle = ion_info_fd.handle; in displayBuffer()
2161 mMemInfo[dequeuedIdx].main_ion_fd = open("/dev/ion", O_RDONLY); in dequeueBuffer()
2162 if (mMemInfo[dequeuedIdx].main_ion_fd < 0) { in dequeueBuffer()
2170 if (ioctl(mMemInfo[dequeuedIdx].main_ion_fd, in dequeueBuffer()
2191 mMemInfo[dequeuedIdx].fd = mPrivateHandle[dequeuedIdx]->fd; in dequeueBuffer()
2192 mMemInfo[dequeuedIdx].size = in dequeueBuffer()
2194 mMemInfo[dequeuedIdx].handle = ion_info_fd.handle; in dequeueBuffer()
2306 ion_handle.handle = mMemInfo[i].handle; in allocate()
2307 if (ioctl(mMemInfo[i].main_ion_fd, ION_IOC_FREE, &ion_handle) < 0) { in allocate()
2310 close(mMemInfo[i].main_ion_fd); in allocate()
2327 mMemInfo[cnt].main_ion_fd = open("/dev/ion", O_RDONLY); in allocate()
2328 if (mMemInfo[cnt].main_ion_fd < 0) { in allocate()
2333 ion_handle.handle = mMemInfo[i].handle; in allocate()
2334 if (ioctl(mMemInfo[i].main_ion_fd, ION_IOC_FREE, &ion_handle) < 0) { in allocate()
2337 close(mMemInfo[i].main_ion_fd); in allocate()
2350 if (ioctl(mMemInfo[cnt].main_ion_fd, in allocate()
2356 ion_handle.handle = mMemInfo[i].handle; in allocate()
2357 if (ioctl(mMemInfo[i].main_ion_fd, ION_IOC_FREE, &ion_handle) < 0) { in allocate()
2360 close(mMemInfo[i].main_ion_fd); in allocate()
2369 close(mMemInfo[cnt].main_ion_fd); in allocate()
2390 mMemInfo[cnt].fd = mPrivateHandle[cnt]->fd; in allocate()
2391 mMemInfo[cnt].size = (size_t)mPrivateHandle[cnt]->size; in allocate()
2392 mMemInfo[cnt].handle = ion_info_fd.handle; in allocate()
2449 ion_handle.handle = mMemInfo[cnt].handle; in deallocate()
2450 if (ioctl(mMemInfo[cnt].main_ion_fd, ION_IOC_FREE, &ion_handle) < 0) { in deallocate()
2453 close(mMemInfo[cnt].main_ion_fd); in deallocate()