/hardware/qcom/camera/QCamera/HAL/core/src/ |
D | QCameraHWI.cpp | 2164 p_camera_memory->main_ion_fd[cnt] = open("/dev/ion", O_RDONLY); in allocate_ion_memory() 2165 if (p_camera_memory->main_ion_fd[cnt] < 0) { in allocate_ion_memory() 2176 rc = ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_ALLOC, &p_camera_memory->alloc[cnt]); in allocate_ion_memory() 2183 rc = ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_SHARE, &p_camera_memory->ion_info_fd[cnt]); in allocate_ion_memory() 2193 ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_FREE, &handle_data); in allocate_ion_memory() 2195 close(p_camera_memory->main_ion_fd[cnt]); in allocate_ion_memory() 2196 p_camera_memory->main_ion_fd[cnt] = -1; in allocate_ion_memory() 2206 if (p_camera_memory->main_ion_fd[cnt] > 0) { in deallocate_ion_memory() 2208 ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_FREE, &handle_data); in deallocate_ion_memory() 2209 close(p_camera_memory->main_ion_fd[cnt]); in deallocate_ion_memory() [all …]
|
D | QCameraHWI_Preview.cpp | 214 mHalCamCtrl->mPreviewMemory.main_ion_fd[cnt] = open("/dev/ion", O_RDONLY); in getBufferFromSurface() 215 if (mHalCamCtrl->mPreviewMemory.main_ion_fd[cnt] < 0) { in getBufferFromSurface() 220 if (ioctl(mHalCamCtrl->mPreviewMemory.main_ion_fd[cnt], in getBufferFromSurface() 265 if (ioctl(mHalCamCtrl->mPreviewMemory.main_ion_fd[cnt], ION_IOC_FREE, &ion_handle) in putBufferToSurface() 268 close(mHalCamCtrl->mPreviewMemory.main_ion_fd[cnt]); in putBufferToSurface() 579 mDisplayStreamBuf.frame[i].ion_dev_fd = mHalCamCtrl->mPreviewMemory.main_ion_fd[i]; in initDisplayBuffers() 711 mDisplayStreamBuf.frame[i].ion_dev_fd = mHalCamCtrl->mNoDispPreviewMemory.main_ion_fd[i]; in initPreviewOnlyBuffers()
|
D | QCameraHWI_Record.cpp | 431 mHalCamCtrl->mRecordingMemory.main_ion_fd[i] = -1; in initEncodeBuffers() 479 recordframes[cnt].ion_dev_fd = mHalCamCtrl->mRecordingMemory.main_ion_fd[cnt]; in initEncodeBuffers()
|
/hardware/qcom/camera/ |
D | QCameraHWI.cpp | 2297 p_camera_memory->main_ion_fd[cnt] = open("/dev/ion", O_RDONLY); in allocate_ion_memory() 2298 if (p_camera_memory->main_ion_fd[cnt] < 0) { in allocate_ion_memory() 2309 rc = ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_ALLOC, &p_camera_memory->alloc[cnt]); in allocate_ion_memory() 2316 rc = ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_SHARE, &p_camera_memory->ion_info_fd[cnt]); in allocate_ion_memory() 2326 ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_FREE, &handle_data); in allocate_ion_memory() 2328 close(p_camera_memory->main_ion_fd[cnt]); in allocate_ion_memory() 2329 p_camera_memory->main_ion_fd[cnt] = -1; in allocate_ion_memory() 2339 if (p_camera_memory->main_ion_fd[cnt] > 0) { in deallocate_ion_memory() 2341 ioctl(p_camera_memory->main_ion_fd[cnt], ION_IOC_FREE, &handle_data); in deallocate_ion_memory() 2342 close(p_camera_memory->main_ion_fd[cnt]); in deallocate_ion_memory() [all …]
|
D | QCameraHWI.h | 140 int main_ion_fd[MM_CAMERA_MAX_NUM_FRAMES]; member 154 int main_ion_fd[MM_CAMERA_MAX_NUM_FRAMES]; member 161 int main_ion_fd[3]; member
|
D | QCameraHWI_Preview.cpp | 215 mHalCamCtrl->mPreviewMemory.main_ion_fd[cnt] = open("/dev/ion", O_RDONLY); in getBufferFromSurface() 216 if (mHalCamCtrl->mPreviewMemory.main_ion_fd[cnt] < 0) { in getBufferFromSurface() 221 if (ioctl(mHalCamCtrl->mPreviewMemory.main_ion_fd[cnt], in getBufferFromSurface() 272 if (ioctl(mHalCamCtrl->mPreviewMemory.main_ion_fd[cnt], ION_IOC_FREE, &ion_handle) in putBufferToSurface() 275 close(mHalCamCtrl->mPreviewMemory.main_ion_fd[cnt]); in putBufferToSurface() 600 mDisplayStreamBuf.frame[i].ion_dev_fd = mHalCamCtrl->mPreviewMemory.main_ion_fd[i]; in initDisplayBuffers() 744 mDisplayStreamBuf.frame[i].ion_dev_fd = mHalCamCtrl->mNoDispPreviewMemory.main_ion_fd[i]; in initPreviewOnlyBuffers()
|
D | QCameraHWI_Record.cpp | 430 mHalCamCtrl->mRecordingMemory.main_ion_fd[i] = -1; in initEncodeBuffers() 478 recordframes[cnt].ion_dev_fd = mHalCamCtrl->mRecordingMemory.main_ion_fd[cnt]; in initEncodeBuffers()
|
D | QualcommCameraHardware.h | 155 int allocate_ion_memory(int *main_ion_fd, struct ion_allocation_data* alloc, 157 int deallocate_ion_memory(int *main_ion_fd, struct ion_fd_data* ion_info_fd);
|
D | QualcommCameraHardware.cpp | 3660 int QualcommCameraHardware::allocate_ion_memory(int *main_ion_fd, struct ion_allocation_data* alloc, in allocate_ion_memory() argument 3666 *main_ion_fd = open("/dev/ion", O_RDONLY | O_SYNC); in allocate_ion_memory() 3667 if (*main_ion_fd < 0) { in allocate_ion_memory() 3678 rc = ioctl(*main_ion_fd, ION_IOC_ALLOC, alloc); in allocate_ion_memory() 3685 rc = ioctl(*main_ion_fd, ION_IOC_SHARE, ion_info_fd); in allocate_ion_memory() 3695 ioctl(*main_ion_fd, ION_IOC_FREE, &handle_data); in allocate_ion_memory() 3697 close(*main_ion_fd); in allocate_ion_memory() 3701 int QualcommCameraHardware::deallocate_ion_memory(int *main_ion_fd, struct ion_fd_data* ion_info_fd) in deallocate_ion_memory() argument 3707 ioctl(*main_ion_fd, ION_IOC_FREE, &handle_data); in deallocate_ion_memory() 3708 close(*main_ion_fd); in deallocate_ion_memory()
|
/hardware/qcom/camera/QCamera/HAL/core/inc/ |
D | QCameraHWI.h | 140 int main_ion_fd[MM_CAMERA_MAX_NUM_FRAMES]; member 154 int main_ion_fd[MM_CAMERA_MAX_NUM_FRAMES]; member 161 int main_ion_fd[3]; member
|
/hardware/qcom/camera/QCamera/stack/mm-camera-test/inc/ |
D | mm_qcamera_app.h | 66 int main_ion_fd[MM_CAMERA_MAX_NUM_FRAMES]; member
|
/hardware/qcom/camera/QCamera/HAL2/core/inc/ |
D | QCameraStream.h | 74 int main_ion_fd[MM_CAMERA_MAX_NUM_FRAMES]; member
|