Lines Matching refs:buffer_total_count
53 unsigned int buffer_total_count; member
287 if (cnt == sp->buffer_total_count) return 0; in pvr2_stream_buffer_count()
292 sp->buffer_total_count, in pvr2_stream_buffer_count()
293 cnt-sp->buffer_total_count); in pvr2_stream_buffer_count()
298 if (cnt > sp->buffer_total_count) { in pvr2_stream_buffer_count()
312 while (sp->buffer_total_count < cnt) { in pvr2_stream_buffer_count()
316 ret = pvr2_buffer_init(bp, sp, sp->buffer_total_count); in pvr2_stream_buffer_count()
321 sp->buffers[sp->buffer_total_count] = bp; in pvr2_stream_buffer_count()
322 (sp->buffer_total_count)++; in pvr2_stream_buffer_count()
326 while (sp->buffer_total_count > cnt) { in pvr2_stream_buffer_count()
328 bp = sp->buffers[sp->buffer_total_count - 1]; in pvr2_stream_buffer_count()
330 sp->buffers[sp->buffer_total_count - 1] = NULL; in pvr2_stream_buffer_count()
331 (sp->buffer_total_count)--; in pvr2_stream_buffer_count()
355 if (sp->buffer_total_count == sp->buffer_target_count) return 0; in pvr2_stream_achieve_buffer_count()
359 sp, sp->buffer_total_count, sp->buffer_target_count); in pvr2_stream_achieve_buffer_count()
361 if (sp->buffer_total_count < sp->buffer_target_count) { in pvr2_stream_achieve_buffer_count()
366 while ((sp->buffer_total_count - cnt) > sp->buffer_target_count) { in pvr2_stream_achieve_buffer_count()
367 bp = sp->buffers[sp->buffer_total_count - (cnt + 1)]; in pvr2_stream_achieve_buffer_count()
372 pvr2_stream_buffer_count(sp, sp->buffer_total_count - cnt); in pvr2_stream_achieve_buffer_count()
393 if (sp->buffer_total_count != sp->buffer_target_count) { in pvr2_stream_internal_flush()
564 if (id >= sp->buffer_total_count) return NULL; in pvr2_stream_get_buffer()
582 if (sp->buffer_total_count != sp->buffer_target_count) { in pvr2_stream_kill()