/linux-6.3-rc2/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 …]
|
/linux-6.3-rc2/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 …]
|
/linux-6.3-rc2/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 723 struct dmcu *dmcu, in dcn10_psr_wait_loop() argument 767 static bool dcn20_lock_phy(struct dmcu *dmcu) in dcn20_lock_phy() argument 790 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()
|
/linux-6.3-rc2/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 115 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dce112_set_clock() 117 dmcu->funcs->set_psr_wait_loop(dmcu, in dce112_set_clock() 131 struct dmcu *dmcu = dc->res_pool->dmcu; in dce112_set_dispclk() local 157 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dce112_set_dispclk() 159 dmcu->funcs->set_psr_wait_loop(dmcu, in dce112_set_dispclk()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/ |
A D | rv1_clk_mgr_vbios_smu.c | 130 struct dmcu *dmcu = dc->res_pool->dmcu; in rv1_vbios_smu_set_dispclk() local 139 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in rv1_vbios_smu_set_dispclk() 141 dmcu->funcs->set_psr_wait_loop(dmcu, in rv1_vbios_smu_set_dispclk()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/link/protocols/ |
A D | link_edp_panel_control.c | 460 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_link_set_psr_allow_active() local 496 } else if ((dmcu != NULL && dmcu->funcs->is_dmcu_initialized(dmcu)) && in dc_link_set_psr_allow_active() 498 dmcu->funcs->set_psr_enable(dmcu, link->psr_settings.psr_allow_active, wait); in dc_link_set_psr_allow_active() 508 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_link_get_psr_state() local 518 dmcu->funcs->get_psr_state(dmcu, state); in dc_link_get_psr_state() 565 struct dmcu *dmcu; in dc_link_setup_psr() local 579 dmcu = dc->res_pool->dmcu; in dc_link_setup_psr() 582 if (!dmcu && !psr) in dc_link_setup_psr() 811 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_link_get_backlight_level() local 814 if (dmcu) in dc_link_get_backlight_level() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/ |
A D | rn_clk_mgr_vbios_smu.c | 142 struct dmcu *dmcu = dc->res_pool->dmcu; in rn_vbios_smu_set_dispclk() local 151 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in rn_vbios_smu_set_dispclk() 153 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()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn21/ |
A D | dcn21_hwseq.c | 168 struct dmcu *dmcu = pipe_ctx->stream->ctx->dc->res_pool->dmcu; in dcn21_set_abm_immediate_disable() local 170 if (dmcu) { in dcn21_set_abm_immediate_disable() 187 struct dmcu *dmcu = pipe_ctx->stream->ctx->dc->res_pool->dmcu; in dcn21_set_pipe() local 189 if (dmcu) { in dcn21_set_pipe() 208 if (dc->dc->res_pool->dmcu) { in dcn21_set_backlight_level()
|
/linux-6.3-rc2/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 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.3-rc2/drivers/gpu/drm/amd/display/modules/power/ |
A D | power_helpers.c | 752 bool dmcu_load_iram(struct dmcu *dmcu, in dmcu_load_iram() argument 758 if (dmcu == NULL) in dmcu_load_iram() 761 if (dmcu && !dmcu->funcs->is_dmcu_initialized(dmcu)) in dmcu_load_iram() 766 if (dmcu->dmcu_version.abm_version == 0x24) { in dmcu_load_iram() 768 result = dmcu->funcs->load_iram( in dmcu_load_iram() 770 } else if (dmcu->dmcu_version.abm_version == 0x23) { in dmcu_load_iram() 773 result = dmcu->funcs->load_iram( in dmcu_load_iram() 778 result = dmcu->funcs->load_iram( in dmcu_load_iram() 783 result = dmcu->funcs->load_iram( in dmcu_load_iram() 787 result = dmcu->funcs->load_iram( in dmcu_load_iram() [all …]
|
A D | power_helpers.h | 50 bool dmcu_load_iram(struct dmcu *dmcu,
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/ |
A D | dcn30_clk_mgr.c | 205 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in dcn3_update_clocks() local 318 if (update_dispclk && dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) in dcn3_update_clocks() 320 dmcu->funcs->set_psr_wait_loop(dmcu, in dcn3_update_clocks()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce110/ |
A D | dce110_hw_sequencer.c | 2566 struct dmcu *dmcu; in init_hw() local 2626 dmcu = dc->res_pool->dmcu; in init_hw() 2941 struct dmcu *dmcu = dc->res_pool->dmcu; in dce110_set_backlight_level() local 3026 struct dmcu *dmcu = dc->res_pool->dmcu; in dce110_enable_dp_link_output() local 3068 if (dmcu != NULL && dmcu->funcs->lock_phy) in dce110_enable_dp_link_output() 3069 dmcu->funcs->lock_phy(dmcu); in dce110_enable_dp_link_output() 3077 if (dmcu != NULL && dmcu->funcs->unlock_phy) in dce110_enable_dp_link_output() 3078 dmcu->funcs->unlock_phy(dmcu); in dce110_enable_dp_link_output() 3089 struct dmcu *dmcu = dc->res_pool->dmcu; in dce110_disable_link_output() local 3095 dmcu->funcs->lock_phy(dmcu); in dce110_disable_link_output() [all …]
|
/linux-6.3-rc2/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()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/ |
A D | dcn32_clk_mgr.c | 358 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in dcn32_update_clocks() local 522 if (update_dispclk && dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) in dcn32_update_clocks() 524 dmcu->funcs->set_psr_wait_loop(dmcu, in dcn32_update_clocks()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn32/ |
A D | dcn32_hwseq.c | 1238 struct dmcu *dmcu = dc->res_pool->dmcu; in dcn32_disable_link_output() local 1243 else if (dmcu != NULL && dmcu->funcs->lock_phy) in dcn32_disable_link_output() 1244 dmcu->funcs->lock_phy(dmcu); in dcn32_disable_link_output() 1252 else if (dmcu != NULL && dmcu->funcs->lock_phy) in dcn32_disable_link_output() 1253 dmcu->funcs->unlock_phy(dmcu); in dcn32_disable_link_output()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/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() 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.3-rc2/drivers/gpu/drm/amd/display/dc/dce80/ |
A D | dce80_resource.c | 852 if (pool->base.dmcu != NULL) in dce80_resource_destruct() 853 dce_dmcu_destroy(&pool->base.dmcu); in dce80_resource_destruct() 1016 pool->base.dmcu = dce_dmcu_create(ctx, in dce80_construct() 1020 if (pool->base.dmcu == NULL) { in dce80_construct() 1216 pool->base.dmcu = dce_dmcu_create(ctx, in dce81_construct() 1220 if (pool->base.dmcu == NULL) { in dce81_construct() 1412 pool->base.dmcu = dce_dmcu_create(ctx, in dce83_construct() 1416 if (pool->base.dmcu == NULL) { in dce83_construct()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/inc/ |
A D | core_types.h | 305 struct dmcu *dmcu; member
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/core/ |
A D | dc.c | 514 dc_stream_forward_dmcu_crc_window(struct dmcu *dmcu, in dc_stream_forward_dmcu_crc_window() argument 518 dmcu->funcs->stop_crc_win_update(dmcu, mux_mapping); in dc_stream_forward_dmcu_crc_window() 520 dmcu->funcs->forward_crc_window(dmcu, rect, mux_mapping); in dc_stream_forward_dmcu_crc_window() 527 struct dmcu *dmcu; in dc_stream_forward_crc_window() local 547 dmcu = dc->res_pool->dmcu; in dc_stream_forward_crc_window() 554 else if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) in dc_stream_forward_crc_window() 1269 if (dc->res_pool->dmcu != NULL) in dc_create() 1270 dc->versions.dmcu_version = dc->res_pool->dmcu->dmcu_version; in dc_create() 4313 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_is_dmcu_initialized() local 4315 if (dmcu) in dc_is_dmcu_initialized() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce100/ |
A D | dce100_resource.c | 811 if (pool->base.dmcu != NULL) in dce100_resource_destruct() 812 dce_dmcu_destroy(&pool->base.dmcu); in dce100_resource_destruct() 1032 pool->base.dmcu = dce_dmcu_create(ctx, in dce100_resource_construct() 1036 if (pool->base.dmcu == NULL) { in dce100_resource_construct()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce120/ |
A D | dce120_resource.c | 659 if (pool->base.dmcu != NULL) in dce120_resource_destruct() 660 dce_dmcu_destroy(&pool->base.dmcu); in dce120_resource_destruct() 1127 pool->base.dmcu = dce_dmcu_create(ctx, in dce120_resource_construct() 1131 if (pool->base.dmcu == NULL) { in dce120_resource_construct()
|