/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn20/ |
D | dcn20_dpp_cm.c | 51 struct dpp *dpp_base) in dpp2_enable_cm_block() argument 53 struct dcn20_dpp *dpp = TO_DCN20_DPP(dpp_base); in dpp2_enable_cm_block() 57 if (dpp_base->ctx->dc->debug.cm_in_bypass) in dpp2_enable_cm_block() 65 struct dpp *dpp_base, in dpp2_degamma_ram_inuse() argument 70 struct dcn20_dpp *dpp = TO_DCN20_DPP(dpp_base); in dpp2_degamma_ram_inuse() 86 struct dpp *dpp_base, in dpp2_program_degamma_lut() argument 93 struct dcn20_dpp *dpp = TO_DCN20_DPP(dpp_base); in dpp2_program_degamma_lut() 117 struct dpp *dpp_base, in dpp2_set_degamma_pwl() argument 122 dpp1_power_on_degamma_lut(dpp_base, true); in dpp2_set_degamma_pwl() 123 dpp2_enable_cm_block(dpp_base); in dpp2_set_degamma_pwl() [all …]
|
D | dcn20_dpp.c | 51 void dpp20_read_state(struct dpp *dpp_base, in dpp20_read_state() argument 54 struct dcn20_dpp *dpp = TO_DCN20_DPP(dpp_base); in dpp20_read_state() 76 struct dpp *dpp_base, in dpp2_power_on_obuf() argument 79 struct dcn20_dpp *dpp = TO_DCN20_DPP(dpp_base); in dpp2_power_on_obuf() 91 struct dpp *dpp_base, in dpp2_dummy_program_input_lut() argument 96 struct dpp *dpp_base, in dpp2_cnv_setup() argument 103 struct dcn20_dpp *dpp = TO_DCN20_DPP(dpp_base); in dpp2_cnv_setup() 242 dpp2_program_input_csc(dpp_base, color_space, select, &tbl_entry); in dpp2_cnv_setup() 244 dpp2_program_input_csc(dpp_base, color_space, select, NULL); in dpp2_cnv_setup() 253 dpp2_power_on_obuf(dpp_base, true); in dpp2_cnv_setup() [all …]
|
D | dcn20_hwseq.c | 867 struct dpp *dpp_base = pipe_ctx->plane_res.dpp; in dcn20_set_blend_lut() local 877 &dpp_base->regamma_params, false); in dcn20_set_blend_lut() 878 blend_lut = &dpp_base->regamma_params; in dcn20_set_blend_lut() 881 result = dpp_base->funcs->dpp_program_blnd_lut(dpp_base, blend_lut); in dcn20_set_blend_lut() 889 struct dpp *dpp_base = pipe_ctx->plane_res.dpp; in dcn20_set_shaper_3dlut() local 899 &dpp_base->shaper_params, true); in dcn20_set_shaper_3dlut() 900 shaper_lut = &dpp_base->shaper_params; in dcn20_set_shaper_3dlut() 904 result = dpp_base->funcs->dpp_program_shaper_lut(dpp_base, shaper_lut); in dcn20_set_shaper_3dlut() 907 result = dpp_base->funcs->dpp_program_3dlut(dpp_base, in dcn20_set_shaper_3dlut() 910 result = dpp_base->funcs->dpp_program_3dlut(dpp_base, NULL); in dcn20_set_shaper_3dlut() [all …]
|
D | dcn20_dpp.h | 709 void dpp20_read_state(struct dpp *dpp_base, 713 struct dpp *dpp_base, 717 struct dpp *dpp_base, 721 struct dpp *dpp_base, 725 struct dpp *dpp_base, 731 struct dpp *dpp_base, const struct pwl_params *params); 734 struct dpp *dpp_base, 738 struct dpp *dpp_base, 742 struct dpp *dpp_base, 752 struct dpp *dpp_base, [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn30/ |
D | dcn30_dpp.c | 44 void dpp30_read_state(struct dpp *dpp_base, struct dcn_dpp_state *s) in dpp30_read_state() argument 46 struct dcn3_dpp *dpp = TO_DCN30_DPP(dpp_base); in dpp30_read_state() 55 struct dpp *dpp_base, in dpp3_program_post_csc() argument 60 struct dcn3_dpp *dpp = TO_DCN30_DPP(dpp_base); in dpp3_program_post_csc() 128 void dpp3_set_pre_degam(struct dpp *dpp_base, enum dc_transfer_func_predefined tr) in dpp3_set_pre_degam() argument 130 struct dcn3_dpp *dpp = TO_DCN30_DPP(dpp_base); in dpp3_set_pre_degam() 171 struct dpp *dpp_base, in dpp3_cnv_setup() argument 178 struct dcn3_dpp *dpp = TO_DCN30_DPP(dpp_base); in dpp3_cnv_setup() 335 dpp3_program_post_csc(dpp_base, color_space, select, in dpp3_cnv_setup() 338 dpp3_program_post_csc(dpp_base, color_space, select, NULL); in dpp3_cnv_setup() [all …]
|
D | dcn30_dpp_cm.c | 44 struct dpp *dpp_base) in dpp3_enable_cm_block() argument 46 struct dcn3_dpp *dpp = TO_DCN30_DPP(dpp_base); in dpp3_enable_cm_block() 51 if (dpp_base->ctx->dc->debug.cm_in_bypass) in dpp3_enable_cm_block() 57 static enum dc_lut_mode dpp30_get_gamcor_current(struct dpp *dpp_base) in dpp30_get_gamcor_current() argument 62 struct dcn3_dpp *dpp = TO_DCN30_DPP(dpp_base); in dpp30_get_gamcor_current() 81 struct dpp *dpp_base, in dpp3_program_gammcor_lut() argument 87 struct dcn3_dpp *dpp = TO_DCN30_DPP(dpp_base); in dpp3_program_gammcor_lut() 130 struct dpp *dpp_base, in dpp3_power_on_gamcor_lut() argument 133 struct dcn3_dpp *dpp = TO_DCN30_DPP(dpp_base); in dpp3_power_on_gamcor_lut() 135 if (dpp_base->ctx->dc->debug.enable_mem_low_power.bits.cm) { in dpp3_power_on_gamcor_lut() [all …]
|
D | dcn30_hwseq.c | 76 struct dpp *dpp_base = pipe_ctx->plane_res.dpp; in dcn30_set_blend_lut() local 85 plane_state->blend_tf, &dpp_base->regamma_params, false); in dcn30_set_blend_lut() 86 blend_lut = &dpp_base->regamma_params; in dcn30_set_blend_lut() 89 result = dpp_base->funcs->dpp_program_blnd_lut(dpp_base, blend_lut); in dcn30_set_blend_lut() 97 struct dpp *dpp_base = pipe_ctx->plane_res.dpp; in dcn30_set_mpc_shaper_3dlut() local 112 &dpp_base->shaper_params, true); in dcn30_set_mpc_shaper_3dlut() 113 shaper_lut = &dpp_base->shaper_params; in dcn30_set_mpc_shaper_3dlut() 151 struct dpp *dpp_base = pipe_ctx->plane_res.dpp; in dcn30_set_input_transfer_func() local 156 if (dpp_base == NULL || plane_state == NULL) in dcn30_set_input_transfer_func() 165 dpp_base->funcs->dpp_set_pre_degam(dpp_base, tf); in dcn30_set_input_transfer_func() [all …]
|
D | dcn30_dpp.h | 585 struct dpp *dpp_base, const struct pwl_params *params); 588 struct dpp *dpp_base, 591 void dpp30_read_state(struct dpp *dpp_base, 600 struct dpp *dpp_base, 608 struct dpp *dpp_base, 612 struct dpp *dpp_base, 616 struct dpp *dpp_base, 619 void dpp3_set_pre_degam(struct dpp *dpp_base, 623 struct dpp *dpp_base, 627 struct dpp *dpp_base, [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_dpp_cm.c | 161 struct dpp *dpp_base, in dpp1_cm_set_gamut_remap() argument 164 struct dcn10_dpp *dpp = TO_DCN10_DPP(dpp_base); in dpp1_cm_set_gamut_remap() 240 struct dpp *dpp_base, in dpp1_cm_set_output_csc_default() argument 243 struct dcn10_dpp *dpp = TO_DCN10_DPP(dpp_base); in dpp1_cm_set_output_csc_default() 310 struct dpp *dpp_base, in dpp1_cm_set_output_csc_adjustment() argument 313 struct dcn10_dpp *dpp = TO_DCN10_DPP(dpp_base); in dpp1_cm_set_output_csc_adjustment() 318 void dpp1_cm_power_on_regamma_lut(struct dpp *dpp_base, in dpp1_cm_power_on_regamma_lut() argument 321 struct dcn10_dpp *dpp = TO_DCN10_DPP(dpp_base); in dpp1_cm_power_on_regamma_lut() 328 void dpp1_cm_program_regamma_lut(struct dpp *dpp_base, in dpp1_cm_program_regamma_lut() argument 333 struct dcn10_dpp *dpp = TO_DCN10_DPP(dpp_base); in dpp1_cm_program_regamma_lut() [all …]
|
D | dcn10_dpp.c | 94 void dpp_read_state(struct dpp *dpp_base, in dpp_read_state() argument 97 struct dcn10_dpp *dpp = TO_DCN10_DPP(dpp_base); in dpp_read_state() 188 void dpp_reset(struct dpp *dpp_base) in dpp_reset() argument 190 struct dcn10_dpp *dpp = TO_DCN10_DPP(dpp_base); in dpp_reset() 204 struct dpp *dpp_base, const struct pwl_params *params, enum opp_regamma mode) in dpp1_cm_set_regamma_pwl() argument 206 struct dcn10_dpp *dpp = TO_DCN10_DPP(dpp_base); in dpp1_cm_set_regamma_pwl() 224 dpp1_cm_power_on_regamma_lut(dpp_base, true); in dpp1_cm_set_regamma_pwl() 225 dpp1_cm_configure_regamma_lut(dpp_base, dpp->is_write_to_ram_a_safe); in dpp1_cm_set_regamma_pwl() 228 dpp1_cm_program_regamma_luta_settings(dpp_base, params); in dpp1_cm_set_regamma_pwl() 230 dpp1_cm_program_regamma_lutb_settings(dpp_base, params); in dpp1_cm_set_regamma_pwl() [all …]
|
D | dcn10_dpp_dscl.c | 127 struct dpp *dpp_base, in dpp1_dscl_get_dscl_mode() argument 133 if (dpp_base->caps->dscl_data_proc_format == DSCL_DATA_PRCESSING_FIXED_FORMAT) { in dpp1_dscl_get_dscl_mode() 161 struct dpp *dpp_base, in dpp1_power_on_dscl() argument 164 struct dcn10_dpp *dpp = TO_DCN10_DPP(dpp_base); in dpp1_power_on_dscl() 630 void dpp1_dscl_set_scaler_manual_scale(struct dpp *dpp_base, in dpp1_dscl_set_scaler_manual_scale() argument 634 struct dcn10_dpp *dpp = TO_DCN10_DPP(dpp_base); in dpp1_dscl_set_scaler_manual_scale() 636 dpp_base, scl_data, dpp_base->ctx->dc->debug.always_scale); in dpp1_dscl_set_scaler_manual_scale() 647 if (dpp_base->ctx->dc->debug.enable_mem_low_power.bits.dscl) { in dpp1_dscl_set_scaler_manual_scale() 649 dpp1_power_on_dscl(dpp_base, true); in dpp1_dscl_set_scaler_manual_scale() 672 if (dpp_base->ctx->dc->debug.enable_mem_low_power.bits.dscl) in dpp1_dscl_set_scaler_manual_scale() [all …]
|
D | dcn10_dpp.h | 1378 struct dpp *dpp_base, 1382 struct dpp *dpp_base, 1389 struct dpp *dpp_base, 1404 struct dpp *dpp_base, 1408 struct dpp *dpp_base, 1412 struct dpp *dpp_base, 1416 struct dpp *dpp_base, 1422 struct dpp *dpp_base, 1426 struct dpp *dpp_base, 1432 struct dpp *dpp_base, [all …]
|
D | dcn10_hw_sequencer.c | 1764 struct dpp *dpp_base = pipe_ctx->plane_res.dpp; in dcn10_set_input_transfer_func() local 1768 if (dpp_base == NULL) in dcn10_set_input_transfer_func() 1775 !dpp_base->ctx->dc->debug.always_use_regamma in dcn10_set_input_transfer_func() 1778 dpp_base->funcs->dpp_program_input_lut(dpp_base, plane_state->gamma_correction); in dcn10_set_input_transfer_func() 1781 dpp_base->funcs->dpp_set_degamma(dpp_base, IPP_DEGAMMA_MODE_BYPASS); in dcn10_set_input_transfer_func() 1785 dpp_base->funcs->dpp_set_degamma(dpp_base, IPP_DEGAMMA_MODE_HW_sRGB); in dcn10_set_input_transfer_func() 1788 dpp_base->funcs->dpp_set_degamma(dpp_base, IPP_DEGAMMA_MODE_HW_xvYCC); in dcn10_set_input_transfer_func() 1791 dpp_base->funcs->dpp_set_degamma(dpp_base, IPP_DEGAMMA_MODE_BYPASS); in dcn10_set_input_transfer_func() 1794 dpp_base->funcs->dpp_set_degamma(dpp_base, IPP_DEGAMMA_MODE_USER_PWL); in dcn10_set_input_transfer_func() 1795 cm_helper_translate_curve_to_degamma_hw_format(tf, &dpp_base->degamma_params); in dcn10_set_input_transfer_func() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | dpp.h | 147 struct dpp *dpp_base, const struct pwl_params *params); 149 void (*dpp_set_pre_degam)(struct dpp *dpp_base, 152 void (*dpp_program_cm_dealpha)(struct dpp *dpp_base, 156 struct dpp *dpp_base, 219 struct dpp *dpp_base, 223 struct dpp *dpp_base, 226 void (*dpp_program_degamma_pwl)(struct dpp *dpp_base, 230 struct dpp *dpp_base, 237 void (*dpp_full_bypass)(struct dpp *dpp_base); 240 struct dpp *dpp_base, [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn201/ |
D | dcn201_dpp.c | 45 struct dpp *dpp_base, in dpp201_cnv_setup() argument 52 struct dcn201_dpp *dpp = TO_DCN201_DPP(dpp_base); in dpp201_cnv_setup() 170 dpp1_program_input_csc(dpp_base, color_space, select, NULL); in dpp201_cnv_setup() 178 dpp2_power_on_obuf(dpp_base, true); in dpp201_cnv_setup()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn32/ |
D | dcn32_hwseq.c | 519 struct dpp *dpp_base = pipe_ctx->plane_res.dpp; in dcn32_set_mpc_shaper_3dlut() local 532 &dpp_base->shaper_params, true); in dcn32_set_mpc_shaper_3dlut() 533 shaper_lut = &dpp_base->shaper_params; in dcn32_set_mpc_shaper_3dlut() 555 struct dpp *dpp_base = pipe_ctx->plane_res.dpp; in dcn32_set_mcm_luts() local 568 &dpp_base->regamma_params, false); in dcn32_set_mcm_luts() 569 lut_params = &dpp_base->regamma_params; in dcn32_set_mcm_luts() 583 &dpp_base->shaper_params, true); in dcn32_set_mcm_luts() 584 lut_params = &dpp_base->shaper_params; in dcn32_set_mcm_luts() 605 struct dpp *dpp_base = pipe_ctx->plane_res.dpp; in dcn32_set_input_transfer_func() local 620 dpp_base->funcs->dpp_set_pre_degam(dpp_base, tf); in dcn32_set_input_transfer_func() [all …]
|