dsc_common_caps 200 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c struct dsc_enc_caps *dsc_common_caps) dsc_common_caps 205 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c memset(dsc_common_caps, 0, sizeof(struct dsc_enc_caps)); dsc_common_caps 207 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c dsc_common_caps->dsc_version = min(dsc_sink_caps->dsc_version, dsc_enc_caps->dsc_version); dsc_common_caps 208 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c if (!dsc_common_caps->dsc_version) dsc_common_caps 211 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c dsc_common_caps->slice_caps.bits.NUM_SLICES_1 = dsc_sink_caps->slice_caps1.bits.NUM_SLICES_1 && dsc_enc_caps->slice_caps.bits.NUM_SLICES_1; dsc_common_caps 212 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c dsc_common_caps->slice_caps.bits.NUM_SLICES_2 = dsc_sink_caps->slice_caps1.bits.NUM_SLICES_2 && dsc_enc_caps->slice_caps.bits.NUM_SLICES_2; dsc_common_caps 213 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c dsc_common_caps->slice_caps.bits.NUM_SLICES_4 = dsc_sink_caps->slice_caps1.bits.NUM_SLICES_4 && dsc_enc_caps->slice_caps.bits.NUM_SLICES_4; dsc_common_caps 214 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c dsc_common_caps->slice_caps.bits.NUM_SLICES_8 = dsc_sink_caps->slice_caps1.bits.NUM_SLICES_8 && dsc_enc_caps->slice_caps.bits.NUM_SLICES_8; dsc_common_caps 215 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c if (!dsc_common_caps->slice_caps.raw) dsc_common_caps 218 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c dsc_common_caps->lb_bit_depth = min(dsc_sink_caps->lb_bit_depth, dsc_enc_caps->lb_bit_depth); dsc_common_caps 219 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c if (!dsc_common_caps->lb_bit_depth) dsc_common_caps 222 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c dsc_common_caps->is_block_pred_supported = dsc_sink_caps->is_block_pred_supported && dsc_enc_caps->is_block_pred_supported; dsc_common_caps 224 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c dsc_common_caps->color_formats.raw = dsc_sink_caps->color_formats.raw & dsc_enc_caps->color_formats.raw; dsc_common_caps 225 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c if (!dsc_common_caps->color_formats.raw) dsc_common_caps 228 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c dsc_common_caps->color_depth.raw = dsc_sink_caps->color_depth.raw & dsc_enc_caps->color_depth.raw; dsc_common_caps 229 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c if (!dsc_common_caps->color_depth.raw) dsc_common_caps 233 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c if (dsc_common_caps->slice_caps.bits.NUM_SLICES_1) dsc_common_caps 236 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c if (dsc_common_caps->slice_caps.bits.NUM_SLICES_2) dsc_common_caps 239 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c if (dsc_common_caps->slice_caps.bits.NUM_SLICES_4) dsc_common_caps 246 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c dsc_common_caps->max_total_throughput_mps = min(total_sink_throughput, dsc_enc_caps->max_total_throughput_mps); dsc_common_caps 248 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c dsc_common_caps->max_slice_width = min(dsc_sink_caps->max_slice_width, dsc_enc_caps->max_slice_width); dsc_common_caps 249 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c if (!dsc_common_caps->max_slice_width) dsc_common_caps 252 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c dsc_common_caps->bpp_increment_div = min(dsc_sink_caps->bpp_increment_div, dsc_enc_caps->bpp_increment_div); dsc_common_caps 256 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c dsc_common_caps->bpp_increment_div = min(dsc_common_caps->bpp_increment_div, (uint32_t)8); dsc_common_caps 324 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c const struct dsc_enc_caps *dsc_common_caps, dsc_common_caps 335 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c dsc_common_caps, timing, &range); dsc_common_caps 346 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c *target_bpp_x16 = calc_dsc_bpp_x16(target_bandwidth_kbps, timing->pix_clk_100hz, dsc_common_caps->bpp_increment_div); dsc_common_caps 517 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c struct dsc_enc_caps dsc_common_caps; dsc_common_caps 542 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c is_dsc_possible = intersect_dsc_caps(dsc_sink_caps, dsc_enc_caps, timing->pixel_encoding, &dsc_common_caps); dsc_common_caps 547 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c is_dsc_possible = decide_dsc_target_bpp_x16(&dsc_policy, &dsc_common_caps, target_bandwidth_kbps, timing, &target_bpp); dsc_common_caps 561 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c is_dsc_possible = (bool)dsc_common_caps.color_formats.bits.RGB; dsc_common_caps 566 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c is_dsc_possible = (bool)dsc_common_caps.color_formats.bits.YCBCR_444; dsc_common_caps 571 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c is_dsc_possible = (bool)dsc_common_caps.color_formats.bits.YCBCR_NATIVE_422; dsc_common_caps 575 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c is_dsc_possible = (bool)dsc_common_caps.color_formats.bits.YCBCR_SIMPLE_422; dsc_common_caps 581 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c is_dsc_possible = (bool)dsc_common_caps.color_formats.bits.YCBCR_NATIVE_420; dsc_common_caps 599 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c is_dsc_possible = (bool)dsc_common_caps.color_depth.bits.COLOR_DEPTH_8_BPC; dsc_common_caps 602 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c is_dsc_possible = (bool)dsc_common_caps.color_depth.bits.COLOR_DEPTH_10_BPC; dsc_common_caps 605 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c is_dsc_possible = (bool)dsc_common_caps.color_depth.bits.COLOR_DEPTH_12_BPC; dsc_common_caps 615 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c max_slices_h = get_max_dsc_slices(dsc_common_caps.slice_caps); dsc_common_caps 621 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c max_slices_h = dec_num_slices(dsc_common_caps.slice_caps, max_slices_h); dsc_common_caps 624 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c is_dsc_possible = (dsc_common_caps.max_slice_width > 0); dsc_common_caps 628 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c min_slices_h = pic_width / dsc_common_caps.max_slice_width; dsc_common_caps 629 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c if (pic_width % dsc_common_caps.max_slice_width) dsc_common_caps 632 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c min_slices_h = fit_num_slices_up(dsc_common_caps.slice_caps, min_slices_h); dsc_common_caps 639 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c min_slices_h = inc_num_slices(dsc_common_caps.slice_caps, min_slices_h); dsc_common_caps 677 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c is_dsc_possible = slice_width <= dsc_common_caps.max_slice_width; dsc_common_caps 700 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c dsc_cfg->block_pred_enable = dsc_common_caps.is_block_pred_supported; dsc_common_caps 701 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c dsc_cfg->linebuf_depth = dsc_common_caps.lb_bit_depth; dsc_common_caps 702 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c dsc_cfg->version_minor = (dsc_common_caps.dsc_version & 0xf0) >> 4; dsc_common_caps 814 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c struct dsc_enc_caps dsc_common_caps; dsc_common_caps 820 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c timing->pixel_encoding, &dsc_common_caps); dsc_common_caps 829 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c get_dsc_bandwidth_range(min_bpp, max_bpp, &dsc_common_caps, timing, range);