Lines Matching refs:read_subbuf
884 size_t read_subbuf; in relay_file_read_consume() local
897 read_subbuf = buf->subbufs_consumed % n_subbufs; in relay_file_read_consume()
899 read_subbuf = read_pos / buf->chan->subbuf_size; in relay_file_read_consume()
900 if (buf->bytes_consumed + buf->padding[read_subbuf] == subbuf_size) { in relay_file_read_consume()
901 if ((read_subbuf == buf->subbufs_produced % n_subbufs) && in relay_file_read_consume()
960 size_t read_subbuf, read_offset, write_subbuf, write_offset; in relay_file_read_subbuf_avail() local
965 read_subbuf = read_pos / subbuf_size; in relay_file_read_subbuf_avail()
967 padding = buf->padding[read_subbuf]; in relay_file_read_subbuf_avail()
969 if (read_subbuf == write_subbuf) { in relay_file_read_subbuf_avail()
988 size_t read_subbuf, padding, padding_start, padding_end; in relay_file_read_start_pos() local
995 read_subbuf = read_pos / subbuf_size; in relay_file_read_start_pos()
996 padding = buf->padding[read_subbuf]; in relay_file_read_start_pos()
997 padding_start = (read_subbuf + 1) * subbuf_size - padding; in relay_file_read_start_pos()
998 padding_end = (read_subbuf + 1) * subbuf_size; in relay_file_read_start_pos()
1000 read_subbuf = (read_subbuf + 1) % n_subbufs; in relay_file_read_start_pos()
1001 read_pos = read_subbuf * subbuf_size; in relay_file_read_start_pos()
1017 size_t read_subbuf, padding, end_pos; in relay_file_read_end_pos() local
1021 read_subbuf = read_pos / subbuf_size; in relay_file_read_end_pos()
1022 padding = buf->padding[read_subbuf]; in relay_file_read_end_pos()
1024 end_pos = (read_subbuf + 1) * subbuf_size; in relay_file_read_end_pos()
1121 size_t read_subbuf = read_start / subbuf_size; in subbuf_splice_actor() local
1122 size_t padding = rbuf->padding[read_subbuf]; in subbuf_splice_actor()
1123 size_t nonpad_end = read_subbuf * subbuf_size + subbuf_size - padding; in subbuf_splice_actor()