Searched refs:wm_size (Results 1 – 2 of 2) sorted by relevance
168 size_t wm_size; in inv_icm42600_wm_truncate() local171 wm_size = watermark * packet_size; in inv_icm42600_wm_truncate()172 if (wm_size > INV_ICM42600_FIFO_WATERMARK_MAX) in inv_icm42600_wm_truncate()173 wm_size = INV_ICM42600_FIFO_WATERMARK_MAX; in inv_icm42600_wm_truncate()175 wm = wm_size / packet_size; in inv_icm42600_wm_truncate()204 size_t packet_size, wm_size; in inv_icm42600_buffer_update_watermark() local246 wm_size = watermark * packet_size; in inv_icm42600_buffer_update_watermark()255 raw_wm = INV_ICM42600_FIFO_WATERMARK_VAL(wm_size); in inv_icm42600_buffer_update_watermark()
773 int entries, wm_size; in intel_calculate_wm() local787 wm_size = fifo_size - entries; in intel_calculate_wm()788 DRM_DEBUG_KMS("FIFO watermark level: %d\n", wm_size); in intel_calculate_wm()791 if (wm_size > wm->max_wm) in intel_calculate_wm()792 wm_size = wm->max_wm; in intel_calculate_wm()793 if (wm_size <= 0) in intel_calculate_wm()794 wm_size = wm->default_wm; in intel_calculate_wm()803 if (wm_size <= 8) in intel_calculate_wm()804 wm_size = 8; in intel_calculate_wm()806 return wm_size; in intel_calculate_wm()