| /Linux-v5.4/drivers/gpu/drm/amd/display/dc/dcn20/ |
| D | dcn20_hwseq.c | 486 if (pipe_ctx->stream_res.gsl_group != 0) in dcn20_plane_atomic_disable() 503 memset(&pipe_ctx->stream_res, 0, sizeof(pipe_ctx->stream_res)); in dcn20_plane_atomic_disable() 534 int opp_inst[MAX_PIPES] = { pipe_ctx->stream_res.opp->inst }; in dcn20_enable_stream_timing() 546 opp_inst[opp_cnt] = odm_pipe->stream_res.opp->inst; in dcn20_enable_stream_timing() 551 pipe_ctx->stream_res.tg->funcs->set_odm_combine( in dcn20_enable_stream_timing() 552 pipe_ctx->stream_res.tg, in dcn20_enable_stream_timing() 559 pipe_ctx->stream_res.tg->funcs->enable_optc_clock(pipe_ctx->stream_res.tg, true); in dcn20_enable_stream_timing() 563 &pipe_ctx->stream_res.pix_clk_params, in dcn20_enable_stream_timing() 569 pipe_ctx->stream_res.tg->funcs->program_timing( in dcn20_enable_stream_timing() 570 pipe_ctx->stream_res.tg, in dcn20_enable_stream_timing() [all …]
|
| D | dcn20_resource.c | 1337 pixel_clk_params->controller_id = pipe_ctx->stream_res.tg->inst + 1; in get_pixel_clock_parameters() 1370 get_pixel_clock_parameters(pipe_ctx, &pipe_ctx->stream_res.pix_clk_params); in build_pipe_hw_param() 1374 &pipe_ctx->stream_res.pix_clk_params, in build_pipe_hw_param() 1471 acquire_dsc(&dc_ctx->res_ctx, pool, &pipe_ctx->stream_res.dsc); in add_dsc_to_stream_resource() 1474 if (!pipe_ctx->stream_res.dsc) { in add_dsc_to_stream_resource() 1497 if (pipe_ctx->stream_res.dsc) in remove_dsc_from_stream_resource() 1498 release_dsc(&new_ctx->res_ctx, dc->res_pool, &pipe_ctx->stream_res.dsc); in remove_dsc_from_stream_resource() 1622 next_odm_pipe->stream_res.dsc = NULL; in dcn20_split_stream_for_odm() 1669 next_odm_pipe->stream_res.opp = pool->opps[next_odm_pipe->pipe_idx]; in dcn20_split_stream_for_odm() 1672 acquire_dsc(res_ctx, pool, &next_odm_pipe->stream_res.dsc); in dcn20_split_stream_for_odm() [all …]
|
| /Linux-v5.4/drivers/gpu/drm/amd/display/dc/core/ |
| D | dc_link_hwss.c | 90 pipes[i].stream_res.pix_clk_params.requested_pix_clk_100hz = in dp_enable_link_phy() 94 &pipes[i].stream_res.pix_clk_params, in dp_enable_link_phy() 280 pipes[i].stream_res.stream_enc != NULL) { in dp_retrain_link_dp_test() 283 pipes[i].stream_res.stream_enc->funcs->dp_blank( in dp_retrain_link_dp_test() 284 pipes[i].stream_res.stream_enc); in dp_retrain_link_dp_test() 293 if ((&pipes[i])->stream_res.audio && !link->dc->debug.az_endpoint_mute_only) in dp_retrain_link_dp_test() 294 (&pipes[i])->stream_res.audio->funcs->az_disable((&pipes[i])->stream_res.audio); in dp_retrain_link_dp_test() 324 if (pipes[i].stream_res.audio) { in dp_retrain_link_dp_test() 327 pipes[i].stream_res.audio->funcs->az_enable( in dp_retrain_link_dp_test() 328 pipes[i].stream_res.audio); in dp_retrain_link_dp_test() [all …]
|
| D | dc_resource.c | 1214 split_pipe->stream_res.tg = pool->timing_generators[i]; in acquire_first_split_pipe() 1218 split_pipe->stream_res.opp = pool->opps[i]; in acquire_first_split_pipe() 1289 free_pipe->stream_res.tg = tail_pipe->stream_res.tg; in dc_add_plane_to_context() 1290 free_pipe->stream_res.abm = tail_pipe->stream_res.abm; in dc_add_plane_to_context() 1291 free_pipe->stream_res.opp = tail_pipe->stream_res.opp; in dc_add_plane_to_context() 1292 free_pipe->stream_res.stream_enc = tail_pipe->stream_res.stream_enc; in dc_add_plane_to_context() 1293 free_pipe->stream_res.audio = tail_pipe->stream_res.audio; in dc_add_plane_to_context() 1616 pipe_ctx->stream_res.tg = pool->timing_generators[i]; in acquire_first_free_pipe() 1622 pipe_ctx->stream_res.opp = pool->opps[i]; in acquire_first_free_pipe() 1729 ASSERT(del_pipe->stream_res.stream_enc); in dc_remove_stream_from_ctx() [all …]
|
| D | dc.c | 289 if (pipe->stream == stream && pipe->stream_res.tg) { in dc_stream_adjust_vmin_vmax() 318 if (pipe->stream == stream && pipe->stream_res.stream_enc) { in dc_stream_get_crtc_position() 372 tg = pipe->stream_res.tg; in dc_stream_configure_crc() 406 tg = pipe->stream_res.tg; in dc_stream_get_crc() 449 pipes->stream_res.opp->funcs-> in dc_stream_set_dither_option() 450 opp_program_bit_depth_reduction(pipes->stream_res.opp, ¶ms); in dc_stream_set_dither_option() 485 pipes->stream_res.opp->inst); in dc_stream_program_csc_matrix() 1910 pipe_ctx->stream_res.opp->funcs->opp_program_fmt(pipe_ctx->stream_res.opp, in commit_planes_do_stream_update() 1915 odm_pipe->stream_res.opp->funcs->opp_program_fmt(odm_pipe->stream_res.opp, in commit_planes_do_stream_update() 1940 if (pipe_ctx->stream_res.audio && !dc->debug.az_endpoint_mute_only) in commit_planes_do_stream_update() [all …]
|
| D | dc_link.c | 1493 pipe_ctx->stream_res.pix_clk_params.requested_sym_clk = in enable_link_dp() 2049 eng_id = pipe_ctx->stream_res.stream_enc->id; in enable_link_hdmi() 2349 res_ctx.pipe_ctx[i].stream_res.tg->inst + in dc_link_set_backlight_level() 2439 bpc = get_color_depth(pipe_ctx->stream_res.pix_clk_params.color_depth); in get_pbn_from_timing() 2518 struct stream_encoder *stream_encoder = pipe_ctx->stream_res.stream_enc; in allocate_mst_payload() 2538 link, pipe_ctx->stream_res.stream_enc, &proposed_table); in allocate_mst_payload() 2598 struct stream_encoder *stream_encoder = pipe_ctx->stream_res.stream_enc; in deallocate_mst_payload() 2626 link, pipe_ctx->stream_res.stream_enc, &proposed_table); in deallocate_mst_payload() 2684 pipe_ctx->stream_res.stream_enc->funcs->setup_stereo_sync( in core_link_enable_stream() 2685 pipe_ctx->stream_res.stream_enc, in core_link_enable_stream() [all …]
|
| D | dc_debug.c | 328 pipe_ctx->stream_res.tg->funcs->get_position(pipe_ctx->stream_res.tg, &position); in context_timing_trace() 339 pipe_ctx->stream_res.tg->inst, in context_timing_trace()
|
| D | dc_link_dp.c | 3044 struct output_pixel_processor *opp = pipe_ctx->stream_res.opp; in set_crtc_test_pattern() 3093 if (pipe_ctx->stream_res.tg->funcs->set_test_pattern) in set_crtc_test_pattern() 3094 pipe_ctx->stream_res.tg->funcs->set_test_pattern(pipe_ctx->stream_res.tg, in set_crtc_test_pattern() 3107 struct output_pixel_processor *odm_opp = odm_pipe->stream_res.opp; in set_crtc_test_pattern() 3133 if (pipe_ctx->stream_res.tg->funcs->set_test_pattern) in set_crtc_test_pattern() 3134 pipe_ctx->stream_res.tg->funcs->set_test_pattern(pipe_ctx->stream_res.tg, in set_crtc_test_pattern() 3147 struct output_pixel_processor *odm_opp = odm_pipe->stream_res.opp; in set_crtc_test_pattern() 3238 pipes->stream_res.stream_enc->funcs->dp_blank(pipe_ctx->stream_res.stream_enc); in dc_link_dp_set_test_pattern()
|
| D | dc_stream.c | 493 struct timing_generator *tg = res_ctx->pipe_ctx[i].stream_res.tg; in dc_stream_get_vblank_counter() 552 struct timing_generator *tg = res_ctx->pipe_ctx[i].stream_res.tg; in dc_stream_get_scanoutpos()
|
| /Linux-v5.4/drivers/gpu/drm/amd/display/dc/dce110/ |
| D | dce110_hw_sequencer.c | 631 if (pipe_ctx->stream_res.stream_enc == NULL) in dce110_update_info_frame() 641 pipe_ctx->stream_res.stream_enc->funcs->update_hdmi_info_packets( in dce110_update_info_frame() 642 pipe_ctx->stream_res.stream_enc, in dce110_update_info_frame() 643 &pipe_ctx->stream_res.encoder_info_frame); in dce110_update_info_frame() 645 pipe_ctx->stream_res.stream_enc->funcs->update_dp_info_packets( in dce110_update_info_frame() 646 pipe_ctx->stream_res.stream_enc, in dce110_update_info_frame() 647 &pipe_ctx->stream_res.encoder_info_frame); in dce110_update_info_frame() 661 struct timing_generator *tg = pipe_ctx->stream_res.tg; in dce110_enable_stream() 668 pipe_ctx->stream_res.stream_enc->id, true); in dce110_enable_stream() 687 if (pipe_ctx->stream_res.audio != NULL) { in dce110_enable_stream() [all …]
|
| D | dce110_resource.c | 822 pixel_clk_params->controller_id = pipe_ctx->stream_res.tg->inst + 1; in get_pixel_clock_parameters() 846 get_pixel_clock_parameters(pipe_ctx, &pipe_ctx->stream_res.pix_clk_params); in dce110_resource_build_pipe_hw_param() 849 &pipe_ctx->stream_res.pix_clk_params, in dce110_resource_build_pipe_hw_param() 1061 pipe_ctx->stream_res.tg = pool->timing_generators[underlay_idx]; in dce110_acquire_underlay() 1065 pipe_ctx->stream_res.opp = pool->opps[underlay_idx]; in dce110_acquire_underlay() 1076 pipe_ctx->stream_res.tg->inst, in dce110_acquire_underlay() 1084 pipe_ctx->stream_res.tg->funcs->program_timing(pipe_ctx->stream_res.tg, in dce110_acquire_underlay() 1093 pipe_ctx->stream_res.tg->funcs->enable_advanced_request( in dce110_acquire_underlay() 1094 pipe_ctx->stream_res.tg, in dce110_acquire_underlay() 1106 pipe_ctx->stream_res.tg->funcs->set_blank_color( in dce110_acquire_underlay() [all …]
|
| /Linux-v5.4/drivers/gpu/drm/amd/display/dc/dcn10/ |
| D | dcn10_hw_sequencer.c | 427 struct timing_generator *tg = pipe_ctx->stream_res.tg; in dcn10_did_underflow_occur() 752 pipe_ctx->stream_res.tg->funcs->enable_optc_clock(pipe_ctx->stream_res.tg, true); in dcn10_enable_stream_timing() 756 &pipe_ctx->stream_res.pix_clk_params, in dcn10_enable_stream_timing() 762 pipe_ctx->stream_res.tg->funcs->program_timing( in dcn10_enable_stream_timing() 763 pipe_ctx->stream_res.tg, in dcn10_enable_stream_timing() 776 inst_offset = reg_offsets[pipe_ctx->stream_res.tg->inst].fmt; in dcn10_enable_stream_timing() 778 pipe_ctx->stream_res.opp->funcs->opp_program_fmt( in dcn10_enable_stream_timing() 779 pipe_ctx->stream_res.opp, in dcn10_enable_stream_timing() 787 if (pipe_ctx->stream_res.tg->funcs->set_blank_color) in dcn10_enable_stream_timing() 788 pipe_ctx->stream_res.tg->funcs->set_blank_color( in dcn10_enable_stream_timing() [all …]
|
| D | dcn10_resource.c | 993 pixel_clk_params->controller_id = pipe_ctx->stream_res.tg->inst + 1; in get_pixel_clock_parameters() 1023 get_pixel_clock_parameters(pipe_ctx, &pipe_ctx->stream_res.pix_clk_params); in build_pipe_hw_param() 1027 &pipe_ctx->stream_res.pix_clk_params, in build_pipe_hw_param() 1106 idle_pipe->stream_res.tg = head_pipe->stream_res.tg; in dcn10_acquire_idle_pipe_for_layer() 1107 idle_pipe->stream_res.abm = head_pipe->stream_res.abm; in dcn10_acquire_idle_pipe_for_layer() 1108 idle_pipe->stream_res.opp = head_pipe->stream_res.opp; in dcn10_acquire_idle_pipe_for_layer()
|
| D | dcn10_hw_sequencer_debug.c | 432 …pix_clk = dc->current_state->res_ctx.pipe_ctx[i].stream_res.pix_clk_params.requested_pix_clk_100hz… in dcn10_get_otg_states()
|
| /Linux-v5.4/drivers/gpu/drm/amd/display/dc/dce/ |
| D | dce_hwseq.c | 56 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()
|
| D | dce_clk_mgr.c | 199 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() 520 cfg->pipe_idx = pipe_ctx->stream_res.tg->inst; in dce110_fill_display_configs()
|
| /Linux-v5.4/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/ |
| D | dce_clk_mgr.c | 180 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.4/drivers/gpu/drm/amd/display/dc/inc/ |
| D | core_types.h | 293 struct stream_resource stream_res; member
|
| /Linux-v5.4/drivers/gpu/drm/amd/display/dc/irq/dce110/ |
| D | irq_service_dce110.c | 215 core_dc->current_state->res_ctx.pipe_ctx[pipe_offset].stream_res.tg; in dce110_vblank_set()
|
| /Linux-v5.4/drivers/gpu/drm/amd/display/dc/clk_mgr/dce110/ |
| D | dce110_clk_mgr.c | 148 cfg->pipe_idx = pipe_ctx->stream_res.tg->inst; in dce110_fill_display_configs()
|
| /Linux-v5.4/drivers/gpu/drm/amd/display/dc/calcs/ |
| D | dcn_calcs.c | 1250 memset(&hsplit_pipe->stream_res, 0, sizeof(hsplit_pipe->stream_res)); in dcn_validate_bandwidth()
|