/linux-6.6.21/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.6.21/drivers/gpu/drm/amd/display/dc/dcn32/ |
D | dcn32_resource_helpers.c | 144 pipe->top_pipe = NULL; in dcn32_merge_pipes_for_subvp() 150 } else if (pipe->top_pipe && pipe->top_pipe->plane_state == pipe->plane_state) { in dcn32_merge_pipes_for_subvp() 151 struct pipe_ctx *top_pipe = pipe->top_pipe; in dcn32_merge_pipes_for_subvp() local 154 top_pipe->bottom_pipe = bottom_pipe; in dcn32_merge_pipes_for_subvp() 156 bottom_pipe->top_pipe = top_pipe; in dcn32_merge_pipes_for_subvp() 158 pipe->top_pipe = NULL; in dcn32_merge_pipes_for_subvp()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn20/ |
D | dcn20_resource.c | 1371 if (pipe_ctx->top_pipe) in dcn20_add_dsc_to_stream_resource() 1402 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() 1485 if (prev_odm_pipe->top_pipe && prev_odm_pipe->top_pipe->next_odm_pipe) { in dcn20_split_stream_for_odm() 1486 prev_odm_pipe->top_pipe->next_odm_pipe->bottom_pipe = next_odm_pipe; in dcn20_split_stream_for_odm() 1487 next_odm_pipe->top_pipe = prev_odm_pipe->top_pipe->next_odm_pipe; in dcn20_split_stream_for_odm() 1490 prev_odm_pipe->bottom_pipe->next_odm_pipe->top_pipe = next_odm_pipe; in dcn20_split_stream_for_odm() 1532 if (!next_odm_pipe->top_pipe) in dcn20_split_stream_for_odm() 1535 next_odm_pipe->stream_res.opp = next_odm_pipe->top_pipe->stream_res.opp; in dcn20_split_stream_for_odm() 1536 if (next_odm_pipe->stream->timing.flags.DSC == 1 && !next_odm_pipe->top_pipe) { in dcn20_split_stream_for_odm() 1569 secondary_pipe->bottom_pipe->top_pipe = secondary_pipe; in dcn20_split_stream_for_mpc() [all …]
|
D | dcn20_hwseq.c | 615 pipe_ctx->top_pipe = NULL; in dcn20_plane_atomic_disable() 703 if (pipe_ctx->top_pipe != NULL) in dcn20_enable_stream_timing() 864 if (pipe_ctx->top_pipe == NULL in dcn20_set_output_transfer_func() 1211 if (!pipe_ctx->top_pipe in dcn20_enable_plane() 1233 if (!pipe || pipe->top_pipe) in dcn20_pipe_control_lock() 1350 if (!new_pipe->top_pipe && !new_pipe->prev_odm_pipe) { in dcn20_detect_pipe_changes() 1383 if (!new_pipe->top_pipe && !new_pipe->prev_odm_pipe) { in dcn20_detect_pipe_changes() 1669 for (other_pipe = pipe->top_pipe; other_pipe != NULL; other_pipe = other_pipe->top_pipe) { in calculate_vready_offset_for_group() 1703 if (pipe_ctx->update_flags.bits.global_sync && !pipe_ctx->top_pipe in dcn20_program_pipe() 1811 if (!pipe_ctx->top_pipe && !pipe_ctx->prev_odm_pipe && pipe_ctx->plane_state) { in dcn20_program_front_end_for_ctx() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_hw_sequencer.c | 319 struct pipe_ctx *top_pipe = pipe_ctx; in get_mpctree_visual_confirm_color() local 321 while (top_pipe->top_pipe) in get_mpctree_visual_confirm_color() 322 top_pipe = top_pipe->top_pipe; in get_mpctree_visual_confirm_color() 324 *color = pipe_colors[top_pipe->pipe_idx]; in get_mpctree_visual_confirm_color() 387 while (top_pipe_ctx->top_pipe != NULL) in get_hdr_visual_confirm_color() 388 top_pipe_ctx = top_pipe_ctx->top_pipe; in get_hdr_visual_confirm_color()
|
D | dc_resource.c | 744 other_pipe = pipe->top_pipe; in resource_get_num_mpc_splits() 747 other_pipe = other_pipe->top_pipe; in resource_get_num_mpc_splits() 784 struct pipe_ctx *split_pipe = pipe_ctx->top_pipe; in get_mpc_split_index() 789 split_pipe = split_pipe->top_pipe; in get_mpc_split_index() 1491 if (pipe_ctx->top_pipe && pipe_ctx->top_pipe->plane_state == plane_state) { in resource_build_scaling_params() 1718 ASSERT(!pipe_ctx->top_pipe); in resource_is_pipe_type() 1720 } else if (pipe_ctx->top_pipe) { in resource_is_pipe_type() 1732 !pipe_ctx->top_pipe && in resource_is_pipe_type() 1735 return !pipe_ctx->top_pipe && pipe_ctx->stream; in resource_is_pipe_type() 1778 while (opp_head->top_pipe) in resource_get_opp_head() [all …]
|
D | dc.c | 544 if (pipe->stream == stream && !pipe->top_pipe && !pipe->prev_odm_pipe) in dc_stream_forward_crc_window() 1119 if ((context->res_ctx.pipe_ctx[i].top_pipe) && in disable_dangling_plane() 1120 (dc->current_state->res_ctx.pipe_ctx[i].top_pipe)) in disable_dangling_plane() 1121 pipe_split_change = context->res_ctx.pipe_ctx[i].top_pipe->pipe_idx != in disable_dangling_plane() 1122 dc->current_state->res_ctx.pipe_ctx[i].top_pipe->pipe_idx; in disable_dangling_plane() 1124 pipe_split_change = context->res_ctx.pipe_ctx[i].top_pipe != in disable_dangling_plane() 1125 dc->current_state->res_ctx.pipe_ctx[i].top_pipe; in disable_dangling_plane() 1137 if (old_stream && !dc->current_state->res_ctx.pipe_ctx[i].top_pipe && in disable_dangling_plane() 1431 || ctx->res_ctx.pipe_ctx[i].top_pipe in program_timing_sync() 2248 if (cur_pipe->top_pipe) in dc_copy_state() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn30/ |
D | dcn30_resource.c | 1547 if (pri_pipe->top_pipe && pri_pipe->top_pipe->next_odm_pipe) { in dcn30_split_stream_for_mpc_or_odm() 1548 pri_pipe->top_pipe->next_odm_pipe->bottom_pipe = sec_pipe; in dcn30_split_stream_for_mpc_or_odm() 1549 sec_pipe->top_pipe = pri_pipe->top_pipe->next_odm_pipe; in dcn30_split_stream_for_mpc_or_odm() 1552 pri_pipe->bottom_pipe->next_odm_pipe->top_pipe = sec_pipe; in dcn30_split_stream_for_mpc_or_odm() 1558 if (!sec_pipe->top_pipe) in dcn30_split_stream_for_mpc_or_odm() 1561 sec_pipe->stream_res.opp = sec_pipe->top_pipe->stream_res.opp; in dcn30_split_stream_for_mpc_or_odm() 1572 sec_pipe->bottom_pipe->top_pipe = sec_pipe; in dcn30_split_stream_for_mpc_or_odm() 1575 sec_pipe->top_pipe = pri_pipe; in dcn30_split_stream_for_mpc_or_odm() 1598 if (dc->current_state->res_ctx.pipe_ctx[i].top_pipe == NULL in dcn30_find_split_pipe() 1738 pipe->top_pipe = NULL; in dcn30_internal_validate_bw() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn32/ |
D | dcn32_fpu.c | 638 if (pipe->stream && !pipe->top_pipe) { in dcn32_get_num_free_pipes() 699 if (pipe->plane_state && !pipe->top_pipe && !dcn32_is_center_timing(pipe) && in dcn32_assign_subvp_pipe() 812 if (pipe->stream && pipe->plane_state && !pipe->top_pipe && in subvp_subvp_schedulable() 1054 if (pipe->plane_state && !pipe->top_pipe && in subvp_subvp_admissable() 1108 if (pipe->plane_state && !pipe->top_pipe) { in subvp_validate_static_schedulability() 1443 (context->res_ctx.pipe_ctx[i].top_pipe == NULL || in dcn32_calculate_dlg_params() 1444 … context->res_ctx.pipe_ctx[i].plane_state != context->res_ctx.pipe_ctx[i].top_pipe->plane_state) && in dcn32_calculate_dlg_params() 1525 if (dc->current_state->res_ctx.pipe_ctx[i].top_pipe == NULL in dcn32_find_split_pipe() 1601 if (pri_pipe->top_pipe && pri_pipe->top_pipe->next_odm_pipe) { in dcn32_split_stream_for_mpc_or_odm() 1602 pri_pipe->top_pipe->next_odm_pipe->bottom_pipe = sec_pipe; in dcn32_split_stream_for_mpc_or_odm() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn10/ |
D | dcn10_hw_sequencer.c | 111 if (pipe_ctx->top_pipe || in dcn10_lock_all_pipes() 885 for (other_pipe = pipe->top_pipe; other_pipe != NULL; other_pipe = other_pipe->top_pipe) { in calculate_vready_offset_for_group() 914 if (pipe_ctx->top_pipe != NULL) in dcn10_enable_stream_timing() 1046 if (pipe_ctx->top_pipe == NULL) { in dcn10_reset_back_end_for_pipe() 1286 pipe_ctx->top_pipe = NULL; in dcn10_plane_atomic_disable() 1678 if (pipe_ctx_old->top_pipe) in dcn10_reset_hw_ctx_wrap() 1698 bool sec_split = pipe_ctx->top_pipe && in patch_address_for_sbs_tb_stereo() 1699 pipe_ctx->top_pipe->plane_state == pipe_ctx->plane_state; in patch_address_for_sbs_tb_stereo() 1877 if (!pipe || pipe->top_pipe) in dcn10_pipe_control_lock() 1965 if (!pipe || pipe->top_pipe) in dcn10_cursor_lock() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/link/ |
D | link_resource.c | 42 if (pipe->stream && pipe->stream->link && pipe->top_pipe == NULL) { in link_get_cur_link_res()
|
/linux-6.6.21/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.6.21/drivers/gpu/drm/amd/display/dc/ |
D | dc_dmub_srv.c | 311 …if (split_pipe->stream == head_pipe->stream && (split_pipe->top_pipe || split_pipe->prev_odm_pipe)… in dc_dmub_srv_populate_fams_pipe_info() 855 for (test_pipe = pipe_ctx->top_pipe; test_pipe; in dc_can_pipe_disable_cursor() 856 test_pipe = test_pipe->top_pipe) { in dc_can_pipe_disable_cursor() 870 for (split_pipe = pipe_ctx->top_pipe; split_pipe; in dc_can_pipe_disable_cursor() 871 split_pipe = split_pipe->top_pipe) in dc_can_pipe_disable_cursor()
|
/linux-6.6.21/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() 530 if (pipe->top_pipe) in dcn201_pipe_control_lock()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dml/dcn20/ |
D | dcn20_fpu.c | 1419 if (res_ctx->pipe_ctx[i].top_pipe && res_ctx->pipe_ctx[i].top_pipe->plane_state in dcn20_populate_dml_pipes_from_context() 1421 struct pipe_ctx *first_pipe = res_ctx->pipe_ctx[i].top_pipe; in dcn20_populate_dml_pipes_from_context() 1424 while (first_pipe->top_pipe && first_pipe->top_pipe->plane_state in dcn20_populate_dml_pipes_from_context() 1426 first_pipe = first_pipe->top_pipe; in dcn20_populate_dml_pipes_from_context() 1435 pipes[pipe_cnt].pipe.src.hsplit_grp = res_ctx->pipe_ctx[i].top_pipe->pipe_idx; in dcn20_populate_dml_pipes_from_context() 1585 || (res_ctx->pipe_ctx[i].top_pipe && res_ctx->pipe_ctx[i].top_pipe->plane_state == pln) in dcn20_populate_dml_pipes_from_context() 1654 split_pipe = res_ctx->pipe_ctx[i].top_pipe; in dcn20_populate_dml_pipes_from_context() 1657 split_pipe = split_pipe->top_pipe; in dcn20_populate_dml_pipes_from_context()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn314/ |
D | dcn314_hwseq.c | 402 if (pipe->top_pipe || pipe->prev_odm_pipe) in dcn314_resync_fifo_dccg_dio() 456 if (pipe_ctx->stream && pipe_ctx->stream->link == link && pipe_ctx->top_pipe == NULL) { in apply_symclk_on_tx_off_wa()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn31/ |
D | dcn31_hwseq.c | 514 ASSERT(!pipe_ctx->top_pipe); in dcn31_reset_back_end_for_pipe() 581 if (pipe_ctx_old->top_pipe || pipe_ctx_old->prev_odm_pipe) in dcn31_reset_hw_ctx_wrap()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dce110/ |
D | dce110_hw_sequencer.c | 2091 if (!pipe_ctx_old->stream || pipe_ctx_old->top_pipe) in dce110_reset_hw_ctx_wrap() 2175 if (pipe_ctx->top_pipe) in dce110_setup_audio_dto() 2213 if (pipe_ctx->top_pipe) in dce110_setup_audio_dto() 2265 if (pipe_ctx->stream == NULL || pipe_ctx->top_pipe) in dce110_apply_ctx_to_hw() 2301 if (pipe_ctx->top_pipe || pipe_ctx->prev_odm_pipe) in dce110_apply_ctx_to_hw() 2927 if (pipe_ctx->top_pipe && pipe_ctx->plane_state != pipe_ctx->top_pipe->plane_state) in dce110_set_cursor_position()
|
/linux-6.6.21/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.6.21/drivers/gpu/drm/amd/display/dc/inc/ |
D | core_types.h | 391 struct pipe_ctx *top_pipe; member
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn315/ |
D | dcn315_resource.c | 1650 …if (res_ctx->pipe_ctx[i].top_pipe && res_ctx->pipe_ctx[i].top_pipe->plane_state != res_ctx->pipe_c… in allow_pixel_rate_crb() 1693 if (pixel_rate_crb && !pipe->top_pipe && !pipe->prev_odm_pipe) { in dcn315_populate_dml_pipes_from_context() 1750 if (!pipe->top_pipe && !pipe->prev_odm_pipe) { in dcn315_populate_dml_pipes_from_context()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/dcn21/ |
D | dcn21_resource.c | 880 …if (!pipe->top_pipe && !pipe->plane_state && context->bw_ctx.dml.vba.ODMCombineEnabled[pipe_idx]) { in dcn21_fast_validate_bw() 894 if (pipe->top_pipe && pipe->plane_state == pipe->top_pipe->plane_state) in dcn21_fast_validate_bw()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn316/ |
D | dcn316_clk_mgr.c | 110 if (pipe->top_pipe || pipe->prev_odm_pipe) in dcn316_disable_otg_wa()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn31/ |
D | dcn31_clk_mgr.c | 121 if (pipe->top_pipe || pipe->prev_odm_pipe) in dcn31_disable_otg_wa()
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/ |
D | dcn315_clk_mgr.c | 108 if (pipe->top_pipe || pipe->prev_odm_pipe) in dcn315_disable_otg_wa()
|