Home
last modified time | relevance | path

Searched refs:q_ctx (Results 1 – 2 of 2) sorted by relevance

/linux-4.19.296/drivers/media/v4l2-core/
Dv4l2-mem2mem.c122 struct v4l2_m2m_queue_ctx *q_ctx; in v4l2_m2m_get_vq() local
124 q_ctx = get_queue_ctx(m2m_ctx, type); in v4l2_m2m_get_vq()
125 if (!q_ctx) in v4l2_m2m_get_vq()
128 return &q_ctx->q; in v4l2_m2m_get_vq()
132 void *v4l2_m2m_next_buf(struct v4l2_m2m_queue_ctx *q_ctx) in v4l2_m2m_next_buf() argument
137 spin_lock_irqsave(&q_ctx->rdy_spinlock, flags); in v4l2_m2m_next_buf()
139 if (list_empty(&q_ctx->rdy_queue)) { in v4l2_m2m_next_buf()
140 spin_unlock_irqrestore(&q_ctx->rdy_spinlock, flags); in v4l2_m2m_next_buf()
144 b = list_first_entry(&q_ctx->rdy_queue, struct v4l2_m2m_buffer, list); in v4l2_m2m_next_buf()
145 spin_unlock_irqrestore(&q_ctx->rdy_spinlock, flags); in v4l2_m2m_next_buf()
[all …]
/linux-4.19.296/include/media/
Dv4l2-mem2mem.h442 void *v4l2_m2m_next_buf(struct v4l2_m2m_queue_ctx *q_ctx);
471 void *v4l2_m2m_last_buf(struct v4l2_m2m_queue_ctx *q_ctx);
564 void *v4l2_m2m_buf_remove(struct v4l2_m2m_queue_ctx *q_ctx);
595 void v4l2_m2m_buf_remove_by_buf(struct v4l2_m2m_queue_ctx *q_ctx,
625 v4l2_m2m_buf_remove_by_idx(struct v4l2_m2m_queue_ctx *q_ctx, unsigned int idx);