Lines Matching full:watermark
172 to_wait = min_t(size_t, n / datum_size, rb->watermark); in iio_buffer_read()
286 if (iio_buffer_ready(indio_dev, rb, rb->watermark, 0)) in iio_buffer_poll()
373 if (!buffer->watermark) in iio_buffer_init()
374 buffer->watermark = 1; in iio_buffer_init()
722 if (buffer->length && buffer->length < buffer->watermark) in length_store()
723 buffer->watermark = buffer->length; in length_store()
880 unsigned int watermark; member
908 config->watermark = ~0; in iio_verify_update()
924 config->watermark = min(config->watermark, buffer->watermark); in iio_verify_update()
929 config->watermark = min(config->watermark, in iio_verify_update()
930 insert_buffer->watermark); in iio_verify_update()
1170 config->watermark); in iio_enable_buffers()
1395 return sysfs_emit(buf, "%u\n", buffer->watermark); in watermark_show()
1422 buffer->watermark = val; in watermark_store()
1454 static DEVICE_ATTR_RW(watermark);
1455 static struct device_attribute dev_attr_watermark_ro = __ATTR_RO(watermark);
1461 * the code that handles the length/length_ro & watermark/watermark_ro
2364 * We can't just test for watermark to decide if we wake the poll queue in iio_push_to_buffer()
2365 * because read may request less samples than the watermark. in iio_push_to_buffer()