Home
last modified time | relevance | path

Searched refs:write_loc (Results 1 – 1 of 1) sorted by relevance

/include/linux/
Dhyperv.h213 u32 read_loc, write_loc, dsize, read; in hv_get_bytes_to_read() local
217 write_loc = READ_ONCE(rbi->ring_buffer->write_index); in hv_get_bytes_to_read()
219 read = write_loc >= read_loc ? (write_loc - read_loc) : in hv_get_bytes_to_read()
220 (dsize - read_loc) + write_loc; in hv_get_bytes_to_read()
227 u32 read_loc, write_loc, dsize, write; in hv_get_bytes_to_write() local
231 write_loc = rbi->ring_buffer->write_index; in hv_get_bytes_to_write()
233 write = write_loc >= read_loc ? dsize - (write_loc - read_loc) : in hv_get_bytes_to_write()
234 read_loc - write_loc; in hv_get_bytes_to_write()