Lines Matching defs:bytes_consumed
368 buf->bytes_consumed = 0;
942 size_t bytes_consumed)
949 buf->offset == buf->bytes_consumed)
952 if (buf->bytes_consumed + bytes_consumed > subbuf_size) {
954 buf->bytes_consumed = 0;
957 buf->bytes_consumed += bytes_consumed;
962 if (buf->bytes_consumed + buf->padding[read_subbuf] == subbuf_size) {
967 buf->bytes_consumed = 0;
994 buf->bytes_consumed = 0;
998 consumed = (consumed % n_subbufs) * subbuf_size + buf->bytes_consumed;
1058 read_pos = consumed * subbuf_size + buf->bytes_consumed;
1182 static void relay_consume_bytes(struct rchan_buf *rbuf, int bytes_consumed)
1184 rbuf->bytes_consumed += bytes_consumed;
1186 if (rbuf->bytes_consumed >= rbuf->chan->subbuf_size) {
1188 rbuf->bytes_consumed %= rbuf->chan->subbuf_size;