Home
last modified time | relevance | path

Searched refs:main_ion_fd (Results 1 – 12 of 12) sorted by relevance

/hardware/qcom/camera/QCamera/HAL/core/src/
DQCameraHWI.cpp2164 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 …]
DQCameraHWI_Preview.cpp214 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()
DQCameraHWI_Record.cpp431 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/
DQCameraHWI.cpp2297 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 …]
DQCameraHWI.h140 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
DQCameraHWI_Preview.cpp215 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()
DQCameraHWI_Record.cpp430 mHalCamCtrl->mRecordingMemory.main_ion_fd[i] = -1; in initEncodeBuffers()
478 recordframes[cnt].ion_dev_fd = mHalCamCtrl->mRecordingMemory.main_ion_fd[cnt]; in initEncodeBuffers()
DQualcommCameraHardware.h155 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);
DQualcommCameraHardware.cpp3660 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/
DQCameraHWI.h140 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/
Dmm_qcamera_app.h66 int main_ion_fd[MM_CAMERA_MAX_NUM_FRAMES]; member
/hardware/qcom/camera/QCamera/HAL2/core/inc/
DQCameraStream.h74 int main_ion_fd[MM_CAMERA_MAX_NUM_FRAMES]; member