| /drivers/gpu/drm/amd/display/dc/inc/hw/ |
| A D | dmcu.h | 60 bool (*dmcu_init)(struct dmcu *dmcu); argument 61 bool (*load_iram)(struct dmcu *dmcu, 66 bool (*setup_psr)(struct dmcu *dmcu, 70 void (*set_psr_wait_loop)(struct dmcu *dmcu, 72 void (*get_psr_wait_loop)(struct dmcu *dmcu, 75 bool (*lock_phy)(struct dmcu *dmcu); 76 bool (*unlock_phy)(struct dmcu *dmcu); 77 bool (*send_edid_cea)(struct dmcu *dmcu, 82 bool (*recv_amd_vsdb)(struct dmcu *dmcu, 88 void (*forward_crc_window)(struct dmcu *dmcu, [all …]
|
| /drivers/gpu/drm/amd/display/dc/dce/ |
| A D | dce_dmcu.c | 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 168 static bool dce_dmcu_setup_psr(struct dmcu *dmcu, in dce_dmcu_setup_psr() argument 296 struct dmcu *dmcu, in dce_psr_wait_loop() argument 379 static bool dcn10_dmcu_init(struct dmcu *dmcu) in dcn10_dmcu_init() argument 462 static bool dcn21_dmcu_init(struct dmcu *dmcu) in dcn21_dmcu_init() argument 474 static bool dcn10_dmcu_load_iram(struct dmcu *dmcu, in dcn10_dmcu_load_iram() argument 724 struct dmcu *dmcu, in dcn10_psr_wait_loop() argument 768 static bool dcn20_lock_phy(struct dmcu *dmcu) in dcn20_lock_phy() argument 791 static bool dcn20_unlock_phy(struct dmcu *dmcu) in dcn20_unlock_phy() argument [all …]
|
| A 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);
|
| A 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()
|
| /drivers/gpu/drm/amd/display/dc/ |
| A 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() 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() 57 return dmcu->funcs->recv_edid_cea_ack(dmcu, offset); in dc_edid_parser_recv_cea_ack() 68 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_edid_parser_recv_amd_vsdb() local 71 dmcu->funcs->is_dmcu_initialized(dmcu) && in dc_edid_parser_recv_amd_vsdb() [all …]
|
| /drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/ |
| A 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()
|
| /drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/ |
| A 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()
|
| /drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/ |
| A 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()
|
| A 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()
|
| /drivers/gpu/drm/amd/display/dc/link/protocols/ |
| A D | link_edp_panel_control.c | 588 struct dmcu *dmcu = dc->res_pool->dmcu; in edp_set_psr_allow_active() local 624 } else if ((dmcu != NULL && dmcu->funcs->is_dmcu_initialized(dmcu)) && in edp_set_psr_allow_active() 626 dmcu->funcs->set_psr_enable(dmcu, link->psr_settings.psr_allow_active, wait); in edp_set_psr_allow_active() 636 struct dmcu *dmcu = dc->res_pool->dmcu; in edp_get_psr_state() local 646 dmcu->funcs->get_psr_state(dmcu, state); in edp_get_psr_state() 693 struct dmcu *dmcu; in edp_setup_psr() local 719 dmcu = dc->res_pool->dmcu; in edp_setup_psr() 722 if (!dmcu && !psr) in edp_setup_psr() 1180 struct dmcu *dmcu = dc->res_pool->dmcu; in edp_get_backlight_level() local 1183 if (dmcu) in edp_get_backlight_level() [all …]
|
| /drivers/gpu/drm/amd/display/dc/hwss/dcn21/ |
| A 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() 260 if (dc->dc->res_pool->dmcu) { in dcn21_set_backlight_level()
|
| /drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/ |
| A D | dce_clk_mgr.c | 237 struct dmcu *dmcu = clk_mgr_dce->base.ctx->dc->res_pool->dmcu; in dce_set_clock() local 270 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) in dce_set_clock() 271 dmcu->funcs->set_psr_wait_loop(dmcu, actual_clock / 1000 / 7); in dce_set_clock()
|
| /drivers/gpu/drm/amd/display/dc/hwss/dcn314/ |
| A D | dcn314_hwseq.c | 509 struct dmcu *dmcu = dc->res_pool->dmcu; in dcn314_disable_link_output() local 515 else if (dmcu != NULL && dmcu->funcs->lock_phy) in dcn314_disable_link_output() 516 dmcu->funcs->lock_phy(dmcu); in dcn314_disable_link_output() 525 if (dmcu != NULL && dmcu->funcs->unlock_phy) in dcn314_disable_link_output() 526 dmcu->funcs->unlock_phy(dmcu); in dcn314_disable_link_output()
|
| /drivers/gpu/drm/amd/display/modules/power/ |
| A 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() 792 result = dmcu->funcs->load_iram( in dmcu_load_iram() 797 result = dmcu->funcs->load_iram( in dmcu_load_iram() 801 result = dmcu->funcs->load_iram( in dmcu_load_iram() [all …]
|
| A D | power_helpers.h | 50 bool dmcu_load_iram(struct dmcu *dmcu,
|
| /drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/ |
| A D | dcn30_clk_mgr.c | 206 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in dcn3_update_clocks() local 317 if (update_dispclk && dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) in dcn3_update_clocks() 319 dmcu->funcs->set_psr_wait_loop(dmcu, in dcn3_update_clocks()
|
| /drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/ |
| A 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()
|
| /drivers/gpu/drm/amd/display/dc/hwss/dce110/ |
| A D | dce110_hwseq.c | 2807 struct dmcu *dmcu; in dce110_init_hw() local 2870 dmcu = dc->res_pool->dmcu; in dce110_init_hw() 3186 struct dmcu *dmcu = dc->res_pool->dmcu; in dce110_set_backlight_level() local 3271 struct dmcu *dmcu = dc->res_pool->dmcu; in dce110_enable_dp_link_output() local 3315 if (dmcu != NULL && dmcu->funcs->lock_phy) in dce110_enable_dp_link_output() 3316 dmcu->funcs->lock_phy(dmcu); in dce110_enable_dp_link_output() 3324 if (dmcu != NULL && dmcu->funcs->unlock_phy) in dce110_enable_dp_link_output() 3325 dmcu->funcs->unlock_phy(dmcu); in dce110_enable_dp_link_output() 3336 struct dmcu *dmcu = dc->res_pool->dmcu; in dce110_disable_link_output() local 3343 dmcu->funcs->lock_phy(dmcu); in dce110_disable_link_output() [all …]
|
| /drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/ |
| A D | dcn401_clk_mgr.h | 71 struct dmcu *dmcu; member
|
| A D | dcn401_clk_mgr.c | 752 params->update_psr_wait_loop_params.dmcu->funcs->set_psr_wait_loop( in dcn401_execute_block_sequence() 753 params->update_psr_wait_loop_params.dmcu, in dcn401_execute_block_sequence() 1086 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in dcn401_build_update_display_clocks_sequence() local 1207 if (update_dispclk && dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dcn401_build_update_display_clocks_sequence() 1209 block_sequence[num_steps].params.update_psr_wait_loop_params.dmcu = dmcu; in dcn401_build_update_display_clocks_sequence()
|
| /drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/ |
| A 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()
|
| /drivers/gpu/drm/amd/display/dc/resource/dce60/ |
| A 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() 1010 pool->base.dmcu = dce_dmcu_create(ctx, in dce60_construct() 1014 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() 1405 pool->base.dmcu = dce_dmcu_create(ctx, in dce64_construct() 1409 if (pool->base.dmcu == NULL) { in dce64_construct()
|
| /drivers/gpu/drm/amd/display/dc/resource/dce80/ |
| A 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()
|
| /drivers/gpu/drm/amd/display/dc/hwss/dcn32/ |
| A D | dcn32_hwseq.c | 1398 struct dmcu *dmcu = dc->res_pool->dmcu; in dcn32_disable_link_output() local 1404 else if (dmcu != NULL && dmcu->funcs->lock_phy) in dcn32_disable_link_output() 1405 dmcu->funcs->lock_phy(dmcu); in dcn32_disable_link_output() 1414 if (dmcu != NULL && dmcu->funcs->unlock_phy) in dcn32_disable_link_output() 1415 dmcu->funcs->unlock_phy(dmcu); in dcn32_disable_link_output()
|
| /drivers/gpu/drm/amd/display/dc/resource/dce100/ |
| A 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()
|