/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/ |
D | mm_camera_data.c | 147 mm_camera_cmd_thread_t *cmd_thread = in mm_camera_cmd_thread() local 153 ret = sem_wait(&cmd_thread->cmd_sem); in mm_camera_cmd_thread() 162 node = (mm_camera_cmdcb_t*)mm_camera_queue_deq(&cmd_thread->cmd_queue); in mm_camera_cmd_thread() 170 if (NULL != cmd_thread->cb) { in mm_camera_cmd_thread() 171 cmd_thread->cb(node, cmd_thread->user_data); in mm_camera_cmd_thread() 180 node = (mm_camera_cmdcb_t*)mm_camera_queue_deq(&cmd_thread->cmd_queue); in mm_camera_cmd_thread() 186 int32_t mm_camera_cmd_thread_launch(mm_camera_cmd_thread_t * cmd_thread, in mm_camera_cmd_thread_launch() argument 192 sem_init(&cmd_thread->cmd_sem, 0, 0); in mm_camera_cmd_thread_launch() 193 mm_camera_queue_init(&cmd_thread->cmd_queue); in mm_camera_cmd_thread_launch() 194 cmd_thread->cb = cb; in mm_camera_cmd_thread_launch() [all …]
|
D | mm_camera_stream.c | 165 mm_camera_queue_enq(&(my_obj->ch_obj->cmd_thread.cmd_queue), node); in mm_stream_handle_rcvd_buf() 168 sem_post(&(my_obj->ch_obj->cmd_thread.cmd_sem)); in mm_stream_handle_rcvd_buf() 191 mm_camera_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_stream_handle_rcvd_buf() 194 sem_post(&(my_obj->cmd_thread.cmd_sem)); in mm_stream_handle_rcvd_buf() 622 mm_camera_cmd_thread_launch(&my_obj->cmd_thread, in mm_stream_fsm_reg() 633 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_stream_fsm_reg() 689 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_stream_fsm_active_stream_on() 726 rc = mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_stream_fsm_active_stream_off()
|
D | mm_camera_channel.c | 914 mm_camera_cmd_thread_launch(&my_obj->cmd_thread, in mm_channel_bundle_stream() 1099 mm_camera_cmd_thread_stop(&my_obj->cmd_thread); in mm_channel_stop_streams() 1140 mm_camera_cmd_thread_destroy(&my_obj->cmd_thread); in mm_channel_stop_streams() 1182 mm_camera_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_channel_request_super_buf() 1185 sem_post(&(my_obj->cmd_thread.cmd_sem)); in mm_channel_request_super_buf()
|
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_thread.c | 581 mm_camera_cmd_thread_t *cmd_thread = in mm_camera_cmd_thread() local 587 ret = cam_sem_wait(&cmd_thread->cmd_sem); in mm_camera_cmd_thread() 596 node = (mm_camera_cmdcb_t*)cam_queue_deq(&cmd_thread->cmd_queue); in mm_camera_cmd_thread() 608 if (NULL != cmd_thread->cb) { in mm_camera_cmd_thread() 609 cmd_thread->cb(node, cmd_thread->user_data); in mm_camera_cmd_thread() 618 node = (mm_camera_cmdcb_t*)cam_queue_deq(&cmd_thread->cmd_queue); in mm_camera_cmd_thread() 624 int32_t mm_camera_cmd_thread_launch(mm_camera_cmd_thread_t * cmd_thread, in mm_camera_cmd_thread_launch() argument 630 cam_sem_init(&cmd_thread->cmd_sem, 0); in mm_camera_cmd_thread_launch() 631 cam_queue_init(&cmd_thread->cmd_queue); in mm_camera_cmd_thread_launch() 632 cmd_thread->cb = cb; in mm_camera_cmd_thread_launch() [all …]
|
D | mm_camera_channel.c | 1288 snprintf(my_obj->cmd_thread.threadName, THREAD_NAME_SIZE, "CAM_SuperBufCB"); in mm_channel_start() 1289 mm_camera_cmd_thread_launch(&my_obj->cmd_thread, in mm_channel_start() 1396 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_channel_start() 1496 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_channel_stop() 1559 cam_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_channel_request_super_buf() 1562 cam_sem_post(&(my_obj->cmd_thread.cmd_sem)); in mm_channel_request_super_buf() 1617 cam_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_channel_flush_super_buf_queue() 1620 cam_sem_post(&(my_obj->cmd_thread.cmd_sem)); in mm_channel_flush_super_buf_queue() 1655 cam_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_channel_config_notify_mode() 1658 cam_sem_post(&(my_obj->cmd_thread.cmd_sem)); in mm_channel_config_notify_mode() [all …]
|
D | mm_camera_stream.c | 169 cam_queue_enq(&(ch_obj->cmd_thread.cmd_queue), node); in mm_stream_notify_channel() 172 cam_sem_post(&(ch_obj->cmd_thread.cmd_sem)); in mm_stream_notify_channel() 231 cam_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_stream_handle_rcvd_buf() 234 cam_sem_post(&(my_obj->cmd_thread.cmd_sem)); in mm_stream_handle_rcvd_buf() 763 snprintf(my_obj->cmd_thread.threadName, THREAD_NAME_SIZE, "CAM_StrmAppData"); in mm_stream_fsm_reg() 764 mm_camera_cmd_thread_launch(&my_obj->cmd_thread, in mm_stream_fsm_reg() 774 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_stream_fsm_reg() 850 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_stream_fsm_active()
|
/device/huawei/angler/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_thread.c | 581 mm_camera_cmd_thread_t *cmd_thread = in mm_camera_cmd_thread() local 587 ret = cam_sem_wait(&cmd_thread->cmd_sem); in mm_camera_cmd_thread() 596 node = (mm_camera_cmdcb_t*)cam_queue_deq(&cmd_thread->cmd_queue); in mm_camera_cmd_thread() 608 if (NULL != cmd_thread->cb) { in mm_camera_cmd_thread() 609 cmd_thread->cb(node, cmd_thread->user_data); in mm_camera_cmd_thread() 618 node = (mm_camera_cmdcb_t*)cam_queue_deq(&cmd_thread->cmd_queue); in mm_camera_cmd_thread() 624 int32_t mm_camera_cmd_thread_launch(mm_camera_cmd_thread_t * cmd_thread, in mm_camera_cmd_thread_launch() argument 630 cam_sem_init(&cmd_thread->cmd_sem, 0); in mm_camera_cmd_thread_launch() 631 cam_queue_init(&cmd_thread->cmd_queue); in mm_camera_cmd_thread_launch() 632 cmd_thread->cb = cb; in mm_camera_cmd_thread_launch() [all …]
|
D | mm_camera_channel.c | 1288 snprintf(my_obj->cmd_thread.threadName, THREAD_NAME_SIZE, "CAM_SuperBufCB"); in mm_channel_start() 1289 mm_camera_cmd_thread_launch(&my_obj->cmd_thread, in mm_channel_start() 1396 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_channel_start() 1496 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_channel_stop() 1559 cam_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_channel_request_super_buf() 1562 cam_sem_post(&(my_obj->cmd_thread.cmd_sem)); in mm_channel_request_super_buf() 1617 cam_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_channel_flush_super_buf_queue() 1620 cam_sem_post(&(my_obj->cmd_thread.cmd_sem)); in mm_channel_flush_super_buf_queue() 1655 cam_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_channel_config_notify_mode() 1658 cam_sem_post(&(my_obj->cmd_thread.cmd_sem)); in mm_channel_config_notify_mode() [all …]
|
D | mm_camera_stream.c | 169 cam_queue_enq(&(ch_obj->cmd_thread.cmd_queue), node); in mm_stream_notify_channel() 172 cam_sem_post(&(ch_obj->cmd_thread.cmd_sem)); in mm_stream_notify_channel() 231 cam_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_stream_handle_rcvd_buf() 234 cam_sem_post(&(my_obj->cmd_thread.cmd_sem)); in mm_stream_handle_rcvd_buf() 763 snprintf(my_obj->cmd_thread.threadName, THREAD_NAME_SIZE, "CAM_StrmAppData"); in mm_stream_fsm_reg() 764 mm_camera_cmd_thread_launch(&my_obj->cmd_thread, in mm_stream_fsm_reg() 774 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_stream_fsm_reg() 850 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_stream_fsm_active()
|
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/ |
D | mm_camera_thread.c | 562 mm_camera_cmd_thread_t *cmd_thread = in mm_camera_cmd_thread() local 568 ret = cam_sem_wait(&cmd_thread->cmd_sem); in mm_camera_cmd_thread() 577 node = (mm_camera_cmdcb_t*)cam_queue_deq(&cmd_thread->cmd_queue); in mm_camera_cmd_thread() 589 if (NULL != cmd_thread->cb) { in mm_camera_cmd_thread() 590 cmd_thread->cb(node, cmd_thread->user_data); in mm_camera_cmd_thread() 599 node = (mm_camera_cmdcb_t*)cam_queue_deq(&cmd_thread->cmd_queue); in mm_camera_cmd_thread() 605 int32_t mm_camera_cmd_thread_launch(mm_camera_cmd_thread_t * cmd_thread, in mm_camera_cmd_thread_launch() argument 611 cam_sem_init(&cmd_thread->cmd_sem, 0); in mm_camera_cmd_thread_launch() 612 cam_queue_init(&cmd_thread->cmd_queue); in mm_camera_cmd_thread_launch() 613 cmd_thread->cb = cb; in mm_camera_cmd_thread_launch() [all …]
|
D | mm_camera_channel.c | 1113 mm_camera_cmd_thread_launch(&my_obj->cmd_thread, in mm_channel_start() 1185 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_channel_start() 1259 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_channel_stop() 1314 cam_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_channel_request_super_buf() 1317 cam_sem_post(&(my_obj->cmd_thread.cmd_sem)); in mm_channel_request_super_buf() 1372 cam_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_channel_flush_super_buf_queue() 1375 cam_sem_post(&(my_obj->cmd_thread.cmd_sem)); in mm_channel_flush_super_buf_queue() 1410 cam_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_channel_config_notify_mode() 1413 cam_sem_post(&(my_obj->cmd_thread.cmd_sem)); in mm_channel_config_notify_mode() 1445 cam_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_channel_start_zsl_snapshot() [all …]
|
D | mm_camera_stream.c | 134 cam_queue_enq(&(my_obj->ch_obj->cmd_thread.cmd_queue), node); in mm_stream_handle_rcvd_buf() 137 cam_sem_post(&(my_obj->ch_obj->cmd_thread.cmd_sem)); in mm_stream_handle_rcvd_buf() 154 cam_queue_enq(&(my_obj->cmd_thread.cmd_queue), node); in mm_stream_handle_rcvd_buf() 157 cam_sem_post(&(my_obj->cmd_thread.cmd_sem)); in mm_stream_handle_rcvd_buf() 665 mm_camera_cmd_thread_launch(&my_obj->cmd_thread, in mm_stream_fsm_reg() 675 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_stream_fsm_reg() 748 mm_camera_cmd_thread_release(&my_obj->cmd_thread); in mm_stream_fsm_active()
|
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/inc/ |
D | mm_camera.h | 229 mm_camera_cmd_thread_t cmd_thread; member 368 mm_camera_cmd_thread_t cmd_thread; member 630 mm_camera_cmd_thread_t * cmd_thread, 634 extern int32_t mm_camera_cmd_thread_release(mm_camera_cmd_thread_t * cmd_thread);
|
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-interface/inc/ |
D | mm_camera.h | 239 mm_camera_cmd_thread_t cmd_thread; member 404 mm_camera_cmd_thread_t cmd_thread; member 684 mm_camera_cmd_thread_t * cmd_thread, 688 extern int32_t mm_camera_cmd_thread_release(mm_camera_cmd_thread_t * cmd_thread);
|
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/inc/ |
D | mm_camera.h | 232 mm_camera_cmd_thread_t cmd_thread; member 392 mm_camera_cmd_thread_t cmd_thread; member 691 mm_camera_cmd_thread_t * cmd_thread, 694 extern int32_t mm_camera_cmd_thread_release(mm_camera_cmd_thread_t * cmd_thread);
|
/device/huawei/angler/camera/QCamera2/stack/mm-camera-interface/inc/ |
D | mm_camera.h | 239 mm_camera_cmd_thread_t cmd_thread; member 404 mm_camera_cmd_thread_t cmd_thread; member 684 mm_camera_cmd_thread_t * cmd_thread, 688 extern int32_t mm_camera_cmd_thread_release(mm_camera_cmd_thread_t * cmd_thread);
|
/device/moto/shamu/camera/QCamera/stack/mm-jpeg-interface/src/ |
D | mm_jpeg.c | 782 mm_jpeg_job_cmd_thread_t *cmd_thread = &my_obj->job_mgr; in mm_jpeg_jobmgr_thread() local 787 rc = sem_wait(&cmd_thread->job_sem); in mm_jpeg_jobmgr_thread() 804 node = (mm_jpeg_job_q_node_t*)mm_jpeg_queue_deq(&cmd_thread->job_queue); in mm_jpeg_jobmgr_thread() 844 mm_jpeg_job_cmd_thread_t * cmd_thread = &my_obj->job_mgr; in mm_jpeg_jobmgr_thread_release() local 855 mm_jpeg_queue_enq(&cmd_thread->job_queue, node); in mm_jpeg_jobmgr_thread_release() 856 sem_post(&cmd_thread->job_sem); in mm_jpeg_jobmgr_thread_release() 859 if (pthread_join(cmd_thread->pid, NULL) != 0) { in mm_jpeg_jobmgr_thread_release() 862 mm_jpeg_queue_deinit(&cmd_thread->job_queue); in mm_jpeg_jobmgr_thread_release() 864 sem_destroy(&cmd_thread->job_sem); in mm_jpeg_jobmgr_thread_release() 865 memset(cmd_thread, 0, sizeof(mm_jpeg_job_cmd_thread_t)); in mm_jpeg_jobmgr_thread_release()
|
/device/moto/shamu/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg.c | 1620 mm_jpeg_job_cmd_thread_t *cmd_thread = &my_obj->job_mgr; in mm_jpeg_jobmgr_thread() local 1626 rc = cam_sem_wait(&cmd_thread->job_sem); in mm_jpeg_jobmgr_thread() 1644 node = (mm_jpeg_job_q_node_t*)mm_jpeg_queue_deq(&cmd_thread->job_queue); in mm_jpeg_jobmgr_thread() 1711 mm_jpeg_job_cmd_thread_t * cmd_thread = &my_obj->job_mgr; in mm_jpeg_jobmgr_thread_release() local 1722 mm_jpeg_queue_enq(&cmd_thread->job_queue, node); in mm_jpeg_jobmgr_thread_release() 1723 cam_sem_post(&cmd_thread->job_sem); in mm_jpeg_jobmgr_thread_release() 1726 if (pthread_join(cmd_thread->pid, NULL) != 0) { in mm_jpeg_jobmgr_thread_release() 1729 mm_jpeg_queue_deinit(&cmd_thread->job_queue); in mm_jpeg_jobmgr_thread_release() 1731 cam_sem_destroy(&cmd_thread->job_sem); in mm_jpeg_jobmgr_thread_release() 1732 memset(cmd_thread, 0, sizeof(mm_jpeg_job_cmd_thread_t)); in mm_jpeg_jobmgr_thread_release()
|
/device/lge/bullhead/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg.c | 1731 mm_jpeg_job_cmd_thread_t *cmd_thread = &my_obj->job_mgr; in mm_jpeg_jobmgr_thread() local 1737 rc = cam_sem_wait(&cmd_thread->job_sem); in mm_jpeg_jobmgr_thread() 1758 qdata = mm_jpeg_queue_deq(&cmd_thread->job_queue); in mm_jpeg_jobmgr_thread() 1828 mm_jpeg_job_cmd_thread_t * cmd_thread = &my_obj->job_mgr; in mm_jpeg_jobmgr_thread_release() local 1840 mm_jpeg_queue_enq(&cmd_thread->job_queue, qdata); in mm_jpeg_jobmgr_thread_release() 1841 cam_sem_post(&cmd_thread->job_sem); in mm_jpeg_jobmgr_thread_release() 1844 if (pthread_join(cmd_thread->pid, NULL) != 0) { in mm_jpeg_jobmgr_thread_release() 1847 mm_jpeg_queue_deinit(&cmd_thread->job_queue); in mm_jpeg_jobmgr_thread_release() 1849 cam_sem_destroy(&cmd_thread->job_sem); in mm_jpeg_jobmgr_thread_release() 1850 memset(cmd_thread, 0, sizeof(mm_jpeg_job_cmd_thread_t)); in mm_jpeg_jobmgr_thread_release()
|
/device/huawei/angler/camera/QCamera2/stack/mm-jpeg-interface/src/ |
D | mm_jpeg.c | 1731 mm_jpeg_job_cmd_thread_t *cmd_thread = &my_obj->job_mgr; in mm_jpeg_jobmgr_thread() local 1737 rc = cam_sem_wait(&cmd_thread->job_sem); in mm_jpeg_jobmgr_thread() 1758 qdata = mm_jpeg_queue_deq(&cmd_thread->job_queue); in mm_jpeg_jobmgr_thread() 1828 mm_jpeg_job_cmd_thread_t * cmd_thread = &my_obj->job_mgr; in mm_jpeg_jobmgr_thread_release() local 1840 mm_jpeg_queue_enq(&cmd_thread->job_queue, qdata); in mm_jpeg_jobmgr_thread_release() 1841 cam_sem_post(&cmd_thread->job_sem); in mm_jpeg_jobmgr_thread_release() 1844 if (pthread_join(cmd_thread->pid, NULL) != 0) { in mm_jpeg_jobmgr_thread_release() 1847 mm_jpeg_queue_deinit(&cmd_thread->job_queue); in mm_jpeg_jobmgr_thread_release() 1849 cam_sem_destroy(&cmd_thread->job_sem); in mm_jpeg_jobmgr_thread_release() 1850 memset(cmd_thread, 0, sizeof(mm_jpeg_job_cmd_thread_t)); in mm_jpeg_jobmgr_thread_release()
|