Searched refs:read_loc (Results 1 – 1 of 1) sorted by relevance
149 u32 read_loc, write_loc, dsize, read; in hv_get_bytes_to_read() local152 read_loc = rbi->ring_buffer->read_index; in hv_get_bytes_to_read()155 read = write_loc >= read_loc ? (write_loc - read_loc) : in hv_get_bytes_to_read()156 (dsize - read_loc) + write_loc; in hv_get_bytes_to_read()163 u32 read_loc, write_loc, dsize, write; in hv_get_bytes_to_write() local166 read_loc = READ_ONCE(rbi->ring_buffer->read_index); in hv_get_bytes_to_write()169 write = write_loc >= read_loc ? dsize - (write_loc - read_loc) : in hv_get_bytes_to_write()170 read_loc - write_loc; in hv_get_bytes_to_write()