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];
193 mm_channel_t *ch_obj = (mm_channel_t *)user_data;
194 if (NULL == ch_obj) {
201 ch_obj,
202 &ch_obj->bundle.superbuf_queue,
206 ch_obj->pending_cnt = cmd_cb->u.req_buf.num_buf_requested;
207 mm_channel_superbuf_skip(ch_obj, &ch_obj->bundle.superbuf_queue);
209 ch_obj->bundle.superbuf_queue.attr.notify_mode = cmd_cb->u.notify_mode;
211 ch_obj->bundle.superbuf_queue.expected_frame_id = cmd_cb->u.frame_idx;
212 mm_channel_superbuf_flush(ch_obj, &ch_obj->bundle.superbuf_queue);
215 notify_mode = ch_obj->bundle.superbuf_queue.attr.notify_mode;
218 mm_channel_superbuf_bufdone_overflow(ch_obj, &ch_obj->bundle.superbuf_queue);
221 while ( (ch_obj->pending_cnt > 0) ||
225 node = mm_channel_superbuf_dequeue(&ch_obj->bundle.superbuf_queue);
229 __func__, ch_obj->pending_cnt);
231 ch_obj->pending_cnt--;
235 if (NULL != ch_obj->bundle.super_buf_notify_cb) {
240 __func__, ch_obj->pending_cnt);
251 cb_node->u.superbuf.camera_handle = ch_obj->cam_obj->my_hdl;
252 cb_node->u.superbuf.ch_id = ch_obj->my_hdl;
255 cam_queue_enq(&(ch_obj->cb_thread.cmd_queue), cb_node);
258 cam_sem_post(&(ch_obj->cb_thread.cmd_sem));
263 mm_channel_qbuf(ch_obj, node->super_buf[i].buf);
270 mm_channel_qbuf(ch_obj, node->super_buf[i].buf);
710 stream_obj->ch_obj = my_obj;
1461 * @ch_obj : channel object
1470 mm_channel_t* ch_obj,
1476 stream_obj = mm_channel_util_get_stream_by_handler(ch_obj,
1518 mm_channel_superbuf_flush(ch_obj, queue);
1540 * @ch_obj : channel object
1549 mm_channel_t* ch_obj,
1571 if (mm_channel_handle_metadata(ch_obj, queue, buf_info) < 0) {
1578 mm_channel_qbuf(ch_obj, buf_info->buf);
1651 mm_channel_qbuf(ch_obj, super_buf->super_buf[i].buf);
1670 mm_channel_qbuf(ch_obj, buf_info->buf);
1678 mm_channel_qbuf(ch_obj, super_buf->super_buf[i].buf);
1725 mm_channel_qbuf(ch_obj, buf_info->buf);