Searched refs:dml_ctx (Results 1 – 6 of 6) sorted by relevance
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dml2/dml21/ |
D | dml21_wrapper.c | 14 static bool dml21_allocate_memory(struct dml2_context **dml_ctx) in dml21_allocate_memory() argument 16 *dml_ctx = (struct dml2_context *)kzalloc(sizeof(struct dml2_context), GFP_KERNEL); in dml21_allocate_memory() 17 if (!(*dml_ctx)) in dml21_allocate_memory() 20 …(*dml_ctx)->v21.dml_init.dml2_instance = (struct dml2_instance *)kzalloc(sizeof(struct dml2_instan… in dml21_allocate_memory() 21 if (!((*dml_ctx)->v21.dml_init.dml2_instance)) in dml21_allocate_memory() 24 (*dml_ctx)->v21.mode_support.dml2_instance = (*dml_ctx)->v21.dml_init.dml2_instance; in dml21_allocate_memory() 25 (*dml_ctx)->v21.mode_programming.dml2_instance = (*dml_ctx)->v21.dml_init.dml2_instance; in dml21_allocate_memory() 27 (*dml_ctx)->v21.mode_support.display_config = &(*dml_ctx)->v21.display_config; in dml21_allocate_memory() 28 (*dml_ctx)->v21.mode_programming.display_config = (*dml_ctx)->v21.mode_support.display_config; in dml21_allocate_memory() 30 …(*dml_ctx)->v21.mode_programming.programming = (struct dml2_display_cfg_programming *)kzalloc(size… in dml21_allocate_memory() [all …]
|
D | dml21_utils.c | 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() argument 65 …if (dml_ctx->v21.mode_programming.programming->plane_programming[i].plane_descriptor->stream_index… 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() argument 75 struct pipe_ctx *opp_head = dml_ctx->config.callbacks.get_opp_head(pipe); in find_pipe_regs_idx() 77 *pipe_regs_idx = dml_ctx->config.callbacks.get_odm_slice_index(opp_head); in find_pipe_regs_idx() 80 *pipe_regs_idx += dml_ctx->config.callbacks.get_mpc_slice_index(pipe); in find_pipe_regs_idx() 86 struct dml2_context *dml_ctx, in dml21_find_dc_pipes_for_plane() argument 105 …dml_stream_index = dml_ctx->v21.mode_programming.programming->plane_programming[dml_plane_idx].pla… in dml21_find_dc_pipes_for_plane() 106 main_stream_id = dml_ctx->v21.dml_to_dc_pipe_mapping.dml_pipe_idx_to_stream_id[dml_stream_index]; in dml21_find_dc_pipes_for_plane() 108 dc_main_stream = dml_ctx->config.callbacks.get_stream_from_id(context, main_stream_id); in dml21_find_dc_pipes_for_plane() [all …]
|
D | dml21_utils.h | 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);
|
D | dml21_wrapper.h | 29 bool dml21_create(const struct dc *in_dc, struct dml2_context **dml_ctx, const struct dml2_configur… 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);
|
D | dml21_translation_helper.c | 344 struct dml2_context *dml_ctx) in populate_dml21_timing_config_from_stream_state() argument 379 if (dml_ctx->config.callbacks.get_max_flickerless_instant_vtotal_increase && in populate_dml21_timing_config_from_stream_state() 381 …timing->drr_config.max_instant_vtotal_delta = dml_ctx->config.callbacks.get_max_flickerless_instan… in populate_dml21_timing_config_from_stream_state() 695 struct dml2_context *dml_ctx, in get_scaler_data_for_plane() argument 700 struct pipe_ctx *temp_pipe = &dml_ctx->v21.scratch.temp_pipe; in get_scaler_data_for_plane() 712 dml_ctx->config.callbacks.build_scaling_params(temp_pipe); 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() argument 725 const struct scaler_data *scaler_data = get_scaler_data_for_plane(dml_ctx, plane_state, context); in populate_dml21_plane_config_from_plane_state() 847 plane->tdlut.setup_for_tdlut |= dml_ctx->config.force_tdlut_enable; 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() argument [all …]
|
D | dml21_translation_helper.h | 22 …to_dml_display_cfg(const struct dc *in_dc, struct dc_state *context, struct dml2_context *dml_ctx); 24 void dml21_populate_pipe_ctx_dlg_params(struct dml2_context *dml_ctx, struct dc_state *context, str… 27 void dml21_map_hw_resources(struct dml2_context *dml_ctx);
|