Lines Matching full:buffers
35 q->buffers = 0; in ivtv_queue_init()
53 q->buffers++; in ivtv_enqueue()
68 q->buffers--; in ivtv_dequeue()
82 from->buffers--; in ivtv_queue_move_buf()
88 to->buffers++; in ivtv_queue_move_buf()
93 /* Move 'needed_bytes' worth of buffers from queue 'from' into queue 'to'.
94 If 'needed_bytes' == 0, then move all buffers from 'from' into 'to'.
95 If 'steal' != NULL, then buffers may also taken from that queue if
99 also cleared if buffers need to be taken from the 'steal' queue and
107 -ENOMEM is returned if the buffers could not be obtained, 0 if all
108 buffers where obtained from the 'from' list and if non-zero then
109 the number of stolen buffers is returned. */
136 /* move buffers from the tail of the 'steal' queue to the tail of the in ivtv_queue_move()
137 'from' queue. Always copy all the buffers with the same dma_xfer_cnt in ivtv_queue_move()
139 if one frame is stored in multiple buffers. */ in ivtv_queue_move()
143 steal->buffers--; in ivtv_queue_move()
147 from->buffers++; in ivtv_queue_move()
184 int SGsize = sizeof(struct ivtv_sg_host_element) * s->buffers; in ivtv_stream_alloc()
187 if (s->buffers == 0) in ivtv_stream_alloc()
190 IVTV_DEBUG_INFO("Allocate %s%s stream: %d x %d buffers (%dkB total)\n", in ivtv_stream_alloc()
192 s->name, s->buffers, s->buf_size, s->buffers * s->buf_size / 1024); in ivtv_stream_alloc()
227 /* allocate stream buffers. Initially all buffers are in q_free. */ in ivtv_stream_alloc()
228 for (i = 0; i < s->buffers; i++) { in ivtv_stream_alloc()
247 if (i == s->buffers) in ivtv_stream_alloc()
249 IVTV_ERR("Couldn't allocate buffers for %s stream\n", s->name); in ivtv_stream_alloc()
258 /* move all buffers to q_free */ in ivtv_stream_free()