Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/gpu/drm/i915/
Dintel_breadcrumbs.c344 static inline struct intel_wait *to_wait(struct rb_node *node) in to_wait() function
379 b->irq_wait = to_wait(next); in __intel_breadcrumbs_next()
387 wake_up_process(to_wait(next)->tsk); in __intel_breadcrumbs_next()
431 if (wait->seqno == to_wait(parent)->seqno) { in __intel_engine_add_wait()
437 if (wait->tsk->prio > to_wait(parent)->tsk->prio) { in __intel_engine_add_wait()
444 to_wait(parent)->seqno)) { in __intel_engine_add_wait()
446 if (i915_seqno_passed(seqno, to_wait(parent)->seqno)) in __intel_engine_add_wait()
485 struct intel_wait *crumb = to_wait(completed); in __intel_engine_add_wait()
517 return rb && to_wait(rb)->tsk->prio <= priority; in chain_wakeup()
565 while (i915_seqno_passed(seqno, to_wait(next)->seqno)) { in __intel_engine_remove_wait()
[all …]
/Linux-v4.19/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()
113 size_t to_wait; in iio_buffer_read_first_n_outer() local
132 to_wait = 0; in iio_buffer_read_first_n_outer()
134 to_wait = min_t(size_t, n / datum_size, rb->watermark); in iio_buffer_read_first_n_outer()
143 if (!iio_buffer_ready(indio_dev, rb, to_wait, n / datum_size)) { in iio_buffer_read_first_n_outer()