Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/gpu/drm/amd/display/dc/inc/hw/
H A Ddmcu.h60 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 …]
/openbmc/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()
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 …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce/
H A Ddce_dmcu.c72 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 …]
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()
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn10/
H A Drv1_clk_mgr_vbios_smu.c130 struct dmcu *dmcu = dc->res_pool->dmcu; in rv1_vbios_smu_set_dispclk() local
138 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in rv1_vbios_smu_set_dispclk()
140 dmcu->funcs->set_psr_wait_loop(dmcu, in rv1_vbios_smu_set_dispclk()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/
H A Drn_clk_mgr_vbios_smu.c142 struct dmcu *dmcu = dc->res_pool->dmcu; in rn_vbios_smu_set_dispclk() local
150 if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) { in rn_vbios_smu_set_dispclk()
152 dmcu->funcs->set_psr_wait_loop(dmcu, in rn_vbios_smu_set_dispclk()
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()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/link/protocols/
H A Dlink_edp_panel_control.c547 struct dmcu *dmcu = dc->res_pool->dmcu; in edp_set_psr_allow_active() local
583 } else if ((dmcu != NULL && dmcu->funcs->is_dmcu_initialized(dmcu)) && in edp_set_psr_allow_active()
585 dmcu->funcs->set_psr_enable(dmcu, link->psr_settings.psr_allow_active, wait); in edp_set_psr_allow_active()
595 struct dmcu *dmcu = dc->res_pool->dmcu; in edp_get_psr_state() local
605 dmcu->funcs->get_psr_state(dmcu, state); in edp_get_psr_state()
652 struct dmcu *dmcu; in edp_setup_psr() local
666 dmcu = dc->res_pool->dmcu; in edp_setup_psr()
669 if (!dmcu && !psr) in edp_setup_psr()
1058 struct dmcu *dmcu = dc->res_pool->dmcu; in edp_get_backlight_level() local
1061 if (dmcu) in edp_get_backlight_level()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn21/
H A Ddcn21_hwseq.c184 struct dmcu *dmcu = pipe_ctx->stream->ctx->dc->res_pool->dmcu; in dcn21_set_abm_immediate_disable() local
186 if (dmcu) { in dcn21_set_abm_immediate_disable()
211 struct dmcu *dmcu = pipe_ctx->stream->ctx->dc->res_pool->dmcu; in dcn21_set_pipe() local
219 if (dmcu) { in dcn21_set_pipe()
253 if (dc->dc->res_pool->dmcu) { in dcn21_set_backlight_level()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/
H A 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()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn314/
H A Ddcn314_hwseq.c476 struct dmcu *dmcu = dc->res_pool->dmcu; in dcn314_disable_link_output() local
482 else if (dmcu != NULL && dmcu->funcs->lock_phy) in dcn314_disable_link_output()
483 dmcu->funcs->lock_phy(dmcu); in dcn314_disable_link_output()
492 if (dmcu != NULL && dmcu->funcs->lock_phy) in dcn314_disable_link_output()
493 dmcu->funcs->unlock_phy(dmcu); in dcn314_disable_link_output()
/openbmc/linux/drivers/gpu/drm/amd/display/modules/power/
H A Dpower_helpers.c766 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 …]
H A Dpower_helpers.h50 bool dmcu_load_iram(struct dmcu *dmcu,
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/
H A Ddcn30_clk_mgr.c205 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in dcn3_update_clocks() local
316 if (update_dispclk && dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) in dcn3_update_clocks()
318 dmcu->funcs->set_psr_wait_loop(dmcu, in dcn3_update_clocks()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce110/
H A Ddce110_hw_sequencer.c2589 struct dmcu *dmcu; in init_hw() local
2649 dmcu = dc->res_pool->dmcu; in init_hw()
2965 struct dmcu *dmcu = dc->res_pool->dmcu; in dce110_set_backlight_level() local
3050 struct dmcu *dmcu = dc->res_pool->dmcu; in dce110_enable_dp_link_output() local
3094 if (dmcu != NULL && dmcu->funcs->lock_phy) in dce110_enable_dp_link_output()
3095 dmcu->funcs->lock_phy(dmcu); in dce110_enable_dp_link_output()
3104 dmcu->funcs->unlock_phy(dmcu); in dce110_enable_dp_link_output()
3115 struct dmcu *dmcu = dc->res_pool->dmcu; in dce110_disable_link_output() local
3121 dmcu->funcs->lock_phy(dmcu); in dce110_disable_link_output()
3130 if (dmcu != NULL && dmcu->funcs->lock_phy) in dce110_disable_link_output()
[all …]
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/
H A Ddcn32_clk_mgr.c466 struct dmcu *dmcu = clk_mgr_base->ctx->dc->res_pool->dmcu; in dcn32_update_clocks() local
654 if (update_dispclk && dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) in dcn32_update_clocks()
656 dmcu->funcs->set_psr_wait_loop(dmcu, in dcn32_update_clocks()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce60/
H A Ddce60_resource.c849 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()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce80/
H A Ddce80_resource.c856 if (pool->base.dmcu != NULL) in dce80_resource_destruct()
857 dce_dmcu_destroy(&pool->base.dmcu); in dce80_resource_destruct()
1021 pool->base.dmcu = dce_dmcu_create(ctx, in dce80_construct()
1025 if (pool->base.dmcu == NULL) { in dce80_construct()
1221 pool->base.dmcu = dce_dmcu_create(ctx, in dce81_construct()
1225 if (pool->base.dmcu == NULL) { in dce81_construct()
1418 pool->base.dmcu = dce_dmcu_create(ctx, in dce83_construct()
1422 if (pool->base.dmcu == NULL) { in dce83_construct()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn32/
H A Ddcn32_hwseq.c1324 struct dmcu *dmcu = dc->res_pool->dmcu; in dcn32_disable_link_output() local
1329 else if (dmcu != NULL && dmcu->funcs->lock_phy) in dcn32_disable_link_output()
1330 dmcu->funcs->lock_phy(dmcu); in dcn32_disable_link_output()
1338 else if (dmcu != NULL && dmcu->funcs->lock_phy) in dcn32_disable_link_output()
1339 dmcu->funcs->unlock_phy(dmcu); in dcn32_disable_link_output()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/inc/
H A Dcore_types.h281 struct dmcu *dmcu; member
/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc.c522 dc_stream_forward_dmcu_crc_window(struct dmcu *dmcu, in dc_stream_forward_dmcu_crc_window() argument
526 dmcu->funcs->stop_crc_win_update(dmcu, mux_mapping); in dc_stream_forward_dmcu_crc_window()
528 dmcu->funcs->forward_crc_window(dmcu, rect, mux_mapping); in dc_stream_forward_dmcu_crc_window()
535 struct dmcu *dmcu; in dc_stream_forward_crc_window() local
555 dmcu = dc->res_pool->dmcu; in dc_stream_forward_crc_window()
562 else if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu)) in dc_stream_forward_crc_window()
1322 if (dc->res_pool->dmcu != NULL) in dc_create()
1323 dc->versions.dmcu_version = dc->res_pool->dmcu->dmcu_version; in dc_create()
4644 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_is_dmcu_initialized() local
4646 if (dmcu) in dc_is_dmcu_initialized()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce100/
H A Ddce100_resource.c815 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()

12