/linux-6.12.1/drivers/gpu/drm/amd/display/dc/pg/dcn35/ |
D | dcn35_pg_cntl.c | 32 #define TO_DCN_PG_CNTL(pg_cntl)\ argument 33 container_of(pg_cntl, struct dcn_pg_cntl, base) 45 pg_cntl->ctx->logger 47 static bool pg_cntl35_dsc_pg_status(struct pg_cntl *pg_cntl, unsigned int dsc_inst) in pg_cntl35_dsc_pg_status() argument 49 struct dcn_pg_cntl *pg_cntl_dcn = TO_DCN_PG_CNTL(pg_cntl); in pg_cntl35_dsc_pg_status() 52 if (pg_cntl->ctx->dc->debug.ignore_pg) in pg_cntl35_dsc_pg_status() 76 void pg_cntl35_dsc_pg_control(struct pg_cntl *pg_cntl, unsigned int dsc_inst, bool power_on) in pg_cntl35_dsc_pg_control() argument 78 struct dcn_pg_cntl *pg_cntl_dcn = TO_DCN_PG_CNTL(pg_cntl); in pg_cntl35_dsc_pg_control() 85 if (pg_cntl->ctx->dc->res_pool->dccg->funcs->enable_dsc && power_on) in pg_cntl35_dsc_pg_control() 86 pg_cntl->ctx->dc->res_pool->dccg->funcs->enable_dsc( in pg_cntl35_dsc_pg_control() [all …]
|
D | dcn35_pg_cntl.h | 166 struct pg_cntl base; 172 void pg_cntl35_dsc_pg_control(struct pg_cntl *pg_cntl, unsigned int dsc_inst, bool power_on); 173 void pg_cntl35_hubp_dpp_pg_control(struct pg_cntl *pg_cntl, 175 void pg_cntl35_hpo_pg_control(struct pg_cntl *pg_cntl, bool power_on); 176 void pg_cntl35_io_clk_pg_control(struct pg_cntl *pg_cntl, bool power_on); 177 void pg_cntl35_plane_otg_pg_control(struct pg_cntl *pg_cntl, bool power_on); 178 void pg_cntl35_mpcc_pg_control(struct pg_cntl *pg_cntl, 180 void pg_cntl35_opp_pg_control(struct pg_cntl *pg_cntl, 182 void pg_cntl35_optc_pg_control(struct pg_cntl *pg_cntl, 184 void pg_cntl35_dwb_pg_control(struct pg_cntl *pg_cntl, bool power_on); [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | pg_cntl.h | 32 struct pg_cntl { struct 40 void (*dsc_pg_control)(struct pg_cntl *pg_cntl, unsigned int dsc_inst, bool power_on); argument 41 void (*hubp_dpp_pg_control)(struct pg_cntl *pg_cntl, unsigned int hubp_dpp_inst, bool power_on); 42 void (*hpo_pg_control)(struct pg_cntl *pg_cntl, bool power_on); 43 void (*io_clk_pg_control)(struct pg_cntl *pg_cntl, bool power_on); 44 void (*plane_otg_pg_control)(struct pg_cntl *pg_cntl, bool power_on); 45 void (*mpcc_pg_control)(struct pg_cntl *pg_cntl, unsigned int mpcc_inst, bool power_on); 46 void (*opp_pg_control)(struct pg_cntl *pg_cntl, unsigned int opp_inst, bool power_on); 47 void (*optc_pg_control)(struct pg_cntl *pg_cntl, unsigned int optc_inst, bool power_on); 48 void (*dwb_pg_control)(struct pg_cntl *pg_cntl, bool power_on); [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/hwss/dcn351/ |
D | dcn351_hwseq.c | 103 struct pg_cntl *pg_cntl = dc->res_pool->pg_cntl; in dcn351_hw_block_power_down() local 105 if (!pg_cntl || dc->debug.ignore_pg) in dcn351_hw_block_power_down() 110 if (pg_cntl->funcs->dsc_pg_control) in dcn351_hw_block_power_down() 111 pg_cntl->funcs->dsc_pg_control(pg_cntl, i, false); in dcn351_hw_block_power_down() 116 if (pg_cntl->funcs->hubp_dpp_pg_control) in dcn351_hw_block_power_down() 117 pg_cntl->funcs->hubp_dpp_pg_control(pg_cntl, i, false); in dcn351_hw_block_power_down() 124 if (pg_cntl->funcs->plane_otg_pg_control) in dcn351_hw_block_power_down() 125 pg_cntl->funcs->plane_otg_pg_control(pg_cntl, false); in dcn351_hw_block_power_down() 156 struct pg_cntl *pg_cntl = dc->res_pool->pg_cntl; in dcn351_hw_block_power_up() local 158 if (!pg_cntl || dc->debug.ignore_pg) in dcn351_hw_block_power_up() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/hwss/dcn35/ |
D | dcn35_hwseq.c | 314 if (dc->res_pool->pg_cntl) { in dcn35_init_hw() 315 if (dc->res_pool->pg_cntl->funcs->init_pg_status) in dcn35_init_hw() 316 dc->res_pool->pg_cntl->funcs->init_pg_status(dc->res_pool->pg_cntl); in dcn35_init_hw() 697 struct pg_cntl *pg_cntl = dc->res_pool->pg_cntl; in dcn35_init_pipes() local 839 if (pg_cntl != NULL) { in dcn35_init_pipes() 840 if (pg_cntl->funcs->dsc_pg_control != NULL) { in dcn35_init_pipes() 877 pg_cntl->funcs->dsc_pg_control(pg_cntl, dc->res_pool->dscs[i]->inst, false); in dcn35_init_pipes() 1206 struct pg_cntl *pg_cntl = dc->res_pool->pg_cntl; in dcn35_hw_block_power_down() local 1208 if (!pg_cntl) in dcn35_hw_block_power_down() 1214 if (pg_cntl->funcs->hpo_pg_control) in dcn35_hw_block_power_down() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/inc/ |
D | core_types.h | 299 struct pg_cntl *pg_cntl; member
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/resource/dcn351/ |
D | dcn351_resource.c | 1540 if (pool->base.pg_cntl != NULL) in dcn351_resource_destruct() 1541 dcn_pg_cntl_destroy(&pool->base.pg_cntl); in dcn351_resource_destruct() 1962 pool->base.pg_cntl = pg_cntl35_create(ctx, &pg_cntl_regs, &pg_cntl_shift, &pg_cntl_mask); in dcn351_resource_construct() 1963 if (pool->base.pg_cntl == NULL) { in dcn351_resource_construct()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/resource/dcn35/ |
D | dcn35_resource.c | 1560 if (pool->base.pg_cntl != NULL) in dcn35_resource_destruct() 1561 dcn_pg_cntl_destroy(&pool->base.pg_cntl); in dcn35_resource_destruct() 1984 pool->base.pg_cntl = pg_cntl35_create(ctx, &pg_cntl_regs, &pg_cntl_shift, &pg_cntl_mask); in dcn35_resource_construct() 1985 if (pool->base.pg_cntl == NULL) { in dcn35_resource_construct()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/hwss/dce110/ |
D | dce110_hwseq.c | 1833 struct pg_cntl *pg_cntl = dc->res_pool->pg_cntl; in clean_up_dsc_blocks() local 1863 if (pg_cntl != NULL) in clean_up_dsc_blocks() 1864 pg_cntl->funcs->dsc_pg_control(pg_cntl, dsc->inst, false); in clean_up_dsc_blocks()
|