/linux-5.19.10/drivers/gpu/drm/amd/display/dc/inc/hw/ ! |
D | dmcu.h | 48 struct dmcu { struct 74 bool (*dmcu_init)(struct dmcu *dmcu); argument 75 bool (*load_iram)(struct dmcu *dmcu, 79 void (*set_psr_enable)(struct dmcu *dmcu, bool enable, bool wait); 80 bool (*setup_psr)(struct dmcu *dmcu, 83 void (*get_psr_state)(struct dmcu *dmcu, enum dc_psr_state *dc_psr_state); 84 void (*set_psr_wait_loop)(struct dmcu *dmcu, 86 void (*get_psr_wait_loop)(struct dmcu *dmcu, 88 bool (*is_dmcu_initialized)(struct dmcu *dmcu); 89 bool (*lock_phy)(struct dmcu *dmcu); [all …]
|
/linux-5.19.10/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-5.19.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) 75 static bool dce_dmcu_init(struct dmcu *dmcu) in dce_dmcu_init() argument 81 static bool dce_dmcu_load_iram(struct dmcu *dmcu, in dce_dmcu_load_iram() argument 86 struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); in dce_dmcu_load_iram() 109 static void dce_get_dmcu_psr_state(struct dmcu *dmcu, enum dc_psr_state *state) in dce_get_dmcu_psr_state() argument 111 struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); in dce_get_dmcu_psr_state() 132 static void dce_dmcu_set_psr_enable(struct dmcu *dmcu, bool enable, bool wait) in dce_dmcu_set_psr_enable() argument 134 struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); in dce_dmcu_set_psr_enable() 158 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-5.19.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 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-5.19.10/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/ ! |
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-5.19.10/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/ ! |
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()
|
D | rn_clk_mgr.c | 146 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in rn_update_clocks() local 249 dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in rn_update_clocks() 251 dmcu->funcs->set_psr_wait_loop(dmcu, in rn_update_clocks()
|
/linux-5.19.10/drivers/gpu/drm/amd/display/dc/dcn21/ ! |
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-5.19.10/drivers/gpu/drm/amd/display/modules/power/ ! |
D | power_helpers.c | 743 bool dmcu_load_iram(struct dmcu *dmcu, in dmcu_load_iram() argument 749 if (dmcu == NULL) in dmcu_load_iram() 752 if (dmcu && !dmcu->funcs->is_dmcu_initialized(dmcu)) in dmcu_load_iram() 757 if (dmcu->dmcu_version.abm_version == 0x24) { in dmcu_load_iram() 759 result = dmcu->funcs->load_iram( in dmcu_load_iram() 760 dmcu, 0, (char *)(&ram_table), IRAM_RESERVE_AREA_START_V2_2); in dmcu_load_iram() 761 } else if (dmcu->dmcu_version.abm_version == 0x23) { in dmcu_load_iram() 764 result = dmcu->funcs->load_iram( in dmcu_load_iram() 765 dmcu, 0, (char *)(&ram_table), IRAM_RESERVE_AREA_START_V2_2); in dmcu_load_iram() 766 } else if (dmcu->dmcu_version.abm_version == 0x22) { in dmcu_load_iram() [all …]
|
D | power_helpers.h | 49 bool dmcu_load_iram(struct dmcu *dmcu,
|
/linux-5.19.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-5.19.10/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/ ! |
D | dcn20_clk_mgr.c | 221 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in dcn2_update_clocks() local 328 dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dcn2_update_clocks() 330 dmcu->funcs->set_psr_wait_loop(dmcu, in dcn2_update_clocks()
|
/linux-5.19.10/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/ ! |
D | dcn30_clk_mgr.c | 250 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in dcn3_update_clocks() local 363 if (update_dispclk && dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) in dcn3_update_clocks() 365 dmcu->funcs->set_psr_wait_loop(dmcu, in dcn3_update_clocks()
|
/linux-5.19.10/drivers/gpu/drm/amd/display/dc/core/ ! |
D | dc_link.c | 3022 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_link_get_backlight_level() local 3025 if (dmcu) in dc_link_get_backlight_level() 3026 fw_set_brightness = dmcu->funcs->is_dmcu_initialized(dmcu); in dc_link_get_backlight_level() 3099 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_link_set_psr_allow_active() local 3135 } else if ((dmcu != NULL && dmcu->funcs->is_dmcu_initialized(dmcu)) && in dc_link_set_psr_allow_active() 3137 dmcu->funcs->set_psr_enable(dmcu, link->psr_settings.psr_allow_active, wait); in dc_link_set_psr_allow_active() 3148 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_link_get_psr_state() local 3157 else if (dmcu != NULL && link->psr_settings.psr_feature_enabled) in dc_link_get_psr_state() 3158 dmcu->funcs->get_psr_state(dmcu, state); in dc_link_get_psr_state() 3203 struct dmcu *dmcu; in dc_link_setup_psr() local [all …]
|
D | dc.c | 490 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_stream_forward_dmcu_crc_window() local 499 if ((dmcu != NULL && dmcu->funcs->is_dmcu_initialized(dmcu))) { in dc_stream_forward_dmcu_crc_window() 523 dmcu->funcs->forward_crc_window(dmcu, crc_win, mux_mapping); in dc_stream_forward_dmcu_crc_window() 535 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_stream_stop_dmcu_crc_win_update() local 539 if ((dmcu != NULL && dmcu->funcs->is_dmcu_initialized(dmcu))) { in dc_stream_stop_dmcu_crc_win_update() 557 dmcu->funcs->stop_crc_win_update(dmcu, mux_mapping); in dc_stream_stop_dmcu_crc_win_update() 1232 if (dc->res_pool->dmcu != NULL) in dc_create() 1233 dc->versions.dmcu_version = dc->res_pool->dmcu->dmcu_version; in dc_create() 3360 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_is_dmcu_initialized() local 3362 if (dmcu) in dc_is_dmcu_initialized() [all …]
|
D | dc_link_dp.c | 7101 struct dmcu *dmcu = dc->res_pool->dmcu; in dp_enable_link_phy() local 7142 if (dmcu != NULL && dmcu->funcs->lock_phy) in dp_enable_link_phy() 7143 dmcu->funcs->lock_phy(dmcu); in dp_enable_link_phy() 7149 if (dmcu != NULL && dmcu->funcs->unlock_phy) in dp_enable_link_phy() 7150 dmcu->funcs->unlock_phy(dmcu); in dp_enable_link_phy() 7227 struct dmcu *dmcu = dc->res_pool->dmcu; in dp_disable_link_phy() local 7241 if (dmcu != NULL && dmcu->funcs->lock_phy) in dp_disable_link_phy() 7242 dmcu->funcs->lock_phy(dmcu); in dp_disable_link_phy() 7245 if (dmcu != NULL && dmcu->funcs->unlock_phy) in dp_disable_link_phy() 7246 dmcu->funcs->unlock_phy(dmcu); in dp_disable_link_phy()
|
/linux-5.19.10/drivers/gpu/drm/amd/display/dc/dce60/ ! |
D | dce60_resource.c | 848 if (pool->base.dmcu != NULL) in dce60_resource_destruct() 849 dce_dmcu_destroy(&pool->base.dmcu); in dce60_resource_destruct() 1006 pool->base.dmcu = dce_dmcu_create(ctx, in dce60_construct() 1010 if (pool->base.dmcu == NULL) { in dce60_construct() 1203 pool->base.dmcu = dce_dmcu_create(ctx, in dce61_construct() 1207 if (pool->base.dmcu == NULL) { in dce61_construct() 1396 pool->base.dmcu = dce_dmcu_create(ctx, in dce64_construct() 1400 if (pool->base.dmcu == NULL) { in dce64_construct()
|
/linux-5.19.10/drivers/gpu/drm/amd/display/dc/dce80/ ! |
D | dce80_resource.c | 853 if (pool->base.dmcu != NULL) in dce80_resource_destruct() 854 dce_dmcu_destroy(&pool->base.dmcu); in dce80_resource_destruct() 1017 pool->base.dmcu = dce_dmcu_create(ctx, in dce80_construct() 1021 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() 1411 pool->base.dmcu = dce_dmcu_create(ctx, in dce83_construct() 1415 if (pool->base.dmcu == NULL) { in dce83_construct()
|
/linux-5.19.10/drivers/gpu/drm/amd/display/dc/inc/ ! |
D | core_types.h | 282 struct dmcu *dmcu; member
|
/linux-5.19.10/drivers/gpu/drm/amd/display/dc/dce110/ ! |
D | dce110_hw_sequencer.c | 2574 struct dmcu *dmcu; in init_hw() local 2634 dmcu = dc->res_pool->dmcu; in init_hw() 2635 if (dmcu != NULL && abm != NULL) in init_hw() 2636 abm->dmcu_is_running = dmcu->funcs->is_dmcu_initialized(dmcu); in init_hw() 2949 struct dmcu *dmcu = dc->res_pool->dmcu; in dce110_set_backlight_level() local 2959 if (dmcu) in dce110_set_backlight_level() 2960 fw_set_brightness = dmcu->funcs->is_dmcu_initialized(dmcu); in dce110_set_backlight_level()
|
/linux-5.19.10/drivers/gpu/drm/amd/display/dc/dce100/ ! |
D | dce100_resource.c | 812 if (pool->base.dmcu != NULL) in dce100_resource_destruct() 813 dce_dmcu_destroy(&pool->base.dmcu); in dce100_resource_destruct() 1033 pool->base.dmcu = dce_dmcu_create(ctx, in dce100_resource_construct() 1037 if (pool->base.dmcu == NULL) { in dce100_resource_construct()
|
/linux-5.19.10/drivers/gpu/drm/amd/display/dc/dce120/ ! |
D | dce120_resource.c | 660 if (pool->base.dmcu != NULL) in dce120_resource_destruct() 661 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()
|
/linux-5.19.10/drivers/gpu/drm/amd/display/dc/dce112/ ! |
D | dce112_resource.c | 835 if (pool->base.dmcu != NULL) in dce112_resource_destruct() 836 dce_dmcu_destroy(&pool->base.dmcu); in dce112_resource_destruct() 1293 pool->base.dmcu = dce_dmcu_create(ctx, in dce112_resource_construct() 1297 if (pool->base.dmcu == NULL) { in dce112_resource_construct()
|