Lines Matching defs:read_subbuf
946 size_t read_subbuf;
959 read_subbuf = buf->subbufs_consumed % n_subbufs;
961 read_subbuf = read_pos / buf->chan->subbuf_size;
962 if (buf->bytes_consumed + buf->padding[read_subbuf] == subbuf_size) {
963 if ((read_subbuf == buf->subbufs_produced % n_subbufs) &&
1022 size_t read_subbuf, read_offset, write_subbuf, write_offset;
1027 read_subbuf = read_pos / subbuf_size;
1029 padding = buf->padding[read_subbuf];
1031 if (read_subbuf == write_subbuf) {
1052 size_t read_subbuf, padding, padding_start, padding_end;
1059 read_subbuf = read_pos / subbuf_size;
1060 padding = buf->padding[read_subbuf];
1061 padding_start = (read_subbuf + 1) * subbuf_size - padding;
1062 padding_end = (read_subbuf + 1) * subbuf_size;
1064 read_subbuf = (read_subbuf + 1) % n_subbufs;
1065 read_pos = read_subbuf * subbuf_size;
1081 size_t read_subbuf, padding, end_pos;
1085 read_subbuf = read_pos / subbuf_size;
1086 padding = buf->padding[read_subbuf];
1088 end_pos = (read_subbuf + 1) * subbuf_size;
1231 size_t read_subbuf = read_start / subbuf_size;
1232 size_t padding = rbuf->padding[read_subbuf];
1233 size_t nonpad_end = read_subbuf * subbuf_size + subbuf_size - padding;