/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/link/hwss/ |
A D | link_hwss_dio.c | 42 struct stream_encoder *stream_enc = pipe_ctx->stream_res.stream_enc; in setup_dio_stream_encoder() local 49 if (stream_enc->funcs->enable_fifo) in setup_dio_stream_encoder() 50 stream_enc->funcs->enable_fifo(stream_enc); in setup_dio_stream_encoder() 56 struct stream_encoder *stream_enc = pipe_ctx->stream_res.stream_enc; in reset_dio_stream_encoder() local 58 if (stream_enc && stream_enc->funcs->disable_fifo) in reset_dio_stream_encoder() 59 stream_enc->funcs->disable_fifo(stream_enc); in reset_dio_stream_encoder() 63 pipe_ctx->stream_res.stream_enc->id, in reset_dio_stream_encoder() 177 pipe_ctx->stream_res.stream_enc, in setup_dio_audio_output() 182 pipe_ctx->stream_res.stream_enc, in setup_dio_audio_output() 192 pipe_ctx->stream_res.stream_enc); in enable_dio_audio_packet() [all …]
|
A D | link_hwss_hpo_dp.c | 91 struct hpo_dp_stream_encoder *stream_enc = pipe_ctx->stream_res.hpo_dp_stream_enc; in setup_hpo_dp_stream_encoder() local 94 stream_enc->funcs->enable_stream(stream_enc); in setup_hpo_dp_stream_encoder() 95 stream_enc->funcs->map_stream_to_link(stream_enc, stream_enc->inst, link_enc->inst); in setup_hpo_dp_stream_encoder() 100 struct hpo_dp_stream_encoder *stream_enc = pipe_ctx->stream_res.hpo_dp_stream_enc; in reset_hpo_dp_stream_encoder() local 102 stream_enc->funcs->disable(stream_enc); in reset_hpo_dp_stream_encoder() 107 struct hpo_dp_stream_encoder *stream_enc = pipe_ctx->stream_res.hpo_dp_stream_enc; in setup_hpo_dp_stream_attribute() local 111 stream_enc->funcs->set_stream_attribute( in setup_hpo_dp_stream_attribute() 112 stream_enc, in setup_hpo_dp_stream_attribute()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/link/ |
A D | link_hwss_hpo_frl.c | 31 struct hpo_frl_stream_encoder *stream_enc = pipe_ctx->stream_res.hpo_frl_stream_enc; in setup_hpo_frl_stream_attribute() local 40 stream_enc->funcs->hdmi_frl_set_stream_attribute( in setup_hpo_frl_stream_attribute() 41 stream_enc, in setup_hpo_frl_stream_attribute()
|
A D | link_dpms.c | 132 dc->res_pool->stream_enc[j]); in link_blank_dp_stream() 823 pipe_ctx->stream_res.stream_enc->funcs->dp_set_dsc_config(pipe_ctx->stream_res.stream_enc, in link_set_dsc_on_stream() 854 pipe_ctx->stream_res.stream_enc, in link_set_dsc_on_stream() 913 pipe_ctx->stream_res.stream_enc, in link_set_dsc_pps_packet() 1169 struct stream_encoder *stream_enc, in update_mst_stream_alloc_table() argument 1205 work_table[i].stream_enc = stream_enc; in update_mst_stream_alloc_table() 1275 pipe_ctx->stream_res.stream_enc, in deallocate_mst_payload_with_temp_drm_wa() 1368 pipe_ctx->stream_res.stream_enc, in deallocate_mst_payload() 1457 pipe_ctx->stream_res.stream_enc, in allocate_mst_payload() 1780 pipe_ctx->stream_res.stream_enc, in link_reduce_mst_payload() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn31/ |
A D | dcn31_hwseq.c | 96 …if (dc->debug.enable_mem_low_power.bits.vpg && dc->res_pool->stream_enc[0]->vpg->funcs->vpg_powerd… in enable_memory_low_power() 99 dc->res_pool->stream_enc[i]->vpg->funcs->vpg_powerdown(dc->res_pool->stream_enc[i]->vpg); in enable_memory_low_power() 404 if (pipe_ctx->stream_res.stream_enc == NULL) in dcn31_update_info_frame() 414 pipe_ctx->stream_res.stream_enc->funcs->update_hdmi_info_packets( in dcn31_update_info_frame() 415 pipe_ctx->stream_res.stream_enc, in dcn31_update_info_frame() 423 if (pipe_ctx->stream_res.stream_enc->funcs->update_dp_info_packets_sdp_line_num) in dcn31_update_info_frame() 424 pipe_ctx->stream_res.stream_enc->funcs->update_dp_info_packets_sdp_line_num( in dcn31_update_info_frame() 425 pipe_ctx->stream_res.stream_enc, in dcn31_update_info_frame() 428 pipe_ctx->stream_res.stream_enc->funcs->update_dp_info_packets( in dcn31_update_info_frame() 429 pipe_ctx->stream_res.stream_enc, in dcn31_update_info_frame() [all …]
|
A D | dcn31_hpo_dp_link_encoder.c | 271 const struct hpo_dp_stream_encoder *stream_enc = stream_allocation->hpo_dp_stream_enc; in fill_stream_allocation_row_info() local 273 if (stream_enc && (stream_enc->id >= ENGINE_ID_HPO_DP_0)) { in fill_stream_allocation_row_info() 274 *src = stream_enc->id - ENGINE_ID_HPO_DP_0; in fill_stream_allocation_row_info()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn30/ |
A D | dcn30_hwseq.c | 653 pipe_ctx->stream_res.stream_enc->funcs->set_avmute( in dcn30_set_avmute() 654 pipe_ctx->stream_res.stream_enc, in dcn30_set_avmute() 665 if (pipe_ctx->stream_res.stream_enc == NULL) in dcn30_update_info_frame() 675 pipe_ctx->stream_res.stream_enc->funcs->update_hdmi_info_packets( in dcn30_update_info_frame() 676 pipe_ctx->stream_res.stream_enc, in dcn30_update_info_frame() 681 pipe_ctx->stream_res.stream_enc, in dcn30_update_info_frame() 684 pipe_ctx->stream_res.stream_enc->funcs->update_dp_info_packets( in dcn30_update_info_frame() 685 pipe_ctx->stream_res.stream_enc, in dcn30_update_info_frame() 695 struct stream_encoder *stream_enc = pipe_ctx->stream_res.stream_enc; in dcn30_program_dmdata_engine() local 709 if (!stream_enc || !stream_enc->funcs->set_dynamic_metadata) in dcn30_program_dmdata_engine() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/ |
A D | dcn20_clk_mgr.c | 156 struct stream_encoder *stream_enc = pipe_ctx->stream_res.stream_enc; in dcn20_update_clocks_update_dentist() local 163 if (!stream_enc->funcs->get_fifo_cal_average_level) in dcn20_update_clocks_update_dentist() 165 fifo_level = stream_enc->funcs->get_fifo_cal_average_level( in dcn20_update_clocks_update_dentist() 166 stream_enc); in dcn20_update_clocks_update_dentist() 186 struct stream_encoder *stream_enc = pipe_ctx->stream_res.stream_enc; in dcn20_update_clocks_update_dentist() local 194 if (!stream_enc->funcs->get_fifo_cal_average_level) in dcn20_update_clocks_update_dentist() 196 fifo_level = stream_enc->funcs->get_fifo_cal_average_level( in dcn20_update_clocks_update_dentist() 197 stream_enc); in dcn20_update_clocks_update_dentist()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/ |
A D | dcn32_clk_mgr.c | 286 struct stream_encoder *stream_enc = pipe_ctx->stream_res.stream_enc; in dcn32_update_clocks_update_dentist() local 293 if (!stream_enc->funcs->get_fifo_cal_average_level) in dcn32_update_clocks_update_dentist() 295 fifo_level = stream_enc->funcs->get_fifo_cal_average_level( in dcn32_update_clocks_update_dentist() 296 stream_enc); in dcn32_update_clocks_update_dentist() 320 struct stream_encoder *stream_enc = pipe_ctx->stream_res.stream_enc; in dcn32_update_clocks_update_dentist() local 328 if (!stream_enc->funcs->get_fifo_cal_average_level) in dcn32_update_clocks_update_dentist() 330 fifo_level = stream_enc->funcs->get_fifo_cal_average_level( in dcn32_update_clocks_update_dentist() 331 stream_enc); in dcn32_update_clocks_update_dentist()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/ |
A D | dcn314_clk_mgr.c | 140 struct stream_encoder *stream_enc = pipe->stream_res.stream_enc; in dcn314_disable_otg_wa() local 143 if (stream_enc && stream_enc->funcs->disable_fifo) in dcn314_disable_otg_wa() 144 pipe->stream_res.stream_enc->funcs->disable_fifo(stream_enc); in dcn314_disable_otg_wa() 151 if (stream_enc && stream_enc->funcs->enable_fifo) in dcn314_disable_otg_wa() 152 pipe->stream_res.stream_enc->funcs->enable_fifo(stream_enc); in dcn314_disable_otg_wa()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce110/ |
A D | dce110_hw_sequencer.c | 641 if (pipe_ctx->stream_res.stream_enc == NULL) in dce110_update_info_frame() 652 pipe_ctx->stream_res.stream_enc, in dce110_update_info_frame() 657 pipe_ctx->stream_res.stream_enc, in dce110_update_info_frame() 661 pipe_ctx->stream_res.stream_enc, in dce110_update_info_frame() 1159 pipe_ctx->stream_res.stream_enc); in dce110_disable_stream() 1161 pipe_ctx->stream_res.stream_enc); in dce110_disable_stream() 1169 pipe_ctx->stream_res.stream_enc); in dce110_disable_stream() 1208 …pipe_ctx->stream_res.stream_enc->funcs->dp_unblank(link, pipe_ctx->stream_res.stream_enc, ¶ms); in dce110_unblank_stream() 1231 pipe_ctx->stream_res.stream_enc->funcs->dp_blank(link, pipe_ctx->stream_res.stream_enc); in dce110_blank_stream() 1259 pipe_ctx->stream_res.stream_enc->funcs->set_avmute(pipe_ctx->stream_res.stream_enc, enable); in dce110_set_avmute() [all …]
|
A D | dce110_resource.c | 850 if (pool->base.stream_enc[i] != NULL) in dce110_resource_destruct() 851 kfree(DCE110STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dce110_resource_destruct() 1207 pool->stream_enc[i]) { in dce110_find_first_free_match_stream_enc_for_link() 1212 if (pool->stream_enc[i]->id == in dce110_find_first_free_match_stream_enc_for_link() 1214 return pool->stream_enc[i]; in dce110_find_first_free_match_stream_enc_for_link() 1223 return pool->stream_enc[j]; in dce110_find_first_free_match_stream_enc_for_link()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn314/ |
A D | dcn314_hwseq.c | 381 if (!pipe_ctx || !pipe_ctx->stream || !pipe_ctx->stream_res.stream_enc) in dcn314_set_pixels_per_cycle() 388 if (pipe_ctx->stream_res.stream_enc->funcs->set_input_mode) in dcn314_set_pixels_per_cycle() 389 pipe_ctx->stream_res.stream_enc->funcs->set_input_mode(pipe_ctx->stream_res.stream_enc, in dcn314_set_pixels_per_cycle()
|
A D | dcn314_resource.c | 1412 if (pool->base.stream_enc[i] != NULL) { in dcn314_resource_destruct() 1413 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn314_resource_destruct() 1414 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn314_resource_destruct() 1415 pool->base.stream_enc[i]->vpg = NULL; in dcn314_resource_destruct() 1417 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn314_resource_destruct() 1418 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn314_resource_destruct() 1419 pool->base.stream_enc[i]->afmt = NULL; in dcn314_resource_destruct() 1421 kfree(DCN10STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dcn314_resource_destruct() 1422 pool->base.stream_enc[i] = NULL; in dcn314_resource_destruct()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/core/ |
A D | dc_resource.c | 387 if (pool->stream_enc[i] == NULL) in resource_construct() 1581 free_pipe->stream_res.stream_enc = tail_pipe->next_odm_pipe->stream_res.stream_enc; in dc_add_plane_to_context() 1628 free_pipe->stream_res.stream_enc = head_pipe->next_odm_pipe->stream_res.stream_enc; in dc_add_plane_to_context() 1647 free_pipe->stream_res.stream_enc = tail_pipe->stream_res.stream_enc; in dc_add_plane_to_context() 1948 struct stream_encoder *stream_enc, in update_stream_engine_usage() argument 1954 if (pool->stream_enc[i] == stream_enc) in update_stream_engine_usage() 2213 del_pipe->stream_res.stream_enc, in dc_remove_stream_from_ctx() 2361 pool->stream_enc[i]); in acquire_resource_from_hw_enabled_state() 2500 pipe_ctx->stream_res.stream_enc = in resource_map_pool_resources() 2509 pipe_ctx->stream_res.stream_enc, in resource_map_pool_resources() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn303/ |
A D | dcn303_resource.c | 941 if (pool->stream_enc[i] != NULL) { in dcn303_resource_destruct() 942 if (pool->stream_enc[i]->vpg != NULL) { in dcn303_resource_destruct() 943 kfree(DCN30_VPG_FROM_VPG(pool->stream_enc[i]->vpg)); in dcn303_resource_destruct() 944 pool->stream_enc[i]->vpg = NULL; in dcn303_resource_destruct() 946 if (pool->stream_enc[i]->afmt != NULL) { in dcn303_resource_destruct() 947 kfree(DCN30_AFMT_FROM_AFMT(pool->stream_enc[i]->afmt)); in dcn303_resource_destruct() 948 pool->stream_enc[i]->afmt = NULL; in dcn303_resource_destruct() 950 kfree(DCN10STRENC_FROM_STRENC(pool->stream_enc[i])); in dcn303_resource_destruct() 951 pool->stream_enc[i] = NULL; in dcn303_resource_destruct()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn302/ |
A D | dcn302_resource.c | 1015 if (pool->stream_enc[i] != NULL) { in dcn302_resource_destruct() 1016 if (pool->stream_enc[i]->vpg != NULL) { in dcn302_resource_destruct() 1017 kfree(DCN30_VPG_FROM_VPG(pool->stream_enc[i]->vpg)); in dcn302_resource_destruct() 1018 pool->stream_enc[i]->vpg = NULL; in dcn302_resource_destruct() 1020 if (pool->stream_enc[i]->afmt != NULL) { in dcn302_resource_destruct() 1021 kfree(DCN30_AFMT_FROM_AFMT(pool->stream_enc[i]->afmt)); in dcn302_resource_destruct() 1022 pool->stream_enc[i]->afmt = NULL; in dcn302_resource_destruct() 1024 kfree(DCN10STRENC_FROM_STRENC(pool->stream_enc[i])); in dcn302_resource_destruct() 1025 pool->stream_enc[i] = NULL; in dcn302_resource_destruct()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce100/ |
A D | dce100_resource.c | 791 if (pool->base.stream_enc[i] != NULL) in dce100_resource_destruct() 792 kfree(DCE110STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dce100_resource_destruct() 937 pool->stream_enc[i]) { in dce100_find_first_free_match_stream_enc_for_link() 942 if (pool->stream_enc[i]->id == in dce100_find_first_free_match_stream_enc_for_link() 944 return pool->stream_enc[i]; in dce100_find_first_free_match_stream_enc_for_link() 962 return pool->stream_enc[j]; in dce100_find_first_free_match_stream_enc_for_link()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn301/ |
A D | dcn301_resource.c | 1064 if (pool->base.stream_enc[i] != NULL) { in dcn301_destruct() 1065 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn301_destruct() 1066 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn301_destruct() 1067 pool->base.stream_enc[i]->vpg = NULL; in dcn301_destruct() 1069 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn301_destruct() 1070 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn301_destruct() 1071 pool->base.stream_enc[i]->afmt = NULL; in dcn301_destruct() 1073 kfree(DCN10STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dcn301_destruct() 1074 pool->base.stream_enc[i] = NULL; in dcn301_destruct()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn32/ |
A D | dcn32_hwseq.c | 1130 if (!pipe_ctx || !pipe_ctx->stream || !pipe_ctx->stream_res.stream_enc) in dcn32_set_pixels_per_cycle() 1138 if (pipe_ctx->stream_res.stream_enc->funcs->set_input_mode) in dcn32_set_pixels_per_cycle() 1139 pipe_ctx->stream_res.stream_enc->funcs->set_input_mode(pipe_ctx->stream_res.stream_enc, in dcn32_set_pixels_per_cycle() 1173 pipe_ctx->stream_res.stream_enc->funcs->dp_set_odm_combine( in dcn32_unblank_stream() 1174 pipe_ctx->stream_res.stream_enc, pix_per_cycle > 1); in dcn32_unblank_stream() 1175 …pipe_ctx->stream_res.stream_enc->funcs->dp_unblank(link, pipe_ctx->stream_res.stream_enc, ¶ms); in dcn32_unblank_stream()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn10/ |
A D | dcn10_resource.c | 920 if (pool->base.stream_enc[i] != NULL) { in dcn10_resource_destruct() 921 kfree(DCN10STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dcn10_resource_destruct() 922 pool->base.stream_enc[i] = NULL; in dcn10_resource_destruct() 1252 pool->stream_enc[i]) { in dcn10_find_first_free_match_stream_enc_for_link() 1257 if (link->ep_type == DISPLAY_ENDPOINT_PHY && pool->stream_enc[i]->id == in dcn10_find_first_free_match_stream_enc_for_link() 1259 return pool->stream_enc[i]; in dcn10_find_first_free_match_stream_enc_for_link() 1268 return pool->stream_enc[j]; in dcn10_find_first_free_match_stream_enc_for_link()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn316/ |
A D | dcn316_resource.c | 1378 if (pool->base.stream_enc[i] != NULL) { in dcn316_resource_destruct() 1379 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn316_resource_destruct() 1380 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn316_resource_destruct() 1381 pool->base.stream_enc[i]->vpg = NULL; in dcn316_resource_destruct() 1383 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn316_resource_destruct() 1384 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn316_resource_destruct() 1385 pool->base.stream_enc[i]->afmt = NULL; in dcn316_resource_destruct() 1387 kfree(DCN10STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dcn316_resource_destruct() 1388 pool->base.stream_enc[i] = NULL; in dcn316_resource_destruct()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/inc/ |
A D | core_types.h | 239 struct stream_encoder *stream_enc[MAX_PIPES * 2]; member 325 struct stream_encoder *stream_enc; member
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn315/ |
A D | dcn315_resource.c | 1377 if (pool->base.stream_enc[i] != NULL) { in dcn315_resource_destruct() 1378 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn315_resource_destruct() 1379 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn315_resource_destruct() 1380 pool->base.stream_enc[i]->vpg = NULL; in dcn315_resource_destruct() 1382 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn315_resource_destruct() 1383 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn315_resource_destruct() 1384 pool->base.stream_enc[i]->afmt = NULL; in dcn315_resource_destruct() 1386 kfree(DCN10STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dcn315_resource_destruct() 1387 pool->base.stream_enc[i] = NULL; in dcn315_resource_destruct()
|
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn321/ |
A D | dcn321_resource.c | 1354 if (pool->base.stream_enc[i] != NULL) { in dcn321_resource_destruct() 1355 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn321_resource_destruct() 1356 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn321_resource_destruct() 1357 pool->base.stream_enc[i]->vpg = NULL; in dcn321_resource_destruct() 1359 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn321_resource_destruct() 1360 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn321_resource_destruct() 1361 pool->base.stream_enc[i]->afmt = NULL; in dcn321_resource_destruct() 1363 kfree(DCN10STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dcn321_resource_destruct() 1364 pool->base.stream_enc[i] = NULL; in dcn321_resource_destruct()
|