Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/hv/
Dring_buffer.c143 u32 read_loc, write_loc, dsize; in hv_get_ringbuffer_availbytes() local
147 write_loc = READ_ONCE(rbi->ring_buffer->write_index); in hv_get_ringbuffer_availbytes()
150 *write = write_loc >= read_loc ? dsize - (write_loc - read_loc) : in hv_get_ringbuffer_availbytes()
151 read_loc - write_loc; in hv_get_ringbuffer_availbytes()
381 u32 write_loc = READ_ONCE(rbi->ring_buffer->write_index); in hv_pkt_iter_avail() local
383 if (write_loc >= priv_read_loc) in hv_pkt_iter_avail()
384 return write_loc - priv_read_loc; in hv_pkt_iter_avail()
386 return (rbi->ring_datasize - priv_read_loc) + write_loc; in hv_pkt_iter_avail()
/kernel/linux/linux-5.10/include/linux/
Dhyperv.h189 u32 read_loc, write_loc, dsize, read; in hv_get_bytes_to_read() local
193 write_loc = READ_ONCE(rbi->ring_buffer->write_index); in hv_get_bytes_to_read()
195 read = write_loc >= read_loc ? (write_loc - read_loc) : in hv_get_bytes_to_read()
196 (dsize - read_loc) + write_loc; in hv_get_bytes_to_read()
203 u32 read_loc, write_loc, dsize, write; in hv_get_bytes_to_write() local
207 write_loc = rbi->ring_buffer->write_index; in hv_get_bytes_to_write()
209 write = write_loc >= read_loc ? dsize - (write_loc - read_loc) : in hv_get_bytes_to_write()
210 read_loc - write_loc; in hv_get_bytes_to_write()