/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_dmcu.c | 37 #define TO_DCE_DMCU(dmcu)\ argument 38 container_of(dmcu, struct dce_dmcu, base) 68 static bool dce_dmcu_init(struct dmcu *dmcu) in dce_dmcu_init() argument 74 bool dce_dmcu_load_iram(struct dmcu *dmcu, in dce_dmcu_load_iram() argument 79 struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); in dce_dmcu_load_iram() 102 static void dce_get_dmcu_psr_state(struct dmcu *dmcu, uint32_t *psr_state) in dce_get_dmcu_psr_state() argument 104 struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); in dce_get_dmcu_psr_state() 125 static void dce_dmcu_set_psr_enable(struct dmcu *dmcu, bool enable, bool wait) in dce_dmcu_set_psr_enable() argument 127 struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); in dce_dmcu_set_psr_enable() 151 dce_get_dmcu_psr_state(dmcu, &psr_state); in dce_dmcu_set_psr_enable() [all …]
|
D | dce_dmcu.h | 223 struct dmcu base; 294 struct dmcu *dce_dmcu_create( 300 struct dmcu *dcn10_dmcu_create( 306 struct dmcu *dcn20_dmcu_create( 312 struct dmcu *dcn21_dmcu_create( 318 void dce_dmcu_destroy(struct dmcu **dmcu);
|
D | dce_clk_mgr.c | 254 struct dmcu *dmcu = clk_mgr_dce->base.ctx->dc->res_pool->dmcu; in dce_set_clock() local 282 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) in dce_set_clock() 283 dmcu->funcs->set_psr_wait_loop(dmcu, actual_clock / 1000 / 7); in dce_set_clock() 294 struct dmcu *dmcu = core_dc->res_pool->dmcu; in dce112_set_clock() local 330 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dce112_set_clock() 332 dmcu->funcs->set_psr_wait_loop(dmcu, in dce112_set_clock()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/inc/hw/ |
D | dmcu.h | 48 struct dmcu { struct 60 bool (*dmcu_init)(struct dmcu *dmcu); argument 61 bool (*load_iram)(struct dmcu *dmcu, 65 void (*set_psr_enable)(struct dmcu *dmcu, bool enable, bool wait); 66 bool (*setup_psr)(struct dmcu *dmcu, 69 void (*get_psr_state)(struct dmcu *dmcu, uint32_t *psr_state); 70 void (*set_psr_wait_loop)(struct dmcu *dmcu, 72 void (*get_psr_wait_loop)(struct dmcu *dmcu, 74 bool (*is_dmcu_initialized)(struct dmcu *dmcu); 75 bool (*lock_phy)(struct dmcu *dmcu); [all …]
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/ |
D | dce112_clk_mgr.c | 76 struct dmcu *dmcu = dc->res_pool->dmcu; in dce112_set_clock() local 113 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dce112_set_clock() 115 dmcu->funcs->set_psr_wait_loop(dmcu, in dce112_set_clock() 129 struct dmcu *dmcu = dc->res_pool->dmcu; in dce112_set_dispclk() local 155 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dce112_set_dispclk() 157 dmcu->funcs->set_psr_wait_loop(dmcu, in dce112_set_dispclk()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/ |
D | rv1_clk_mgr_vbios_smu.c | 127 struct dmcu *dmcu = dc->res_pool->dmcu; in rv1_vbios_smu_set_dispclk() local 136 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in rv1_vbios_smu_set_dispclk() 138 dmcu->funcs->set_psr_wait_loop(dmcu, in rv1_vbios_smu_set_dispclk()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/ |
D | rn_clk_mgr_vbios_smu.c | 123 struct dmcu *dmcu = dc->res_pool->dmcu; in rn_vbios_smu_set_dispclk() local 132 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in rn_vbios_smu_set_dispclk() 134 dmcu->funcs->set_psr_wait_loop(dmcu, in rn_vbios_smu_set_dispclk()
|
D | rn_clk_mgr.c | 118 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in rn_update_clocks() local 203 dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in rn_update_clocks() 205 dmcu->funcs->set_psr_wait_loop(dmcu, in rn_update_clocks()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_link_hwss.c | 100 struct dmcu *dmcu = dc->res_pool->dmcu; in dp_enable_link_phy() local 138 if (dmcu != NULL && dmcu->funcs->lock_phy) in dp_enable_link_phy() 139 dmcu->funcs->lock_phy(dmcu); in dp_enable_link_phy() 153 if (dmcu != NULL && dmcu->funcs->unlock_phy) in dp_enable_link_phy() 154 dmcu->funcs->unlock_phy(dmcu); in dp_enable_link_phy() 226 struct dmcu *dmcu = dc->res_pool->dmcu; in dp_disable_link_phy() local 237 if (dmcu != NULL && dmcu->funcs->lock_phy) in dp_disable_link_phy() 238 dmcu->funcs->lock_phy(dmcu); in dp_disable_link_phy() 242 if (dmcu != NULL && dmcu->funcs->unlock_phy) in dp_disable_link_phy() 243 dmcu->funcs->unlock_phy(dmcu); in dp_disable_link_phy()
|
D | dc_link.c | 2563 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_link_set_psr_allow_active() local 2570 …else if ((dmcu != NULL && dmcu->funcs->is_dmcu_initialized(dmcu)) && link->psr_settings.psr_featur… in dc_link_set_psr_allow_active() 2571 dmcu->funcs->set_psr_enable(dmcu, allow_active, wait); in dc_link_set_psr_allow_active() 2581 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_link_get_psr_state() local 2586 else if (dmcu != NULL && link->psr_settings.psr_feature_enabled) in dc_link_get_psr_state() 2587 dmcu->funcs->get_psr_state(dmcu, psr_state); in dc_link_get_psr_state() 2632 struct dmcu *dmcu; in dc_link_setup_psr() local 2644 dmcu = dc->res_pool->dmcu; in dc_link_setup_psr() 2647 if (!dmcu && !psr) in dc_link_setup_psr() 2759 link->psr_settings.psr_feature_enabled = dmcu->funcs->setup_psr(dmcu, link, psr_context); in dc_link_setup_psr()
|
D | dc.c | 964 if (dc->res_pool->dmcu != NULL) in dc_create() 965 dc->versions.dmcu_version = dc->res_pool->dmcu->dmcu_version; in dc_create() 2865 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_is_dmcu_initialized() local 2867 if (dmcu) in dc_is_dmcu_initialized() 2868 return dmcu->funcs->is_dmcu_initialized(dmcu); in dc_is_dmcu_initialized()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dcn21/ |
D | dcn21_hwseq.c | 167 struct dmcu *dmcu = pipe_ctx->stream->ctx->dc->res_pool->dmcu; in dcn21_set_abm_immediate_disable() local 169 if (dmcu) { in dcn21_set_abm_immediate_disable() 184 struct dmcu *dmcu = pipe_ctx->stream->ctx->dc->res_pool->dmcu; in dcn21_set_pipe() local 186 if (dmcu) { in dcn21_set_pipe() 205 if (dc->dc->res_pool->dmcu) { in dcn21_set_backlight_level()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/modules/power/ |
D | power_helpers.c | 727 bool dmcu_load_iram(struct dmcu *dmcu, in dmcu_load_iram() argument 733 if (dmcu == NULL) in dmcu_load_iram() 736 if (dmcu && !dmcu->funcs->is_dmcu_initialized(dmcu)) in dmcu_load_iram() 741 if (dmcu->dmcu_version.abm_version == 0x24) { in dmcu_load_iram() 743 result = dmcu->funcs->load_iram( in dmcu_load_iram() 744 dmcu, 0, (char *)(&ram_table), IRAM_RESERVE_AREA_START_V2_2); in dmcu_load_iram() 745 } else if (dmcu->dmcu_version.abm_version == 0x23) { in dmcu_load_iram() 748 result = dmcu->funcs->load_iram( in dmcu_load_iram() 749 dmcu, 0, (char *)(&ram_table), IRAM_RESERVE_AREA_START_V2_2); in dmcu_load_iram() 750 } else if (dmcu->dmcu_version.abm_version == 0x22) { in dmcu_load_iram() [all …]
|
D | power_helpers.h | 48 bool dmcu_load_iram(struct dmcu *dmcu,
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/ |
D | dce_clk_mgr.c | 237 struct dmcu *dmcu = clk_mgr_dce->base.ctx->dc->res_pool->dmcu; in dce_set_clock() local 265 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) in dce_set_clock() 266 dmcu->funcs->set_psr_wait_loop(dmcu, actual_clock / 1000 / 7); in dce_set_clock()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/ |
D | dcn20_clk_mgr.c | 158 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in dcn2_update_clocks() local 266 dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dcn2_update_clocks() 268 dmcu->funcs->set_psr_wait_loop(dmcu, in dcn2_update_clocks()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/ |
D | dcn30_clk_mgr.c | 239 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in dcn3_update_clocks() local 333 if (update_dispclk && dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) in dcn3_update_clocks() 335 dmcu->funcs->set_psr_wait_loop(dmcu, in dcn3_update_clocks()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce60/ |
D | dce60_resource.c | 853 if (pool->base.dmcu != NULL) in dce60_resource_destruct() 854 dce_dmcu_destroy(&pool->base.dmcu); in dce60_resource_destruct() 1011 pool->base.dmcu = dce_dmcu_create(ctx, in dce60_construct() 1015 if (pool->base.dmcu == NULL) { in dce60_construct() 1208 pool->base.dmcu = dce_dmcu_create(ctx, in dce61_construct() 1212 if (pool->base.dmcu == NULL) { in dce61_construct() 1401 pool->base.dmcu = dce_dmcu_create(ctx, in dce64_construct() 1405 if (pool->base.dmcu == NULL) { in dce64_construct()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce80/ |
D | dce80_resource.c | 858 if (pool->base.dmcu != NULL) in dce80_resource_destruct() 859 dce_dmcu_destroy(&pool->base.dmcu); in dce80_resource_destruct() 1020 pool->base.dmcu = dce_dmcu_create(ctx, in dce80_construct() 1024 if (pool->base.dmcu == NULL) { in dce80_construct() 1217 pool->base.dmcu = dce_dmcu_create(ctx, in dce81_construct() 1221 if (pool->base.dmcu == NULL) { in dce81_construct() 1410 pool->base.dmcu = dce_dmcu_create(ctx, in dce83_construct() 1414 if (pool->base.dmcu == NULL) { in dce83_construct()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/inc/ |
D | core_types.h | 241 struct dmcu *dmcu; member
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_hw_sequencer.c | 2438 struct dmcu *dmcu; in init_hw() local 2498 dmcu = dc->res_pool->dmcu; in init_hw() 2499 if (dmcu != NULL && abm != NULL) in init_hw() 2500 abm->dmcu_is_running = dmcu->funcs->is_dmcu_initialized(dmcu); in init_hw() 2813 struct dmcu *dmcu = dc->res_pool->dmcu; in dce110_set_backlight_level() local 2823 if (dmcu) in dce110_set_backlight_level() 2824 fw_set_brightness = dmcu->funcs->is_dmcu_initialized(dmcu); in dce110_set_backlight_level()
|
D | dce110_resource.c | 880 if (pool->base.dmcu != NULL) in dce110_resource_destruct() 881 dce_dmcu_destroy(&pool->base.dmcu); in dce110_resource_destruct() 1416 pool->base.dmcu = dce_dmcu_create(ctx, in dce110_resource_construct() 1420 if (pool->base.dmcu == NULL) { in dce110_resource_construct()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce100/ |
D | dce100_resource.c | 817 if (pool->base.dmcu != NULL) in dce100_resource_destruct() 818 dce_dmcu_destroy(&pool->base.dmcu); in dce100_resource_destruct() 1038 pool->base.dmcu = dce_dmcu_create(ctx, in dce100_resource_construct() 1042 if (pool->base.dmcu == NULL) { in dce100_resource_construct()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce120/ |
D | dce120_resource.c | 667 if (pool->base.dmcu != NULL) in dce120_resource_destruct() 668 dce_dmcu_destroy(&pool->base.dmcu); in dce120_resource_destruct() 1132 pool->base.dmcu = dce_dmcu_create(ctx, in dce120_resource_construct() 1136 if (pool->base.dmcu == NULL) { in dce120_resource_construct()
|
/Linux-v5.10/drivers/gpu/drm/amd/display/dc/dce112/ |
D | dce112_resource.c | 840 if (pool->base.dmcu != NULL) in dce112_resource_destruct() 841 dce_dmcu_destroy(&pool->base.dmcu); in dce112_resource_destruct() 1296 pool->base.dmcu = dce_dmcu_create(ctx, in dce112_resource_construct() 1300 if (pool->base.dmcu == NULL) { in dce112_resource_construct()
|