Home
last modified time | relevance | path

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

/linux-5.19.10/tools/io_uring/
Dio_uring-bench.c290 int to_wait, to_submit, this_reap, to_prep; in submitter_fn() local
301 to_wait = 0; in submitter_fn()
303 to_wait = min(s->inflight + to_submit, BATCH_COMPLETE); in submitter_fn()
312 if (to_wait) in submitter_fn()
316 ret = io_uring_enter(s->ring_fd, to_submit, to_wait, in submitter_fn()
335 } while (sq_thread_poll && this_reap < to_wait); in submitter_fn()
/linux-5.19.10/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()