Lines Matching refs:watermark
165 static unsigned int inv_icm42600_wm_truncate(unsigned int watermark, in inv_icm42600_wm_truncate() argument
171 wm_size = watermark * packet_size; in inv_icm42600_wm_truncate()
205 unsigned int wm_gyro, wm_accel, watermark; in inv_icm42600_buffer_update_watermark() local
215 wm_gyro = inv_icm42600_wm_truncate(st->fifo.watermark.gyro, packet_size); in inv_icm42600_buffer_update_watermark()
216 wm_accel = inv_icm42600_wm_truncate(st->fifo.watermark.accel, packet_size); in inv_icm42600_buffer_update_watermark()
225 watermark = wm_accel; in inv_icm42600_buffer_update_watermark()
227 watermark = wm_gyro; in inv_icm42600_buffer_update_watermark()
240 watermark = latency / period; in inv_icm42600_buffer_update_watermark()
241 if (watermark < 1) in inv_icm42600_buffer_update_watermark()
242 watermark = 1; in inv_icm42600_buffer_update_watermark()
246 wm_size = watermark * packet_size; in inv_icm42600_buffer_update_watermark()
377 unsigned int *watermark; in inv_icm42600_buffer_postdisable() local
387 watermark = &st->fifo.watermark.gyro; in inv_icm42600_buffer_postdisable()
391 watermark = &st->fifo.watermark.accel; in inv_icm42600_buffer_postdisable()
403 *watermark = 0; in inv_icm42600_buffer_postdisable()