Lines Matching refs:buffer_total_count

63 	unsigned int buffer_total_count;  member
297 if (cnt == sp->buffer_total_count) return 0; in pvr2_stream_buffer_count()
302 sp->buffer_total_count, in pvr2_stream_buffer_count()
303 cnt-sp->buffer_total_count); in pvr2_stream_buffer_count()
308 if (cnt > sp->buffer_total_count) { in pvr2_stream_buffer_count()
322 while (sp->buffer_total_count < cnt) { in pvr2_stream_buffer_count()
326 ret = pvr2_buffer_init(bp, sp, sp->buffer_total_count); in pvr2_stream_buffer_count()
331 sp->buffers[sp->buffer_total_count] = bp; in pvr2_stream_buffer_count()
332 (sp->buffer_total_count)++; in pvr2_stream_buffer_count()
336 while (sp->buffer_total_count > cnt) { in pvr2_stream_buffer_count()
338 bp = sp->buffers[sp->buffer_total_count - 1]; in pvr2_stream_buffer_count()
340 sp->buffers[sp->buffer_total_count - 1] = NULL; in pvr2_stream_buffer_count()
341 (sp->buffer_total_count)--; in pvr2_stream_buffer_count()
365 if (sp->buffer_total_count == sp->buffer_target_count) return 0; in pvr2_stream_achieve_buffer_count()
369 sp, sp->buffer_total_count, sp->buffer_target_count); in pvr2_stream_achieve_buffer_count()
371 if (sp->buffer_total_count < sp->buffer_target_count) { in pvr2_stream_achieve_buffer_count()
376 while ((sp->buffer_total_count - cnt) > sp->buffer_target_count) { in pvr2_stream_achieve_buffer_count()
377 bp = sp->buffers[sp->buffer_total_count - (cnt + 1)]; in pvr2_stream_achieve_buffer_count()
382 pvr2_stream_buffer_count(sp, sp->buffer_total_count - cnt); in pvr2_stream_achieve_buffer_count()
403 if (sp->buffer_total_count != sp->buffer_target_count) { in pvr2_stream_internal_flush()
574 if (id >= sp->buffer_total_count) return NULL; in pvr2_stream_get_buffer()
592 if (sp->buffer_total_count != sp->buffer_target_count) { in pvr2_stream_kill()