Lines Matching refs:m2m_ctx

136 struct vb2_queue *v4l2_m2m_get_vq(struct v4l2_m2m_ctx *m2m_ctx,
160 void v4l2_m2m_try_schedule(struct v4l2_m2m_ctx *m2m_ctx);
178 struct v4l2_m2m_ctx *m2m_ctx);
193 int v4l2_m2m_reqbufs(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
205 int v4l2_m2m_querybuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
216 int v4l2_m2m_qbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
227 int v4l2_m2m_dqbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
238 int v4l2_m2m_prepare_buf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
249 int v4l2_m2m_create_bufs(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
260 int v4l2_m2m_expbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
270 int v4l2_m2m_streamon(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
280 int v4l2_m2m_streamoff(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
295 __poll_t v4l2_m2m_poll(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
312 int v4l2_m2m_mmap(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
367 static inline void v4l2_m2m_set_src_buffered(struct v4l2_m2m_ctx *m2m_ctx, in v4l2_m2m_set_src_buffered() argument
370 m2m_ctx->out_q_ctx.buffered = buffered; in v4l2_m2m_set_src_buffered()
373 static inline void v4l2_m2m_set_dst_buffered(struct v4l2_m2m_ctx *m2m_ctx, in v4l2_m2m_set_dst_buffered() argument
376 m2m_ctx->cap_q_ctx.buffered = buffered; in v4l2_m2m_set_dst_buffered()
386 void v4l2_m2m_ctx_release(struct v4l2_m2m_ctx *m2m_ctx);
396 void v4l2_m2m_buf_queue(struct v4l2_m2m_ctx *m2m_ctx,
406 unsigned int v4l2_m2m_num_src_bufs_ready(struct v4l2_m2m_ctx *m2m_ctx) in v4l2_m2m_num_src_bufs_ready() argument
408 return m2m_ctx->out_q_ctx.num_rdy; in v4l2_m2m_num_src_bufs_ready()
418 unsigned int v4l2_m2m_num_dst_bufs_ready(struct v4l2_m2m_ctx *m2m_ctx) in v4l2_m2m_num_dst_bufs_ready() argument
420 return m2m_ctx->cap_q_ctx.num_rdy; in v4l2_m2m_num_dst_bufs_ready()
436 static inline void *v4l2_m2m_next_src_buf(struct v4l2_m2m_ctx *m2m_ctx) in v4l2_m2m_next_src_buf() argument
438 return v4l2_m2m_next_buf(&m2m_ctx->out_q_ctx); in v4l2_m2m_next_src_buf()
447 static inline void *v4l2_m2m_next_dst_buf(struct v4l2_m2m_ctx *m2m_ctx) in v4l2_m2m_next_dst_buf() argument
449 return v4l2_m2m_next_buf(&m2m_ctx->cap_q_ctx); in v4l2_m2m_next_dst_buf()
465 static inline void *v4l2_m2m_last_src_buf(struct v4l2_m2m_ctx *m2m_ctx) in v4l2_m2m_last_src_buf() argument
467 return v4l2_m2m_last_buf(&m2m_ctx->out_q_ctx); in v4l2_m2m_last_src_buf()
476 static inline void *v4l2_m2m_last_dst_buf(struct v4l2_m2m_ctx *m2m_ctx) in v4l2_m2m_last_dst_buf() argument
478 return v4l2_m2m_last_buf(&m2m_ctx->cap_q_ctx); in v4l2_m2m_last_dst_buf()
488 #define v4l2_m2m_for_each_dst_buf(m2m_ctx, b) \ argument
489 list_for_each_entry(b, &m2m_ctx->cap_q_ctx.rdy_queue, list)
497 #define v4l2_m2m_for_each_src_buf(m2m_ctx, b) \ argument
498 list_for_each_entry(b, &m2m_ctx->out_q_ctx.rdy_queue, list)
508 #define v4l2_m2m_for_each_dst_buf_safe(m2m_ctx, b, n) \ argument
509 list_for_each_entry_safe(b, n, &m2m_ctx->cap_q_ctx.rdy_queue, list)
519 #define v4l2_m2m_for_each_src_buf_safe(m2m_ctx, b, n) \ argument
520 list_for_each_entry_safe(b, n, &m2m_ctx->out_q_ctx.rdy_queue, list)
528 struct vb2_queue *v4l2_m2m_get_src_vq(struct v4l2_m2m_ctx *m2m_ctx) in v4l2_m2m_get_src_vq() argument
530 return &m2m_ctx->out_q_ctx.q; in v4l2_m2m_get_src_vq()
539 struct vb2_queue *v4l2_m2m_get_dst_vq(struct v4l2_m2m_ctx *m2m_ctx) in v4l2_m2m_get_dst_vq() argument
541 return &m2m_ctx->cap_q_ctx.q; in v4l2_m2m_get_dst_vq()
558 static inline void *v4l2_m2m_src_buf_remove(struct v4l2_m2m_ctx *m2m_ctx) in v4l2_m2m_src_buf_remove() argument
560 return v4l2_m2m_buf_remove(&m2m_ctx->out_q_ctx); in v4l2_m2m_src_buf_remove()
569 static inline void *v4l2_m2m_dst_buf_remove(struct v4l2_m2m_ctx *m2m_ctx) in v4l2_m2m_dst_buf_remove() argument
571 return v4l2_m2m_buf_remove(&m2m_ctx->cap_q_ctx); in v4l2_m2m_dst_buf_remove()
591 static inline void v4l2_m2m_src_buf_remove_by_buf(struct v4l2_m2m_ctx *m2m_ctx, in v4l2_m2m_src_buf_remove_by_buf() argument
594 v4l2_m2m_buf_remove_by_buf(&m2m_ctx->out_q_ctx, vbuf); in v4l2_m2m_src_buf_remove_by_buf()
604 static inline void v4l2_m2m_dst_buf_remove_by_buf(struct v4l2_m2m_ctx *m2m_ctx, in v4l2_m2m_dst_buf_remove_by_buf() argument
607 v4l2_m2m_buf_remove_by_buf(&m2m_ctx->cap_q_ctx, vbuf); in v4l2_m2m_dst_buf_remove_by_buf()
614 v4l2_m2m_src_buf_remove_by_idx(struct v4l2_m2m_ctx *m2m_ctx, unsigned int idx) in v4l2_m2m_src_buf_remove_by_idx() argument
616 return v4l2_m2m_buf_remove_by_idx(&m2m_ctx->out_q_ctx, idx); in v4l2_m2m_src_buf_remove_by_idx()
620 v4l2_m2m_dst_buf_remove_by_idx(struct v4l2_m2m_ctx *m2m_ctx, unsigned int idx) in v4l2_m2m_dst_buf_remove_by_idx() argument
622 return v4l2_m2m_buf_remove_by_idx(&m2m_ctx->cap_q_ctx, idx); in v4l2_m2m_dst_buf_remove_by_idx()