| /drivers/gpu/drm/amd/display/dc/dml2/dml21/ |
| A D | dml21_utils.h | 13 struct dml2_context; 18 int dml21_helper_find_dml_pipe_idx_by_stream_id(struct dml2_context *ctx, unsigned int stream_id); 19 int dml21_find_dml_pipe_idx_by_plane_id(struct dml2_context *ctx, unsigned int plane_id); 21 void dml21_pipe_populate_global_sync(struct dml2_context *dml_ctx, 26 struct dml2_context *in_ctx, 30 void find_valid_pipe_idx_for_stream_index(const struct dml2_context *dml_ctx, unsigned int *dml_pip… 31 void find_pipe_regs_idx(const struct dml2_context *dml_ctx, 35 struct dml2_context *dml_ctx, 39 void dml21_program_dc_pipe(struct dml2_context *dml_ctx, 44 …tom_streams_planes(const struct dc *in_dc, struct dc_state *context, struct dml2_context *dml_ctx); [all …]
|
| A D | dml21_wrapper.h | 16 struct dml2_context; 31 bool dml21_create(const struct dc *in_dc, struct dml2_context **dml_ctx, const struct dml2_configur… 32 void dml21_destroy(struct dml2_context *dml2); 33 void dml21_copy(struct dml2_context *dst_dml_ctx, 34 struct dml2_context *src_dml_ctx); 35 bool dml21_create_copy(struct dml2_context **dst_dml_ctx, 36 struct dml2_context *src_dml_ctx); 37 void dml21_reinit(const struct dc *in_dc, struct dml2_context *dml_ctx, const struct dml2_configura… 61 bool dml21_validate(const struct dc *in_dc, struct dc_state *context, struct dml2_context *dml_ctx, 65 …epare_mcache_programming(struct dc *in_dc, struct dc_state *context, struct dml2_context *dml_ctx);
|
| A D | dml21_translation_helper.h | 16 struct dml2_context; 21 …to_dml_display_cfg(const struct dc *in_dc, struct dc_state *context, struct dml2_context *dml_ctx); 22 void dml21_copy_clocks_to_dc_state(struct dml2_context *in_ctx, struct dc_state *context); 23 …ark_sets(const struct dc *in_dc, union dcn_watermark_set *watermarks, struct dml2_context *in_ctx); 24 void dml21_map_hw_resources(struct dml2_context *dml_ctx); 27 unsigned int map_plane_to_dml21_display_cfg(const struct dml2_context *dml_ctx, unsigned int stream…
|
| A D | dml21_wrapper.c | 15 static bool dml21_allocate_memory(struct dml2_context **dml_ctx) in dml21_allocate_memory() 17 *dml_ctx = vzalloc(sizeof(struct dml2_context)); in dml21_allocate_memory() 39 struct dml2_context *dml_ctx, in dml21_populate_configuration_options() 81 void dml21_destroy(struct dml2_context *dml2) in dml21_destroy() 88 struct dml2_context *in_ctx, unsigned int pipe_cnt) in dml21_calculate_rq_and_dlg_params() 293 bool dml21_validate(const struct dc *in_dc, struct dc_state *context, struct dml2_context *dml_ctx, in dml21_validate() 417 void dml21_copy(struct dml2_context *dst_dml_ctx, in dml21_copy() 418 struct dml2_context *src_dml_ctx) in dml21_copy() 425 memcpy(dst_dml_ctx, src_dml_ctx, sizeof(struct dml2_context)); in dml21_copy() 450 bool dml21_create_copy(struct dml2_context **dst_dml_ctx, in dml21_create_copy() [all …]
|
| A D | dml21_utils.c | 14 int dml21_helper_find_dml_pipe_idx_by_stream_id(struct dml2_context *ctx, unsigned int stream_id) in dml21_helper_find_dml_pipe_idx_by_stream_id() 25 int dml21_find_dml_pipe_idx_by_plane_id(struct dml2_context *ctx, unsigned int plane_id) in dml21_find_dml_pipe_idx_by_plane_id() 60 void find_valid_pipe_idx_for_stream_index(const struct dml2_context *dml_ctx, unsigned int *dml_pip… in find_valid_pipe_idx_for_stream_index() 72 void find_pipe_regs_idx(const struct dml2_context *dml_ctx, in find_pipe_regs_idx() 86 struct dml2_context *dml_ctx, in dml21_find_dc_pipes_for_plane() 145 void dml21_pipe_populate_global_sync(struct dml2_context *dml_ctx, in dml21_pipe_populate_global_sync() 163 struct dml2_context *in_ctx, in dml21_populate_mall_allocation_size() 241 static struct dc_stream_state *dml21_add_phantom_stream(struct dml2_context *dml_ctx, in dml21_add_phantom_stream() 278 static struct dc_plane_state *dml21_add_phantom_plane(struct dml2_context *dml_ctx, in dml21_add_phantom_plane() 320 …phantom_streams_planes(const struct dc *dc, struct dc_state *context, struct dml2_context *dml_ctx) in dml21_handle_phantom_streams_planes() [all …]
|
| A D | dml21_translation_helper.c | 425 struct dml2_context *dml_ctx) in populate_dml21_timing_config_from_stream_state() 815 struct dml2_context *dml_ctx, in get_scaler_data_for_plane() 842 static void populate_dml21_plane_config_from_plane_state(struct dml2_context *dml_ctx, in populate_dml21_plane_config_from_plane_state() 1011 static unsigned int map_stream_to_dml21_display_cfg(const struct dml2_context *dml_ctx, const struc… in map_stream_to_dml21_display_cfg() 1026 unsigned int map_plane_to_dml21_display_cfg(const struct dml2_context *dml_ctx, unsigned int stream… in map_plane_to_dml21_display_cfg() 1073 …nto_dml_display_cfg(const struct dc *in_dc, struct dc_state *context, struct dml2_context *dml_ctx) in dml21_map_dc_state_into_dml_display_cfg() 1151 void dml21_copy_clocks_to_dc_state(struct dml2_context *in_ctx, struct dc_state *context) in dml21_copy_clocks_to_dc_state() 1196 …mark_sets(const struct dc *in_dc, union dcn_watermark_set *watermarks, struct dml2_context *in_ctx) in dml21_extract_watermark_sets() 1213 void dml21_map_hw_resources(struct dml2_context *dml_ctx) in dml21_map_hw_resources()
|
| /drivers/gpu/drm/amd/display/dc/dml2/ |
| A D | dml2_mall_phantom.h | 40 struct dml2_context; 42 unsigned int dml2_helper_calculate_num_ways_for_subvp(struct dml2_context *ctx, struct dc_state *co… 44 bool dml2_svp_add_phantom_pipe_to_dc_state(struct dml2_context *ctx, struct dc_state *state, struct… 46 bool dml2_svp_remove_all_phantom_pipes(struct dml2_context *ctx, struct dc_state *state); 48 bool dml2_svp_validate_static_schedulability(struct dml2_context *ctx, struct dc_state *context, en… 50 bool dml2_svp_drr_schedulable(struct dml2_context *ctx, struct dc_state *context, struct dc_crtc_ti…
|
| A D | dml2_wrapper.h | 34 struct dml2_context; 260 struct dml2_context **dml2); 262 void dml2_destroy(struct dml2_context *dml2); 263 void dml2_copy(struct dml2_context *dst_dml2, 264 struct dml2_context *src_dml2); 265 bool dml2_create_copy(struct dml2_context **dst_dml2, 266 struct dml2_context *src_dml2); 269 struct dml2_context **dml2); 297 struct dml2_context *dml2, 306 void dml2_extract_dram_and_fclk_change_support(struct dml2_context *dml2, [all …]
|
| A D | dml2_wrapper.c | 61 static void map_hw_resources(struct dml2_context *dml2, in map_hw_resources() 366 struct dml2_context *dml2 = context->bw_ctx.dml2; in call_dml_mode_support_and_programming() 401 struct dml2_context *dml2 = context->bw_ctx.dml2; in dml2_validate_and_build_resource() 510 struct dml2_context *dml2; in dml2_validate_only() 578 return (struct dml2_context *) vzalloc(sizeof(struct dml2_context)); in dml2_allocate_memory() 643 void dml2_destroy(struct dml2_context *dml2) in dml2_destroy() 666 void dml2_copy(struct dml2_context *dst_dml2, in dml2_copy() 667 struct dml2_context *src_dml2) in dml2_copy() 677 bool dml2_create_copy(struct dml2_context **dst_dml2, in dml2_create_copy() 678 struct dml2_context *src_dml2) in dml2_create_copy() [all …]
|
| A D | dml2_utils.h | 44 int dml2_helper_find_dml_pipe_idx_by_stream_id(struct dml2_context *ctx, unsigned int stream_id); 122 … dc_state *context, struct resource_context *out_new_hw_state, struct dml2_context *in_ctx, unsign… 131 void dml2_apply_det_buffer_allocation_policy(struct dml2_context *in_ctx, struct dml_display_cfg_st… 141 bool dml2_verify_det_buffer_configuration(struct dml2_context *in_ctx, struct dc_state *display_sta… 148 void dml2_initialize_det_scratch(struct dml2_context *in_ctx);
|
| A D | dml2_dc_resource_mgmt.c | 141 static unsigned int find_pipes_assigned_to_plane(struct dml2_context *ctx, in find_pipes_assigned_to_plane() 340 static bool find_more_pipes_for_stream(struct dml2_context *ctx, in find_more_pipes_for_stream() 406 static bool find_more_free_pipes(struct dml2_context *ctx, in find_more_free_pipes() 535 static void add_odm_slice_to_odm_tree(struct dml2_context *ctx, in add_odm_slice_to_odm_tree() 793 static unsigned int get_target_mpc_factor(struct dml2_context *ctx, in get_target_mpc_factor() 851 const struct dml2_context *ctx, in get_target_odm_factor() 923 struct dml2_context *ctx, in populate_mpc_factors_for_stream() 941 static void populate_odm_factors(const struct dml2_context *ctx, in populate_odm_factors() 956 static bool unmap_dc_pipes_for_stream(struct dml2_context *ctx, in unmap_dc_pipes_for_stream() 985 static bool map_dc_pipes_for_stream(struct dml2_context *ctx, in map_dc_pipes_for_stream() [all …]
|
| A D | dml2_translation_helper.h | 30 void dml2_init_ip_params(struct dml2_context *dml2, const struct dc *in_dc, struct ip_params_st *ou… 31 void dml2_init_socbb_params(struct dml2_context *dml2, const struct dc *in_dc, struct soc_bounding_… 32 void dml2_init_soc_states(struct dml2_context *dml2, const struct dc *in_dc, 37 void map_dc_state_into_dml_display_cfg(struct dml2_context *dml2, struct dc_state *context, struct …
|
| A D | dml2_mall_phantom.c | 32 unsigned int dml2_helper_calculate_num_ways_for_subvp(struct dml2_context *ctx, struct dc_state *co… in dml2_helper_calculate_num_ways_for_subvp() 101 static void merge_pipes_for_subvp(struct dml2_context *ctx, struct dc_state *context) in merge_pipes_for_subvp() 146 static bool all_pipes_have_stream_and_plane(struct dml2_context *ctx, const struct dc_state *contex… in all_pipes_have_stream_and_plane() 185 static unsigned int get_num_free_pipes(struct dml2_context *ctx, struct dc_state *state) in get_num_free_pipes() 228 static bool assign_subvp_pipe(struct dml2_context *ctx, struct dc_state *context, unsigned int *ind… in assign_subvp_pipe() 309 static bool enough_pipes_for_subvp(struct dml2_context *ctx, struct dc_state *state) in enough_pipes_for_subvp() 357 static bool subvp_subvp_schedulable(struct dml2_context *ctx, struct dc_state *context) in subvp_subvp_schedulable() 507 static bool subvp_vblank_schedulable(struct dml2_context *ctx, struct dc_state *context) in subvp_vblank_schedulable() 650 static void set_phantom_stream_timing(struct dml2_context *ctx, struct dc_state *state, in set_phantom_stream_timing() 736 static void enable_phantom_plane(struct dml2_context *ctx, in enable_phantom_plane() [all …]
|
| A D | dml2_dc_resource_mgmt.h | 32 struct dml2_context; 50 bool dml2_map_dc_pipes(struct dml2_context *ctx, struct dc_state *state, const struct dml_display_c…
|
| A D | dml2_utils.c | 194 int dml2_helper_find_dml_pipe_idx_by_stream_id(struct dml2_context *ctx, unsigned int stream_id) in dml2_helper_find_dml_pipe_idx_by_stream_id() 205 static int find_dml_pipe_idx_by_plane_id(struct dml2_context *ctx, unsigned int plane_id) in find_dml_pipe_idx_by_plane_id() 216 static bool get_plane_id(struct dml2_context *dml2, const struct dc_state *state, const struct dc_p… in get_plane_id() 279 … dc_state *context, struct resource_context *out_new_hw_state, struct dml2_context *in_ctx, unsign… in dml2_calculate_rq_and_dlg_params() 456 void dml2_initialize_det_scratch(struct dml2_context *in_ctx) in dml2_initialize_det_scratch() 465 static unsigned int find_planes_per_stream_and_stream_count(struct dml2_context *in_ctx, struct dml… in find_planes_per_stream_and_stream_count() 482 void dml2_apply_det_buffer_allocation_policy(struct dml2_context *in_ctx, struct dml_display_cfg_st… in dml2_apply_det_buffer_allocation_policy() 511 bool dml2_verify_det_buffer_configuration(struct dml2_context *in_ctx, struct dc_state *display_sta… in dml2_verify_det_buffer_configuration()
|
| A D | dml2_translation_helper.c | 34 void dml2_init_ip_params(struct dml2_context *dml2, const struct dc *in_dc, struct ip_params_st *ou… in dml2_init_ip_params() 245 void dml2_init_socbb_params(struct dml2_context *dml2, const struct dc *in_dc, struct soc_bounding_… in dml2_init_socbb_params() 327 void dml2_init_soc_states(struct dml2_context *dml2, const struct dc *in_dc, in dml2_init_soc_states() 780 const struct dc_stream_state *in, const struct pipe_ctx *pipe, struct dml2_context *dml2) in populate_dml_output_cfg_from_stream_state() 1130 static unsigned int map_stream_to_dml_display_cfg(const struct dml2_context *dml2, in map_stream_to_dml_display_cfg() 1146 static bool get_plane_id(struct dml2_context *dml2, const struct dc_state *context, const struct dc… in get_plane_id() 1170 static unsigned int map_plane_to_dml_display_cfg(const struct dml2_context *dml2, const struct dc_p… in map_plane_to_dml_display_cfg() 1192 static void dml2_populate_pipe_to_plane_index_mapping(struct dml2_context *dml2, struct dc_state *s… in dml2_populate_pipe_to_plane_index_mapping() 1267 static void dml2_map_hpo_stream_encoder_to_hpo_link_encoder_index(struct dml2_context *dml2, struct… in dml2_map_hpo_stream_encoder_to_hpo_link_encoder_index() 1290 void map_dc_state_into_dml_display_cfg(struct dml2_context *dml2, struct dc_state *context, struct … in map_dc_state_into_dml_display_cfg()
|
| A D | dml2_internal_types.h | 135 struct dml2_context { struct
|
| /drivers/gpu/drm/amd/display/dc/inc/ |
| A D | core_types.h | 582 struct dml2_context *dml2; 583 struct dml2_context *dml2_dc_power_source;
|
| /drivers/gpu/drm/amd/display/dc/core/ |
| A D | dc_state.c | 230 struct dml2_context *dst_dml2 = dst_state->bw_ctx.dml2; in dc_state_copy() 231 struct dml2_context *dst_dml2_dc_power_source = dst_state->bw_ctx.dml2_dc_power_source; in dc_state_copy()
|