Lines Matching refs:read_pos
879 size_t read_pos, in relay_file_read_consume() argument
896 if (!read_pos) in relay_file_read_consume()
899 read_subbuf = read_pos / buf->chan->subbuf_size; in relay_file_read_consume()
956 static size_t relay_file_read_subbuf_avail(size_t read_pos, in relay_file_read_subbuf_avail() argument
965 read_subbuf = read_pos / subbuf_size; in relay_file_read_subbuf_avail()
966 read_offset = read_pos % subbuf_size; in relay_file_read_subbuf_avail()
992 size_t read_pos = (consumed * subbuf_size + buf->bytes_consumed) in relay_file_read_start_pos() local
995 read_subbuf = read_pos / subbuf_size; in relay_file_read_start_pos()
999 if (read_pos >= padding_start && read_pos < padding_end) { in relay_file_read_start_pos()
1001 read_pos = read_subbuf * subbuf_size; in relay_file_read_start_pos()
1004 return read_pos; in relay_file_read_start_pos()
1014 size_t read_pos, in relay_file_read_end_pos() argument
1021 read_subbuf = read_pos / subbuf_size; in relay_file_read_end_pos()
1023 if (read_pos % subbuf_size + count + padding == subbuf_size) in relay_file_read_end_pos()
1026 end_pos = read_pos + count; in relay_file_read_end_pos()