Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/media/pci/ivtv/
Divtv-queue.c45 if (q == &s->q_free) { in ivtv_enqueue()
115 int from_free = from == &s->q_free; in ivtv_queue_move()
116 int to_free = to == &s->q_free; in ivtv_queue_move()
175 ivtv_queue_move(s, &s->q_io, NULL, &s->q_free, 0); in ivtv_flush_queues()
176 ivtv_queue_move(s, &s->q_full, NULL, &s->q_free, 0); in ivtv_flush_queues()
177 ivtv_queue_move(s, &s->q_dma, NULL, &s->q_free, 0); in ivtv_flush_queues()
178 ivtv_queue_move(s, &s->q_predma, NULL, &s->q_free, 0); in ivtv_flush_queues()
244 ivtv_enqueue(s, buf, &s->q_free); in ivtv_stream_alloc()
261 while ((buf = ivtv_dequeue(s, &s->q_free))) { in ivtv_stream_free()
Divtv-fileops.c218 ivtv_enqueue(s_vbi, buf, &s_vbi->q_free); in ivtv_get_buffer()
385 ivtv_enqueue(s, buf, (buf->readpos == buf->bytesused) ? &s->q_free : &s->q_io); in ivtv_read()
614 while (q.length - q.bytesused < count && (buf = ivtv_dequeue(s, &s->q_free))) { in ivtv_write()
624 if (!s->q_free.buffers) in ivtv_write()
647 ivtv_queue_move(s, &q, NULL, &s->q_free, 0); in ivtv_write()
750 if (s->q_free.buffers) in ivtv_v4l2_dec_poll()
Divtv-irq.c54 ivtv_enqueue(s, buf, &s->q_free); in ivtv_pcm_work_handler()
204 rc = ivtv_queue_move(s, &s->q_free, &s->q_full, &s->q_predma, bytes_needed); in stream_enc_dma_append()
309 ivtv_queue_move(s, &s->q_dma, NULL, &s->q_free, 0); in dma_post()
582 ivtv_enqueue(s, buf, &s->q_free); in ivtv_irq_dma_read()
Divtv-driver.h358 struct ivtv_queue q_free; /* free buffers */ member
Divtv-streams.c191 ivtv_queue_init(&s->q_free); in ivtv_stream_init()
Divtv-ioctl.c1581 (s->buffers - s->q_free.buffers) * 100 / s->buffers, in ivtv_log_status()
/kernel/linux/linux-5.10/drivers/media/pci/cx18/
Dcx18-queue.c58 q = &s->q_free; in _cx18_enqueue()
189 cx18_enqueue(s, mdl, &s->q_free); in cx18_queue_get_mdl()
223 cx18_queue_flush(s, &s->q_busy, &s->q_free); in cx18_flush_queues()
224 cx18_queue_flush(s, &s->q_full, &s->q_free); in cx18_flush_queues()
240 cx18_queue_flush(s, &s->q_free, q_idle); in cx18_unload_queues()
311 cx18_enqueue(s, mdl, &s->q_free); in cx18_load_queues()
Dcx18-streams.c264 spin_lock_init(&s->q_free.lock); in cx18_stream_init()
265 cx18_queue_init(&s->q_free); in cx18_stream_init()
656 if ((atomic_read(&s->q_free.depth) + atomic_read(&s->q_busy.depth)) >= in cx18_stream_rotate_idx_mdls()
670 cx18_enqueue(s, mdl, &s->q_free); in cx18_stream_rotate_idx_mdls()
684 return cx18_enqueue(s, mdl, &s->q_free); in _cx18_stream_put_mdl_fw()
703 if (atomic_read(&s->q_free.depth) == 0 || in _cx18_stream_load_fw_queue()
709 mdl = cx18_dequeue(s, &s->q_free); in _cx18_stream_load_fw_queue()
Dcx18-streams.h38 cx18_enqueue(s, mdl, &s->q_free); in cx18_stream_put_mdl_fw()
Dcx18-mailbox.c297 cx18_enqueue(s, mdl, &s->q_free); in epu_dma_done()
302 cx18_enqueue(s, mdl, &s->q_free); in epu_dma_done()
308 cx18_enqueue(s, mdl, &s->q_free); in epu_dma_done()
Dcx18-driver.h388 struct cx18_queue q_free; /* free - in rotation, not committed */ member
Dcx18-ioctl.c799 cx18_enqueue(s, mdl, &s->q_free); in cx18_g_enc_index()