Home
last modified time | relevance | path

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

/drivers/iio/
Dindustrialio-buffer.c56 size_t to_wait, int to_flush) in iio_buffer_ready() argument
67 to_wait = min_t(size_t, to_wait, 1); in iio_buffer_ready()
73 if (avail >= to_wait) { in iio_buffer_ready()
75 if (!to_wait && avail < to_flush) in iio_buffer_ready()
83 to_wait - avail); in iio_buffer_ready()
87 if (avail + flushed >= to_wait) in iio_buffer_ready()
114 size_t to_wait; in iio_buffer_read() local
136 to_wait = 0; in iio_buffer_read()
138 to_wait = min_t(size_t, n / datum_size, rb->watermark); in iio_buffer_read()
147 if (!iio_buffer_ready(indio_dev, rb, to_wait, n / datum_size)) { in iio_buffer_read()