/linux-6.1.9/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | dccg.h | 66 struct dccg { struct 87 void (*update_dpp_dto)(struct dccg *dccg, argument 90 void (*get_dccg_ref_freq)(struct dccg *dccg, 93 void (*set_fifo_errdet_ovr_en)(struct dccg *dccg, 95 void (*otg_add_pixel)(struct dccg *dccg, 97 void (*otg_drop_pixel)(struct dccg *dccg, 99 void (*dccg_init)(struct dccg *dccg); 102 struct dccg *dccg, 108 struct dccg *dccg, 113 struct dccg *dccg, [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn31/ |
D | dcn31_dccg.c | 31 #define TO_DCN_DCCG(dccg)\ argument 32 container_of(dccg, struct dcn_dccg, base) 44 dccg->ctx->logger 46 void dccg31_update_dpp_dto(struct dccg *dccg, int dpp_inst, int req_dppclk) in dccg31_update_dpp_dto() argument 48 struct dcn_dccg *dccg_dcn = TO_DCN_DCCG(dccg); in dccg31_update_dpp_dto() 50 if (dccg->ref_dppclk && req_dppclk) { in dccg31_update_dpp_dto() 51 int ref_dppclk = dccg->ref_dppclk; in dccg31_update_dpp_dto() 70 if (dccg->ctx->dc->debug.root_clock_optimization.bits.dpp) { in dccg31_update_dpp_dto() 81 dccg->pipe_dppclk_khz[dpp_inst] = req_dppclk; in dccg31_update_dpp_dto() 97 static void dccg31_enable_dpstreamclk(struct dccg *dccg, int otg_inst) in dccg31_enable_dpstreamclk() argument [all …]
|
D | dcn31_dccg.h | 156 struct dccg *dccg31_create( 162 void dccg31_init(struct dccg *dccg); 165 struct dccg *dccg, 170 struct dccg *dccg, 174 struct dccg *dccg, 179 struct dccg *dccg, 183 struct dccg *dccg, 189 struct dccg *dccg, 193 struct dccg *dccg, 198 struct dccg *dccg, [all …]
|
D | dcn31_hwseq.c | 147 if (res_pool->dccg->funcs->dccg_init) in dcn31_init_hw() 148 res_pool->dccg->funcs->dccg_init(res_pool->dccg); in dcn31_init_hw() 157 if (res_pool->dccg && res_pool->hubbub) { in dcn31_init_hw() 159 (res_pool->dccg->funcs->get_dccg_ref_freq)(res_pool->dccg, in dcn31_init_hw() 312 hws->ctx->dc->res_pool->dccg->funcs->enable_dsc && in dcn31_dsc_pg_control() 314 hws->ctx->dc->res_pool->dccg->funcs->enable_dsc( in dcn31_dsc_pg_control() 315 hws->ctx->dc->res_pool->dccg, dsc_inst); in dcn31_dsc_pg_control() 355 if (hws->ctx->dc->res_pool->dccg->funcs->disable_dsc && !power_on) in dcn31_dsc_pg_control() 356 hws->ctx->dc->res_pool->dccg->funcs->disable_dsc( in dcn31_dsc_pg_control() 357 hws->ctx->dc->res_pool->dccg, dsc_inst); in dcn31_dsc_pg_control()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn20/ |
D | dcn20_dccg.c | 32 #define TO_DCN_DCCG(dccg)\ argument 33 container_of(dccg, struct dcn_dccg, base) 45 dccg->ctx->logger 47 void dccg2_update_dpp_dto(struct dccg *dccg, int dpp_inst, int req_dppclk) in dccg2_update_dpp_dto() argument 49 struct dcn_dccg *dccg_dcn = TO_DCN_DCCG(dccg); in dccg2_update_dpp_dto() 51 if (dccg->ref_dppclk && req_dppclk) { in dccg2_update_dpp_dto() 52 int ref_dppclk = dccg->ref_dppclk; in dccg2_update_dpp_dto() 74 dccg->pipe_dppclk_khz[dpp_inst] = req_dppclk; in dccg2_update_dpp_dto() 77 void dccg2_get_dccg_ref_freq(struct dccg *dccg, in dccg2_get_dccg_ref_freq() argument 81 struct dcn_dccg *dccg_dcn = TO_DCN_DCCG(dccg); in dccg2_get_dccg_ref_freq() [all …]
|
D | dcn20_dccg.h | 287 struct dccg base; 293 void dccg2_update_dpp_dto(struct dccg *dccg, int dpp_inst, int req_dppclk); 295 void dccg2_get_dccg_ref_freq(struct dccg *dccg, 299 void dccg2_set_fifo_errdet_ovr_en(struct dccg *dccg, 301 void dccg2_otg_add_pixel(struct dccg *dccg, 303 void dccg2_otg_drop_pixel(struct dccg *dccg, 307 void dccg2_init(struct dccg *dccg); 309 struct dccg *dccg2_create( 315 void dcn_dccg_destroy(struct dccg **dccg);
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn32/ |
D | dcn32_dccg.c | 30 #define TO_DCN_DCCG(dccg)\ argument 31 container_of(dccg, struct dcn_dccg, base) 43 dccg->ctx->logger 46 struct dccg *dccg, in dccg32_get_pixel_rate_div() argument 51 struct dcn_dccg *dccg_dcn = TO_DCN_DCCG(dccg); in dccg32_get_pixel_rate_div() 88 struct dccg *dccg, in dccg32_set_pixel_rate_div() argument 93 struct dcn_dccg *dccg_dcn = TO_DCN_DCCG(dccg); in dccg32_set_pixel_rate_div() 104 dccg32_get_pixel_rate_div(dccg, otg_inst, &cur_k1, &cur_k2); in dccg32_set_pixel_rate_div() 136 struct dccg *dccg, in dccg32_set_dtbclk_p_src() argument 140 struct dcn_dccg *dccg_dcn = TO_DCN_DCCG(dccg); in dccg32_set_dtbclk_p_src() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn314/ |
D | dcn314_dccg.c | 33 #define TO_DCN_DCCG(dccg)\ argument 34 container_of(dccg, struct dcn_dccg, base) 46 dccg->ctx->logger 49 struct dccg *dccg, in dccg314_get_pixel_rate_div() argument 54 struct dcn_dccg *dccg_dcn = TO_DCN_DCCG(dccg); in dccg314_get_pixel_rate_div() 91 struct dccg *dccg, in dccg314_set_pixel_rate_div() argument 96 struct dcn_dccg *dccg_dcn = TO_DCN_DCCG(dccg); in dccg314_set_pixel_rate_div() 106 dccg314_get_pixel_rate_div(dccg, otg_inst, &cur_k1, &cur_k2); in dccg314_set_pixel_rate_div() 138 struct dccg *dccg, in dccg314_set_dtbclk_p_src() argument 142 struct dcn_dccg *dccg_dcn = TO_DCN_DCCG(dccg); in dccg314_set_dtbclk_p_src() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/link/ |
D | link_hwss_hpo_dp.c | 108 struct dccg *dccg = dc->res_pool->dccg; in setup_hpo_dp_stream_encoder() local 119 dccg->funcs->set_dpstreamclk(dccg, DTBCLK0, tg->inst, stream_enc->inst); in setup_hpo_dp_stream_encoder() 120 dccg->funcs->enable_symclk32_se(dccg, stream_enc->inst, phyd32clk); in setup_hpo_dp_stream_encoder() 121 dccg->funcs->set_dtbclk_dto(dccg, &dto_params); in setup_hpo_dp_stream_encoder() 130 struct dccg *dccg = dc->res_pool->dccg; in reset_hpo_dp_stream_encoder() local 138 dccg->funcs->set_dtbclk_dto(dccg, &dto_params); in reset_hpo_dp_stream_encoder() 139 dccg->funcs->disable_symclk32_se(dccg, stream_enc->inst); in reset_hpo_dp_stream_encoder() 140 dccg->funcs->set_dpstreamclk(dccg, REFCLK, tg->inst, stream_enc->inst); in reset_hpo_dp_stream_encoder() 172 dc->res_pool->dccg->funcs->set_physymclk( in enable_hpo_dp_fpga_link_output() 173 dc->res_pool->dccg, in enable_hpo_dp_fpga_link_output() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn21/ |
D | dcn21_dccg.c | 31 #define TO_DCN_DCCG(dccg)\ argument 32 container_of(dccg, struct dcn_dccg, base) 44 dccg->ctx->logger 46 void dccg21_update_dpp_dto(struct dccg *dccg, int dpp_inst, int req_dppclk) in dccg21_update_dpp_dto() argument 48 struct dcn_dccg *dccg_dcn = TO_DCN_DCCG(dccg); in dccg21_update_dpp_dto() 50 if (dccg->ref_dppclk) { in dccg21_update_dpp_dto() 51 int ref_dppclk = dccg->ref_dppclk; in dccg21_update_dpp_dto() 96 dccg->pipe_dppclk_khz[dpp_inst] = req_dppclk; in dccg21_update_dpp_dto() 109 struct dccg *dccg21_create( in dccg21_create() 116 struct dccg *base; in dccg21_create()
|
D | dcn21_dccg.h | 29 struct dccg *dccg21_create( 35 void dccg21_update_dpp_dto(struct dccg *dccg, int dpp_inst, int req_dppclk);
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn201/ |
D | dcn201_dccg.c | 31 #define TO_DCN_DCCG(dccg)\ argument 32 container_of(dccg, struct dcn_dccg, base) 45 dccg->ctx->logger 47 static void dccg201_update_dpp_dto(struct dccg *dccg, int dpp_inst, in dccg201_update_dpp_dto() argument 62 struct dccg *dccg201_create( in dccg201_create() 69 struct dccg *base; in dccg201_create()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn30/ |
D | dcn30_dccg.c | 30 #define TO_DCN_DCCG(dccg)\ argument 31 container_of(dccg, struct dcn_dccg, base) 43 dccg->ctx->logger 55 struct dccg *dccg3_create( in dccg3_create() 62 struct dccg *base; in dccg3_create() 80 struct dccg *dccg30_create( in dccg30_create() 87 struct dccg *base; in dccg30_create()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/ |
D | clk_mgr.c | 147 … clk_mgr *dc_clk_mgr_create(struct dc_context *ctx, struct pp_smu_funcs *pp_smu, struct dccg *dccg) in dc_clk_mgr_create() argument 233 rn_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg); in dc_clk_mgr_create() 238 rn_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg); in dc_clk_mgr_create() 260 dcn3_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg); in dc_clk_mgr_create() 264 dcn3_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg); in dc_clk_mgr_create() 268 dcn3_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg); in dc_clk_mgr_create() 272 dcn201_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg); in dc_clk_mgr_create() 275 dcn20_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg); in dc_clk_mgr_create() 286 vg_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg); in dc_clk_mgr_create() 299 dcn31_clk_mgr_construct(ctx, clk_mgr, pp_smu, dccg); in dc_clk_mgr_create() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/ |
D | dcn20_clk_mgr.c | 109 clk_mgr->dccg->ref_dppclk = clk_mgr->base.clks.dppclk_khz; in dcn20_update_clocks_update_dpp_dto() 119 prev_dppclk_khz = clk_mgr->dccg->pipe_dppclk_khz[i]; in dcn20_update_clocks_update_dpp_dto() 122 clk_mgr->dccg->funcs->update_dpp_dto( in dcn20_update_clocks_update_dpp_dto() 123 clk_mgr->dccg, dpp_inst, dppclk_khz); in dcn20_update_clocks_update_dpp_dto() 155 struct dccg *dccg = clk_mgr->base.ctx->dc->res_pool->dccg; in dcn20_update_clocks_update_dentist() local 168 dccg->funcs->set_fifo_errdet_ovr_en( in dcn20_update_clocks_update_dentist() 169 dccg, in dcn20_update_clocks_update_dentist() 172 dccg->funcs->otg_drop_pixel( in dcn20_update_clocks_update_dentist() 173 dccg, in dcn20_update_clocks_update_dentist() 175 dccg->funcs->set_fifo_errdet_ovr_en( in dcn20_update_clocks_update_dentist() [all …]
|
D | dcn20_clk_mgr.h | 29 void dcn2_update_clocks(struct clk_mgr *dccg, 44 struct dccg *dccg);
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn301/ |
D | dcn301_dccg.c | 30 #define TO_DCN_DCCG(dccg)\ argument 31 container_of(dccg, struct dcn_dccg, base) 43 dccg->ctx->logger 54 struct dccg *dccg301_create( in dccg301_create() 61 struct dccg *base; in dccg301_create()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn201/ |
D | dcn201_clk_mgr.h | 32 struct dccg *dccg);
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/ |
D | dcn32_clk_mgr.h | 33 struct dccg *dccg);
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/ |
D | dcn315_clk_mgr.h | 45 struct dccg *dccg);
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/ |
D | dcn316_clk_mgr.h | 45 struct dccg *dccg);
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/ |
D | rn_clk_mgr.h | 47 struct dccg *dccg);
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn301/ |
D | vg_clk_mgr.h | 48 struct dccg *dccg);
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/ |
D | dcn314_clk_mgr.h | 53 struct dccg *dccg);
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/ |
D | dcn31_clk_mgr.h | 52 struct dccg *dccg);
|