Home
last modified time | relevance | path

Searched refs:dmcu (Results 1 – 25 of 36) sorted by relevance

12

/drivers/gpu/drm/amd/display/dc/inc/hw/
Ddmcu.h48 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 …]
/drivers/gpu/drm/amd/display/dc/
Ddc_edid_parser.c35 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 …]
/drivers/gpu/drm/amd/display/dc/dce/
Ddce_dmcu.c37 #define TO_DCE_DMCU(dmcu)\ argument
38 container_of(dmcu, struct dce_dmcu, base)
77 static bool dce_dmcu_init(struct dmcu *dmcu) in dce_dmcu_init() argument
83 static bool dce_dmcu_load_iram(struct dmcu *dmcu, in dce_dmcu_load_iram() argument
88 struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); in dce_dmcu_load_iram()
111 static void dce_get_dmcu_psr_state(struct dmcu *dmcu, enum dc_psr_state *state) in dce_get_dmcu_psr_state() argument
113 struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); in dce_get_dmcu_psr_state()
134 static void dce_dmcu_set_psr_enable(struct dmcu *dmcu, bool enable, bool wait) in dce_dmcu_set_psr_enable() argument
136 struct dce_dmcu *dmcu_dce = TO_DCE_DMCU(dmcu); in dce_dmcu_set_psr_enable()
160 dce_get_dmcu_psr_state(dmcu, &state); in dce_dmcu_set_psr_enable()
[all …]
Ddce_dmcu.h234 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);
Ddce_clk_mgr.c254 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/clk_mgr/dce112/
Ddce112_clk_mgr.c76 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()
/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/
Drv1_clk_mgr_vbios_smu.c127 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()
/drivers/gpu/drm/amd/display/dc/core/
Ddc_link_hwss.c72 struct dmcu *dmcu = dc->res_pool->dmcu; in dp_enable_link_phy() local
117 if (dmcu != NULL && dmcu->funcs->lock_phy) in dp_enable_link_phy()
118 dmcu->funcs->lock_phy(dmcu); in dp_enable_link_phy()
132 if (dmcu != NULL && dmcu->funcs->unlock_phy) in dp_enable_link_phy()
133 dmcu->funcs->unlock_phy(dmcu); in dp_enable_link_phy()
208 struct dmcu *dmcu = dc->res_pool->dmcu; in dp_disable_link_phy() local
227 if (dmcu != NULL && dmcu->funcs->lock_phy) in dp_disable_link_phy()
228 dmcu->funcs->lock_phy(dmcu); in dp_disable_link_phy()
232 if (dmcu != NULL && dmcu->funcs->unlock_phy) in dp_disable_link_phy()
233 dmcu->funcs->unlock_phy(dmcu); in dp_disable_link_phy()
Ddc_link.c2588 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_link_get_backlight_level() local
2591 if (dmcu) in dc_link_get_backlight_level()
2592 fw_set_brightness = dmcu->funcs->is_dmcu_initialized(dmcu); in dc_link_get_backlight_level()
2665 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_link_set_psr_allow_active() local
2685 …} else if ((dmcu != NULL && dmcu->funcs->is_dmcu_initialized(dmcu)) && link->psr_settings.psr_feat… in dc_link_set_psr_allow_active()
2686 dmcu->funcs->set_psr_enable(dmcu, allow_active, wait); in dc_link_set_psr_allow_active()
2696 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_link_get_psr_state() local
2705 else if (dmcu != NULL && link->psr_settings.psr_feature_enabled) in dc_link_get_psr_state()
2706 dmcu->funcs->get_psr_state(dmcu, state); in dc_link_get_psr_state()
2751 struct dmcu *dmcu; in dc_link_setup_psr() local
[all …]
Ddc.c400 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_stream_forward_dmcu_crc_window() local
409 if ((dmcu != NULL && dmcu->funcs->is_dmcu_initialized(dmcu))) { in dc_stream_forward_dmcu_crc_window()
433 dmcu->funcs->forward_crc_window(dmcu, crc_win, mux_mapping); in dc_stream_forward_dmcu_crc_window()
445 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_stream_stop_dmcu_crc_win_update() local
449 if ((dmcu != NULL && dmcu->funcs->is_dmcu_initialized(dmcu))) { in dc_stream_stop_dmcu_crc_win_update()
467 dmcu->funcs->stop_crc_win_update(dmcu, mux_mapping); in dc_stream_stop_dmcu_crc_win_update()
1131 if (dc->res_pool->dmcu != NULL) in dc_create()
1132 dc->versions.dmcu_version = dc->res_pool->dmcu->dmcu_version; in dc_create()
3465 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_is_dmcu_initialized() local
3467 if (dmcu) in dc_is_dmcu_initialized()
[all …]
/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/
Drn_clk_mgr_vbios_smu.c123 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()
Drn_clk_mgr.c138 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in rn_update_clocks() local
240 dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in rn_update_clocks()
242 dmcu->funcs->set_psr_wait_loop(dmcu, in rn_update_clocks()
/drivers/gpu/drm/amd/display/dc/dcn21/
Ddcn21_hwseq.c168 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()
/drivers/gpu/drm/amd/display/modules/power/
Dpower_helpers.c743 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 …]
Dpower_helpers.h49 bool dmcu_load_iram(struct dmcu *dmcu,
/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/
Ddce_clk_mgr.c237 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()
/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/
Ddcn20_clk_mgr.c220 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in dcn2_update_clocks() local
327 dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in dcn2_update_clocks()
329 dmcu->funcs->set_psr_wait_loop(dmcu, in dcn2_update_clocks()
/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/
Ddcn30_clk_mgr.c255 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in dcn3_update_clocks() local
353 if (update_dispclk && dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) in dcn3_update_clocks()
355 dmcu->funcs->set_psr_wait_loop(dmcu, in dcn3_update_clocks()
/drivers/gpu/drm/amd/display/dc/dce60/
Ddce60_resource.c848 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()
1204 pool->base.dmcu = dce_dmcu_create(ctx, in dce61_construct()
1208 if (pool->base.dmcu == NULL) { in dce61_construct()
1398 pool->base.dmcu = dce_dmcu_create(ctx, in dce64_construct()
1402 if (pool->base.dmcu == NULL) { in dce64_construct()
/drivers/gpu/drm/amd/display/dc/dce80/
Ddce80_resource.c853 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()
1217 pool->base.dmcu = dce_dmcu_create(ctx, in dce81_construct()
1221 if (pool->base.dmcu == NULL) { in dce81_construct()
1413 pool->base.dmcu = dce_dmcu_create(ctx, in dce83_construct()
1417 if (pool->base.dmcu == NULL) { in dce83_construct()
/drivers/gpu/drm/amd/display/dc/inc/
Dcore_types.h278 struct dmcu *dmcu; member
/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_hw_sequencer.c2526 struct dmcu *dmcu; in init_hw() local
2586 dmcu = dc->res_pool->dmcu; in init_hw()
2587 if (dmcu != NULL && abm != NULL) in init_hw()
2588 abm->dmcu_is_running = dmcu->funcs->is_dmcu_initialized(dmcu); in init_hw()
2901 struct dmcu *dmcu = dc->res_pool->dmcu; in dce110_set_backlight_level() local
2911 if (dmcu) in dce110_set_backlight_level()
2912 fw_set_brightness = dmcu->funcs->is_dmcu_initialized(dmcu); in dce110_set_backlight_level()
/drivers/gpu/drm/amd/display/dc/dce100/
Ddce100_resource.c812 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()
/drivers/gpu/drm/amd/display/dc/dce120/
Ddce120_resource.c661 if (pool->base.dmcu != NULL) in dce120_resource_destruct()
662 dce_dmcu_destroy(&pool->base.dmcu); in dce120_resource_destruct()
1128 pool->base.dmcu = dce_dmcu_create(ctx, in dce120_resource_construct()
1132 if (pool->base.dmcu == NULL) { in dce120_resource_construct()
/drivers/gpu/drm/amd/display/dc/dce112/
Ddce112_resource.c835 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()

12