Home
last modified time | relevance | path

Searched refs:ch_obj (Results 1 – 20 of 20) sorted by relevance

/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera.c74 mm_channel_t *ch_obj = NULL; in mm_camera_util_get_channel_by_handler() local
77 ch_obj = &cam_obj->ch[i]; in mm_camera_util_get_channel_by_handler()
81 return ch_obj; in mm_camera_util_get_channel_by_handler()
479 mm_channel_t * ch_obj = NULL; in mm_camera_qbuf() local
480 ch_obj = mm_camera_util_get_channel_by_handler(my_obj, ch_id); in mm_camera_qbuf()
487 if (NULL != ch_obj) { in mm_camera_qbuf()
488 rc = mm_channel_qbuf(ch_obj, buf); in mm_camera_qbuf()
715 mm_channel_t *ch_obj = NULL; in mm_camera_add_channel() local
721 ch_obj = &my_obj->ch[ch_idx]; in mm_camera_add_channel()
726 if (NULL != ch_obj) { in mm_camera_add_channel()
[all …]
Dmm_camera_channel.c107 int32_t mm_channel_superbuf_comp_and_enqueue(mm_channel_t *ch_obj,
133 mm_channel_t * ch_obj, in mm_channel_util_get_stream_by_handler() argument
139 if ((MM_STREAM_STATE_NOTUSED != ch_obj->streams[i].state) && in mm_channel_util_get_stream_by_handler()
140 (handler == ch_obj->streams[i].my_hdl)) { in mm_channel_util_get_stream_by_handler()
141 s_obj = &ch_obj->streams[i]; in mm_channel_util_get_stream_by_handler()
201 mm_channel_t *ch_obj = (mm_channel_t *)user_data; in mm_channel_process_stream_buf() local
202 if (NULL == ch_obj) { in mm_channel_process_stream_buf()
208 ch_obj, in mm_channel_process_stream_buf()
209 &ch_obj->bundle.superbuf_queue, in mm_channel_process_stream_buf()
213 ch_obj->pending_cnt = cmd_cb->u.req_buf.num_buf_requested; in mm_channel_process_stream_buf()
[all …]
Dmm_camera_stream.c134 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()
263 super_buf.camera_handle = my_obj->ch_obj->cam_obj->my_hdl; in mm_stream_dispatch_app_data()
264 super_buf.ch_id = my_obj->ch_obj->my_hdl; in mm_stream_dispatch_app_data()
384 if ((NULL == my_obj->ch_obj) || (NULL == my_obj->ch_obj->cam_obj)) { in mm_stream_fsm_inited()
396 mm_camera_util_get_dev_name(my_obj->ch_obj->cam_obj->my_hdl)); in mm_stream_fsm_inited()
872 …mm_camera_poll_thread_del_poll_fd(&my_obj->ch_obj->poll_thread[0], my_obj->my_hdl, mm_camera_sync_… in mm_stream_streamon()
898 rc = mm_camera_poll_thread_del_poll_fd(&my_obj->ch_obj->poll_thread[0], in mm_stream_streamoff()
903 rc = mm_camera_poll_thread_commit_updates(&my_obj->ch_obj->poll_thread[0]); in mm_stream_streamoff()
960 mm_camera_poll_thread_del_poll_fd(&my_obj->ch_obj->poll_thread[0], in mm_stream_read_msm_frame()
[all …]
/device/asus/flo/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera.c74 mm_channel_t *ch_obj = NULL; in mm_camera_util_get_channel_by_handler() local
77 ch_obj = &cam_obj->ch[i]; in mm_camera_util_get_channel_by_handler()
81 return ch_obj; in mm_camera_util_get_channel_by_handler()
471 mm_channel_t * ch_obj = NULL; in mm_camera_qbuf() local
472 ch_obj = mm_camera_util_get_channel_by_handler(my_obj, ch_id); in mm_camera_qbuf()
479 if (NULL != ch_obj) { in mm_camera_qbuf()
480 rc = mm_channel_qbuf(ch_obj, buf); in mm_camera_qbuf()
710 mm_channel_t *ch_obj = NULL; in mm_camera_add_channel() local
716 ch_obj = &my_obj->ch[ch_idx]; in mm_camera_add_channel()
721 if (NULL != ch_obj) { in mm_camera_add_channel()
[all …]
Dmm_camera_channel.c105 int32_t mm_channel_superbuf_comp_and_enqueue(mm_channel_t *ch_obj,
127 mm_channel_t * ch_obj, in mm_channel_util_get_stream_by_handler() argument
133 if ((MM_STREAM_STATE_NOTUSED != ch_obj->streams[i].state) && in mm_channel_util_get_stream_by_handler()
134 (handler == ch_obj->streams[i].my_hdl)) { in mm_channel_util_get_stream_by_handler()
135 s_obj = &ch_obj->streams[i]; in mm_channel_util_get_stream_by_handler()
193 mm_channel_t *ch_obj = (mm_channel_t *)user_data; in mm_channel_process_stream_buf() local
194 if (NULL == ch_obj) { in mm_channel_process_stream_buf()
201 ch_obj, in mm_channel_process_stream_buf()
202 &ch_obj->bundle.superbuf_queue, in mm_channel_process_stream_buf()
206 ch_obj->pending_cnt = cmd_cb->u.req_buf.num_buf_requested; in mm_channel_process_stream_buf()
[all …]
Dmm_camera_stream.c154 cam_queue_enq(&(my_obj->ch_obj->cmd_thread.cmd_queue), node); in mm_stream_handle_rcvd_buf()
157 cam_sem_post(&(my_obj->ch_obj->cmd_thread.cmd_sem)); in mm_stream_handle_rcvd_buf()
282 super_buf.camera_handle = my_obj->ch_obj->cam_obj->my_hdl; in mm_stream_dispatch_app_data()
283 super_buf.ch_id = my_obj->ch_obj->my_hdl; in mm_stream_dispatch_app_data()
403 if ((NULL == my_obj->ch_obj) || (NULL == my_obj->ch_obj->cam_obj)) { in mm_stream_fsm_inited()
410 mm_camera_util_get_dev_name(my_obj->ch_obj->cam_obj->my_hdl)); in mm_stream_fsm_inited()
887 …mm_camera_poll_thread_del_poll_fd(&my_obj->ch_obj->poll_thread[0], my_obj->my_hdl, mm_camera_sync_… in mm_stream_streamon()
913 …mm_camera_poll_thread_del_poll_fd(&my_obj->ch_obj->poll_thread[0], my_obj->my_hdl, mm_camera_sync_… in mm_stream_streamoff()
964 …mm_camera_poll_thread_del_poll_fd(&my_obj->ch_obj->poll_thread[0], my_obj->my_hdl, mm_camera_async… in mm_stream_read_msm_frame()
1165 rc = mm_camera_poll_thread_add_poll_fd(&my_obj->ch_obj->poll_thread[0], in mm_stream_qbuf()
[all …]
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-interface/src/
Dmm_camera.c74 mm_channel_t *ch_obj = NULL; in mm_camera_util_get_channel_by_handler() local
77 ch_obj = &cam_obj->ch[i]; in mm_camera_util_get_channel_by_handler()
81 return ch_obj; in mm_camera_util_get_channel_by_handler()
472 mm_channel_t * ch_obj = NULL; in mm_camera_qbuf() local
473 ch_obj = mm_camera_util_get_channel_by_handler(my_obj, ch_id); in mm_camera_qbuf()
480 if (NULL != ch_obj) { in mm_camera_qbuf()
481 rc = mm_channel_qbuf(ch_obj, buf); in mm_camera_qbuf()
711 mm_channel_t *ch_obj = NULL; in mm_camera_add_channel() local
717 ch_obj = &my_obj->ch[ch_idx]; in mm_camera_add_channel()
722 if (NULL != ch_obj) { in mm_camera_add_channel()
[all …]
Dmm_camera_channel.c105 int32_t mm_channel_superbuf_comp_and_enqueue(mm_channel_t *ch_obj,
127 mm_channel_t * ch_obj, in mm_channel_util_get_stream_by_handler() argument
133 if ((MM_STREAM_STATE_NOTUSED != ch_obj->streams[i].state) && in mm_channel_util_get_stream_by_handler()
134 (handler == ch_obj->streams[i].my_hdl)) { in mm_channel_util_get_stream_by_handler()
135 s_obj = &ch_obj->streams[i]; in mm_channel_util_get_stream_by_handler()
195 mm_channel_t *ch_obj = (mm_channel_t *)user_data; in mm_channel_process_stream_buf() local
196 if (NULL == ch_obj) { in mm_channel_process_stream_buf()
203 ch_obj, in mm_channel_process_stream_buf()
204 &ch_obj->bundle.superbuf_queue, in mm_channel_process_stream_buf()
208 ch_obj->pending_cnt = cmd_cb->u.req_buf.num_buf_requested; in mm_channel_process_stream_buf()
[all …]
Dmm_camera_stream.c134 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()
263 super_buf.camera_handle = my_obj->ch_obj->cam_obj->my_hdl; in mm_stream_dispatch_app_data()
264 super_buf.ch_id = my_obj->ch_obj->my_hdl; in mm_stream_dispatch_app_data()
384 if ((NULL == my_obj->ch_obj) || (NULL == my_obj->ch_obj->cam_obj)) { in mm_stream_fsm_inited()
391 mm_camera_util_get_dev_name(my_obj->ch_obj->cam_obj->my_hdl)); in mm_stream_fsm_inited()
869 …mm_camera_poll_thread_del_poll_fd(&my_obj->ch_obj->poll_thread[0], my_obj->my_hdl, mm_camera_sync_… in mm_stream_streamon()
895 rc = mm_camera_poll_thread_del_poll_fd(&my_obj->ch_obj->poll_thread[0], in mm_stream_streamoff()
900 rc = mm_camera_poll_thread_commit_updates(&my_obj->ch_obj->poll_thread[0]); in mm_stream_streamoff()
956 …mm_camera_poll_thread_del_poll_fd(&my_obj->ch_obj->poll_thread[0], my_obj->my_hdl, mm_camera_async… in mm_stream_read_msm_frame()
[all …]
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/
Dmm_camera.c75 mm_channel_t *ch_obj = NULL; in mm_camera_util_get_channel_by_handler() local
80 ch_obj = &cam_obj->ch[i]; in mm_camera_util_get_channel_by_handler()
84 return ch_obj; in mm_camera_util_get_channel_by_handler()
124 mm_channel_fsm_fn(async_cmd->u.stop_cmd.ch_obj, in mm_camera_handle_async_cmd()
478 mm_channel_t * ch_obj = NULL; in mm_camera_qbuf() local
479 ch_obj = mm_camera_util_get_channel_by_handler(my_obj, ch_id); in mm_camera_qbuf()
486 if (NULL != ch_obj) { in mm_camera_qbuf()
487 rc = mm_channel_qbuf(ch_obj, buf); in mm_camera_qbuf()
855 mm_channel_t *ch_obj = NULL; in mm_camera_add_channel() local
861 ch_obj = &my_obj->ch[ch_idx]; in mm_camera_add_channel()
[all …]
Dmm_camera_channel.c146 int32_t mm_channel_superbuf_comp_and_enqueue(mm_channel_t *ch_obj,
153 mm_channel_t * ch_obj, in mm_channel_util_get_stream_by_handler() argument
161 if (handler == ch_obj->streams[i].my_hdl) { in mm_channel_util_get_stream_by_handler()
162 s_obj = &ch_obj->streams[i]; in mm_channel_util_get_stream_by_handler()
196 mm_channel_t *ch_obj = (mm_channel_t *)user_data; in mm_channel_process_stream_buf() local
197 if (NULL == ch_obj) { in mm_channel_process_stream_buf()
204 ch_obj, in mm_channel_process_stream_buf()
205 &ch_obj->bundle.superbuf_queue, in mm_channel_process_stream_buf()
209 ch_obj->pending_cnt = cmd_cb->u.req_buf.num_buf_requested; in mm_channel_process_stream_buf()
210 mm_channel_superbuf_skip(ch_obj, &ch_obj->bundle.superbuf_queue); in mm_channel_process_stream_buf()
[all …]
Dmm_camera_stream.c165 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()
296 mm_channel_qbuf(my_obj->ch_obj, buf); in mm_stream_buf_notify()
337 super_buf.camera_handle = my_obj->ch_obj->cam_obj->my_hdl; in mm_stream_dispatch_app_data()
338 super_buf.ch_id = my_obj->ch_obj->my_hdl; in mm_stream_dispatch_app_data()
425 if ((NULL == my_obj->ch_obj) || (NULL == my_obj->ch_obj->cam_obj)) { in mm_stream_fsm_inited()
432 mm_camera_util_get_dev_name(my_obj->ch_obj->cam_obj->my_hdl)); in mm_stream_fsm_inited()
650 rc = mm_channel_reg_stream_cb(my_obj->ch_obj, &cb, in mm_stream_fsm_reg()
809 rc = mm_camera_poll_thread_add_poll_fd(&my_obj->ch_obj->poll_thread[0], in mm_stream_streamon()
822 mm_camera_poll_thread_del_poll_fd(&my_obj->ch_obj->poll_thread[0], my_obj->my_hdl); in mm_stream_streamon()
[all …]
/device/lge/mako/camera/QCamera/stack/mm-camera-interface/src/
Dmm_camera.c75 mm_channel_t *ch_obj = NULL; in mm_camera_util_get_channel_by_handler() local
80 ch_obj = &cam_obj->ch[i]; in mm_camera_util_get_channel_by_handler()
84 return ch_obj; in mm_camera_util_get_channel_by_handler()
124 mm_channel_fsm_fn(async_cmd->u.stop_cmd.ch_obj, in mm_camera_handle_async_cmd()
418 mm_channel_t * ch_obj = NULL; in mm_camera_qbuf() local
419 ch_obj = mm_camera_util_get_channel_by_handler(my_obj, ch_id); in mm_camera_qbuf()
426 if (NULL != ch_obj) { in mm_camera_qbuf()
427 rc = mm_channel_qbuf(ch_obj, buf); in mm_camera_qbuf()
748 mm_channel_t *ch_obj = NULL; in mm_camera_add_channel() local
754 ch_obj = &my_obj->ch[ch_idx]; in mm_camera_add_channel()
[all …]
Dmm_camera_channel.c131 int32_t mm_channel_superbuf_comp_and_enqueue(mm_channel_t *ch_obj,
138 mm_channel_t * ch_obj, in mm_channel_util_get_stream_by_handler() argument
146 if (handler == ch_obj->streams[i].my_hdl) { in mm_channel_util_get_stream_by_handler()
147 s_obj = &ch_obj->streams[i]; in mm_channel_util_get_stream_by_handler()
161 mm_channel_t *ch_obj = NULL; in mm_channel_pp_result_notify() local
171 ch_obj = mm_camera_util_get_channel_by_handler(cam_obj, ch_hdl); in mm_channel_pp_result_notify()
172 if (NULL == ch_obj) { in mm_channel_pp_result_notify()
177 pthread_mutex_lock(&ch_obj->ch_lock); in mm_channel_pp_result_notify()
178 if (ch_obj->pending_pp_cnt > 0) { in mm_channel_pp_result_notify()
215 if (NULL != ch_obj->bundle.super_buf_notify_cb) { in mm_channel_pp_result_notify()
[all …]
Dmm_camera_stream.c160 mm_camera_queue_enq(&(my_obj->ch_obj->cmd_thread.cmd_queue), node); in mm_stream_handle_rcvd_buf()
163 sem_post(&(my_obj->ch_obj->cmd_thread.cmd_sem)); in mm_stream_handle_rcvd_buf()
284 mm_channel_qbuf(my_obj->ch_obj, buf); in mm_stream_buf_notify()
316 super_buf.camera_handle = my_obj->ch_obj->cam_obj->my_hdl; in mm_stream_dispatch_app_data()
317 super_buf.ch_id = my_obj->ch_obj->my_hdl; in mm_stream_dispatch_app_data()
398 if ((NULL == my_obj->ch_obj) || (NULL == my_obj->ch_obj->cam_obj)) { in mm_stream_fsm_inited()
405 mm_camera_util_get_dev_name(my_obj->ch_obj->cam_obj->my_hdl)); in mm_stream_fsm_inited()
612 rc = mm_channel_reg_stream_cb(my_obj->ch_obj, &cb, in mm_stream_fsm_reg()
758 rc = mm_camera_poll_thread_add_poll_fd(&my_obj->ch_obj->poll_thread[0], in mm_stream_streamon()
771 mm_camera_poll_thread_del_poll_fd(&my_obj->ch_obj->poll_thread[0], my_obj->my_hdl); in mm_stream_streamon()
[all …]
/device/lge/mako/camera/QCamera/stack/mm-camera-interface/inc/
Dmm_camera.h78 struct mm_channel* ch_obj; member
240 struct mm_channel* ch_obj; member
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/inc/
Dmm_camera.h77 struct mm_channel* ch_obj; member
245 struct mm_channel* ch_obj; member
/device/asus/flo/camera/QCamera2/stack/mm-camera-interface/inc/
Dmm_camera.h222 struct mm_channel* ch_obj; member
/device/lge/hammerhead/camera/QCamera2/stack/mm-camera-interface/inc/
Dmm_camera.h222 struct mm_channel* ch_obj; member
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/inc/
Dmm_camera.h242 struct mm_channel* ch_obj; member