Home
last modified time | relevance | path

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

/linux/drivers/iio/imu/inv_icm42600/
H A Dinv_icm42600_buffer.c169 size_t wm_size; in inv_icm42600_wm_truncate() local
172 wm_size = watermark * packet_size; in inv_icm42600_wm_truncate()
173 if (wm_size > INV_ICM42600_FIFO_WATERMARK_MAX) in inv_icm42600_wm_truncate()
174 wm_size = INV_ICM42600_FIFO_WATERMARK_MAX; in inv_icm42600_wm_truncate()
176 wm = wm_size / packet_size; in inv_icm42600_wm_truncate()
205 size_t packet_size, wm_size; in inv_icm42600_buffer_update_watermark() local
259 wm_size = watermark * packet_size; in inv_icm42600_buffer_update_watermark()
268 raw_wm = INV_ICM42600_FIFO_WATERMARK_VAL(wm_size); in inv_icm42600_buffer_update_watermark()
/linux/drivers/gpu/drm/i915/display/
H A Di9xx_wm.c563 int entries, wm_size; in intel_calculate_wm() local
577 wm_size = fifo_size - entries; in intel_calculate_wm()
578 drm_dbg_kms(&i915->drm, "FIFO watermark level: %d\n", wm_size); in intel_calculate_wm()
581 if (wm_size > wm->max_wm) in intel_calculate_wm()
582 wm_size = wm->max_wm; in intel_calculate_wm()
583 if (wm_size <= 0) in intel_calculate_wm()
584 wm_size = wm->default_wm; in intel_calculate_wm()
593 if (wm_size <= 8) in intel_calculate_wm()
594 wm_size = 8; in intel_calculate_wm()
596 return wm_size; in intel_calculate_wm()