Lines Matching defs:count
37 pa_atomic_t *count; /* amount of data in the buffer */
43 static void *pa_ringbuffer_peek(pa_ringbuffer *r, int *count) {
44 int c = pa_atomic_load(r->count);
47 *count = r->capacity - r->readindex;
49 *count = c;
55 static bool pa_ringbuffer_drop(pa_ringbuffer *r, int count) {
56 bool b = pa_atomic_sub(r->count, count) >= r->capacity;
58 r->readindex += count;
64 static void *pa_ringbuffer_begin_write(pa_ringbuffer *r, int *count) {
65 int c = pa_atomic_load(r->count);
67 *count = PA_MIN(r->capacity - r->writeindex, r->capacity - c);
72 static void pa_ringbuffer_end_write(pa_ringbuffer *r, int count) {
73 pa_atomic_add(r->count, count);
74 r->writeindex += count;
186 pa_log("In rw loop from srbchannel, before callback, count = %d", q);
200 pa_log("In rw loop from srbchannel, after callback, count = %d", q);
253 sr->rb_read.count = &srh->read_count;
254 sr->rb_write.count = &srh->write_count;
302 sr->rb_read.count = &srh->read_count;
303 sr->rb_write.count = &srh->write_count;