Lines Matching refs:watermark
138 to_wait = min_t(size_t, n / datum_size, rb->watermark); in iio_buffer_read()
249 if (iio_buffer_ready(indio_dev, rb, rb->watermark, 0)) in iio_buffer_poll()
334 if (!buffer->watermark) in iio_buffer_init()
335 buffer->watermark = 1; in iio_buffer_init()
667 if (buffer->length && buffer->length < buffer->watermark) in iio_buffer_write_length()
668 buffer->watermark = buffer->length; in iio_buffer_write_length()
816 unsigned int watermark; member
842 config->watermark = ~0; in iio_verify_update()
858 config->watermark = min(config->watermark, buffer->watermark); in iio_verify_update()
863 config->watermark = min(config->watermark, in iio_verify_update()
864 insert_buffer->watermark); in iio_verify_update()
1096 config->watermark); in iio_enable_buffers()
1331 return sysfs_emit(buf, "%u\n", buffer->watermark); in iio_buffer_show_watermark()
1362 buffer->watermark = val; in iio_buffer_store_watermark()
1400 static DEVICE_ATTR(watermark, S_IRUGO | S_IWUSR,
1402 static struct device_attribute dev_attr_watermark_ro = __ATTR(watermark,