Home
last modified time | relevance | path

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

/linux-6.1.9/include/linux/
Dhyperv.h193 u32 read_loc, write_loc, dsize, read; in hv_get_bytes_to_read() local
196 read_loc = rbi->ring_buffer->read_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
210 read_loc = READ_ONCE(rbi->ring_buffer->read_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()
/linux-6.1.9/drivers/hv/
Dring_buffer.c136 u32 read_loc, write_loc, dsize; in hv_get_ringbuffer_availbytes() local
139 read_loc = READ_ONCE(rbi->ring_buffer->read_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()
/linux-6.1.9/drivers/mtd/nand/raw/
Dqcom_nandc.c1735 int ret, reg_off = FLASH_BUF_ACC, read_loc = 0; in qcom_nandc_read_cw_raw() local
1763 nandc_set_read_loc(chip, cw, 0, read_loc, data_size1, 0); in qcom_nandc_read_cw_raw()
1764 read_loc += data_size1; in qcom_nandc_read_cw_raw()
1766 nandc_set_read_loc(chip, cw, 1, read_loc, oob_size1, 0); in qcom_nandc_read_cw_raw()
1767 read_loc += oob_size1; in qcom_nandc_read_cw_raw()
1769 nandc_set_read_loc(chip, cw, 2, read_loc, data_size2, 0); in qcom_nandc_read_cw_raw()
1770 read_loc += data_size2; in qcom_nandc_read_cw_raw()
1772 nandc_set_read_loc(chip, cw, 3, read_loc, oob_size2, 1); in qcom_nandc_read_cw_raw()