/openbmc/linux/drivers/gpu/drm/amd/display/dc/link/hwss/ |
H A D | link_hwss_dio.c | 32 struct stream_encoder *stream_encoder = pipe_ctx->stream_res.stream_enc; in set_dio_throttled_vcp_size() 42 struct stream_encoder *stream_enc = pipe_ctx->stream_res.stream_enc; in setup_dio_stream_encoder() local 45 pipe_ctx->stream_res.stream_enc->id, true); in setup_dio_stream_encoder() 49 if (stream_enc->funcs->map_stream_to_link) in setup_dio_stream_encoder() 50 stream_enc->funcs->map_stream_to_link(stream_enc, in setup_dio_stream_encoder() 51 stream_enc->stream_enc_inst, link_enc->transmitter - TRANSMITTER_UNIPHY_A); in setup_dio_stream_encoder() 52 if (stream_enc->funcs->enable_fifo) in setup_dio_stream_encoder() 53 stream_enc->funcs->enable_fifo(stream_enc); in setup_dio_stream_encoder() 59 struct stream_encoder *stream_enc = pipe_ctx->stream_res.stream_enc; in reset_dio_stream_encoder() local 61 if (stream_enc && stream_enc->funcs->disable_fifo) in reset_dio_stream_encoder() [all …]
|
H A D | link_hwss_hpo_dp.c | 76 struct hpo_dp_stream_encoder *stream_enc = pipe_ctx->stream_res.hpo_dp_stream_enc; in setup_hpo_dp_stream_encoder() local 79 stream_enc->funcs->enable_stream(stream_enc); in setup_hpo_dp_stream_encoder() 80 stream_enc->funcs->map_stream_to_link(stream_enc, stream_enc->inst, link_enc->inst); in setup_hpo_dp_stream_encoder() 85 struct hpo_dp_stream_encoder *stream_enc = pipe_ctx->stream_res.hpo_dp_stream_enc; in reset_hpo_dp_stream_encoder() local 87 stream_enc->funcs->disable(stream_enc); in reset_hpo_dp_stream_encoder() 92 struct hpo_dp_stream_encoder *stream_enc = pipe_ctx->stream_res.hpo_dp_stream_enc; in setup_hpo_dp_stream_attribute() local 96 stream_enc->funcs->set_stream_attribute( in setup_hpo_dp_stream_attribute() 97 stream_enc, in setup_hpo_dp_stream_attribute()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/link/ |
H 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()
|
H A D | link_dpms.c | 132 if (fe == dc->res_pool->stream_enc[j]->id) { in link_blank_dp_stream() 133 dc->res_pool->stream_enc[j]->funcs->dp_blank(link, in link_blank_dp_stream() 134 dc->res_pool->stream_enc[j]); in link_blank_dp_stream() 669 config.dig_fe = (uint8_t) pipe_ctx->stream_res.stream_enc->stream_enc_inst; in update_psp_stream_config() 672 config.stream_enc_idx = pipe_ctx->stream_res.stream_enc->id - ENGINE_ID_DIGA; in update_psp_stream_config() 816 …_DSC("Setting stream encoder DSC config for engine %d:", (int)pipe_ctx->stream_res.stream_enc->id); in link_set_dsc_on_stream() 818 pipe_ctx->stream_res.stream_enc->funcs->dp_set_dsc_config(pipe_ctx->stream_res.stream_enc, in link_set_dsc_on_stream() 848 pipe_ctx->stream_res.stream_enc->funcs->dp_set_dsc_config( in link_set_dsc_on_stream() 849 pipe_ctx->stream_res.stream_enc, in link_set_dsc_on_stream() 851 pipe_ctx->stream_res.stream_enc->funcs->dp_set_dsc_pps_info_packet( in link_set_dsc_on_stream() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn31/ |
H 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() 381 if (pipe_ctx->stream_res.stream_enc == NULL) in dcn31_update_info_frame() 391 pipe_ctx->stream_res.stream_enc->funcs->update_hdmi_info_packets( in dcn31_update_info_frame() 392 pipe_ctx->stream_res.stream_enc, in dcn31_update_info_frame() 400 if (pipe_ctx->stream_res.stream_enc->funcs->update_dp_info_packets_sdp_line_num) in dcn31_update_info_frame() 401 pipe_ctx->stream_res.stream_enc->funcs->update_dp_info_packets_sdp_line_num( in dcn31_update_info_frame() 402 pipe_ctx->stream_res.stream_enc, in dcn31_update_info_frame() 405 pipe_ctx->stream_res.stream_enc->funcs->update_dp_info_packets( in dcn31_update_info_frame() 406 pipe_ctx->stream_res.stream_enc, in dcn31_update_info_frame() [all …]
|
H A D | dcn31_hpo_dp_link_encoder.c | 270 const struct hpo_dp_stream_encoder *stream_enc = stream_allocation->hpo_dp_stream_enc; in fill_stream_allocation_row_info() local 272 if (stream_enc && (stream_enc->id >= ENGINE_ID_HPO_DP_0)) { in fill_stream_allocation_row_info() 273 *src = stream_enc->id - ENGINE_ID_HPO_DP_0; in fill_stream_allocation_row_info()
|
H A D | dcn31_resource.c | 1348 if (pool->base.stream_enc[i] != NULL) { in dcn31_resource_destruct() 1349 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn31_resource_destruct() 1350 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn31_resource_destruct() 1351 pool->base.stream_enc[i]->vpg = NULL; in dcn31_resource_destruct() 1353 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn31_resource_destruct() 1354 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn31_resource_destruct() 1355 pool->base.stream_enc[i]->afmt = NULL; in dcn31_resource_destruct() 1357 kfree(DCN10STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dcn31_resource_destruct() 1358 pool->base.stream_enc[i] = NULL; in dcn31_resource_destruct()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/ |
H 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()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn30/ |
H A D | dcn30_hwseq.c | 627 if (dc_is_hdmi_signal(pipe_ctx->stream->signal) && pipe_ctx->stream_res.stream_enc != NULL) { in dcn30_set_avmute() 628 pipe_ctx->stream_res.stream_enc->funcs->set_avmute( in dcn30_set_avmute() 629 pipe_ctx->stream_res.stream_enc, in dcn30_set_avmute() 650 if (pipe_ctx->stream_res.stream_enc == NULL) in dcn30_update_info_frame() 660 pipe_ctx->stream_res.stream_enc->funcs->update_hdmi_info_packets( in dcn30_update_info_frame() 661 pipe_ctx->stream_res.stream_enc, in dcn30_update_info_frame() 664 if (pipe_ctx->stream_res.stream_enc->funcs->update_dp_info_packets_sdp_line_num) in dcn30_update_info_frame() 665 pipe_ctx->stream_res.stream_enc->funcs->update_dp_info_packets_sdp_line_num( in dcn30_update_info_frame() 666 pipe_ctx->stream_res.stream_enc, in dcn30_update_info_frame() 669 pipe_ctx->stream_res.stream_enc->funcs->update_dp_info_packets( in dcn30_update_info_frame() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce110/ |
H A D | dce110_hw_sequencer.c | 638 if (pipe_ctx->stream_res.stream_enc == NULL) in dce110_update_info_frame() 648 pipe_ctx->stream_res.stream_enc->funcs->update_hdmi_info_packets( in dce110_update_info_frame() 649 pipe_ctx->stream_res.stream_enc, in dce110_update_info_frame() 652 if (pipe_ctx->stream_res.stream_enc->funcs->update_dp_info_packets_sdp_line_num) in dce110_update_info_frame() 653 pipe_ctx->stream_res.stream_enc->funcs->update_dp_info_packets_sdp_line_num( in dce110_update_info_frame() 654 pipe_ctx->stream_res.stream_enc, in dce110_update_info_frame() 657 pipe_ctx->stream_res.stream_enc->funcs->update_dp_info_packets( in dce110_update_info_frame() 658 pipe_ctx->stream_res.stream_enc, in dce110_update_info_frame() 1157 struct stream_encoder *stream_enc = pipe_ctx->stream_res.stream_enc; in dce110_disable_stream() local 1160 pipe_ctx->stream_res.stream_enc->funcs->stop_hdmi_info_packets( in dce110_disable_stream() [all …]
|
H A D | dce110_resource.c | 851 if (pool->base.stream_enc[i] != NULL) in dce110_resource_destruct() 852 kfree(DCE110STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dce110_resource_destruct() 1210 pool->stream_enc[i]) { in dce110_find_first_free_match_stream_enc_for_link() 1215 if (pool->stream_enc[i]->id == in dce110_find_first_free_match_stream_enc_for_link() 1217 return pool->stream_enc[i]; in dce110_find_first_free_match_stream_enc_for_link() 1226 return pool->stream_enc[j]; in dce110_find_first_free_match_stream_enc_for_link()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/ |
H A D | dcn32_clk_mgr.c | 354 struct stream_encoder *stream_enc = pipe_ctx->stream_res.stream_enc; in dcn32_update_clocks_update_dentist() local 361 if (!stream_enc->funcs->get_fifo_cal_average_level) in dcn32_update_clocks_update_dentist() 363 fifo_level = stream_enc->funcs->get_fifo_cal_average_level( in dcn32_update_clocks_update_dentist() 364 stream_enc); in dcn32_update_clocks_update_dentist() 399 struct stream_encoder *stream_enc = pipe_ctx->stream_res.stream_enc; in dcn32_update_clocks_update_dentist() local 407 if (!stream_enc->funcs->get_fifo_cal_average_level) in dcn32_update_clocks_update_dentist() 409 fifo_level = stream_enc->funcs->get_fifo_cal_average_level( in dcn32_update_clocks_update_dentist() 410 stream_enc); in dcn32_update_clocks_update_dentist()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn302/ |
H A D | dcn302_resource.c | 990 if (pool->stream_enc[i] != NULL) { in dcn302_resource_destruct() 991 if (pool->stream_enc[i]->vpg != NULL) { in dcn302_resource_destruct() 992 kfree(DCN30_VPG_FROM_VPG(pool->stream_enc[i]->vpg)); in dcn302_resource_destruct() 993 pool->stream_enc[i]->vpg = NULL; in dcn302_resource_destruct() 995 if (pool->stream_enc[i]->afmt != NULL) { in dcn302_resource_destruct() 996 kfree(DCN30_AFMT_FROM_AFMT(pool->stream_enc[i]->afmt)); in dcn302_resource_destruct() 997 pool->stream_enc[i]->afmt = NULL; in dcn302_resource_destruct() 999 kfree(DCN10STRENC_FROM_STRENC(pool->stream_enc[i])); in dcn302_resource_destruct() 1000 pool->stream_enc[i] = NULL; in dcn302_resource_destruct()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn303/ |
H A D | dcn303_resource.c | 916 if (pool->stream_enc[i] != NULL) { in dcn303_resource_destruct() 917 if (pool->stream_enc[i]->vpg != NULL) { in dcn303_resource_destruct() 918 kfree(DCN30_VPG_FROM_VPG(pool->stream_enc[i]->vpg)); in dcn303_resource_destruct() 919 pool->stream_enc[i]->vpg = NULL; in dcn303_resource_destruct() 921 if (pool->stream_enc[i]->afmt != NULL) { in dcn303_resource_destruct() 922 kfree(DCN30_AFMT_FROM_AFMT(pool->stream_enc[i]->afmt)); in dcn303_resource_destruct() 923 pool->stream_enc[i]->afmt = NULL; in dcn303_resource_destruct() 925 kfree(DCN10STRENC_FROM_STRENC(pool->stream_enc[i])); in dcn303_resource_destruct() 926 pool->stream_enc[i] = NULL; in dcn303_resource_destruct()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn314/ |
H 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()
|
H A D | dcn314_resource.c | 1421 if (pool->base.stream_enc[i] != NULL) { in dcn314_resource_destruct() 1422 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn314_resource_destruct() 1423 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn314_resource_destruct() 1424 pool->base.stream_enc[i]->vpg = NULL; in dcn314_resource_destruct() 1426 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn314_resource_destruct() 1427 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn314_resource_destruct() 1428 pool->base.stream_enc[i]->afmt = NULL; in dcn314_resource_destruct() 1430 kfree(DCN10STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dcn314_resource_destruct() 1431 pool->base.stream_enc[i] = NULL; in dcn314_resource_destruct()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dce100/ |
H A D | dce100_resource.c | 795 if (pool->base.stream_enc[i] != NULL) in dce100_resource_destruct() 796 kfree(DCE110STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dce100_resource_destruct() 941 pool->stream_enc[i]) { in dce100_find_first_free_match_stream_enc_for_link() 946 if (pool->stream_enc[i]->id == in dce100_find_first_free_match_stream_enc_for_link() 948 return pool->stream_enc[i]; in dce100_find_first_free_match_stream_enc_for_link() 966 return pool->stream_enc[j]; in dce100_find_first_free_match_stream_enc_for_link()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn301/ |
H A D | dcn301_resource.c | 1038 if (pool->base.stream_enc[i] != NULL) { in dcn301_destruct() 1039 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn301_destruct() 1040 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn301_destruct() 1041 pool->base.stream_enc[i]->vpg = NULL; in dcn301_destruct() 1043 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn301_destruct() 1044 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn301_destruct() 1045 pool->base.stream_enc[i]->afmt = NULL; in dcn301_destruct() 1047 kfree(DCN10STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dcn301_destruct() 1048 pool->base.stream_enc[i] = NULL; in dcn301_destruct()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/ |
H A D | dc_resource.c | 400 pool->stream_enc[i] = create_funcs->create_stream_encoder(i, ctx); in resource_construct() 401 if (pool->stream_enc[i] == NULL) in resource_construct() 442 pool->stream_enc[pool->stream_enc_count] = in resource_construct() 445 if (pool->stream_enc[pool->stream_enc_count] == NULL) { in resource_construct() 2202 struct stream_encoder *stream_enc, in update_stream_engine_usage() 2208 if (pool->stream_enc[i] == stream_enc) in update_stream_engine_usage() 2466 ASSERT(del_pipe->stream_res.stream_enc); in dc_remove_stream_from_ctx() 2470 del_pipe->stream_res.stream_enc, in dc_remove_stream_from_ctx() 2616 if (pool->stream_enc[ in acquire_resource_from_hw_enabled_state() 2201 update_stream_engine_usage(struct resource_context * res_ctx,const struct resource_pool * pool,struct stream_encoder * stream_enc,bool acquired) update_stream_engine_usage() argument [all...] |
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn10/ |
H A D | dcn10_resource.c | 912 if (pool->base.stream_enc[i] != NULL) { in dcn10_resource_destruct() 913 kfree(DCN10STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dcn10_resource_destruct() 914 pool->base.stream_enc[i] = NULL; in dcn10_resource_destruct() 1245 pool->stream_enc[i]) { in dcn10_find_first_free_match_stream_enc_for_link() 1250 if (link->ep_type == DISPLAY_ENDPOINT_PHY && pool->stream_enc[i]->id == in dcn10_find_first_free_match_stream_enc_for_link() 1252 return pool->stream_enc[i]; in dcn10_find_first_free_match_stream_enc_for_link() 1261 return pool->stream_enc[j]; in dcn10_find_first_free_match_stream_enc_for_link()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn316/ |
H A D | dcn316_resource.c | 1346 if (pool->base.stream_enc[i] != NULL) { in dcn316_resource_destruct() 1347 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn316_resource_destruct() 1348 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn316_resource_destruct() 1349 pool->base.stream_enc[i]->vpg = NULL; in dcn316_resource_destruct() 1351 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn316_resource_destruct() 1352 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn316_resource_destruct() 1353 pool->base.stream_enc[i]->afmt = NULL; in dcn316_resource_destruct() 1355 kfree(DCN10STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dcn316_resource_destruct() 1356 pool->base.stream_enc[i] = NULL; in dcn316_resource_destruct()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn315/ |
H A D | dcn315_resource.c | 1348 if (pool->base.stream_enc[i] != NULL) { in dcn315_resource_destruct() 1349 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn315_resource_destruct() 1350 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn315_resource_destruct() 1351 pool->base.stream_enc[i]->vpg = NULL; in dcn315_resource_destruct() 1353 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn315_resource_destruct() 1354 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn315_resource_destruct() 1355 pool->base.stream_enc[i]->afmt = NULL; in dcn315_resource_destruct() 1357 kfree(DCN10STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dcn315_resource_destruct() 1358 pool->base.stream_enc[i] = NULL; in dcn315_resource_destruct()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn321/ |
H A D | dcn321_resource.c | 1334 if (pool->base.stream_enc[i] != NULL) { in dcn321_resource_destruct() 1335 if (pool->base.stream_enc[i]->vpg != NULL) { in dcn321_resource_destruct() 1336 kfree(DCN30_VPG_FROM_VPG(pool->base.stream_enc[i]->vpg)); in dcn321_resource_destruct() 1337 pool->base.stream_enc[i]->vpg = NULL; in dcn321_resource_destruct() 1339 if (pool->base.stream_enc[i]->afmt != NULL) { in dcn321_resource_destruct() 1340 kfree(DCN30_AFMT_FROM_AFMT(pool->base.stream_enc[i]->afmt)); in dcn321_resource_destruct() 1341 pool->base.stream_enc[i]->afmt = NULL; in dcn321_resource_destruct() 1343 kfree(DCN10STRENC_FROM_STRENC(pool->base.stream_enc[i])); in dcn321_resource_destruct() 1344 pool->base.stream_enc[i] = NULL; in dcn321_resource_destruct()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn32/ |
H A D | dcn32_hwseq.c | 1188 if (!pipe_ctx || !pipe_ctx->stream || !pipe_ctx->stream_res.stream_enc) in dcn32_set_pixels_per_cycle() 1196 if (pipe_ctx->stream_res.stream_enc->funcs->set_input_mode) in dcn32_set_pixels_per_cycle() 1197 pipe_ctx->stream_res.stream_enc->funcs->set_input_mode(pipe_ctx->stream_res.stream_enc, in dcn32_set_pixels_per_cycle() 1261 pipe_ctx->stream_res.stream_enc->funcs->dp_set_odm_combine( in dcn32_unblank_stream() 1262 pipe_ctx->stream_res.stream_enc, pix_per_cycle > 1); in dcn32_unblank_stream() 1263 …pipe_ctx->stream_res.stream_enc->funcs->dp_unblank(link, pipe_ctx->stream_res.stream_enc, ¶ms); in dcn32_unblank_stream()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/inc/ |
H A D | core_types.h | 215 struct stream_encoder *stream_enc[MAX_PIPES * 2]; member 303 struct stream_encoder *stream_enc; member
|