Lines Matching refs:range
50 struct dc_dsc_bw_range *range);
347 struct dc_dsc_bw_range *range) in dc_dsc_compute_bandwidth_range() argument
365 config.num_slices_h, &dsc_common_caps, timing, range); in dc_dsc_compute_bandwidth_range()
524 struct dc_dsc_bw_range *range) in get_dsc_bandwidth_range() argument
527 range->stream_kbps = dc_bandwidth_in_kbps_from_timing(timing); in get_dsc_bandwidth_range()
530 range->max_kbps = dc_dsc_stream_bandwidth_in_kbps(timing, in get_dsc_bandwidth_range()
532 range->max_target_bpp_x16 = max_bpp_x16; in get_dsc_bandwidth_range()
533 if (range->max_kbps > range->stream_kbps) { in get_dsc_bandwidth_range()
535 range->max_kbps = range->stream_kbps; in get_dsc_bandwidth_range()
536 range->max_target_bpp_x16 = compute_bpp_x16_from_target_bandwidth( in get_dsc_bandwidth_range()
537 range->max_kbps, timing, num_slices_h, in get_dsc_bandwidth_range()
543 range->min_kbps = dc_dsc_stream_bandwidth_in_kbps(timing, in get_dsc_bandwidth_range()
545 range->min_target_bpp_x16 = min_bpp_x16; in get_dsc_bandwidth_range()
546 if (range->min_kbps > range->max_kbps) { in get_dsc_bandwidth_range()
548 range->min_kbps = range->max_kbps; in get_dsc_bandwidth_range()
549 range->min_target_bpp_x16 = range->max_target_bpp_x16; in get_dsc_bandwidth_range()
569 struct dc_dsc_bw_range range; in decide_dsc_target_bpp_x16() local
571 memset(&range, 0, sizeof(range)); in decide_dsc_target_bpp_x16()
574 num_slices_h, dsc_common_caps, timing, &range); in decide_dsc_target_bpp_x16()
575 if (!policy->enable_dsc_when_not_needed && target_bandwidth_kbps >= range.stream_kbps) { in decide_dsc_target_bpp_x16()
580 policy->preferred_bpp_x16 <= range.max_target_bpp_x16 && in decide_dsc_target_bpp_x16()
581 policy->preferred_bpp_x16 >= range.min_target_bpp_x16) { in decide_dsc_target_bpp_x16()
584 } else if (target_bandwidth_kbps >= range.max_kbps) { in decide_dsc_target_bpp_x16()
586 *target_bpp_x16 = range.max_target_bpp_x16; in decide_dsc_target_bpp_x16()
588 } else if (target_bandwidth_kbps >= range.min_kbps) { in decide_dsc_target_bpp_x16()