/linux-6.12.1/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, enum dc_psr_state *dc_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-6.12.1/drivers/gpu/drm/amd/display/dc/ |
D | dc_edid_parser.c | 35 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_edid_parser_send_cea() local 37 if (dmcu && in dc_edid_parser_send_cea() 38 dmcu->funcs->is_dmcu_initialized(dmcu) && in dc_edid_parser_send_cea() 39 dmcu->funcs->send_edid_cea) { in dc_edid_parser_send_cea() 40 return dmcu->funcs->send_edid_cea(dmcu, in dc_edid_parser_send_cea() 52 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_edid_parser_recv_cea_ack() local 54 if (dmcu && in dc_edid_parser_recv_cea_ack() 55 dmcu->funcs->is_dmcu_initialized(dmcu) && in dc_edid_parser_recv_cea_ack() 56 dmcu->funcs->recv_edid_cea_ack) { in dc_edid_parser_recv_cea_ack() 57 return dmcu->funcs->recv_edid_cea_ack(dmcu, offset); in dc_edid_parser_recv_cea_ack() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_dmcu.c | 34 #define TO_DCE_DMCU(dmcu)\ argument 35 container_of(dmcu, struct dce_dmcu, base) 72 static bool dce_dmcu_init(struct dmcu *dmcu) in dce_dmcu_init() argument 78 static bool dce_dmcu_load_iram(struct dmcu *dmcu, in dce_dmcu_load_iram() argument 83 struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); in dce_dmcu_load_iram() 106 static void dce_get_dmcu_psr_state(struct dmcu *dmcu, enum dc_psr_state *state) in dce_get_dmcu_psr_state() argument 108 struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); in dce_get_dmcu_psr_state() 129 static void dce_dmcu_set_psr_enable(struct dmcu *dmcu, bool enable, bool wait) in dce_dmcu_set_psr_enable() argument 131 struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); in dce_dmcu_set_psr_enable() 155 dce_get_dmcu_psr_state(dmcu, &state); in dce_dmcu_set_psr_enable() [all …]
|
D | dce_dmcu.h | 234 struct dmcu base; 305 struct dmcu *dce_dmcu_create( 311 struct dmcu *dcn10_dmcu_create( 317 struct dmcu *dcn20_dmcu_create( 323 struct dmcu *dcn21_dmcu_create( 329 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 332 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dce112_set_clock() 334 dmcu->funcs->set_psr_wait_loop(dmcu, in dce112_set_clock()
|
/linux-6.12.1/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 114 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dce112_set_clock() 116 dmcu->funcs->set_psr_wait_loop(dmcu, in dce112_set_clock() 129 struct dmcu *dmcu = dc->res_pool->dmcu; in dce112_set_dispclk() local 154 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dce112_set_dispclk() 156 dmcu->funcs->set_psr_wait_loop(dmcu, in dce112_set_dispclk()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/ |
D | rv1_clk_mgr_vbios_smu.c | 129 struct dmcu *dmcu = dc->res_pool->dmcu; in rv1_vbios_smu_set_dispclk() local 137 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in rv1_vbios_smu_set_dispclk() 139 dmcu->funcs->set_psr_wait_loop(dmcu, in rv1_vbios_smu_set_dispclk()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/ |
D | rn_clk_mgr_vbios_smu.c | 147 struct dmcu *dmcu = dc->res_pool->dmcu; in rn_vbios_smu_set_dispclk() local 155 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in rn_vbios_smu_set_dispclk() 157 dmcu->funcs->set_psr_wait_loop(dmcu, in rn_vbios_smu_set_dispclk()
|
D | rn_clk_mgr.c | 143 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in rn_update_clocks() local 246 dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in rn_update_clocks() 248 dmcu->funcs->set_psr_wait_loop(dmcu, in rn_update_clocks()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/link/protocols/ |
D | link_edp_panel_control.c | 559 struct dmcu *dmcu = dc->res_pool->dmcu; in edp_set_psr_allow_active() local 595 } else if ((dmcu != NULL && dmcu->funcs->is_dmcu_initialized(dmcu)) && in edp_set_psr_allow_active() 597 dmcu->funcs->set_psr_enable(dmcu, link->psr_settings.psr_allow_active, wait); in edp_set_psr_allow_active() 607 struct dmcu *dmcu = dc->res_pool->dmcu; in edp_get_psr_state() local 616 else if (dmcu != NULL && link->psr_settings.psr_feature_enabled) in edp_get_psr_state() 617 dmcu->funcs->get_psr_state(dmcu, state); in edp_get_psr_state() 664 struct dmcu *dmcu; in edp_setup_psr() local 678 dmcu = dc->res_pool->dmcu; in edp_setup_psr() 681 if (!dmcu && !psr) in edp_setup_psr() 841 link->psr_settings.psr_feature_enabled = dmcu->funcs->setup_psr(dmcu, link, psr_context); in edp_setup_psr() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/hwss/dcn21/ |
D | dcn21_hwseq.c | 184 struct dmcu *dmcu = pipe_ctx->stream->ctx->dc->res_pool->dmcu; in dcn21_set_abm_immediate_disable() local 192 if (dmcu) { in dcn21_set_abm_immediate_disable() 217 struct dmcu *dmcu = pipe_ctx->stream->ctx->dc->res_pool->dmcu; in dcn21_set_pipe() local 225 if (dmcu) { in dcn21_set_pipe() 259 if (dc->dc->res_pool->dmcu) { in dcn21_set_backlight_level()
|
/linux-6.12.1/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-6.12.1/drivers/gpu/drm/amd/display/dc/hwss/dcn314/ |
D | dcn314_hwseq.c | 465 struct dmcu *dmcu = dc->res_pool->dmcu; in dcn314_disable_link_output() local 471 else if (dmcu != NULL && dmcu->funcs->lock_phy) in dcn314_disable_link_output() 472 dmcu->funcs->lock_phy(dmcu); in dcn314_disable_link_output() 481 if (dmcu != NULL && dmcu->funcs->lock_phy) in dcn314_disable_link_output() 482 dmcu->funcs->unlock_phy(dmcu); in dcn314_disable_link_output()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/modules/power/ |
D | power_helpers.c | 766 bool dmcu_load_iram(struct dmcu *dmcu, in dmcu_load_iram() argument 772 if (dmcu == NULL) in dmcu_load_iram() 775 if (dmcu && !dmcu->funcs->is_dmcu_initialized(dmcu)) in dmcu_load_iram() 780 if (dmcu->dmcu_version.abm_version == 0x24) { in dmcu_load_iram() 782 result = dmcu->funcs->load_iram(dmcu, 0, (char *)(&ram_table), in dmcu_load_iram() 784 } else if (dmcu->dmcu_version.abm_version == 0x23) { in dmcu_load_iram() 787 result = dmcu->funcs->load_iram( in dmcu_load_iram() 788 dmcu, 0, (char *)(&ram_table), IRAM_RESERVE_AREA_START_V2_2); in dmcu_load_iram() 789 } else if (dmcu->dmcu_version.abm_version == 0x22) { in dmcu_load_iram() 792 result = dmcu->funcs->load_iram( in dmcu_load_iram() [all …]
|
D | power_helpers.h | 50 bool dmcu_load_iram(struct dmcu *dmcu,
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/ |
D | dcn30_clk_mgr.c | 205 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in dcn3_update_clocks() local 316 if (update_dispclk && dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) in dcn3_update_clocks() 318 dmcu->funcs->set_psr_wait_loop(dmcu, in dcn3_update_clocks()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/ |
D | dcn20_clk_mgr.c | 229 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in dcn2_update_clocks() local 336 dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dcn2_update_clocks() 338 dmcu->funcs->set_psr_wait_loop(dmcu, in dcn2_update_clocks()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/ |
D | dcn401_clk_mgr.h | 71 struct dmcu *dmcu; member
|
D | dcn401_clk_mgr.c | 629 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in dcn401_update_clocks_legacy() local 812 if (update_dispclk && dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) in dcn401_update_clocks_legacy() 814 dmcu->funcs->set_psr_wait_loop(dmcu, in dcn401_update_clocks_legacy() 921 params->update_psr_wait_loop_params.dmcu->funcs->set_psr_wait_loop( in dcn401_execute_block_sequence() 922 params->update_psr_wait_loop_params.dmcu, in dcn401_execute_block_sequence() 1229 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in dcn401_build_update_display_clocks_sequence() local 1350 if (update_dispclk && dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dcn401_build_update_display_clocks_sequence() 1352 block_sequence[num_steps].params.update_psr_wait_loop_params.dmcu = dmcu; in dcn401_build_update_display_clocks_sequence()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/hwss/dce110/ |
D | dce110_hwseq.c | 2774 struct dmcu *dmcu; in init_hw() local 2837 dmcu = dc->res_pool->dmcu; in init_hw() 2838 if (dmcu != NULL && abm != NULL) in init_hw() 2839 abm->dmcu_is_running = dmcu->funcs->is_dmcu_initialized(dmcu); in init_hw() 3152 struct dmcu *dmcu = dc->res_pool->dmcu; in dce110_set_backlight_level() local 3162 if (dmcu) in dce110_set_backlight_level() 3163 fw_set_brightness = dmcu->funcs->is_dmcu_initialized(dmcu); in dce110_set_backlight_level() 3237 struct dmcu *dmcu = dc->res_pool->dmcu; in dce110_enable_dp_link_output() local 3281 if (dmcu != NULL && dmcu->funcs->lock_phy) in dce110_enable_dp_link_output() 3282 dmcu->funcs->lock_phy(dmcu); in dce110_enable_dp_link_output() [all …]
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dce60/ |
D | dce60_resource.c | 849 if (pool->base.dmcu != NULL) in dce60_resource_destruct() 850 dce_dmcu_destroy(&pool->base.dmcu); in dce60_resource_destruct() 1007 pool->base.dmcu = dce_dmcu_create(ctx, in dce60_construct() 1011 if (pool->base.dmcu == NULL) { in dce60_construct() 1205 pool->base.dmcu = dce_dmcu_create(ctx, in dce61_construct() 1209 if (pool->base.dmcu == NULL) { in dce61_construct() 1399 pool->base.dmcu = dce_dmcu_create(ctx, in dce64_construct() 1403 if (pool->base.dmcu == NULL) { in dce64_construct()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/ |
D | dcn32_clk_mgr.c | 633 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in dcn32_update_clocks() local 838 if (update_dispclk && dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) in dcn32_update_clocks() 840 dmcu->funcs->set_psr_wait_loop(dmcu, in dcn32_update_clocks()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/resource/dce80/ |
D | dce80_resource.c | 855 if (pool->base.dmcu != NULL) in dce80_resource_destruct() 856 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() 1220 pool->base.dmcu = dce_dmcu_create(ctx, in dce81_construct() 1224 if (pool->base.dmcu == NULL) { in dce81_construct() 1417 pool->base.dmcu = dce_dmcu_create(ctx, in dce83_construct() 1421 if (pool->base.dmcu == NULL) { in dce83_construct()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/hwss/dcn32/ |
D | dcn32_hwseq.c | 1388 struct dmcu *dmcu = dc->res_pool->dmcu; in dcn32_disable_link_output() local 1394 else if (dmcu != NULL && dmcu->funcs->lock_phy) in dcn32_disable_link_output() 1395 dmcu->funcs->lock_phy(dmcu); in dcn32_disable_link_output() 1404 else if (dmcu != NULL && dmcu->funcs->lock_phy) in dcn32_disable_link_output() 1405 dmcu->funcs->unlock_phy(dmcu); in dcn32_disable_link_output()
|
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/resource/dce100/ |
D | dce100_resource.c | 815 if (pool->base.dmcu != NULL) in dce100_resource_destruct() 816 dce_dmcu_destroy(&pool->base.dmcu); in dce100_resource_destruct() 1036 pool->base.dmcu = dce_dmcu_create(ctx, in dce100_resource_construct() 1040 if (pool->base.dmcu == NULL) { in dce100_resource_construct()
|