Searched refs:cmd_thread (Results 1 – 5 of 5) sorted by relevance
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_thread.c | 564 mm_camera_cmd_thread_t *cmd_thread = in mm_camera_cmd_thread() local 568 mm_camera_cmd_thread_name(cmd_thread->threadName); in mm_camera_cmd_thread() 571 ret = cam_sem_wait(&cmd_thread->cmd_sem); in mm_camera_cmd_thread() 580 node = (mm_camera_cmdcb_t*)cam_queue_deq(&cmd_thread->cmd_queue); in mm_camera_cmd_thread() 592 if (NULL != cmd_thread->cb) { in mm_camera_cmd_thread() 593 cmd_thread->cb(node, cmd_thread->user_data); in mm_camera_cmd_thread() 602 node = (mm_camera_cmdcb_t*)cam_queue_deq(&cmd_thread->cmd_queue); in mm_camera_cmd_thread() 608 int32_t mm_camera_cmd_thread_launch(mm_camera_cmd_thread_t * cmd_thread, in mm_camera_cmd_thread_launch() argument 614 cam_sem_init(&cmd_thread->cmd_sem, 0); in mm_camera_cmd_thread_launch() 615 cam_sem_init(&cmd_thread->sync_sem, 0); in mm_camera_cmd_thread_launch() [all …]
|
D | mm_camera_channel.c | 389 cam_sem_post(&(ch_obj->cmd_thread.sync_sem)); in mm_channel_process_stream_buf() 1838 snprintf(my_obj->cmd_thread.threadName, THREAD_NAME_SIZE, "CAM_SuperBufCB"); in mm_channel_start() 1839 mm_camera_cmd_thread_launch(&my_obj->cmd_thread, in mm_channel_start() 1945 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_channel_start() 2099 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_channel_stop() 2171 cam_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_channel_request_super_buf() 2174 cam_sem_post(&(my_obj->cmd_thread.cmd_sem)); in mm_channel_request_super_buf() 2235 cam_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_channel_flush_super_buf_queue() 2238 cam_sem_post(&(my_obj->cmd_thread.cmd_sem)); in mm_channel_flush_super_buf_queue() 2241 cam_sem_wait(&(my_obj->cmd_thread.sync_sem)); in mm_channel_flush_super_buf_queue() [all …]
|
D | mm_camera_stream.c | 187 cam_queue_enq(&(ch_obj->cmd_thread.cmd_queue), node); in mm_stream_notify_channel() 190 cam_sem_post(&(ch_obj->cmd_thread.cmd_sem)); in mm_stream_notify_channel() 239 if(has_cb && my_obj->cmd_thread.is_active) { in mm_stream_handle_rcvd_buf() 250 cam_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_stream_handle_rcvd_buf() 253 cam_sem_post(&(my_obj->cmd_thread.cmd_sem)); in mm_stream_handle_rcvd_buf() 875 snprintf(my_obj->cmd_thread.threadName, THREAD_NAME_SIZE, "CAM_StrmAppData"); in mm_stream_fsm_reg() 876 mm_camera_cmd_thread_launch(&my_obj->cmd_thread, in mm_stream_fsm_reg() 888 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_stream_fsm_reg() 971 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_stream_fsm_active()
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/inc/ |
D | mm_camera.h | 306 mm_camera_cmd_thread_t cmd_thread; member 516 mm_camera_cmd_thread_t cmd_thread; member 879 mm_camera_cmd_thread_t * cmd_thread, 883 extern int32_t mm_camera_cmd_thread_release(mm_camera_cmd_thread_t * cmd_thread);
|
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg.c | 2126 mm_jpeg_job_cmd_thread_t *cmd_thread = &my_obj->job_mgr; in mm_jpeg_jobmgr_thread() local 2132 rc = cam_sem_wait(&cmd_thread->job_sem); in mm_jpeg_jobmgr_thread() 2151 qdata = mm_jpeg_queue_deq(&cmd_thread->job_queue); in mm_jpeg_jobmgr_thread() 2221 mm_jpeg_job_cmd_thread_t * cmd_thread = &my_obj->job_mgr; in mm_jpeg_jobmgr_thread_release() local 2233 mm_jpeg_queue_enq(&cmd_thread->job_queue, qdata); in mm_jpeg_jobmgr_thread_release() 2234 cam_sem_post(&cmd_thread->job_sem); in mm_jpeg_jobmgr_thread_release() 2237 if (pthread_join(cmd_thread->pid, NULL) != 0) { in mm_jpeg_jobmgr_thread_release() 2240 mm_jpeg_queue_deinit(&cmd_thread->job_queue); in mm_jpeg_jobmgr_thread_release() 2242 cam_sem_destroy(&cmd_thread->job_sem); in mm_jpeg_jobmgr_thread_release() 2243 memset(cmd_thread, 0, sizeof(mm_jpeg_job_cmd_thread_t)); in mm_jpeg_jobmgr_thread_release()
|