Lines Matching refs:buffers
35 q->buffers = 0;
53 q->buffers++;
68 q->buffers--;
82 from->buffers--;
88 to->buffers++;
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
137 'from' queue. Always copy all the buffers with the same dma_xfer_cnt
139 if one frame is stored in multiple buffers. */
143 steal->buffers--;
147 from->buffers++;
184 int SGsize = sizeof(struct ivtv_sg_host_element) * s->buffers;
187 if (s->buffers == 0)
190 IVTV_DEBUG_INFO("Allocate %s%s stream: %d x %d buffers (%dkB total)\n",
192 s->name, s->buffers, s->buf_size, s->buffers * s->buf_size / 1024);
227 /* allocate stream buffers. Initially all buffers are in q_free. */
228 for (i = 0; i < s->buffers; i++) {
247 if (i == s->buffers)
249 IVTV_ERR("Couldn't allocate buffers for %s stream\n", s->name);
258 /* move all buffers to q_free */