Home
last modified time | relevance | path

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

12

/linux/drivers/gpu/drm/amd/display/dc/inc/hw/
H A Ddmcu.h48 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/drivers/gpu/drm/amd/display/dc/
H A 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 …]
/linux/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_dmcu.c34 #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 …]
H A 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);
H A 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()
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/
H A Ddce112_clk_mgr.c76 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/drivers/gpu/drm/amd/display/dc/hwss/dcn21/
H A Ddcn21_hwseq.c183 struct dmcu *dmcu = pipe_ctx->stream->ctx->dc->res_pool->dmcu; in dcn21_set_abm_immediate_disable() local
191 if (dmcu) { in dcn21_set_abm_immediate_disable()
216 struct dmcu *dmcu = pipe_ctx->stream->ctx->dc->res_pool->dmcu; in dcn21_set_pipe() local
224 if (dmcu) { in dcn21_set_pipe()
259 if (dc->dc->res_pool->dmcu) { in dcn21_set_backlight_level()
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/
H A Ddcn30_clk_mgr.c206 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()
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/
H A Ddcn20_clk_mgr.c229 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/drivers/gpu/drm/amd/display/dc/hwss/dce110/
H A Ddce110_hwseq.c2808 struct dmcu *dmcu; in dce110_init_hw() local
2871 dmcu = dc->res_pool->dmcu; in dce110_init_hw()
2872 if (dmcu != NULL && abm != NULL) in dce110_init_hw()
2873 abm->dmcu_is_running = dmcu->funcs->is_dmcu_initialized(dmcu); in dce110_init_hw()
3187 struct dmcu *dmcu = dc->res_pool->dmcu; in dce110_set_backlight_level() local
3197 if (dmcu) in dce110_set_backlight_level()
3198 fw_set_brightness = dmcu->funcs->is_dmcu_initialized(dmcu); in dce110_set_backlight_level()
3281 struct dmcu *dmcu = dc->res_pool->dmcu; in dce110_enable_dp_link_output() local
3325 if (dmcu != NULL && dmcu->funcs->lock_phy) in dce110_enable_dp_link_output()
3326 dmcu->funcs->lock_phy(dmcu); in dce110_enable_dp_link_output()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/
H A Ddcn401_clk_mgr.h71 struct dmcu *dmcu; member
H A Ddcn401_clk_mgr.c752 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()
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/
H A Drn_clk_mgr.c143 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/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/
H A Ddcn32_clk_mgr.c633 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/drivers/gpu/drm/amd/display/dc/resource/dce60/
H A Ddce60_resource.c878 if (pool->base.dmcu != NULL) in dce60_resource_destruct()
879 dce_dmcu_destroy(&pool->base.dmcu); in dce60_resource_destruct()
984 pool->base.dmcu = dce_dmcu_create(ctx, in dce60_construct()
988 if (pool->base.dmcu == NULL) { in dce60_construct()
1182 pool->base.dmcu = dce_dmcu_create(ctx, in dce61_construct()
1186 if (pool->base.dmcu == NULL) { in dce61_construct()
1379 pool->base.dmcu = dce_dmcu_create(ctx, in dce64_construct()
1383 if (pool->base.dmcu == NULL) { in dce64_construct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dce80/
H A Ddce80_resource.c884 if (pool->base.dmcu != NULL) in dce80_resource_destruct()
885 dce_dmcu_destroy(&pool->base.dmcu); in dce80_resource_destruct()
995 pool->base.dmcu = dce_dmcu_create(ctx, in dce80_construct()
999 if (pool->base.dmcu == NULL) { in dce80_construct()
1195 pool->base.dmcu = dce_dmcu_create(ctx, in dce81_construct()
1199 if (pool->base.dmcu == NULL) { in dce81_construct()
1393 pool->base.dmcu = dce_dmcu_create(ctx, in dce83_construct()
1397 if (pool->base.dmcu == NULL) { in dce83_construct()
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn35/
H A Ddcn35_hwseq.c83 if (dc->debug.enable_mem_low_power.bits.dmcu) {
1756 struct dmcu *dmcu = dc->res_pool->dmcu; in dcn35_disable_link_output() local
1762 else if (dmcu != NULL && dmcu->funcs->lock_phy) in dcn35_disable_link_output()
1763 dmcu->funcs->lock_phy(dmcu); in dcn35_disable_link_output()
1777 if (dmcu != NULL && dmcu->funcs->unlock_phy) in dcn35_disable_link_output()
1778 dmcu->funcs->unlock_phy(dmcu); in dcn35_disable_link_output()
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn32/
H A Ddcn32_hwseq.c1408 struct dmcu *dmcu = dc->res_pool->dmcu; in dcn32_disable_link_output() local
1414 else if (dmcu != NULL && dmcu->funcs->lock_phy) in dcn32_disable_link_output()
1415 dmcu->funcs->lock_phy(dmcu); in dcn32_disable_link_output()
1424 if (dmcu != NULL && dmcu->funcs->unlock_phy) in dcn32_disable_link_output()
1425 dmcu->funcs->unlock_phy(dmcu); in dcn32_disable_link_output()
/linux/drivers/gpu/drm/amd/display/dc/resource/dce100/
H A Ddce100_resource.c842 if (pool->base.dmcu != NULL) in dce100_resource_destruct()
843 dce_dmcu_destroy(&pool->base.dmcu); in dce100_resource_destruct()
1085 pool->base.dmcu = dce_dmcu_create(ctx, in dce100_resource_construct()
1089 if (pool->base.dmcu == NULL) { in dce100_resource_construct()
/linux/drivers/gpu/drm/amd/display/dc/inc/
H A Dcore_types.h321 struct dmcu *dmcu; member
/linux/drivers/gpu/drm/amd/display/dc/resource/dce120/
H A Ddce120_resource.c664 if (pool->base.dmcu != NULL) in dce120_resource_destruct()
665 dce_dmcu_destroy(&pool->base.dmcu); in dce120_resource_destruct()
1139 pool->base.dmcu = dce_dmcu_create(ctx, in dce120_resource_construct()
1143 if (pool->base.dmcu == NULL) { in dce120_resource_construct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dce112/
H A Ddce112_resource.c841 if (pool->base.dmcu != NULL) in dce112_resource_destruct()
842 dce_dmcu_destroy(&pool->base.dmcu); in dce112_resource_destruct()
1304 pool->base.dmcu = dce_dmcu_create(ctx, in dce112_resource_construct()
1308 if (pool->base.dmcu == NULL) { in dce112_resource_construct()
/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc.c583 dc_stream_forward_dmcu_crc_window(struct dmcu *dmcu, in dc_stream_forward_dmcu_crc_window() argument
587 dmcu->funcs->stop_crc_win_update(dmcu, mux_mapping); in dc_stream_forward_dmcu_crc_window()
589 dmcu->funcs->forward_crc_window(dmcu, rect, mux_mapping); in dc_stream_forward_dmcu_crc_window()
596 struct dmcu *dmcu; in dc_stream_forward_crc_window() local
616 dmcu = dc->res_pool->dmcu; in dc_stream_forward_crc_window()
623 else if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) in dc_stream_forward_crc_window()
624 dc_stream_forward_dmcu_crc_window(dmcu, rect, &mux_mapping, is_stop); in dc_stream_forward_crc_window()
1528 if (dc->res_pool->dmcu != NULL) in dc_create()
1529 dc->versions.dmcu_version = dc->res_pool->dmcu->dmcu_version; in dc_create()
5600 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_is_dmcu_initialized() local
[all …]
/linux/drivers/gpu/drm/amd/display/dc/resource/dcn10/
H A Ddcn10_resource.c974 if (pool->base.dmcu != NULL) in dcn10_resource_destruct()
975 dce_dmcu_destroy(&pool->base.dmcu); in dcn10_resource_destruct()
1448 pool->base.dmcu = dcn10_dmcu_create(ctx, in dcn10_resource_construct()
1452 if (pool->base.dmcu == NULL) { in dcn10_resource_construct()
/linux/drivers/gpu/drm/amd/display/dc/resource/dce110/
H A Ddce110_resource.c876 if (pool->base.dmcu != NULL) in dce110_resource_destruct()
877 dce_dmcu_destroy(&pool->base.dmcu); in dce110_resource_destruct()
1418 pool->base.dmcu = dce_dmcu_create(ctx, in dce110_resource_construct()
1422 if (pool->base.dmcu == NULL) { in dce110_resource_construct()

12