Home
last modified time | relevance | path

Searched refs:stream_res (Results 1 – 25 of 30) sorted by relevance

12

/Linux-v5.15/drivers/gpu/drm/amd/display/dc/core/
Ddc_link_hwss.c102 pipes[i].stream_res.pix_clk_params.requested_pix_clk_100hz = in dp_enable_link_phy()
106 &pipes[i].stream_res.pix_clk_params, in dp_enable_link_phy()
337 pipes[i].stream_res.stream_enc != NULL && in dp_retrain_link_dp_test()
341 pipes[i].stream_res.stream_enc->funcs->dp_blank( in dp_retrain_link_dp_test()
342 pipes[i].stream_res.stream_enc); in dp_retrain_link_dp_test()
351 if ((&pipes[i])->stream_res.audio && !link->dc->debug.az_endpoint_mute_only) in dp_retrain_link_dp_test()
352 (&pipes[i])->stream_res.audio->funcs->az_disable((&pipes[i])->stream_res.audio); in dp_retrain_link_dp_test()
375 if (pipes[i].stream_res.audio) { in dp_retrain_link_dp_test()
378 pipes[i].stream_res.audio->funcs->az_enable( in dp_retrain_link_dp_test()
379 pipes[i].stream_res.audio); in dp_retrain_link_dp_test()
[all …]
Ddc.c317 if (pipe->stream == stream && pipe->stream_res.tg) { in dc_stream_adjust_vmin_vmax()
353 if (pipe->stream == stream && pipe->stream_res.tg) { in dc_stream_get_last_used_drr_vtotal()
357 if (pipe->stream_res.tg->funcs->get_last_used_drr_vtotal) { in dc_stream_get_last_used_drr_vtotal()
358 pipe->stream_res.tg->funcs->get_last_used_drr_vtotal(pipe->stream_res.tg, refresh_rate); in dc_stream_get_last_used_drr_vtotal()
384 if (pipe->stream == stream && pipe->stream_res.stream_enc) { in dc_stream_get_crtc_position()
431 mapping_tmp.otg_output_num = pipe->stream_res.tg->inst; in dc_stream_forward_dmcu_crc_window()
465 mapping_tmp.otg_output_num = pipe->stream_res.tg->inst; in dc_stream_stop_dmcu_crc_win_update()
535 tg = pipe->stream_res.tg; in dc_stream_configure_crc()
571 tg = pipe->stream_res.tg; in dc_stream_get_crc()
590 pipe_ctx->stream_res.opp->dyn_expansion = option; in dc_stream_set_dyn_expansion()
[all …]
Ddc_resource.c1325 split_pipe->stream_res.tg = pool->timing_generators[i]; in acquire_first_split_pipe()
1329 split_pipe->stream_res.opp = pool->opps[i]; in acquire_first_split_pipe()
1399 free_pipe->stream_res.tg = tail_pipe->stream_res.tg; in dc_add_plane_to_context()
1400 free_pipe->stream_res.abm = tail_pipe->stream_res.abm; in dc_add_plane_to_context()
1401 free_pipe->stream_res.opp = tail_pipe->stream_res.opp; in dc_add_plane_to_context()
1402 free_pipe->stream_res.stream_enc = tail_pipe->stream_res.stream_enc; in dc_add_plane_to_context()
1403 free_pipe->stream_res.audio = tail_pipe->stream_res.audio; in dc_add_plane_to_context()
1693 pipe_ctx->stream_res.tg = pool->timing_generators[i]; in acquire_first_free_pipe()
1699 pipe_ctx->stream_res.opp = pool->opps[i]; in acquire_first_free_pipe()
1792 ASSERT(del_pipe->stream_res.stream_enc); in dc_remove_stream_from_ctx()
[all …]
Ddc_link.c1750 pipe_ctx->stream_res.pix_clk_params.requested_sym_clk = in enable_link_dp()
2332 eng_id = pipe_ctx->stream_res.stream_enc->id; in enable_link_hdmi()
2580 abm = pipe_ctx.stream_res.abm; in get_abm_from_stream_res()
2818 pipe_ctx[i].stream_res.tg->inst + 1; in dc_link_setup_psr()
3036 struct stream_encoder *stream_encoder = pipe_ctx->stream_res.stream_enc; in dc_link_allocate_mst_payload()
3057 link, pipe_ctx->stream_res.stream_enc, &proposed_table); in dc_link_allocate_mst_payload()
3123 struct stream_encoder *stream_encoder = pipe_ctx->stream_res.stream_enc; in deallocate_mst_payload()
3151 link, pipe_ctx->stream_res.stream_enc, &proposed_table); in deallocate_mst_payload()
3206 config.otg_inst = (uint8_t) pipe_ctx->stream_res.tg->inst; in update_psp_stream_config()
3208 config.dig_fe = (uint8_t) pipe_ctx->stream_res.stream_enc->stream_enc_inst; in update_psp_stream_config()
[all …]
Ddc_link_dp.c1800 pipe_ctx->stream_res.stream_enc->id, true); in perform_link_training_with_retries()
4143 struct output_pixel_processor *opp = pipe_ctx->stream_res.opp; in set_crtc_test_pattern()
4190 if (pipe_ctx->stream_res.tg->funcs->set_test_pattern) in set_crtc_test_pattern()
4191 pipe_ctx->stream_res.tg->funcs->set_test_pattern(pipe_ctx->stream_res.tg, in set_crtc_test_pattern()
4234 struct output_pixel_processor *odm_opp = odm_pipe->stream_res.opp; in set_crtc_test_pattern()
4257 if (pipe_ctx->stream_res.tg->funcs->set_test_pattern) in set_crtc_test_pattern()
4258 pipe_ctx->stream_res.tg->funcs->set_test_pattern(pipe_ctx->stream_res.tg, in set_crtc_test_pattern()
4271 struct output_pixel_processor *odm_opp = odm_pipe->stream_res.opp; in set_crtc_test_pattern()
4371 pipes->stream_res.stream_enc->funcs->dp_blank(pipe_ctx->stream_res.stream_enc); in dc_link_dp_set_test_pattern()
4474 if (pipe_ctx->stream_res.tg->funcs->lock_doublebuffer_enable) { in dc_link_dp_set_test_pattern()
[all …]
Ddc_debug.c326 pipe_ctx->stream_res.tg->funcs->get_position(pipe_ctx->stream_res.tg, &position); in context_timing_trace()
337 pipe_ctx->stream_res.tg->inst, in context_timing_trace()
Ddc_stream.c563 struct timing_generator *tg = res_ctx->pipe_ctx[i].stream_res.tg; in dc_stream_get_vblank_counter()
622 struct timing_generator *tg = res_ctx->pipe_ctx[i].stream_res.tg; in dc_stream_get_scanoutpos()
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dce110/
Ddce110_hw_sequencer.c642 if (pipe_ctx->stream_res.stream_enc == NULL) in dce110_update_info_frame()
652 pipe_ctx->stream_res.stream_enc->funcs->update_hdmi_info_packets( in dce110_update_info_frame()
653 pipe_ctx->stream_res.stream_enc, in dce110_update_info_frame()
654 &pipe_ctx->stream_res.encoder_info_frame); in dce110_update_info_frame()
656 pipe_ctx->stream_res.stream_enc->funcs->update_dp_info_packets( in dce110_update_info_frame()
657 pipe_ctx->stream_res.stream_enc, in dce110_update_info_frame()
658 &pipe_ctx->stream_res.encoder_info_frame); in dce110_update_info_frame()
671 struct timing_generator *tg = pipe_ctx->stream_res.tg; in dce110_enable_stream()
678 pipe_ctx->stream_res.stream_enc->id, true); in dce110_enable_stream()
697 if (pipe_ctx->stream_res.audio != NULL) { in dce110_enable_stream()
[all …]
Ddce110_resource.c895 pixel_clk_params->controller_id = pipe_ctx->stream_res.tg->inst + 1; in get_pixel_clock_parameters()
919 get_pixel_clock_parameters(pipe_ctx, &pipe_ctx->stream_res.pix_clk_params); in dce110_resource_build_pipe_hw_param()
922 &pipe_ctx->stream_res.pix_clk_params, in dce110_resource_build_pipe_hw_param()
1135 pipe_ctx->stream_res.tg = pool->timing_generators[underlay_idx]; in dce110_acquire_underlay()
1139 pipe_ctx->stream_res.opp = pool->opps[underlay_idx]; in dce110_acquire_underlay()
1150 pipe_ctx->stream_res.tg->inst, in dce110_acquire_underlay()
1158 pipe_ctx->stream_res.tg->funcs->program_timing(pipe_ctx->stream_res.tg, in dce110_acquire_underlay()
1167 pipe_ctx->stream_res.tg->funcs->enable_advanced_request( in dce110_acquire_underlay()
1168 pipe_ctx->stream_res.tg, in dce110_acquire_underlay()
1180 pipe_ctx->stream_res.tg->funcs->set_blank_color( in dce110_acquire_underlay()
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_hwseq.c108 if (pipe_ctx->stream_res.gsl_group > 0) in dcn20_setup_gsl_group_as_lock()
113 pipe_ctx->stream_res.gsl_group = group_idx; in dcn20_setup_gsl_group_as_lock()
135 group_idx = pipe_ctx->stream_res.gsl_group; in dcn20_setup_gsl_group_as_lock()
139 pipe_ctx->stream_res.gsl_group = 0; in dcn20_setup_gsl_group_as_lock()
163 if (pipe_ctx->stream_res.tg->funcs->set_gsl != NULL && in dcn20_setup_gsl_group_as_lock()
164 pipe_ctx->stream_res.tg->funcs->set_gsl_source_select != NULL) { in dcn20_setup_gsl_group_as_lock()
165 pipe_ctx->stream_res.tg->funcs->set_gsl( in dcn20_setup_gsl_group_as_lock()
166 pipe_ctx->stream_res.tg, in dcn20_setup_gsl_group_as_lock()
169 pipe_ctx->stream_res.tg->funcs->set_gsl_source_select( in dcn20_setup_gsl_group_as_lock()
170 pipe_ctx->stream_res.tg, group_idx, enable ? 4 : 0); in dcn20_setup_gsl_group_as_lock()
[all …]
Ddcn20_resource.c1605 pixel_clk_params->controller_id = pipe_ctx->stream_res.tg->inst + 1; in get_pixel_clock_parameters()
1638 get_pixel_clock_parameters(pipe_ctx, &pipe_ctx->stream_res.pix_clk_params); in build_pipe_hw_param()
1642 &pipe_ctx->stream_res.pix_clk_params, in build_pipe_hw_param()
1676 … display_stream_compressor *dsc_old = dc->current_state->res_ctx.pipe_ctx[pipe_idx].stream_res.dsc; in dcn20_acquire_dsc()
1734 if (pipe_ctx->stream_res.dsc) in dcn20_add_dsc_to_stream_resource()
1737 dcn20_acquire_dsc(dc, &dc_ctx->res_ctx, &pipe_ctx->stream_res.dsc, i); in dcn20_add_dsc_to_stream_resource()
1740 if (!pipe_ctx->stream_res.dsc) { in dcn20_add_dsc_to_stream_resource()
1762 if (pipe_ctx->stream_res.dsc) in remove_dsc_from_stream_resource()
1763 dcn20_release_dsc(&new_ctx->res_ctx, dc->res_pool, &pipe_ctx->stream_res.dsc); in remove_dsc_from_stream_resource()
1882 next_odm_pipe->stream_res.dsc = NULL; in dcn20_split_stream_for_odm()
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dcn31/
Ddcn31_hwseq.c390 if (pipe_ctx->stream_res.stream_enc == NULL) in dcn31_update_info_frame()
400 pipe_ctx->stream_res.stream_enc->funcs->update_hdmi_info_packets( in dcn31_update_info_frame()
401 pipe_ctx->stream_res.stream_enc, in dcn31_update_info_frame()
402 &pipe_ctx->stream_res.encoder_info_frame); in dcn31_update_info_frame()
404 pipe_ctx->stream_res.stream_enc->funcs->update_dp_info_packets( in dcn31_update_info_frame()
405 pipe_ctx->stream_res.stream_enc, in dcn31_update_info_frame()
406 &pipe_ctx->stream_res.encoder_info_frame); in dcn31_update_info_frame()
508 if (pipe_ctx->stream_res.stream_enc == NULL) { in dcn31_reset_back_end_for_pipe()
516 pipe_ctx->stream_res.tg->funcs->set_dsc_config( in dcn31_reset_back_end_for_pipe()
517 pipe_ctx->stream_res.tg, in dcn31_reset_back_end_for_pipe()
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_hw_sequencer.c103 tg = pipe_ctx->stream_res.tg; in dcn10_lock_all_pipes()
475 struct timing_generator *tg = pipe_ctx->stream_res.tg; in dcn10_did_underflow_occur()
828 pipe_ctx->stream_res.tg->funcs->enable_optc_clock(pipe_ctx->stream_res.tg, true); in dcn10_enable_stream_timing()
832 &pipe_ctx->stream_res.pix_clk_params, in dcn10_enable_stream_timing()
838 pipe_ctx->stream_res.tg->funcs->program_timing( in dcn10_enable_stream_timing()
839 pipe_ctx->stream_res.tg, in dcn10_enable_stream_timing()
852 inst_offset = reg_offsets[pipe_ctx->stream_res.tg->inst].fmt; in dcn10_enable_stream_timing()
854 pipe_ctx->stream_res.opp->funcs->opp_program_fmt( in dcn10_enable_stream_timing()
855 pipe_ctx->stream_res.opp, in dcn10_enable_stream_timing()
871 if (pipe_ctx->stream_res.tg->funcs->set_blank_color) in dcn10_enable_stream_timing()
[all …]
Ddcn10_resource.c1073 pixel_clk_params->controller_id = pipe_ctx->stream_res.tg->inst + 1; in get_pixel_clock_parameters()
1103 get_pixel_clock_parameters(pipe_ctx, &pipe_ctx->stream_res.pix_clk_params); in build_pipe_hw_param()
1107 &pipe_ctx->stream_res.pix_clk_params, in build_pipe_hw_param()
1168 idle_pipe->stream_res.tg = head_pipe->stream_res.tg; in dcn10_acquire_idle_pipe_for_layer()
1169 idle_pipe->stream_res.abm = head_pipe->stream_res.abm; in dcn10_acquire_idle_pipe_for_layer()
1170 idle_pipe->stream_res.opp = head_pipe->stream_res.opp; in dcn10_acquire_idle_pipe_for_layer()
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dce/
Ddce_hwseq.c56 if (lock && pipe->stream_res.tg->funcs->is_blanked && in dce_pipe_control_lock()
57 pipe->stream_res.tg->funcs->is_blanked(pipe->stream_res.tg)) in dce_pipe_control_lock()
60 val = REG_GET_4(BLND_V_UPDATE_LOCK[pipe->stream_res.tg->inst], in dce_pipe_control_lock()
71 REG_SET_2(BLND_V_UPDATE_LOCK[pipe->stream_res.tg->inst], val, in dce_pipe_control_lock()
76 REG_SET_2(BLND_V_UPDATE_LOCK[pipe->stream_res.tg->inst], val, in dce_pipe_control_lock()
82 uint32_t value = REG_READ(CRTC_H_BLANK_START_END[pipe->stream_res.tg->inst]); in dce_pipe_control_lock()
83 REG_WRITE(CRTC_H_BLANK_START_END[pipe->stream_res.tg->inst], value); in dce_pipe_control_lock()
Ddmub_psr.c286 if (pipe_ctx->stream_res.opp) in dmub_psr_copy_settings()
287 copy_settings_data->opp_inst = pipe_ctx->stream_res.opp->inst; in dmub_psr_copy_settings()
290 if (pipe_ctx->stream_res.tg) in dmub_psr_copy_settings()
291 copy_settings_data->otg_inst = pipe_ctx->stream_res.tg->inst; in dmub_psr_copy_settings()
Ddce_clk_mgr.c199 if (pipe_ctx->stream_res.pix_clk_params.requested_pix_clk_100hz / 10 > max_pix_clk) in get_max_pixel_clock_for_all_paths()
200 max_pix_clk = pipe_ctx->stream_res.pix_clk_params.requested_pix_clk_100hz / 10; in get_max_pixel_clock_for_all_paths()
206 pipe_ctx->stream_res.pix_clk_params.requested_sym_clk > max_pix_clk) in get_max_pixel_clock_for_all_paths()
207 max_pix_clk = pipe_ctx->stream_res.pix_clk_params.requested_sym_clk; in get_max_pixel_clock_for_all_paths()
522 cfg->pipe_idx = pipe_ctx->stream_res.tg->inst; in dce110_fill_display_configs()
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dcn30/
Ddcn30_hwseq.c97 struct mpc *mpc = pipe_ctx->stream_res.opp->ctx->dc->res_pool->mpc; in dcn30_set_mpc_shaper_3dlut()
176 if (pipe_ctx->stream_res.opp && pipe_ctx->stream_res.opp->ctx) { in dcn30_set_input_transfer_func()
192 struct mpc *mpc = pipe_ctx->stream_res.opp->ctx->dc->res_pool->mpc; in dcn30_set_output_transfer_func()
675 if (dc_is_hdmi_signal(pipe_ctx->stream->signal) && pipe_ctx->stream_res.stream_enc != NULL) in dcn30_set_avmute()
676 pipe_ctx->stream_res.stream_enc->funcs->set_avmute( in dcn30_set_avmute()
677 pipe_ctx->stream_res.stream_enc, in dcn30_set_avmute()
688 if (pipe_ctx->stream_res.stream_enc == NULL) in dcn30_update_info_frame()
698 pipe_ctx->stream_res.stream_enc->funcs->update_hdmi_info_packets( in dcn30_update_info_frame()
699 pipe_ctx->stream_res.stream_enc, in dcn30_update_info_frame()
700 &pipe_ctx->stream_res.encoder_info_frame); in dcn30_update_info_frame()
[all …]
Ddcn30_resource.c1774 sec_pipe->stream_res.dsc = NULL; in dcn30_split_stream_for_mpc_or_odm()
1793 sec_pipe->stream_res.opp = pool->opps[pipe_idx]; in dcn30_split_stream_for_mpc_or_odm()
1795 sec_pipe->stream_res.opp = sec_pipe->top_pipe->stream_res.opp; in dcn30_split_stream_for_mpc_or_odm()
1797 dcn20_acquire_dsc(dc, res_ctx, &sec_pipe->stream_res.dsc, pipe_idx); in dcn30_split_stream_for_mpc_or_odm()
1798 ASSERT(sec_pipe->stream_res.dsc); in dcn30_split_stream_for_mpc_or_odm()
1799 if (sec_pipe->stream_res.dsc == NULL) in dcn30_split_stream_for_mpc_or_odm()
1968 if (pipe->stream_res.dsc) in dcn30_internal_validate_bw()
1969 dcn20_release_dsc(&context->res_ctx, dc->res_pool, &pipe->stream_res.dsc); in dcn30_internal_validate_bw()
1971 memset(&pipe->stream_res, 0, sizeof(pipe->stream_res)); in dcn30_internal_validate_bw()
1986 memset(&pipe->stream_res, 0, sizeof(pipe->stream_res)); in dcn30_internal_validate_bw()
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dcn21/
Ddcn21_hwseq.c164 struct abm *abm = pipe_ctx->stream_res.abm; in dcn21_set_abm_immediate_disable()
165 uint32_t otg_inst = pipe_ctx->stream_res.tg->inst; in dcn21_set_abm_immediate_disable()
184 struct abm *abm = pipe_ctx->stream_res.abm; in dcn21_set_pipe()
185 uint32_t otg_inst = pipe_ctx->stream_res.tg->inst; in dcn21_set_pipe()
204 struct abm *abm = pipe_ctx->stream_res.abm; in dcn21_set_backlight_level()
205 uint32_t otg_inst = pipe_ctx->stream_res.tg->inst; in dcn21_set_backlight_level()
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/dce60/
Ddce60_hw_sequencer.c128 params.inst = pipe_ctx->stream_res.tg->inst; in dce60_enable_fbc()
192 pipe_ctx->stream_res.tg->funcs->set_blank(pipe_ctx->stream_res.tg, blank_target); in dce60_program_surface_visibility()
200 uint32_t color_value = MAX_TG_COLOR_VALUE * (4 - pipe_ctx->stream_res.tg->inst) / 4; in dce60_get_surface_visual_confirm_color()
251 if (pipe_ctx->stream_res.tg->funcs->set_overscan_blank_color) { in dce60_program_scaler()
260 pipe_ctx->stream_res.tg->funcs->set_overscan_blank_color( in dce60_program_scaler()
261 pipe_ctx->stream_res.tg, in dce60_program_scaler()
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/
Ddce_clk_mgr.c180 if (pipe_ctx->stream_res.pix_clk_params.requested_pix_clk_100hz / 10 > max_pix_clk) in dce_get_max_pixel_clock_for_all_paths()
181 max_pix_clk = pipe_ctx->stream_res.pix_clk_params.requested_pix_clk_100hz / 10; in dce_get_max_pixel_clock_for_all_paths()
187 pipe_ctx->stream_res.pix_clk_params.requested_sym_clk > max_pix_clk) in dce_get_max_pixel_clock_for_all_paths()
188 max_pix_clk = pipe_ctx->stream_res.pix_clk_params.requested_sym_clk; in dce_get_max_pixel_clock_for_all_paths()
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/
Ddcn20_clk_mgr.c147 struct stream_encoder *stream_enc = pipe_ctx->stream_res.stream_enc; in dcn20_update_clocks_update_dentist()
165 pipe_ctx->stream_res.tg->inst); in dcn20_update_clocks_update_dentist()
177 struct stream_encoder *stream_enc = pipe_ctx->stream_res.stream_enc; in dcn20_update_clocks_update_dentist()
193 pipe_ctx->stream_res.tg->inst); in dcn20_update_clocks_update_dentist()
/Linux-v5.15/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/
Ddcn31_clk_mgr.c114 pipe->stream_res.tg->funcs->immediate_disable_crtc(pipe->stream_res.tg); in dcn31_disable_otg_wa()
116 pipe->stream_res.tg->funcs->enable_crtc(pipe->stream_res.tg); in dcn31_disable_otg_wa()
/Linux-v5.15/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_debugfs.c1321 dsc = pipe_ctx->stream_res.dsc; in dp_dsc_clock_en_read()
1508 dsc = pipe_ctx->stream_res.dsc; in dp_dsc_slice_width_read()
1693 dsc = pipe_ctx->stream_res.dsc; in dp_dsc_slice_height_read()
1874 dsc = pipe_ctx->stream_res.dsc; in dp_dsc_bits_per_pixel_read()
2050 dsc = pipe_ctx->stream_res.dsc; in dp_dsc_pic_width_read()
2107 dsc = pipe_ctx->stream_res.dsc; in dp_dsc_pic_height_read()
2179 dsc = pipe_ctx->stream_res.dsc; in dp_dsc_chunk_size_read()
2251 dsc = pipe_ctx->stream_res.dsc; in dp_dsc_slice_bpg_offset_read()

12