Lines Matching refs:cnt
117 unsigned int *cnt;
123 cnt = &sp->i_count;
128 cnt = &sp->q_count;
133 cnt = &sp->r_count;
141 (*cnt)--;
144 "/*---TRACE_FLOW---*/ bufferPool %8s dec cap=%07d cnt=%02d",
145 pvr2_buffer_state_decode(bp->state), *bcnt, *cnt);
185 "/*---TRACE_FLOW---*/ bufferPool %8s inc cap=%07d cnt=%02d",
210 "/*---TRACE_FLOW---*/ bufferPool %8s inc cap=%07d cnt=%02d",
234 "/*---TRACE_FLOW---*/ bufferPool %8s inc cap=%07d cnt=%02d",
281 static int pvr2_stream_buffer_count(struct pvr2_stream *sp, unsigned int cnt)
287 if (cnt == sp->buffer_total_count) return 0;
293 cnt-sp->buffer_total_count);
295 scnt = cnt & ~0x1f;
296 if (cnt > scnt) scnt += 0x20;
298 if (cnt > sp->buffer_total_count) {
312 while (sp->buffer_total_count < cnt) {
326 while (sp->buffer_total_count > cnt) {
353 unsigned int cnt;
365 cnt = 0;
366 while ((sp->buffer_total_count - cnt) > sp->buffer_target_count) {
367 bp = sp->buffers[sp->buffer_total_count - (cnt + 1)];
369 cnt++;
371 if (cnt) {
372 pvr2_stream_buffer_count(sp, sp->buffer_total_count - cnt);
425 "/*---TRACE_FLOW---*/ bufferComplete %p stat=%d cnt=%d",
534 int pvr2_stream_set_buffer_count(struct pvr2_stream *sp, unsigned int cnt)
537 if (sp->buffer_target_count == cnt) return 0;
540 sp->buffer_target_count = cnt;
630 int pvr2_buffer_set_buffer(struct pvr2_buffer *bp, void *ptr, unsigned int cnt)
645 bp->max_count = cnt;
648 "/*---TRACE_FLOW---*/ bufferPool %8s cap cap=%07d cnt=%02d",