Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/staging/iio/
Dring_sw.c160 u8 *initial_read_p, *initial_write_p, *current_read_p, *end_read_p; in iio_rip_sw_rb() local
186 initial_read_p = ring->read_p; in iio_rip_sw_rb()
187 if (unlikely(initial_read_p == NULL)) { /* No data here as yet */ in iio_rip_sw_rb()
195 while ((initial_read_p != ring->read_p) in iio_rip_sw_rb()
197 initial_read_p = ring->read_p; in iio_rip_sw_rb()
200 if (initial_write_p == initial_read_p) { in iio_rip_sw_rb()
206 if (initial_write_p >= initial_read_p + bytes_to_rip) { in iio_rip_sw_rb()
209 memcpy(data, initial_read_p, max_copied); in iio_rip_sw_rb()
210 end_read_p = initial_read_p + max_copied; in iio_rip_sw_rb()
211 } else if (initial_write_p > initial_read_p) { in iio_rip_sw_rb()
[all …]