Home
last modified time | relevance | path

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

/drivers/media/v4l2-core/
Dv4l2-mem2mem.c82 struct v4l2_m2m_queue_ctx *q_ctx; in v4l2_m2m_get_vq() local
84 q_ctx = get_queue_ctx(m2m_ctx, type); in v4l2_m2m_get_vq()
85 if (!q_ctx) in v4l2_m2m_get_vq()
88 return &q_ctx->q; in v4l2_m2m_get_vq()
92 void *v4l2_m2m_next_buf(struct v4l2_m2m_queue_ctx *q_ctx) in v4l2_m2m_next_buf() argument
97 spin_lock_irqsave(&q_ctx->rdy_spinlock, flags); in v4l2_m2m_next_buf()
99 if (list_empty(&q_ctx->rdy_queue)) { in v4l2_m2m_next_buf()
100 spin_unlock_irqrestore(&q_ctx->rdy_spinlock, flags); in v4l2_m2m_next_buf()
104 b = list_first_entry(&q_ctx->rdy_queue, struct v4l2_m2m_buffer, list); in v4l2_m2m_next_buf()
105 spin_unlock_irqrestore(&q_ctx->rdy_spinlock, flags); in v4l2_m2m_next_buf()
[all …]