/linux-6.1.9/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_hw_sequencer.c | 306 struct pipe_ctx *top_pipe = pipe_ctx; in get_mpctree_visual_confirm_color() local 308 while (top_pipe->top_pipe) in get_mpctree_visual_confirm_color() 309 top_pipe = top_pipe->top_pipe; in get_mpctree_visual_confirm_color() 311 *color = pipe_colors[top_pipe->pipe_idx]; in get_mpctree_visual_confirm_color() 373 while (top_pipe_ctx->top_pipe != NULL) in get_hdr_visual_confirm_color() 374 top_pipe_ctx = top_pipe_ctx->top_pipe; in get_hdr_visual_confirm_color()
|
D | dc_resource.c | 730 other_pipe = pipe->top_pipe; in get_num_mpc_splits() 733 other_pipe = other_pipe->top_pipe; in get_num_mpc_splits() 761 struct pipe_ctx *split_pipe = pipe_ctx->top_pipe; in calculate_split_count_and_index() 766 split_pipe = split_pipe->top_pipe; in calculate_split_count_and_index() 818 if (pipe_ctx->top_pipe && pipe_ctx->top_pipe->prev_odm_pipe && !pipe_ctx->prev_odm_pipe) { in calculate_recout() 1020 else if (pipe_ctx->top_pipe && pipe_ctx->top_pipe->prev_odm_pipe) in calculate_inits_and_viewports() 1136 …else if (pipe_ctx->top_pipe && (pipe_ctx->top_pipe->next_odm_pipe || pipe_ctx->top_pipe->prev_odm_… in resource_build_scaling_params() 1138 pipe_ctx->plane_res.scl_data.h_active /= get_num_odm_splits(pipe_ctx->top_pipe) + 1; in resource_build_scaling_params() 1143 pipe_ctx->top_pipe->pipe_idx, in resource_build_scaling_params() 1144 pipe_ctx->top_pipe->next_odm_pipe ? pipe_ctx->top_pipe->next_odm_pipe->pipe_idx : -1, in resource_build_scaling_params() [all …]
|
D | dc.c | 518 if (pipe->stream == stream && !pipe->top_pipe && !pipe->prev_odm_pipe) in dc_stream_forward_dmcu_crc_window() 552 if (pipe->stream == stream && !pipe->top_pipe && !pipe->prev_odm_pipe) in dc_stream_stop_dmcu_crc_win_update() 597 if (pipe->stream == stream && !pipe->top_pipe && !pipe->prev_odm_pipe) in dc_stream_configure_crc() 1060 if (!pipe_ctx->top_pipe && in apply_ctx_interdependent_lock() 1086 if ((context->res_ctx.pipe_ctx[i].top_pipe) && in disable_dangling_plane() 1087 (dc->current_state->res_ctx.pipe_ctx[i].top_pipe)) in disable_dangling_plane() 1088 pipe_split_change = context->res_ctx.pipe_ctx[i].top_pipe->pipe_idx != in disable_dangling_plane() 1089 dc->current_state->res_ctx.pipe_ctx[i].top_pipe->pipe_idx; in disable_dangling_plane() 1091 pipe_split_change = context->res_ctx.pipe_ctx[i].top_pipe != in disable_dangling_plane() 1092 dc->current_state->res_ctx.pipe_ctx[i].top_pipe; in disable_dangling_plane() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/basics/ |
D | dc_common.c | 65 if (pipe_ctx->top_pipe && is_upper_pipe_tree_visible(pipe_ctx->top_pipe)) in is_upper_pipe_tree_visible() 74 if (pipe_ctx->top_pipe && is_upper_pipe_tree_visible(pipe_ctx->top_pipe)) in is_pipe_tree_visible()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn32/ |
D | dcn32_resource_helpers.c | 170 pipe->top_pipe = NULL; in dcn32_merge_pipes_for_subvp() 176 } else if (pipe->top_pipe && pipe->top_pipe->plane_state == pipe->plane_state) { in dcn32_merge_pipes_for_subvp() 177 struct pipe_ctx *top_pipe = pipe->top_pipe; in dcn32_merge_pipes_for_subvp() local 180 top_pipe->bottom_pipe = bottom_pipe; in dcn32_merge_pipes_for_subvp() 182 bottom_pipe->top_pipe = top_pipe; in dcn32_merge_pipes_for_subvp() 184 pipe->top_pipe = NULL; in dcn32_merge_pipes_for_subvp()
|
D | dcn32_hwseq.c | 651 if (pipe_ctx->top_pipe == NULL) { in dcn32_set_output_transfer_func() 1295 if (pipe_ctx->stream && pipe_ctx->stream->link == link && pipe_ctx->top_pipe == NULL) { in apply_symclk_on_tx_off_wa()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn20/ |
D | dcn20_resource.c | 1413 if (new_ctx->res_ctx.pipe_ctx[i].stream == dc_stream && !new_ctx->res_ctx.pipe_ctx[i].top_pipe) { in remove_dsc_from_stream_resource() 1480 if (prev_odm_pipe->top_pipe && prev_odm_pipe->top_pipe->next_odm_pipe) { in dcn20_split_stream_for_odm() 1481 prev_odm_pipe->top_pipe->next_odm_pipe->bottom_pipe = next_odm_pipe; in dcn20_split_stream_for_odm() 1482 next_odm_pipe->top_pipe = prev_odm_pipe->top_pipe->next_odm_pipe; in dcn20_split_stream_for_odm() 1485 prev_odm_pipe->bottom_pipe->next_odm_pipe->top_pipe = next_odm_pipe; in dcn20_split_stream_for_odm() 1527 if (!next_odm_pipe->top_pipe) in dcn20_split_stream_for_odm() 1530 next_odm_pipe->stream_res.opp = next_odm_pipe->top_pipe->stream_res.opp; in dcn20_split_stream_for_odm() 1531 if (next_odm_pipe->stream->timing.flags.DSC == 1 && !next_odm_pipe->top_pipe) { in dcn20_split_stream_for_odm() 1564 secondary_pipe->bottom_pipe->top_pipe = secondary_pipe; in dcn20_split_stream_for_mpc() 1567 secondary_pipe->top_pipe = primary_pipe; in dcn20_split_stream_for_mpc() [all …]
|
D | dcn20_hwseq.c | 600 pipe_ctx->top_pipe = NULL; in dcn20_plane_atomic_disable() 679 if (pipe_ctx->top_pipe != NULL) in dcn20_enable_stream_timing() 840 if (pipe_ctx->top_pipe == NULL in dcn20_set_output_transfer_func() 1180 if (!pipe_ctx->top_pipe in dcn20_enable_plane() 1202 if (!pipe || pipe->top_pipe) in dcn20_pipe_control_lock() 1304 if (!new_pipe->top_pipe && !new_pipe->prev_odm_pipe) { in dcn20_detect_pipe_changes() 1337 if (!new_pipe->top_pipe && !new_pipe->prev_odm_pipe) { in dcn20_detect_pipe_changes() 1629 for (other_pipe = pipe->top_pipe; other_pipe != NULL; other_pipe = other_pipe->top_pipe) { in calculate_vready_offset_for_group() 1654 && !pipe_ctx->top_pipe && !pipe_ctx->prev_odm_pipe) in dcn20_program_pipe() 1658 if (pipe_ctx->update_flags.bits.global_sync && !pipe_ctx->top_pipe in dcn20_program_pipe() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
D | dcn32_fpu.c | 615 if (pipe->stream && !pipe->top_pipe) { in dcn32_get_num_free_pipes() 677 if (pipe->plane_state && !pipe->top_pipe && in dcn32_assign_subvp_pipe() 740 if (pipe->stream && !pipe->top_pipe && in dcn32_enough_pipes_for_subvp() 793 if (pipe->stream && pipe->plane_state && !pipe->top_pipe && in subvp_subvp_schedulable() 870 if (!pipe->stream || !pipe->plane_state || pipe->top_pipe || pipe->prev_odm_pipe) in subvp_drr_schedulable() 951 if (!pipe->stream || !pipe->plane_state || pipe->top_pipe || pipe->prev_odm_pipe) in subvp_vblank_schedulable() 1026 if (pipe->plane_state && !pipe->top_pipe && in subvp_validate_static_schedulability() 1167 if (pipe->stream && pipe->plane_state && !pipe->top_pipe && in dcn32_full_validate_bw_helper() 1355 if (dc->current_state->res_ctx.pipe_ctx[i].top_pipe == NULL in dcn32_find_split_pipe() 1431 if (pri_pipe->top_pipe && pri_pipe->top_pipe->next_odm_pipe) { in dcn32_split_stream_for_mpc_or_odm() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn30/ |
D | dcn30_resource.c | 1560 if (pri_pipe->top_pipe && pri_pipe->top_pipe->next_odm_pipe) { in dcn30_split_stream_for_mpc_or_odm() 1561 pri_pipe->top_pipe->next_odm_pipe->bottom_pipe = sec_pipe; in dcn30_split_stream_for_mpc_or_odm() 1562 sec_pipe->top_pipe = pri_pipe->top_pipe->next_odm_pipe; in dcn30_split_stream_for_mpc_or_odm() 1565 pri_pipe->bottom_pipe->next_odm_pipe->top_pipe = sec_pipe; in dcn30_split_stream_for_mpc_or_odm() 1571 if (!sec_pipe->top_pipe) in dcn30_split_stream_for_mpc_or_odm() 1574 sec_pipe->stream_res.opp = sec_pipe->top_pipe->stream_res.opp; in dcn30_split_stream_for_mpc_or_odm() 1585 sec_pipe->bottom_pipe->top_pipe = sec_pipe; in dcn30_split_stream_for_mpc_or_odm() 1588 sec_pipe->top_pipe = pri_pipe; in dcn30_split_stream_for_mpc_or_odm() 1611 if (dc->current_state->res_ctx.pipe_ctx[i].top_pipe == NULL in dcn30_find_split_pipe() 1749 pipe->top_pipe = NULL; in dcn30_internal_validate_bw() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_hw_sequencer.c | 111 if (pipe_ctx->top_pipe || in dcn10_lock_all_pipes() 880 for (other_pipe = pipe->top_pipe; other_pipe != NULL; other_pipe = other_pipe->top_pipe) { in calculate_vready_offset_for_group() 909 if (pipe_ctx->top_pipe != NULL) in dcn10_enable_stream_timing() 1043 if (pipe_ctx->top_pipe == NULL) { in dcn10_reset_back_end_for_pipe() 1278 pipe_ctx->top_pipe = NULL; in dcn10_plane_atomic_disable() 1692 if (pipe_ctx_old->top_pipe) in dcn10_reset_hw_ctx_wrap() 1712 bool sec_split = pipe_ctx->top_pipe && in patch_address_for_sbs_tb_stereo() 1713 pipe_ctx->top_pipe->plane_state == pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() 1891 if (!pipe || pipe->top_pipe) in dcn10_pipe_control_lock() 1974 if (!pipe || pipe->top_pipe) in dcn10_cursor_lock() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dml/calcs/ |
D | dcn_calcs.c | 312 } else if (pipe->top_pipe != NULL && pipe->top_pipe->plane_state == pipe->plane_state) { in pipe_ctx_to_e2e_pipe_params() 545 secondary_pipe->bottom_pipe->top_pipe = secondary_pipe; in split_stream_across_pipes() 548 secondary_pipe->top_pipe = primary_pipe; in split_stream_across_pipes() 899 if (pipe->top_pipe && pipe->top_pipe->plane_state == pipe->plane_state) in dcn_validate_bandwidth() 1206 if (pipe->top_pipe && pipe->top_pipe->plane_state == pipe->plane_state) in dcn_validate_bandwidth() 1271 hsplit_pipe->bottom_pipe->top_pipe = pipe; in dcn_validate_bandwidth() 1274 hsplit_pipe->top_pipe = NULL; in dcn_validate_bandwidth()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
D | dcn20_fpu.c | 1270 if (res_ctx->pipe_ctx[i].top_pipe && res_ctx->pipe_ctx[i].top_pipe->plane_state in dcn20_populate_dml_pipes_from_context() 1272 struct pipe_ctx *first_pipe = res_ctx->pipe_ctx[i].top_pipe; in dcn20_populate_dml_pipes_from_context() 1275 while (first_pipe->top_pipe && first_pipe->top_pipe->plane_state in dcn20_populate_dml_pipes_from_context() 1277 first_pipe = first_pipe->top_pipe; in dcn20_populate_dml_pipes_from_context() 1286 pipes[pipe_cnt].pipe.src.hsplit_grp = res_ctx->pipe_ctx[i].top_pipe->pipe_idx; in dcn20_populate_dml_pipes_from_context() 1435 || (res_ctx->pipe_ctx[i].top_pipe && res_ctx->pipe_ctx[i].top_pipe->plane_state == pln) in dcn20_populate_dml_pipes_from_context() 1503 split_pipe = res_ctx->pipe_ctx[i].top_pipe; in dcn20_populate_dml_pipes_from_context() 1506 split_pipe = split_pipe->top_pipe; in dcn20_populate_dml_pipes_from_context()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn201/ |
D | dcn201_hwseq.c | 60 bool sec_split = pipe_ctx->top_pipe && in patch_address_for_sbs_tb_stereo() 61 pipe_ctx->top_pipe->plane_state == pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() 549 if (pipe->top_pipe) in dcn201_pipe_control_lock()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/ |
D | dc_dmub_srv.c | 530 if (!pipe->stream || !pipe->plane_state || pipe->top_pipe || pipe->prev_odm_pipe) in populate_subvp_cmd_vblank_pipe_info() 746 if (pipe->plane_state && !pipe->top_pipe && !pipe->prev_odm_pipe && in dc_dmub_setup_subvp_dmub_command() 764 !pipe->top_pipe && !pipe->prev_odm_pipe && in dc_dmub_setup_subvp_dmub_command()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn31/ |
D | dcn31_hwseq.c | 530 ASSERT(!pipe_ctx->top_pipe); in dcn31_reset_back_end_for_pipe() 600 if (pipe_ctx_old->top_pipe || pipe_ctx_old->prev_odm_pipe) in dcn31_reset_hw_ctx_wrap()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_hw_sequencer.c | 2094 if (!pipe_ctx_old->stream || pipe_ctx_old->top_pipe) in dce110_reset_hw_ctx_wrap() 2177 if (pipe_ctx->top_pipe) in dce110_setup_audio_dto() 2215 if (pipe_ctx->top_pipe) in dce110_setup_audio_dto() 2267 if (pipe_ctx->stream == NULL || pipe_ctx->top_pipe) in dce110_apply_ctx_to_hw() 2303 if (pipe_ctx->top_pipe || pipe_ctx->prev_odm_pipe) in dce110_apply_ctx_to_hw() 2923 if (pipe_ctx->top_pipe && pipe_ctx->plane_state != pipe_ctx->top_pipe->plane_state) in dce110_set_cursor_position()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/inc/ |
D | core_types.h | 426 struct pipe_ctx *top_pipe; member
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dce100/ |
D | dce_clk_mgr.c | 177 if (pipe_ctx->top_pipe) in dce_get_max_pixel_clock_for_all_paths()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn21/ |
D | dcn21_resource.c | 895 …if (!pipe->top_pipe && !pipe->plane_state && context->bw_ctx.dml.vba.ODMCombineEnabled[pipe_idx]) { in dcn21_fast_validate_bw() 909 if (pipe->top_pipe && pipe->plane_state == pipe->top_pipe->plane_state) in dcn21_fast_validate_bw()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/ |
D | dcn316_clk_mgr.c | 123 if (pipe->top_pipe || pipe->prev_odm_pipe) in dcn316_disable_otg_wa()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_clk_mgr.c | 196 if (pipe_ctx->top_pipe) in get_max_pixel_clock_for_all_paths()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/ |
D | dcn31_clk_mgr.c | 115 if (pipe->top_pipe || pipe->prev_odm_pipe) in dcn31_disable_otg_wa()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/ |
D | dcn315_clk_mgr.c | 98 if (pipe->top_pipe || pipe->prev_odm_pipe) in dcn315_disable_otg_wa()
|
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn314/ |
D | dcn314_clk_mgr.c | 137 if (pipe->top_pipe || pipe->prev_odm_pipe) in dcn314_disable_otg_wa()
|