Home
last modified time | relevance | path

Searched refs:res_ctx (Results 1 - 25 of 122) sorted by relevance

12345

/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_link_enc_cfg.c71 if (dc->current_state->res_ctx.link_enc_cfg_ctx.mode == LINK_ENC_CFG_TRANSIENT) in get_assignment()
72 assignment = dc->current_state->res_ctx.link_enc_cfg_ctx.transient_assignments[i]; in get_assignment()
74 assignment = dc->current_state->res_ctx.link_enc_cfg_ctx.link_enc_assignments[i]; in get_assignment()
88 struct link_enc_assignment assignment = state->res_ctx.link_enc_cfg_ctx.link_enc_assignments[i]; in get_stream_using_link_enc()
114 struct link_enc_assignment assignment = state->res_ctx.link_enc_cfg_ctx.link_enc_assignments[i]; in remove_link_enc_assignment()
117 state->res_ctx.link_enc_cfg_ctx.link_enc_assignments[i].valid = false; in remove_link_enc_assignment()
122 state->res_ctx.link_enc_cfg_ctx.link_enc_avail[eng_idx] = eng_id; in remove_link_enc_assignment()
125 state->res_ctx.link_enc_cfg_ctx.link_enc_assignments[i].eng_id = ENGINE_ID_UNKNOWN; in remove_link_enc_assignment()
126 state->res_ctx.link_enc_cfg_ctx.link_enc_assignments[i].stream = NULL; in remove_link_enc_assignment()
150 state->res_ctx in add_link_enc_assignment()
[all...]
H A Ddc_resource.c471 struct resource_context *res_ctx, in resource_unreference_clock_source()
478 res_ctx->clock_source_ref_count[i]--; in resource_unreference_clock_source()
481 res_ctx->dp_clock_source_ref_count--; in resource_unreference_clock_source()
485 struct resource_context *res_ctx, in resource_reference_clock_source()
492 res_ctx->clock_source_ref_count[i]++; in resource_reference_clock_source()
495 res_ctx->dp_clock_source_ref_count++; in resource_reference_clock_source()
499 struct resource_context *res_ctx, in resource_get_clock_source_reference()
506 return res_ctx->clock_source_ref_count[i]; in resource_get_clock_source_reference()
509 return res_ctx->dp_clock_source_ref_count; in resource_get_clock_source_reference()
646 struct resource_context *res_ctx, in resource_find_used_clk_src_for_sharing()
470 resource_unreference_clock_source( struct resource_context *res_ctx, const struct resource_pool *pool, struct clock_source *clock_source) resource_unreference_clock_source() argument
484 resource_reference_clock_source( struct resource_context *res_ctx, const struct resource_pool *pool, struct clock_source *clock_source) resource_reference_clock_source() argument
498 resource_get_clock_source_reference( struct resource_context *res_ctx, const struct resource_pool *pool, struct clock_source *clock_source) resource_get_clock_source_reference() argument
645 resource_find_used_clk_src_for_sharing( struct resource_context *res_ctx, struct pipe_ctx *pipe_ctx) resource_find_used_clk_src_for_sharing() argument
1558 resource_find_free_secondary_pipe_legacy( struct resource_context *res_ctx, const struct resource_pool *pool, const struct pipe_ctx *primary_pipe) resource_find_free_secondary_pipe_legacy() argument
1750 resource_get_otg_master_for_stream( struct resource_context *res_ctx, struct dc_stream_state *stream) resource_get_otg_master_for_stream() argument
1796 acquire_first_split_pipe( struct resource_context *res_ctx, const struct resource_pool *pool, struct dc_stream_state *stream) acquire_first_split_pipe() argument
2196 update_stream_engine_usage( struct resource_context *res_ctx, const struct resource_pool *pool, struct stream_encoder *stream_enc, bool acquired) update_stream_engine_usage() argument
2210 update_hpo_dp_stream_engine_usage( struct resource_context *res_ctx, const struct resource_pool *pool, struct hpo_dp_stream_encoder *hpo_dp_stream_enc, bool acquired) update_hpo_dp_stream_engine_usage() argument
2224 find_acquired_hpo_dp_link_enc_for_link( const struct resource_context *res_ctx, const struct dc_link *link) find_acquired_hpo_dp_link_enc_for_link() argument
2238 find_free_hpo_dp_link_enc(const struct resource_context *res_ctx, const struct resource_pool *pool) find_free_hpo_dp_link_enc() argument
2251 acquire_hpo_dp_link_enc( struct resource_context *res_ctx, unsigned int link_index, int enc_index) acquire_hpo_dp_link_enc() argument
2260 retain_hpo_dp_link_enc( struct resource_context *res_ctx, int enc_index) retain_hpo_dp_link_enc() argument
2267 release_hpo_dp_link_enc( struct resource_context *res_ctx, int enc_index) release_hpo_dp_link_enc() argument
2275 add_hpo_dp_link_enc_to_ctx(struct resource_context *res_ctx, const struct resource_pool *pool, struct pipe_ctx *pipe_ctx, struct dc_stream_state *stream) add_hpo_dp_link_enc_to_ctx() argument
2298 remove_hpo_dp_link_enc_from_ctx(struct resource_context *res_ctx, struct pipe_ctx *pipe_ctx, struct dc_stream_state *stream) remove_hpo_dp_link_enc_from_ctx() argument
2313 update_audio_usage( struct resource_context *res_ctx, const struct resource_pool *pool, struct audio *audio, bool acquired) update_audio_usage() argument
2326 acquire_first_free_pipe( struct resource_context *res_ctx, const struct resource_pool *pool, struct dc_stream_state *stream) acquire_first_free_pipe() argument
2362 find_first_free_match_hpo_dp_stream_enc_for_link( struct resource_context *res_ctx, const struct resource_pool *pool, struct dc_stream_state *stream) find_first_free_match_hpo_dp_stream_enc_for_link() argument
2380 find_first_free_audio( struct resource_context *res_ctx, const struct resource_pool *pool, enum engine_id id, enum dce_version dc_version) find_first_free_audio() argument
2590 acquire_resource_from_hw_enabled_state( struct resource_context *res_ctx, const struct resource_pool *pool, struct dc_stream_state *stream) acquire_resource_from_hw_enabled_state() argument
3638 dc_resource_find_first_free_pll( struct resource_context *res_ctx, const struct resource_pool *pool) dc_resource_find_first_free_pll() argument
4045 get_temp_hpo_dp_link_enc( const struct resource_context *res_ctx, const struct resource_pool *const pool, const struct dc_link *link) get_temp_hpo_dp_link_enc() argument
4069 const struct resource_context *res_ctx = &dc->current_state->res_ctx; get_temp_dp_link_res() local
[all...]
H A Ddc_stream.c256 struct resource_context *res_ctx; in program_cursor_attributes() local
262 res_ctx = &dc->current_state->res_ctx; in program_cursor_attributes()
265 struct pipe_ctx *pipe_ctx = &res_ctx->pipe_ctx[i]; in program_cursor_attributes()
401 struct resource_context *res_ctx; in program_cursor_position() local
407 res_ctx = &dc->current_state->res_ctx; in program_cursor_position()
410 struct pipe_ctx *pipe_ctx = &res_ctx->pipe_ctx[i]; in program_cursor_position()
579 struct resource_context *res_ctx = in dc_stream_get_vblank_counter() local
580 &dc->current_state->res_ctx; in dc_stream_get_vblank_counter()
600 struct resource_context *res_ctx; dc_stream_send_dp_sdp() local
638 struct resource_context *res_ctx = dc_stream_get_scanoutpos() local
[all...]
H A Ddc.c417 struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_adjust_vmin_vmax()
452 struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_last_used_drr_vtotal()
483 &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_crtc_position()
543 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_forward_crc_window()
594 &dc->current_state->res_ctx, stream); in dc_stream_configure_crc()
660 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_crc()
684 if (dc->current_state->res_ctx.pipe_ctx[i].stream in dc_stream_set_dyn_expansion()
686 pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_set_dyn_expansion()
706 if (link->dc->current_state->res_ctx.pipe_ctx[i].stream == in dc_stream_set_dither_option()
708 pipes = &link->dc->current_state->res_ctx in dc_stream_set_dither_option()
2104 struct resource_context *res_ctx = &dc->current_state->res_ctx; dc_acquire_release_mpc_3dlut() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/inc/
H A Dresource.h102 struct resource_context *res_ctx,
107 struct resource_context *res_ctx,
112 struct resource_context *res_ctx,
121 struct resource_context *res_ctx,
125 struct resource_context *res_ctx,
129 struct resource_context *res_ctx,
140 struct resource_context *res_ctx,
173 struct resource_context *res_ctx,
H A Dcore_types.h138 struct resource_context *res_ctx,
143 struct resource_context *res_ctx,
156 struct resource_context *res_ctx,
163 struct resource_context *res_ctx,
390 * @res_ctx: Persistent state of resources
402 struct resource_context res_ctx; member
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_resource.c372 struct resource_context *res_ctx, in resource_unreference_clock_source()
379 res_ctx->clock_source_ref_count[i]--; in resource_unreference_clock_source()
382 res_ctx->dp_clock_source_ref_count--; in resource_unreference_clock_source()
386 struct resource_context *res_ctx, in resource_reference_clock_source()
393 res_ctx->clock_source_ref_count[i]++; in resource_reference_clock_source()
396 res_ctx->dp_clock_source_ref_count++; in resource_reference_clock_source()
400 struct resource_context *res_ctx, in resource_get_clock_source_reference()
407 return res_ctx->clock_source_ref_count[i]; in resource_get_clock_source_reference()
410 return res_ctx->dp_clock_source_ref_count; in resource_get_clock_source_reference()
504 struct resource_context *res_ctx, in resource_find_used_clk_src_for_sharing()
371 resource_unreference_clock_source( struct resource_context *res_ctx, const struct resource_pool *pool, struct clock_source *clock_source) resource_unreference_clock_source() argument
385 resource_reference_clock_source( struct resource_context *res_ctx, const struct resource_pool *pool, struct clock_source *clock_source) resource_reference_clock_source() argument
399 resource_get_clock_source_reference( struct resource_context *res_ctx, const struct resource_pool *pool, struct clock_source *clock_source) resource_get_clock_source_reference() argument
503 resource_find_used_clk_src_for_sharing( struct resource_context *res_ctx, struct pipe_ctx *pipe_ctx) resource_find_used_clk_src_for_sharing() argument
1256 find_idle_secondary_pipe( struct resource_context *res_ctx, const struct resource_pool *pool, const struct pipe_ctx *primary_pipe) find_idle_secondary_pipe() argument
1316 resource_get_head_pipe_for_stream( struct resource_context *res_ctx, struct dc_stream_state *stream) resource_get_head_pipe_for_stream() argument
1331 resource_get_tail_pipe( struct resource_context *res_ctx, struct pipe_ctx *head_pipe) resource_get_tail_pipe() argument
1357 struct resource_context *res_ctx = &context->res_ctx; acquire_free_pipe_for_head() local
1382 acquire_first_split_pipe( struct resource_context *res_ctx, const struct resource_pool *pool, struct dc_stream_state *stream) acquire_first_split_pipe() argument
1739 update_stream_engine_usage( struct resource_context *res_ctx, const struct resource_pool *pool, struct stream_encoder *stream_enc, bool acquired) update_stream_engine_usage() argument
1754 update_audio_usage( struct resource_context *res_ctx, const struct resource_pool *pool, struct audio *audio, bool acquired) update_audio_usage() argument
1767 acquire_first_free_pipe( struct resource_context *res_ctx, const struct resource_pool *pool, struct dc_stream_state *stream) acquire_first_free_pipe() argument
1797 find_first_free_audio( struct resource_context *res_ctx, const struct resource_pool *pool, enum engine_id id, enum dce_version dc_version) find_first_free_audio() argument
1999 acquire_resource_from_hw_enabled_state( struct resource_context *res_ctx, const struct resource_pool *pool, struct dc_stream_state *stream) acquire_resource_from_hw_enabled_state() argument
2651 dc_resource_find_first_free_pll( struct resource_context *res_ctx, const struct resource_pool *pool) dc_resource_find_first_free_pll() argument
[all...]
H A Ddc_stream.c273 struct resource_context *res_ctx; in dc_stream_set_cursor_attributes() local
294 res_ctx = &dc->current_state->res_ctx; in dc_stream_set_cursor_attributes()
307 struct pipe_ctx *pipe_ctx = &res_ctx->pipe_ctx[i]; in dc_stream_set_cursor_attributes()
340 struct resource_context *res_ctx; in dc_stream_set_cursor_position() local
357 res_ctx = &dc->current_state->res_ctx; in dc_stream_set_cursor_position()
370 struct pipe_ctx *pipe_ctx = &res_ctx->pipe_ctx[i]; in dc_stream_set_cursor_position()
531 struct resource_context *res_ctx = in dc_stream_get_vblank_counter() local
532 &dc->current_state->res_ctx; in dc_stream_get_vblank_counter()
552 struct resource_context *res_ctx; dc_stream_send_dp_sdp() local
590 struct resource_context *res_ctx = dc_stream_get_scanoutpos() local
[all...]
H A Ddc.c294 struct pipe_ctx *pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_adjust_vmin_vmax()
322 &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_crtc_position()
355 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_configure_crc()
407 pipe = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_get_crc()
431 if (dc->current_state->res_ctx.pipe_ctx[i].stream in dc_stream_set_dyn_expansion()
433 pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_set_dyn_expansion()
453 if (link->dc->current_state->res_ctx.pipe_ctx[i].stream == in dc_stream_set_dither_option()
455 pipes = &link->dc->current_state->res_ctx.pipe_ctx[i]; in dc_stream_set_dither_option()
490 if (dc->current_state->res_ctx.pipe_ctx[i].stream == stream) { in dc_stream_set_gamut_remap()
491 pipes = &dc->current_state->res_ctx in dc_stream_set_gamut_remap()
1502 struct resource_context *res_ctx = &dc->current_state->res_ctx; dc_acquire_release_mpc_3dlut() local
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/inc/
H A Dresource.h115 struct resource_context *res_ctx,
120 struct resource_context *res_ctx,
125 struct resource_context *res_ctx,
138 struct resource_context *res_ctx,
142 struct resource_context *res_ctx,
332 struct resource_context *res_ctx,
360 struct resource_context *res_ctx,
403 struct resource_context *res_ctx,
419 const struct resource_context *res_ctx,
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn32/
H A Ddcn32_resource_helpers.c129 struct pipe_ctx *pipe = &context->res_ctx.pipe_ctx[i]; in dcn32_merge_pipes_for_subvp()
147 dcn20_release_dsc(&context->res_ctx, dc->res_pool, &pipe->stream_res.dsc); in dcn32_merge_pipes_for_subvp()
174 struct pipe_ctx *pipe = &context->res_ctx.pipe_ctx[i]; in dcn32_all_pipes_have_stream_and_plane()
191 struct pipe_ctx *pipe = &context->res_ctx.pipe_ctx[i]; in dcn32_subvp_in_use()
216 struct pipe_ctx *pipe = &context->res_ctx.pipe_ctx[i]; in dcn32_any_surfaces_rotated()
311 if (context->res_ctx.pipe_ctx[j].stream == context->streams[i] && in dcn32_determine_det_override()
319 current_plane = context->res_ctx.pipe_ctx[j].plane_state; in dcn32_determine_det_override()
321 if (k != j && context->res_ctx.pipe_ctx[k].stream == context->streams[i] && in dcn32_determine_det_override()
322 context->res_ctx.pipe_ctx[k].plane_state == current_plane) { in dcn32_determine_det_override()
330 if (k != j && context->res_ctx in dcn32_determine_det_override()
355 struct resource_context *res_ctx = &context->res_ctx; dcn32_set_det_allocations() local
[all...]
H A Ddcn32_resource.c1588 struct resource_context *res_ctx, in dcn32_acquire_post_bldn_3dlut()
1600 if (!res_ctx->is_mpc_3dlut_acquired[mpcc_id]) { in dcn32_acquire_post_bldn_3dlut()
1603 res_ctx->is_mpc_3dlut_acquired[mpcc_id] = true; in dcn32_acquire_post_bldn_3dlut()
1610 struct resource_context *res_ctx, in dcn32_release_post_bldn_3dlut()
1620 res_ctx->is_mpc_3dlut_acquired[i] = false; in dcn32_release_post_bldn_3dlut()
1638 struct pipe_ctx *curr_pipe = &context->res_ctx.pipe_ctx[dc_pipe_idx]; in dcn32_enable_phantom_plane()
1681 struct pipe_ctx *ref_pipe = &context->res_ctx.pipe_ctx[dc_pipe_idx]; in dcn32_enable_phantom_stream()
1710 struct pipe_ctx *pipe = &context->res_ctx.pipe_ctx[i]; in dcn32_retain_phantom_pipes()
1733 struct pipe_ctx *pipe = &context->res_ctx.pipe_ctx[i]; in dcn32_remove_phantom_pipes()
1792 struct pipe_ctx *pipe = &context->res_ctx in dcn32_add_phantom_pipes()
1587 dcn32_acquire_post_bldn_3dlut( struct resource_context *res_ctx, const struct resource_pool *pool, int mpcc_id, struct dc_3dlut **lut, struct dc_transfer_func **shaper) dcn32_acquire_post_bldn_3dlut() argument
1609 dcn32_release_post_bldn_3dlut( struct resource_context *res_ctx, const struct resource_pool *pool, struct dc_3dlut **lut, struct dc_transfer_func **shaper) dcn32_release_post_bldn_3dlut() argument
1894 struct resource_context *res_ctx = &context->res_ctx; dcn32_populate_dml_pipes_from_context() local
2567 find_idle_secondary_pipe_check_mpo( struct resource_context *res_ctx, const struct resource_pool *pool, const struct pipe_ctx *primary_pipe) find_idle_secondary_pipe_check_mpo() argument
2635 struct resource_context *res_ctx = &state->res_ctx; dcn32_acquire_idle_pipe_for_head_pipe_in_layer() local
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_resource.c1655 struct pipe_ctx *pipe_ctx = resource_get_head_pipe_for_stream(&context->res_ctx, stream); in dcn20_build_mapped_resource()
1668 struct resource_context *res_ctx, in dcn20_acquire_dsc()
1674 struct display_stream_compressor *dsc_old = dc->current_state->res_ctx.pipe_ctx[pipe_idx].stream_res.dsc; in dcn20_acquire_dsc()
1682 res_ctx->is_dsc_acquired[pipe_idx] = true; in dcn20_acquire_dsc()
1687 if (dsc_old && !res_ctx->is_dsc_acquired[dsc_old->inst]) { in dcn20_acquire_dsc()
1689 res_ctx->is_dsc_acquired[dsc_old->inst] = true; in dcn20_acquire_dsc()
1695 if (!res_ctx->is_dsc_acquired[i]) { in dcn20_acquire_dsc()
1697 res_ctx->is_dsc_acquired[i] = true; in dcn20_acquire_dsc()
1702 void dcn20_release_dsc(struct resource_context *res_ctx, in dcn20_release_dsc() argument
1710 res_ctx in dcn20_release_dsc()
1667 dcn20_acquire_dsc(const struct dc *dc, struct resource_context *res_ctx, struct display_stream_compressor **dsc, int pipe_idx) dcn20_acquire_dsc() argument
1864 dcn20_split_stream_for_odm( const struct dc *dc, struct resource_context *res_ctx, struct pipe_ctx *prev_odm_pipe, struct pipe_ctx *next_odm_pipe) dcn20_split_stream_for_odm() argument
1938 dcn20_split_stream_for_mpc( struct resource_context *res_ctx, const struct resource_pool *pool, struct pipe_ctx *primary_pipe, struct pipe_ctx *secondary_pipe) dcn20_split_stream_for_mpc() argument
1969 dcn20_populate_dml_writeback_from_context( struct dc *dc, struct resource_context *res_ctx, display_e2e_pipe_params_st *pipes) dcn20_populate_dml_writeback_from_context() argument
2011 struct resource_context *res_ctx = &context->res_ctx; global() local
2512 dcn20_find_secondary_pipe(struct dc *dc, struct resource_context *res_ctx, const struct resource_pool *pool, const struct pipe_ctx *primary_pipe) global() argument
3267 struct resource_context *res_ctx = &state->res_ctx; global() local
[all...]
H A Ddcn20_resource.h59 struct dc *dc, struct resource_context *res_ctx, display_e2e_pipe_params_st *pipes);
127 void dcn20_release_dsc(struct resource_context *res_ctx,
132 struct resource_context *res_ctx,
138 struct resource_context *res_ctx,
142 struct resource_context *res_ctx,
146 struct resource_context *res_ctx,
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dml/dcn20/
H A Ddcn20_fpu.c988 struct resource_context *res_ctx, in dcn20_populate_dml_writeback_from_context()
996 struct dc_writeback_info *wb_info = &res_ctx->pipe_ctx[i].stream->writeback_info[0]; in dcn20_populate_dml_writeback_from_context()
998 if (!res_ctx->pipe_ctx[i].stream) in dcn20_populate_dml_writeback_from_context()
1040 wb_arb_params->time_per_pixel = 16.0 * 1000 / (context->res_ctx.pipe_ctx[i].stream->phy_pix_clk / 1000); /* 4 bit fraction, ms */ in dcn20_fpu_set_wb_arb_params()
1047 if (!context->res_ctx.pipe_ctx[i].stream) in is_dtbclk_required()
1049 if (dc->link_srv->dp_is_128b_132b_signal(&context->res_ctx.pipe_ctx[i])) in is_dtbclk_required()
1062 if (context->res_ctx.pipe_ctx[i].plane_state) in decide_zstate_support()
1174 if (!context->res_ctx.pipe_ctx[i].stream) in dcn20_calculate_dlg_params()
1176 if (context->res_ctx.pipe_ctx[i].plane_state) in dcn20_calculate_dlg_params()
1183 if (context->res_ctx in dcn20_calculate_dlg_params()
987 dcn20_populate_dml_writeback_from_context(struct dc *dc, struct resource_context *res_ctx, display_e2e_pipe_params_st *pipes) dcn20_populate_dml_writeback_from_context() argument
1315 struct resource_context *res_ctx = &context->res_ctx; dcn20_populate_dml_pipes_from_context() local
2472 dcn201_populate_dml_writeback_from_context_fpu(struct dc *dc, struct resource_context *res_ctx, display_e2e_pipe_params_st *pipes) dcn201_populate_dml_writeback_from_context_fpu() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_resource.c1297 struct pipe_ctx *pipe_ctx = resource_get_otg_master_for_stream(&context->res_ctx, stream); in dcn20_build_mapped_resource()
1310 struct resource_context *res_ctx, in dcn20_acquire_dsc()
1316 struct display_stream_compressor *dsc_old = dc->current_state->res_ctx.pipe_ctx[pipe_idx].stream_res.dsc; in dcn20_acquire_dsc()
1324 res_ctx->is_dsc_acquired[pipe_idx] = true; in dcn20_acquire_dsc()
1329 if (dsc_old && !res_ctx->is_dsc_acquired[dsc_old->inst]) { in dcn20_acquire_dsc()
1331 res_ctx->is_dsc_acquired[dsc_old->inst] = true; in dcn20_acquire_dsc()
1337 if (!res_ctx->is_dsc_acquired[i]) { in dcn20_acquire_dsc()
1339 res_ctx->is_dsc_acquired[i] = true; in dcn20_acquire_dsc()
1344 void dcn20_release_dsc(struct resource_context *res_ctx, in dcn20_release_dsc() argument
1352 res_ctx in dcn20_release_dsc()
1309 dcn20_acquire_dsc(const struct dc *dc, struct resource_context *res_ctx, struct display_stream_compressor **dsc, int pipe_idx) dcn20_acquire_dsc() argument
1462 dcn20_split_stream_for_odm( const struct dc *dc, struct resource_context *res_ctx, struct pipe_ctx *prev_odm_pipe, struct pipe_ctx *next_odm_pipe) dcn20_split_stream_for_odm() argument
1546 dcn20_split_stream_for_mpc( struct resource_context *res_ctx, const struct resource_pool *pool, struct pipe_ctx *primary_pipe, struct pipe_ctx *secondary_pipe) dcn20_split_stream_for_mpc() argument
1693 dcn20_find_secondary_pipe(struct dc *dc, struct resource_context *res_ctx, const struct resource_pool *pool, const struct pipe_ctx *primary_pipe) dcn20_find_secondary_pipe() argument
2156 struct resource_context *res_ctx = &new_ctx->res_ctx; dcn20_acquire_free_pipe_for_layer() local
[all...]
H A Ddcn20_resource.h130 void dcn20_release_dsc(struct resource_context *res_ctx,
135 struct resource_context *res_ctx,
141 struct resource_context *res_ctx,
145 struct resource_context *res_ctx,
149 struct resource_context *res_ctx,
H A Ddcn20_hwseq.c1800 struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[i]; in dcn20_program_front_end_for_ctx()
1801 struct pipe_ctx *old_pipe_ctx = &dc->current_state->res_ctx.pipe_ctx[i]; in dcn20_program_front_end_for_ctx()
1809 struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[i]; in dcn20_program_front_end_for_ctx()
1821 if (dc->current_state->res_ctx.pipe_ctx[i].plane_state) in dcn20_program_front_end_for_ctx()
1823 if (context->res_ctx.pipe_ctx[i].plane_state) in dcn20_program_front_end_for_ctx()
1836 dcn20_detect_pipe_changes(&dc->current_state->res_ctx.pipe_ctx[i], in dcn20_program_front_end_for_ctx()
1837 &context->res_ctx.pipe_ctx[i]); in dcn20_program_front_end_for_ctx()
1843 struct dc_stream_state *stream = dc->current_state->res_ctx.pipe_ctx[i].stream; in dcn20_program_front_end_for_ctx()
1845 if (context->res_ctx.pipe_ctx[i].update_flags.bits.disable && stream && in dcn20_program_front_end_for_ctx()
1846 dc->current_state->res_ctx in dcn20_program_front_end_for_ctx()
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dce/
H A Ddmub_replay.c146 struct resource_context *res_ctx = &link->ctx->dc->current_state->res_ctx; in dmub_replay_copy_settings() local
150 if (res_ctx && in dmub_replay_copy_settings()
151 res_ctx->pipe_ctx[i].stream && in dmub_replay_copy_settings()
152 res_ctx->pipe_ctx[i].stream->link && in dmub_replay_copy_settings()
153 res_ctx->pipe_ctx[i].stream->link == link && in dmub_replay_copy_settings()
154 res_ctx->pipe_ctx[i].stream->link->connector_signal == SIGNAL_TYPE_EDP) { in dmub_replay_copy_settings()
155 pipe_ctx = &res_ctx->pipe_ctx[i]; in dmub_replay_copy_settings()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_resource.h64 struct dc *dc, struct resource_context *res_ctx, display_e2e_pipe_params_st *pipes);
71 struct resource_context *res_ctx,
78 struct resource_context *res_ctx,
H A Ddcn30_resource.c1453 struct resource_context *res_ctx = &context->res_ctx; in dcn30_populate_dml_pipes_from_context() local
1458 if (!res_ctx->pipe_ctx[i].stream) in dcn30_populate_dml_pipes_from_context()
1469 struct dc *dc, struct resource_context *res_ctx, display_e2e_pipe_params_st *pipes) in dcn30_populate_dml_writeback_from_context()
1477 struct dc_stream_state *stream = res_ctx->pipe_ctx[i].stream; in dcn30_populate_dml_writeback_from_context()
1490 (wb_info->writeback_source_plane == res_ctx->pipe_ctx[i].plane_state)) { in dcn30_populate_dml_writeback_from_context()
1595 if (!context->res_ctx.pipe_ctx[i].stream) in dcn30_set_mcif_arb_params()
1599 struct dc_writeback_info *writeback_info = &context->res_ctx.pipe_ctx[i].stream->writeback_info[j]; in dcn30_set_mcif_arb_params()
1604 //wb_arb_params = &context->res_ctx.pipe_ctx[i].stream->writeback_info[j].mcif_arb_params; in dcn30_set_mcif_arb_params()
1617 wb_arb_params->time_per_pixel = (1000000 << 6) / context->res_ctx in dcn30_set_mcif_arb_params()
1468 dcn30_populate_dml_writeback_from_context( struct dc *dc, struct resource_context *res_ctx, display_e2e_pipe_params_st *pipes) dcn30_populate_dml_writeback_from_context() argument
1640 dcn30_acquire_post_bldn_3dlut( struct resource_context *res_ctx, const struct resource_pool *pool, int mpcc_id, struct dc_3dlut **lut, struct dc_transfer_func **shaper) dcn30_acquire_post_bldn_3dlut() argument
1676 dcn30_release_post_bldn_3dlut( struct resource_context *res_ctx, const struct resource_pool *pool, struct dc_3dlut **lut, struct dc_transfer_func **shaper) dcn30_release_post_bldn_3dlut() argument
1850 dcn30_split_stream_for_mpc_or_odm( const struct dc *dc, struct resource_context *res_ctx, struct pipe_ctx *pri_pipe, struct pipe_ctx *sec_pipe, bool odm) dcn30_split_stream_for_mpc_or_odm() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_resource.h76 struct dc *dc, struct resource_context *res_ctx, display_e2e_pipe_params_st *pipes);
84 struct resource_context *res_ctx,
91 struct resource_context *res_ctx,
H A Ddcn30_resource.c1323 struct resource_context *res_ctx = &context->res_ctx; in dcn30_populate_dml_pipes_from_context() local
1330 if (!res_ctx->pipe_ctx[i].stream) in dcn30_populate_dml_pipes_from_context()
1341 struct dc *dc, struct resource_context *res_ctx, display_e2e_pipe_params_st *pipes) in dcn30_populate_dml_writeback_from_context()
1344 dcn30_fpu_populate_dml_writeback_from_context(dc, res_ctx, pipes); in dcn30_populate_dml_writeback_from_context()
1386 if (!context->res_ctx.pipe_ctx[i].stream) in dcn30_set_mcif_arb_params()
1390 struct dc_writeback_info *writeback_info = &context->res_ctx.pipe_ctx[i].stream->writeback_info[j]; in dcn30_set_mcif_arb_params()
1395 //wb_arb_params = &context->res_ctx.pipe_ctx[i].stream->writeback_info[j].mcif_arb_params; in dcn30_set_mcif_arb_params()
1407 wb_arb_params->time_per_pixel = (1000000 << 6) / context->res_ctx.pipe_ctx[i].stream->phy_pix_clk; /* time_per_pixel should be in u6.6 format */ in dcn30_set_mcif_arb_params()
1430 struct resource_context *res_ctx, in dcn30_acquire_post_bldn_3dlut()
1340 dcn30_populate_dml_writeback_from_context( struct dc *dc, struct resource_context *res_ctx, display_e2e_pipe_params_st *pipes) dcn30_populate_dml_writeback_from_context() argument
1429 dcn30_acquire_post_bldn_3dlut( struct resource_context *res_ctx, const struct resource_pool *pool, int mpcc_id, struct dc_3dlut **lut, struct dc_transfer_func **shaper) dcn30_acquire_post_bldn_3dlut() argument
1465 dcn30_release_post_bldn_3dlut( struct resource_context *res_ctx, const struct resource_pool *pool, struct dc_3dlut **lut, struct dc_transfer_func **shaper) dcn30_release_post_bldn_3dlut() argument
1521 dcn30_split_stream_for_mpc_or_odm( const struct dc *dc, struct resource_context *res_ctx, struct pipe_ctx *pri_pipe, struct pipe_ctx *sec_pipe, bool odm) dcn30_split_stream_for_mpc_or_odm() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/dml/dcn32/
H A Ddcn32_fpu.c330 struct pipe_ctx *pipe = &context->res_ctx.pipe_ctx[i]; in dcn32_helper_populate_phantom_dlg_params()
559 pipe = &context->res_ctx.pipe_ctx[i]; in dcn32_set_phantom_stream_timing()
636 struct pipe_ctx *pipe = &context->res_ctx.pipe_ctx[i]; in dcn32_get_num_free_pipes()
681 struct pipe_ctx *pipe = &context->res_ctx.pipe_ctx[i]; in dcn32_assign_subvp_pipe()
713 pipe = &context->res_ctx.pipe_ctx[i]; in dcn32_assign_subvp_pipe()
756 struct pipe_ctx *pipe = &context->res_ctx.pipe_ctx[i]; in dcn32_enough_pipes_for_subvp()
806 struct pipe_ctx *pipe = &context->res_ctx.pipe_ctx[i]; in subvp_subvp_schedulable()
885 pipe = &context->res_ctx.pipe_ctx[i]; in subvp_drr_schedulable()
900 drr_pipe = &context->res_ctx.pipe_ctx[i]; in subvp_drr_schedulable()
981 pipe = &context->res_ctx in subvp_vblank_schedulable()
1552 dcn32_split_stream_for_mpc_or_odm( const struct dc *dc, struct resource_context *res_ctx, struct pipe_ctx *pri_pipe, struct pipe_ctx *sec_pipe, bool odm) dcn32_split_stream_for_mpc_or_odm() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce/
H A Ddmub_psr.c202 struct resource_context *res_ctx = &link->ctx->dc->current_state->res_ctx; in dmub_psr_copy_settings() local
206 if (res_ctx->pipe_ctx[i].stream && in dmub_psr_copy_settings()
207 res_ctx->pipe_ctx[i].stream->link == link && in dmub_psr_copy_settings()
208 res_ctx->pipe_ctx[i].stream->link->connector_signal == SIGNAL_TYPE_EDP) { in dmub_psr_copy_settings()
209 pipe_ctx = &res_ctx->pipe_ctx[i]; in dmub_psr_copy_settings()

Completed in 36 milliseconds

12345