| /OK3568_Linux_fs/u-boot/drivers/video/drm/ |
| H A D | drm_dsc.c | 64 const struct drm_dsc_config *dsc_cfg) in drm_dsc_pps_payload_pack() argument 76 dsc_cfg->dsc_version_minor | in drm_dsc_pps_payload_pack() 77 dsc_cfg->dsc_version_major << DSC_PPS_VERSION_MAJOR_SHIFT; in drm_dsc_pps_payload_pack() 83 dsc_cfg->line_buf_depth | in drm_dsc_pps_payload_pack() 84 dsc_cfg->bits_per_component << DSC_PPS_BPC_SHIFT; in drm_dsc_pps_payload_pack() 88 ((dsc_cfg->bits_per_pixel & DSC_PPS_BPP_HIGH_MASK) >> in drm_dsc_pps_payload_pack() 90 dsc_cfg->vbr_enable << DSC_PPS_VBR_EN_SHIFT | in drm_dsc_pps_payload_pack() 91 dsc_cfg->simple_422 << DSC_PPS_SIMPLE422_SHIFT | in drm_dsc_pps_payload_pack() 92 dsc_cfg->convert_rgb << DSC_PPS_CONVERT_RGB_SHIFT | in drm_dsc_pps_payload_pack() 93 dsc_cfg->block_pred_enable << DSC_PPS_BLOCK_PRED_EN_SHIFT; in drm_dsc_pps_payload_pack() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/ |
| H A D | drm_dsc.c | 70 const struct drm_dsc_config *dsc_cfg) in drm_dsc_pps_payload_pack() argument 82 dsc_cfg->dsc_version_minor | in drm_dsc_pps_payload_pack() 83 dsc_cfg->dsc_version_major << DSC_PPS_VERSION_MAJOR_SHIFT; in drm_dsc_pps_payload_pack() 89 dsc_cfg->line_buf_depth | in drm_dsc_pps_payload_pack() 90 dsc_cfg->bits_per_component << DSC_PPS_BPC_SHIFT; in drm_dsc_pps_payload_pack() 94 ((dsc_cfg->bits_per_pixel & DSC_PPS_BPP_HIGH_MASK) >> in drm_dsc_pps_payload_pack() 96 dsc_cfg->vbr_enable << DSC_PPS_VBR_EN_SHIFT | in drm_dsc_pps_payload_pack() 97 dsc_cfg->simple_422 << DSC_PPS_SIMPLE422_SHIFT | in drm_dsc_pps_payload_pack() 98 dsc_cfg->convert_rgb << DSC_PPS_CONVERT_RGB_SHIFT | in drm_dsc_pps_payload_pack() 99 dsc_cfg->block_pred_enable << DSC_PPS_BLOCK_PRED_EN_SHIFT; in drm_dsc_pps_payload_pack() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dsc/ |
| H A D | rc_calc_dpi.c | 72 static void copy_rc_to_cfg(struct drm_dsc_config *dsc_cfg, const struct rc_params *rc) in copy_rc_to_cfg() argument 76 dsc_cfg->rc_quant_incr_limit0 = rc->rc_quant_incr_limit0; in copy_rc_to_cfg() 77 dsc_cfg->rc_quant_incr_limit1 = rc->rc_quant_incr_limit1; in copy_rc_to_cfg() 78 dsc_cfg->initial_offset = rc->initial_fullness_offset; in copy_rc_to_cfg() 79 dsc_cfg->initial_xmit_delay = rc->initial_xmit_delay; in copy_rc_to_cfg() 80 dsc_cfg->first_line_bpg_offset = rc->first_line_bpg_offset; in copy_rc_to_cfg() 81 dsc_cfg->second_line_bpg_offset = rc->second_line_bpg_offset; in copy_rc_to_cfg() 82 dsc_cfg->flatness_min_qp = rc->flatness_min_qp; in copy_rc_to_cfg() 83 dsc_cfg->flatness_max_qp = rc->flatness_max_qp; in copy_rc_to_cfg() 85 dsc_cfg->rc_range_params[i].range_min_qp = rc->qp_min[i]; in copy_rc_to_cfg() [all …]
|
| H A D | dc_dsc.c | 47 kbps = (timing->pix_clk_100hz * timing->dsc_cfg.bits_per_pixel); in dc_dsc_bandwidth_in_kbps_from_timing() 548 struct dc_dsc_config *dsc_cfg) in setup_dsc_config() argument 564 memset(dsc_cfg, 0, sizeof(struct dc_dsc_config)); in setup_dsc_config() 588 dsc_cfg->bits_per_pixel = target_bpp; in setup_dsc_config() 598 dsc_cfg->ycbcr422_simple = false; in setup_dsc_config() 616 dsc_cfg->ycbcr422_simple = is_dsc_possible; in setup_dsc_config() 714 dsc_cfg->num_slices_h = num_slices_h; in setup_dsc_config() 738 dsc_cfg->num_slices_v = pic_height/slice_height; in setup_dsc_config() 743 dsc_cfg->block_pred_enable = dsc_common_caps.is_block_pred_supported; in setup_dsc_config() 744 dsc_cfg->linebuf_depth = dsc_common_caps.lb_bit_depth; in setup_dsc_config() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn20/ |
| H A D | dcn20_dsc.c | 31 static bool dsc_prepare_config(const struct dsc_config *dsc_cfg, struct dsc_reg_values *dsc_reg_val… 42 …bool dsc2_validate_stream(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg); 43 static void dsc2_set_config(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg, 45 …cked_pps(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg, uint8_t *dsc_pac… 168 … bool dsc2_validate_stream(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg) in dsc2_validate_stream() argument 173 if (dsc_cfg->pic_width > dsc20->max_image_width) in dsc2_validate_stream() 176 return dsc_prepare_config(dsc_cfg, &dsc20->reg_vals, &dsc_optc_cfg); in dsc2_validate_stream() 191 static void dsc2_set_config(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg, in dsc2_set_config() argument 199 dsc_config_log(dsc, dsc_cfg); in dsc2_set_config() 200 is_config_ok = dsc_prepare_config(dsc_cfg, &dsc20->reg_vals, dsc_optc_cfg); in dsc2_set_config() [all …]
|
| H A D | dcn20_resource.c | 2056 pipes[pipe_cnt].dout.dsc_slices = res_ctx->pipe_ctx[i].stream->timing.dsc_cfg.num_slices_h; 2204 …pipes[pipe_cnt].dout.output_bpp = res_ctx->pipe_ctx[i].stream->timing.dsc_cfg.bits_per_pixel / 16.… 2485 struct dsc_config dsc_cfg; local 2496 dsc_cfg.pic_width = (stream->timing.h_addressable + stream->timing.h_border_left 2498 dsc_cfg.pic_height = stream->timing.v_addressable + stream->timing.v_border_top 2500 dsc_cfg.pixel_encoding = stream->timing.pixel_encoding; 2501 dsc_cfg.color_depth = stream->timing.display_color_depth; 2502 dsc_cfg.is_odm = pipe_ctx->next_odm_pipe ? true : false; 2503 dsc_cfg.dc_dsc_cfg = stream->timing.dsc_cfg; 2504 dsc_cfg.dc_dsc_cfg.num_slices_h /= opp_cnt; [all …]
|
| H A D | dcn20_stream_encoder.c | 442 && !timing->dsc_cfg.ycbcr422_simple); in is_two_pixels_per_containter()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/core/ |
| H A D | dc_link_hwss.c | 443 struct dsc_config dsc_cfg; in dp_set_dsc_on_stream() local 448 …dsc_cfg.pic_width = (stream->timing.h_addressable + stream->timing.h_border_left + stream->timing.… in dp_set_dsc_on_stream() 449 …dsc_cfg.pic_height = stream->timing.v_addressable + stream->timing.v_border_top + stream->timing.v… in dp_set_dsc_on_stream() 450 dsc_cfg.pixel_encoding = stream->timing.pixel_encoding; in dp_set_dsc_on_stream() 451 dsc_cfg.color_depth = stream->timing.display_color_depth; in dp_set_dsc_on_stream() 452 dsc_cfg.is_odm = pipe_ctx->next_odm_pipe ? true : false; in dp_set_dsc_on_stream() 453 dsc_cfg.dc_dsc_cfg = stream->timing.dsc_cfg; in dp_set_dsc_on_stream() 454 ASSERT(dsc_cfg.dc_dsc_cfg.num_slices_h % opp_cnt == 0); in dp_set_dsc_on_stream() 455 dsc_cfg.dc_dsc_cfg.num_slices_h /= opp_cnt; in dp_set_dsc_on_stream() 457 dsc->funcs->dsc_set_config(dsc, &dsc_cfg, &dsc_optc_cfg); in dp_set_dsc_on_stream() [all …]
|
| H A D | dc_stream.c | 109 memset(&stream->timing.dsc_cfg, 0, sizeof(stream->timing.dsc_cfg)); in dc_stream_construct() 110 stream->timing.dsc_cfg.num_slices_h = 0; in dc_stream_construct() 111 stream->timing.dsc_cfg.num_slices_v = 0; in dc_stream_construct() 112 stream->timing.dsc_cfg.bits_per_pixel = 128; in dc_stream_construct() 113 stream->timing.dsc_cfg.block_pred_enable = 1; in dc_stream_construct() 114 stream->timing.dsc_cfg.linebuf_depth = 9; in dc_stream_construct() 115 stream->timing.dsc_cfg.version_minor = 2; in dc_stream_construct() 116 stream->timing.dsc_cfg.ycbcr422_simple = 0; in dc_stream_construct()
|
| H A D | dc.c | 2246 struct dc_dsc_config old_dsc_cfg = stream->timing.dsc_cfg; in copy_stream_update_to_stream() 2257 stream->timing.dsc_cfg = *update->dsc_config; in copy_stream_update_to_stream() 2260 stream->timing.dsc_cfg = old_dsc_cfg; in copy_stream_update_to_stream()
|
| H A D | dc_link.c | 3429 link_bw_kbps = dc_fixpt_mul_int(link_bw_kbps, timing->dsc_cfg.bits_per_pixel); in dc_bandwidth_in_kbps_from_timing()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/inc/hw/ |
| H A D | dsc.h | 96 …ol (*dsc_validate_stream)(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg); 97 void (*dsc_set_config)(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg, 99 bool (*dsc_get_packed_pps)(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg,
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_mst_types.c | 512 memset(¶ms[i].timing->dsc_cfg, 0, sizeof(params[i].timing->dsc_cfg)); in set_dsc_configs_from_fairness_vars() 519 ¶ms[i].timing->dsc_cfg)) { in set_dsc_configs_from_fairness_vars() 523 params[i].timing->dsc_cfg.bits_per_pixel = params[i].bpp_overwrite; in set_dsc_configs_from_fairness_vars() 525 params[i].timing->dsc_cfg.bits_per_pixel = vars[i].bpp_x16; in set_dsc_configs_from_fairness_vars() 528 params[i].timing->dsc_cfg.num_slices_h = params[i].num_slices_h; in set_dsc_configs_from_fairness_vars() 531 params[i].timing->dsc_cfg.num_slices_v = params[i].num_slices_v; in set_dsc_configs_from_fairness_vars()
|
| H A D | amdgpu_dm.c | 4852 &stream->timing.dsc_cfg)) in create_stream_for_sink() 4859 stream->timing.dsc_cfg.num_slices_h = aconnector->dsc_settings.dsc_num_slices_h; in create_stream_for_sink() 4862 stream->timing.dsc_cfg.num_slices_v = aconnector->dsc_settings.dsc_num_slices_v; in create_stream_for_sink() 4865 stream->timing.dsc_cfg.bits_per_pixel = aconnector->dsc_settings.dsc_bits_per_pixel; in create_stream_for_sink() 5816 bpp = stream->timing.dsc_cfg.bits_per_pixel; in dm_update_mst_vcpi_slots_for_dsc()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/ |
| H A D | dc_dsc.h | 77 struct dc_dsc_config *dsc_cfg);
|
| H A D | dc_hw_types.h | 783 struct dc_dsc_config dsc_cfg; member
|
| /OK3568_Linux_fs/u-boot/include/drm/ |
| H A D | drm_dsc.h | 607 const struct drm_dsc_config *dsc_cfg);
|
| /OK3568_Linux_fs/kernel/include/drm/ |
| H A D | drm_dsc.h | 606 const struct drm_dsc_config *dsc_cfg);
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn10/ |
| H A D | dcn10_optc.c | 1572 && !timing->dsc_cfg.ycbcr422_simple); in optc1_is_two_pixels_per_containter()
|