Lines Matching refs:buffer_total_count
67 unsigned int buffer_total_count; member
306 if (cnt == sp->buffer_total_count) return 0; in pvr2_stream_buffer_count()
312 sp->buffer_total_count, in pvr2_stream_buffer_count()
313 cnt-sp->buffer_total_count); in pvr2_stream_buffer_count()
318 if (cnt > sp->buffer_total_count) { in pvr2_stream_buffer_count()
331 while (sp->buffer_total_count < cnt) { in pvr2_stream_buffer_count()
335 ret = pvr2_buffer_init(bp,sp,sp->buffer_total_count); in pvr2_stream_buffer_count()
340 sp->buffers[sp->buffer_total_count] = bp; in pvr2_stream_buffer_count()
341 (sp->buffer_total_count)++; in pvr2_stream_buffer_count()
345 while (sp->buffer_total_count > cnt) { in pvr2_stream_buffer_count()
347 bp = sp->buffers[sp->buffer_total_count - 1]; in pvr2_stream_buffer_count()
349 sp->buffers[sp->buffer_total_count - 1] = NULL; in pvr2_stream_buffer_count()
350 (sp->buffer_total_count)--; in pvr2_stream_buffer_count()
374 if (sp->buffer_total_count == sp->buffer_target_count) return 0; in pvr2_stream_achieve_buffer_count()
379 sp,sp->buffer_total_count,sp->buffer_target_count); in pvr2_stream_achieve_buffer_count()
381 if (sp->buffer_total_count < sp->buffer_target_count) { in pvr2_stream_achieve_buffer_count()
386 while ((sp->buffer_total_count - cnt) > sp->buffer_target_count) { in pvr2_stream_achieve_buffer_count()
387 bp = sp->buffers[sp->buffer_total_count - (cnt + 1)]; in pvr2_stream_achieve_buffer_count()
392 pvr2_stream_buffer_count(sp,sp->buffer_total_count - cnt); in pvr2_stream_achieve_buffer_count()
413 if (sp->buffer_total_count != sp->buffer_target_count) { in pvr2_stream_internal_flush()
585 if (id >= sp->buffer_total_count) return NULL; in pvr2_stream_get_buffer()
603 if (sp->buffer_total_count != sp->buffer_target_count) { in pvr2_stream_kill()