| /linux/drivers/gpu/drm/amd/display/dc/inc/hw/ |
| H A D | dmcu.h | 48 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 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 …]
|
| H A D | dc.h | 798 bool dmcu: 1; member
|
| /linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dce112/ |
| H A D | dce112_clk_mgr.c | 76 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 D | dcn21_hwseq.c | 183 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/dce/ |
| H 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);
|
| /linux/drivers/gpu/drm/amd/display/modules/power/ |
| H A D | power_helpers.c | 782 bool dmcu_load_iram(struct dmcu *dmcu, in dmcu_load_iram() argument 788 if (dmcu == NULL) in dmcu_load_iram() 791 if (dmcu && !dmcu->funcs->is_dmcu_initialized(dmcu)) in dmcu_load_iram() 796 if (dmcu->dmcu_version.abm_version == 0x24) { in dmcu_load_iram() 798 result = dmcu->funcs->load_iram(dmcu, 0, (char *)(&ram_table), in dmcu_load_iram() 800 } else if (dmcu->dmcu_version.abm_version == 0x23) { in dmcu_load_iram() 803 result = dmcu->funcs->load_iram( in dmcu_load_iram() 804 dmcu, 0, (char *)(&ram_table), IRAM_RESERVE_AREA_START_V2_2); in dmcu_load_iram() 805 } else if (dmcu->dmcu_version.abm_version == 0x22) { in dmcu_load_iram() 808 result = dmcu->funcs->load_iram( in dmcu_load_iram() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/ |
| H 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/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn401/ |
| H A D | dcn401_clk_mgr.h | 71 struct dmcu *dmcu; member
|
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dce110/ |
| H A D | dce110_hwseq.c | 2919 struct dmcu *dmcu; in dce110_init_hw() local 2982 dmcu = dc->res_pool->dmcu; in dce110_init_hw() 2983 if (dmcu != NULL && abm != NULL) in dce110_init_hw() 2984 abm->dmcu_is_running = dmcu->funcs->is_dmcu_initialized(dmcu); in dce110_init_hw() 3308 struct dmcu *dmcu = dc->res_pool->dmcu; in dce110_set_backlight_level() local 3318 if (dmcu) in dce110_set_backlight_level() 3319 fw_set_brightness = dmcu->funcs->is_dmcu_initialized(dmcu); in dce110_set_backlight_level() 3404 struct dmcu *dmcu = dc->res_pool->dmcu; in dce110_enable_dp_link_output() local 3453 if (dmcu != NULL && dmcu->funcs->lock_phy) in dce110_enable_dp_link_output() 3454 dmcu->funcs->lock_phy(dmcu); in dce110_enable_dp_link_output() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dce80/ |
| H A D | dce80_resource.c | 884 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/resource/dce60/ |
| H A D | dce60_resource.c | 877 if (pool->base.dmcu != NULL) in dce60_resource_destruct() 878 dce_dmcu_destroy(&pool->base.dmcu); in dce60_resource_destruct() 983 pool->base.dmcu = dce_dmcu_create(ctx, in dce60_construct() 987 if (pool->base.dmcu == NULL) { in dce60_construct() 1181 pool->base.dmcu = dce_dmcu_create(ctx, in dce61_construct() 1185 if (pool->base.dmcu == NULL) { in dce61_construct() 1378 pool->base.dmcu = dce_dmcu_create(ctx, in dce64_construct() 1382 if (pool->base.dmcu == NULL) { in dce64_construct()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dce100/ |
| H A D | dce100_resource.c | 841 if (pool->base.dmcu != NULL) in dce100_resource_destruct() 842 dce_dmcu_destroy(&pool->base.dmcu); in dce100_resource_destruct() 1088 pool->base.dmcu = dce_dmcu_create(ctx, in dce100_resource_construct() 1092 if (pool->base.dmcu == NULL) { in dce100_resource_construct()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dce120/ |
| H A D | dce120_resource.c | 664 if (pool->base.dmcu != NULL) in dce120_resource_destruct() 665 dce_dmcu_destroy(&pool->base.dmcu); in dce120_resource_destruct() 1141 pool->base.dmcu = dce_dmcu_create(ctx, in dce120_resource_construct() 1145 if (pool->base.dmcu == NULL) { in dce120_resource_construct()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dce112/ |
| H A D | dce112_resource.c | 843 if (pool->base.dmcu != NULL) in dce112_resource_destruct() 844 dce_dmcu_destroy(&pool->base.dmcu); in dce112_resource_destruct() 1310 pool->base.dmcu = dce_dmcu_create(ctx, in dce112_resource_construct() 1314 if (pool->base.dmcu == NULL) { in dce112_resource_construct()
|
| /linux/drivers/gpu/drm/amd/display/dc/core/ |
| H 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() 555 dc_stream_forward_dmcu_crc_window(dmcu, rect, &mux_mapping, is_stop); in dc_stream_forward_crc_window() 1539 if (dc->res_pool->dmcu != NULL) in dc_create() 1540 dc->versions.dmcu_version = dc->res_pool->dmcu->dmcu_version; in dc_create() 5676 struct dmcu *dmcu = dc->res_pool->dmcu; in dc_is_dmcu_initialized() local [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dce110/ |
| H A D | dce110_resource.c | 878 if (pool->base.dmcu != NULL) in dce110_resource_destruct() 879 dce_dmcu_destroy(&pool->base.dmcu); in dce110_resource_destruct() 1425 pool->base.dmcu = dce_dmcu_create(ctx, in dce110_resource_construct() 1429 if (pool->base.dmcu == NULL) { in dce110_resource_construct()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn10/ |
| H A D | dcn10_resource.c | 1008 if (pool->base.dmcu != NULL) in dcn10_resource_destruct() 1009 dce_dmcu_destroy(&pool->base.dmcu); in dcn10_resource_destruct() 1491 pool->base.dmcu = dcn10_dmcu_create(ctx, in dcn10_resource_construct() 1495 if (pool->base.dmcu == NULL) { in dcn10_resource_construct()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn21/ |
| H A D | dcn21_resource.c | 782 if (pool->base.dmcu != NULL) in dcn21_resource_destruct() 783 dce_dmcu_destroy(&pool->base.dmcu); in dcn21_resource_destruct() 1560 pool->base.dmcu = dcn21_dmcu_create(ctx, in dcn21_resource_construct() 1564 if (pool->base.dmcu == NULL) { in dcn21_resource_construct()
|
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dcn401/ |
| H A D | dcn401_hwseq.c | 942 struct dmcu *dmcu = dc->res_pool->dmcu; in dcn401_disable_link_output() local 948 else if (dmcu != NULL && dmcu->funcs->lock_phy) in dcn401_disable_link_output() 949 dmcu->funcs->lock_phy(dmcu); in dcn401_disable_link_output() 963 else if (dmcu != NULL && dmcu->funcs->lock_phy) in dcn401_disable_link_output() 964 dmcu->funcs->unlock_phy(dmcu); in dcn401_disable_link_output()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn20/ |
| H A D | dcn20_resource.c | 1216 if (pool->base.dmcu != NULL) in dcn20_resource_destruct() 1217 dce_dmcu_destroy(&pool->base.dmcu); in dcn20_resource_destruct() 2587 pool->base.dmcu = dcn20_dmcu_create(ctx, in dcn20_resource_construct() 2591 if (pool->base.dmcu == NULL) { in dcn20_resource_construct()
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm.c | 1256 struct dmcu *dmcu = adev->dm.dc->res_pool->dmcu; in dm_dmub_hw_init() local 1355 if (dmcu) in dm_dmub_hw_init() 1356 hw_params.psp_version = dmcu->psp_version; in dm_dmub_hw_init() 1396 if (dmcu && abm) { in dm_dmub_hw_init() 1397 dmcu->funcs->dmcu_init(dmcu); in dm_dmub_hw_init() 1398 abm->dmcu_is_running = dmcu->funcs->is_dmcu_initialized(dmcu); in dm_dmub_hw_init() 2810 struct dmcu *dmcu = NULL; in dm_late_init() local 2812 dmcu = adev->dm.dc->res_pool->dmcu; in dm_late_init() 2837 if (dmcu) { in dm_late_init() 2838 if (!dmcu_load_iram(dmcu, params)) in dm_late_init()
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn314/ |
| H A D | dcn314_resource.c | 917 .dmcu = false, // This is previously known to cause hang on S3 cycles if enabled
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn316/ |
| H A D | dcn316_resource.c | 892 .dmcu = false, // This is previously known to cause hang on S3 cycles if enabled
|
| /linux/drivers/gpu/drm/amd/display/dc/resource/dcn351/ |
| H A D | dcn351_resource.c | 735 .dmcu = false, // This is previously known to cause hang on S3 cycles if enabled
|