Home
last modified time | relevance | path

Searched refs:cmd_thread (Results 1 – 5 of 5) sorted by relevance

/hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera_thread.c583 mm_camera_cmd_thread_t *cmd_thread = in mm_camera_cmd_thread() local
587 mm_camera_cmd_thread_name(cmd_thread->threadName); in mm_camera_cmd_thread()
590 ret = cam_sem_wait(&cmd_thread->cmd_sem); in mm_camera_cmd_thread()
599 node = (mm_camera_cmdcb_t*)cam_queue_deq(&cmd_thread->cmd_queue); in mm_camera_cmd_thread()
611 if (NULL != cmd_thread->cb) { in mm_camera_cmd_thread()
612 cmd_thread->cb(node, cmd_thread->user_data); in mm_camera_cmd_thread()
621 node = (mm_camera_cmdcb_t*)cam_queue_deq(&cmd_thread->cmd_queue); in mm_camera_cmd_thread()
627 int32_t mm_camera_cmd_thread_launch(mm_camera_cmd_thread_t * cmd_thread, in mm_camera_cmd_thread_launch() argument
633 cam_sem_init(&cmd_thread->cmd_sem, 0); in mm_camera_cmd_thread_launch()
634 cam_sem_init(&cmd_thread->sync_sem, 0); in mm_camera_cmd_thread_launch()
[all …]
Dmm_camera_channel.c277 cam_sem_post(&(ch_obj->cmd_thread.sync_sem)); in mm_channel_process_stream_buf()
1535 snprintf(my_obj->cmd_thread.threadName, THREAD_NAME_SIZE, "CAM_SuperBufCB"); in mm_channel_start()
1536 mm_camera_cmd_thread_launch(&my_obj->cmd_thread, in mm_channel_start()
1642 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_channel_start()
1744 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_channel_stop()
1816 cam_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_channel_request_super_buf()
1819 cam_sem_post(&(my_obj->cmd_thread.cmd_sem)); in mm_channel_request_super_buf()
1880 cam_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_channel_flush_super_buf_queue()
1883 cam_sem_post(&(my_obj->cmd_thread.cmd_sem)); in mm_channel_flush_super_buf_queue()
1886 cam_sem_wait(&(my_obj->cmd_thread.sync_sem)); in mm_channel_flush_super_buf_queue()
[all …]
Dmm_camera_stream.c171 cam_queue_enq(&(ch_obj->cmd_thread.cmd_queue), node); in mm_stream_notify_channel()
174 cam_sem_post(&(ch_obj->cmd_thread.cmd_sem)); in mm_stream_notify_channel()
223 if(has_cb && my_obj->cmd_thread.is_active) { in mm_stream_handle_rcvd_buf()
234 cam_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_stream_handle_rcvd_buf()
237 cam_sem_post(&(my_obj->cmd_thread.cmd_sem)); in mm_stream_handle_rcvd_buf()
812 snprintf(my_obj->cmd_thread.threadName, THREAD_NAME_SIZE, "CAM_StrmAppData"); in mm_stream_fsm_reg()
813 mm_camera_cmd_thread_launch(&my_obj->cmd_thread, in mm_stream_fsm_reg()
825 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_stream_fsm_reg()
904 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_stream_fsm_active()
/hardware/qcom/camera/QCamera2/stack/mm-camera-interface/inc/
Dmm_camera.h254 mm_camera_cmd_thread_t cmd_thread; member
449 mm_camera_cmd_thread_t cmd_thread; member
755 mm_camera_cmd_thread_t * cmd_thread,
759 extern int32_t mm_camera_cmd_thread_release(mm_camera_cmd_thread_t * cmd_thread);
/hardware/qcom/camera/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg.c1934 mm_jpeg_job_cmd_thread_t *cmd_thread = &my_obj->job_mgr; in mm_jpeg_jobmgr_thread() local
1940 rc = cam_sem_wait(&cmd_thread->job_sem); in mm_jpeg_jobmgr_thread()
1959 qdata = mm_jpeg_queue_deq(&cmd_thread->job_queue); in mm_jpeg_jobmgr_thread()
2029 mm_jpeg_job_cmd_thread_t * cmd_thread = &my_obj->job_mgr; in mm_jpeg_jobmgr_thread_release() local
2041 mm_jpeg_queue_enq(&cmd_thread->job_queue, qdata); in mm_jpeg_jobmgr_thread_release()
2042 cam_sem_post(&cmd_thread->job_sem); in mm_jpeg_jobmgr_thread_release()
2045 if (pthread_join(cmd_thread->pid, NULL) != 0) { in mm_jpeg_jobmgr_thread_release()
2048 mm_jpeg_queue_deinit(&cmd_thread->job_queue); in mm_jpeg_jobmgr_thread_release()
2050 cam_sem_destroy(&cmd_thread->job_sem); in mm_jpeg_jobmgr_thread_release()
2051 memset(cmd_thread, 0, sizeof(mm_jpeg_job_cmd_thread_t)); in mm_jpeg_jobmgr_thread_release()