Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/hv/
Dring_buffer.c136 u32 read_loc, write_loc, dsize; in hv_get_ringbuffer_availbytes() local
140 write_loc = READ_ONCE(rbi->ring_buffer->write_index); in hv_get_ringbuffer_availbytes()
143 *write = write_loc >= read_loc ? dsize - (write_loc - read_loc) : in hv_get_ringbuffer_availbytes()
144 read_loc - write_loc; in hv_get_ringbuffer_availbytes()
441 u32 write_loc; in hv_pkt_iter_avail() local
450 write_loc = virt_load_acquire(&rbi->ring_buffer->write_index); in hv_pkt_iter_avail()
452 if (write_loc >= priv_read_loc) in hv_pkt_iter_avail()
453 return write_loc - priv_read_loc; in hv_pkt_iter_avail()
455 return (rbi->ring_datasize - priv_read_loc) + write_loc; in hv_pkt_iter_avail()
/linux-6.6.21/include/linux/
Dhyperv.h193 u32 read_loc, write_loc, dsize, read; in hv_get_bytes_to_read() local
197 write_loc = READ_ONCE(rbi->ring_buffer->write_index); in hv_get_bytes_to_read()
199 read = write_loc >= read_loc ? (write_loc - read_loc) : in hv_get_bytes_to_read()
200 (dsize - read_loc) + write_loc; in hv_get_bytes_to_read()
207 u32 read_loc, write_loc, dsize, write; in hv_get_bytes_to_write() local
211 write_loc = rbi->ring_buffer->write_index; in hv_get_bytes_to_write()
213 write = write_loc >= read_loc ? dsize - (write_loc - read_loc) : in hv_get_bytes_to_write()
214 read_loc - write_loc; in hv_get_bytes_to_write()