Lines Matching refs:ch_obj
105 int32_t mm_channel_superbuf_comp_and_enqueue(mm_channel_t *ch_obj,
127 mm_channel_t * ch_obj,
133 if ((MM_STREAM_STATE_NOTUSED != ch_obj->streams[i].state) &&
134 (handler == ch_obj->streams[i].my_hdl)) {
135 s_obj = &ch_obj->streams[i];
195 mm_channel_t *ch_obj = (mm_channel_t *)user_data;
196 if (NULL == ch_obj) {
203 ch_obj,
204 &ch_obj->bundle.superbuf_queue,
208 ch_obj->pending_cnt = cmd_cb->u.req_buf.num_buf_requested;
209 mm_channel_superbuf_skip(ch_obj, &ch_obj->bundle.superbuf_queue);
211 ch_obj->bundle.superbuf_queue.attr.notify_mode = cmd_cb->u.notify_mode;
213 ch_obj->bundle.superbuf_queue.expected_frame_id = cmd_cb->u.frame_idx;
214 mm_channel_superbuf_flush(ch_obj, &ch_obj->bundle.superbuf_queue);
217 notify_mode = ch_obj->bundle.superbuf_queue.attr.notify_mode;
220 mm_channel_superbuf_bufdone_overflow(ch_obj, &ch_obj->bundle.superbuf_queue);
223 while ( (ch_obj->pending_cnt > 0) ||
227 node = mm_channel_superbuf_dequeue(&ch_obj->bundle.superbuf_queue);
231 __func__, ch_obj->pending_cnt);
233 ch_obj->pending_cnt--;
237 if (NULL != ch_obj->bundle.super_buf_notify_cb) {
242 __func__, ch_obj->pending_cnt);
253 cb_node->u.superbuf.camera_handle = ch_obj->cam_obj->my_hdl;
254 cb_node->u.superbuf.ch_id = ch_obj->my_hdl;
257 cam_queue_enq(&(ch_obj->cb_thread.cmd_queue), cb_node);
260 cam_sem_post(&(ch_obj->cb_thread.cmd_sem));
265 mm_channel_qbuf(ch_obj, node->super_buf[i].buf);
272 mm_channel_qbuf(ch_obj, node->super_buf[i].buf);
713 stream_obj->ch_obj = my_obj;
1464 * @ch_obj : channel object
1473 mm_channel_t* ch_obj,
1479 stream_obj = mm_channel_util_get_stream_by_handler(ch_obj,
1521 mm_channel_superbuf_flush(ch_obj, queue);
1543 * @ch_obj : channel object
1552 mm_channel_t* ch_obj,
1574 if (mm_channel_handle_metadata(ch_obj, queue, buf_info) < 0) {
1581 mm_channel_qbuf(ch_obj, buf_info->buf);
1654 mm_channel_qbuf(ch_obj, super_buf->super_buf[i].buf);
1673 mm_channel_qbuf(ch_obj, buf_info->buf);
1681 mm_channel_qbuf(ch_obj, super_buf->super_buf[i].buf);
1728 mm_channel_qbuf(ch_obj, buf_info->buf);