Lines Matching refs:watermark
135 to_wait = min_t(size_t, n / datum_size, rb->watermark); in iio_buffer_read()
184 if (iio_buffer_ready(indio_dev, rb, rb->watermark, 0)) in iio_buffer_poll()
240 if (!buffer->watermark) in iio_buffer_init()
241 buffer->watermark = 1; in iio_buffer_init()
573 if (buffer->length && buffer->length < buffer->watermark) in iio_buffer_write_length()
574 buffer->watermark = buffer->length; in iio_buffer_write_length()
722 unsigned int watermark; member
748 config->watermark = ~0; in iio_verify_update()
764 config->watermark = min(config->watermark, buffer->watermark); in iio_verify_update()
769 config->watermark = min(config->watermark, in iio_verify_update()
770 insert_buffer->watermark); in iio_verify_update()
1002 config->watermark); in iio_enable_buffers()
1233 return sysfs_emit(buf, "%u\n", buffer->watermark); in iio_buffer_show_watermark()
1264 buffer->watermark = val; in iio_buffer_store_watermark()
1286 static DEVICE_ATTR(watermark, S_IRUGO | S_IWUSR,
1288 static struct device_attribute dev_attr_watermark_ro = __ATTR(watermark,