Lines Matching refs:consumed
917 size_t consumed; in relay_file_read_avail() local
921 consumed = buf->subbufs_consumed; in relay_file_read_avail()
924 if (produced == consumed) in relay_file_read_avail()
929 if (unlikely(produced - consumed >= n_subbufs)) { in relay_file_read_avail()
930 consumed = produced - n_subbufs + 1; in relay_file_read_avail()
931 buf->subbufs_consumed = consumed; in relay_file_read_avail()
936 consumed = (consumed % n_subbufs) * subbuf_size + buf->bytes_consumed; in relay_file_read_avail()
938 if (consumed > produced) in relay_file_read_avail()
941 if (consumed == produced) { in relay_file_read_avail()
991 size_t consumed = buf->subbufs_consumed % n_subbufs; in relay_file_read_start_pos() local
992 size_t read_pos = (consumed * subbuf_size + buf->bytes_consumed) in relay_file_read_start_pos()