Home
last modified time | relevance | path

Searched refs:dml2_context (Results 1 – 19 of 19) sorted by relevance

/linux/drivers/gpu/drm/amd/display/dc/dml2/dml21/
A Ddml21_wrapper.h15 struct dml2_context;
29 bool dml21_create(const struct dc *in_dc, struct dml2_context **dml_ctx, const struct dml2_configur…
30 void dml21_destroy(struct dml2_context *dml2);
31 void dml21_copy(struct dml2_context *dst_dml_ctx,
32 struct dml2_context *src_dml_ctx);
33 bool dml21_create_copy(struct dml2_context **dst_dml_ctx,
34 struct dml2_context *src_dml_ctx);
35 void dml21_reinit(const struct dc *in_dc, struct dml2_context **dml_ctx, const struct dml2_configur…
58 bool dml21_validate(const struct dc *in_dc, struct dc_state *context, struct dml2_context *dml_ctx,…
61 …epare_mcache_programming(struct dc *in_dc, struct dc_state *context, struct dml2_context *dml_ctx);
A Ddml21_utils.h13 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);
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);
48 struct dml2_context *dml_ctx);
A Ddml21_translation_helper.h15 struct dml2_context;
22 …to_dml_display_cfg(const struct dc *in_dc, struct dc_state *context, struct dml2_context *dml_ctx);
23 void dml21_copy_clocks_to_dc_state(struct dml2_context *in_ctx, struct dc_state *context);
24 void dml21_populate_pipe_ctx_dlg_params(struct dml2_context *dml_ctx, struct dc_state *context, str…
25 …arks *watermark, enum dml2_dchub_watermark_reg_set_index reg_set_idx, struct dml2_context *in_ctx);
26 …ark_sets(const struct dc *in_dc, union dcn_watermark_set *watermarks, struct dml2_context *in_ctx);
27 void dml21_map_hw_resources(struct dml2_context *dml_ctx);
A Ddml21_wrapper.c14 static bool dml21_allocate_memory(struct dml2_context **dml_ctx) in dml21_allocate_memory()
16 *dml_ctx = (struct dml2_context *)kzalloc(sizeof(struct dml2_context), GFP_KERNEL); in dml21_allocate_memory()
113 void dml21_destroy(struct dml2_context *dml2) in dml21_destroy()
120 struct dml2_context *in_ctx, unsigned int pipe_cnt) in dml21_calculate_rq_and_dlg_params()
249 …_check_mode_support(const struct dc *in_dc, struct dc_state *context, struct dml2_context *dml_ctx) in dml21_check_mode_support()
288 …repare_mcache_programming(struct dc *in_dc, struct dc_state *context, struct dml2_context *dml_ctx) in dml21_prepare_mcache_programming()
398 void dml21_copy(struct dml2_context *dst_dml_ctx, in dml21_copy()
399 struct dml2_context *src_dml_ctx) in dml21_copy()
406 memcpy(dst_dml_ctx, src_dml_ctx, sizeof(struct dml2_context)); in dml21_copy()
427 bool dml21_create_copy(struct dml2_context **dst_dml_ctx, in dml21_create_copy()
[all …]
A Ddml21_utils.c14 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()
250 struct dml2_context *in_ctx, in dml21_populate_mall_allocation_size()
299 void dml21_program_dc_pipe(struct dml2_context *dml_ctx, struct dc_state *context, struct pipe_ctx … in dml21_program_dc_pipe()
341 static struct dc_stream_state *dml21_add_phantom_stream(struct dml2_context *dml_ctx, in dml21_add_phantom_stream()
378 static struct dc_plane_state *dml21_add_phantom_plane(struct dml2_context *dml_ctx, in dml21_add_phantom_plane()
420 …phantom_streams_planes(const struct dc *dc, struct dc_state *context, struct dml2_context *dml_ctx) in dml21_handle_phantom_streams_planes()
[all …]
A Ddml21_translation_helper.c344 struct dml2_context *dml_ctx) in populate_dml21_timing_config_from_stream_state()
695 struct dml2_context *dml_ctx, in get_scaler_data_for_plane()
721 static void populate_dml21_plane_config_from_plane_state(struct dml2_context *dml_ctx, in populate_dml21_plane_config_from_plane_state()
886 static unsigned int map_stream_to_dml21_display_cfg(const struct dml2_context *dml_ctx, const struc… in map_stream_to_dml21_display_cfg()
901 static unsigned int map_plane_to_dml21_display_cfg(const struct dml2_context *dml_ctx, in map_plane_to_dml21_display_cfg()
948 …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()
1025 void dml21_copy_clocks_to_dc_state(struct dml2_context *in_ctx, struct dc_state *context) in dml21_copy_clocks_to_dc_state()
1041 …marks *watermark, enum dml2_dchub_watermark_reg_set_index reg_set_idx, struct dml2_context *in_ctx) in dml21_extract_legacy_watermark_set()
1089 …mark_sets(const struct dc *in_dc, union dcn_watermark_set *watermarks, struct dml2_context *in_ctx) in dml21_extract_watermark_sets()
1107 void dml21_populate_pipe_ctx_dlg_params(struct dml2_context *dml_ctx, struct dc_state *context, str… in dml21_populate_pipe_ctx_dlg_params()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/dml2/
A Ddml2_mall_phantom.h40 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 Ddml2_wrapper.h34 struct dml2_context;
257 struct dml2_context **dml2);
259 void dml2_destroy(struct dml2_context *dml2);
260 void dml2_copy(struct dml2_context *dst_dml2,
261 struct dml2_context *src_dml2);
262 bool dml2_create_copy(struct dml2_context **dst_dml2,
263 struct dml2_context *src_dml2);
266 struct dml2_context **dml2);
294 struct dml2_context *dml2,
303 void dml2_extract_dram_and_fclk_change_support(struct dml2_context *dml2,
[all …]
A Ddml2_utils.h44 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 Ddml2_wrapper.c62 static void map_hw_resources(struct dml2_context *dml2, in map_hw_resources()
538 struct dml2_context *dml2 = context->bw_ctx.dml2; in call_dml_mode_support_and_programming()
567 struct dml2_context *dml2 = context->bw_ctx.dml2; in dml2_validate_and_build_resource()
673 struct dml2_context *dml2; in dml2_validate_only()
732 return (struct dml2_context *) kzalloc(sizeof(struct dml2_context), GFP_KERNEL); in dml2_allocate_memory()
792 void dml2_destroy(struct dml2_context *dml2) in dml2_destroy()
815 void dml2_copy(struct dml2_context *dst_dml2, in dml2_copy()
816 struct dml2_context *src_dml2) in dml2_copy()
826 bool dml2_create_copy(struct dml2_context **dst_dml2, in dml2_create_copy()
827 struct dml2_context *src_dml2) in dml2_create_copy()
[all …]
A Ddml2_translation_helper.h30 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 Ddml2_dc_resource_mgmt.c141 static unsigned int find_pipes_assigned_to_plane(struct dml2_context *ctx, in find_pipes_assigned_to_plane()
319 static bool find_more_pipes_for_stream(struct dml2_context *ctx, in find_more_pipes_for_stream()
385 static bool find_more_free_pipes(struct dml2_context *ctx, in find_more_free_pipes()
534 static void add_odm_slice_to_odm_tree(struct dml2_context *ctx, in add_odm_slice_to_odm_tree()
798 static unsigned int get_target_mpc_factor(struct dml2_context *ctx, in get_target_mpc_factor()
856 const struct dml2_context *ctx, in get_target_odm_factor()
928 struct dml2_context *ctx, in populate_mpc_factors_for_stream()
946 static void populate_odm_factors(const struct dml2_context *ctx, in populate_odm_factors()
961 static bool unmap_dc_pipes_for_stream(struct dml2_context *ctx, in unmap_dc_pipes_for_stream()
990 static bool map_dc_pipes_for_stream(struct dml2_context *ctx, in map_dc_pipes_for_stream()
[all …]
A Ddml2_mall_phantom.c32 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 Ddml2_dc_resource_mgmt.h32 struct dml2_context;
50 bool dml2_map_dc_pipes(struct dml2_context *ctx, struct dc_state *state, const struct dml_display_c…
A Ddml2_utils.c194 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 Ddml2_internal_types.h135 struct dml2_context { struct
A Ddml2_translation_helper.c34 void dml2_init_ip_params(struct dml2_context *dml2, const struct dc *in_dc, struct ip_params_st *ou… in dml2_init_ip_params()
244 void dml2_init_socbb_params(struct dml2_context *dml2, const struct dc *in_dc, struct soc_bounding_… in dml2_init_socbb_params()
325 void dml2_init_soc_states(struct dml2_context *dml2, const struct dc *in_dc, in dml2_init_soc_states()
736 const struct dc_stream_state *in, const struct pipe_ctx *pipe, struct dml2_context *dml2) in populate_dml_output_cfg_from_stream_state()
1089 static unsigned int map_stream_to_dml_display_cfg(const struct dml2_context *dml2, in map_stream_to_dml_display_cfg()
1105 static bool get_plane_id(struct dml2_context *dml2, const struct dc_state *context, const struct dc… in get_plane_id()
1129 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()
1151 static void apply_legacy_svp_drr_settings(struct dml2_context *dml2, const struct dc_state *state, … in apply_legacy_svp_drr_settings()
1167 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()
1242 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()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/inc/
A Dcore_types.h550 struct dml2_context *dml2;
551 struct dml2_context *dml2_dc_power_source;
/linux/drivers/gpu/drm/amd/display/dc/core/
A Ddc_state.c236 struct dml2_context *dst_dml2 = dst_state->bw_ctx.dml2; in dc_state_copy()
237 struct dml2_context *dst_dml2_dc_power_source = dst_state->bw_ctx.dml2_dc_power_source; in dc_state_copy()

Completed in 43 milliseconds