Lines Matching refs:funcs

166 	if (pipe_ctx->stream_res.tg->funcs->set_gsl != NULL &&  in dcn20_setup_gsl_group_as_lock()
167 pipe_ctx->stream_res.tg->funcs->set_gsl_source_select != NULL) { in dcn20_setup_gsl_group_as_lock()
168 pipe_ctx->stream_res.tg->funcs->set_gsl( in dcn20_setup_gsl_group_as_lock()
172 pipe_ctx->stream_res.tg->funcs->set_gsl_source_select( in dcn20_setup_gsl_group_as_lock()
182 if (pipe_ctx && pipe_ctx->plane_res.hubp->funcs->hubp_set_flip_control_surface_gsl) in dcn20_set_flip_control_gsl()
183 pipe_ctx->plane_res.hubp->funcs->hubp_set_flip_control_surface_gsl( in dcn20_set_flip_control_gsl()
278 if (pipe_ctx->plane_res.hubp && pipe_ctx->plane_res.hubp->funcs) { in dcn20_program_triple_buffer()
279 pipe_ctx->plane_res.hubp->funcs->hubp_enable_tripleBuffer( in dcn20_program_triple_buffer()
303 tg->funcs->get_otg_active_size(tg, in dcn20_init_blank()
308 tg->funcs->get_optc_source(tg, &num_opps, &opp_id_src0, &opp_id_src1); in dcn20_init_blank()
317 if (opp->funcs->dpg_is_blanked && opp->funcs->dpg_is_blanked(opp)) in dcn20_init_blank()
330 opp->funcs->opp_set_disp_pattern_generator( in dcn20_init_blank()
341 bottom_opp->funcs->opp_set_disp_pattern_generator( in dcn20_init_blank()
352 hws->funcs.wait_for_blank_complete(opp); in dcn20_init_blank()
597 if (hubp->funcs->hubp_update_mall_sel) in dcn20_plane_atomic_disable()
598 hubp->funcs->hubp_update_mall_sel(hubp, 0, false); in dcn20_plane_atomic_disable()
602 hubp->funcs->hubp_clk_cntl(hubp, false); in dcn20_plane_atomic_disable()
604 dpp->funcs->dpp_dppclk_control(dpp, false, false); in dcn20_plane_atomic_disable()
608 hws->funcs.plane_atomic_power_down(dc, in dcn20_plane_atomic_disable()
636 if (tg && tg->funcs->disable_phantom_crtc) in dcn20_disable_plane()
637 tg->funcs->disable_phantom_crtc(tg); in dcn20_disable_plane()
691 if (hws->funcs.calculate_dccg_k1_k2_values && dc->res_pool->dccg->funcs->set_pixel_rate_div) { in dcn20_enable_stream_timing()
692 hws->funcs.calculate_dccg_k1_k2_values(pipe_ctx, &k1_div, &k2_div); in dcn20_enable_stream_timing()
694 dc->res_pool->dccg->funcs->set_pixel_rate_div( in dcn20_enable_stream_timing()
714 pipe_ctx->stream_res.tg->funcs->set_odm_combine( in dcn20_enable_stream_timing()
722 pipe_ctx->stream_res.tg->funcs->enable_optc_clock(pipe_ctx->stream_res.tg, true); in dcn20_enable_stream_timing()
724 if (false == pipe_ctx->clock_source->funcs->program_pix_clk( in dcn20_enable_stream_timing()
741 if (dc->hwseq->funcs.PLAT_58856_wa && (!dc_is_dp_signal(stream->signal))) in dcn20_enable_stream_timing()
742 dc->hwseq->funcs.PLAT_58856_wa(context, pipe_ctx); in dcn20_enable_stream_timing()
744 pipe_ctx->stream_res.tg->funcs->program_timing( in dcn20_enable_stream_timing()
758 if (mpc->funcs->set_out_rate_control) { in dcn20_enable_stream_timing()
760 mpc->funcs->set_out_rate_control( in dcn20_enable_stream_timing()
769 odm_pipe->stream_res.opp->funcs->opp_pipe_clock_control( in dcn20_enable_stream_timing()
773 pipe_ctx->stream_res.opp->funcs->opp_pipe_clock_control( in dcn20_enable_stream_timing()
777 hws->funcs.blank_pixel_data(dc, pipe_ctx, true); in dcn20_enable_stream_timing()
780 if (false == pipe_ctx->stream_res.tg->funcs->enable_crtc(pipe_ctx->stream_res.tg)) { in dcn20_enable_stream_timing()
785 hws->funcs.wait_for_blank_complete(pipe_ctx->stream_res.opp); in dcn20_enable_stream_timing()
791 if (pipe_ctx->stream_res.tg->funcs->set_drr) in dcn20_enable_stream_timing()
792 pipe_ctx->stream_res.tg->funcs->set_drr( in dcn20_enable_stream_timing()
802 if (pipe_ctx->stream_res.tg->funcs->set_static_screen_control) in dcn20_enable_stream_timing()
803 pipe_ctx->stream_res.tg->funcs->set_static_screen_control( in dcn20_enable_stream_timing()
815 if (pipe_ctx->stream_res.tg && pipe_ctx->stream_res.tg->funcs->phantom_crtc_post_enable) in dcn20_enable_stream_timing()
816 pipe_ctx->stream_res.tg->funcs->phantom_crtc_post_enable(pipe_ctx->stream_res.tg); in dcn20_enable_stream_timing()
831 if (mpc->funcs->power_on_mpc_mem_pwr) in dcn20_program_output_csc()
832 mpc->funcs->power_on_mpc_mem_pwr(mpc, mpcc_id, true); in dcn20_program_output_csc()
835 if (mpc->funcs->set_output_csc != NULL) in dcn20_program_output_csc()
836 mpc->funcs->set_output_csc(mpc, in dcn20_program_output_csc()
841 if (mpc->funcs->set_ocsc_default != NULL) in dcn20_program_output_csc()
842 mpc->funcs->set_ocsc_default(mpc, in dcn20_program_output_csc()
862 if (mpc->funcs->power_on_mpc_mem_pwr) in dcn20_set_output_transfer_func()
863 mpc->funcs->power_on_mpc_mem_pwr(mpc, mpcc_id, true); in dcn20_set_output_transfer_func()
865 && mpc->funcs->set_output_gamma && stream->out_transfer_func) { in dcn20_set_output_transfer_func()
883 mpc->funcs->set_output_gamma(mpc, mpcc_id, params); in dcn20_set_output_transfer_func()
905 result = dpp_base->funcs->dpp_program_blnd_lut(dpp_base, blend_lut); in dcn20_set_blend_lut()
928 result = dpp_base->funcs->dpp_program_shaper_lut(dpp_base, shaper_lut); in dcn20_set_shaper_3dlut()
931 result = dpp_base->funcs->dpp_program_3dlut(dpp_base, in dcn20_set_shaper_3dlut()
934 result = dpp_base->funcs->dpp_program_3dlut(dpp_base, NULL); in dcn20_set_shaper_3dlut()
952 hws->funcs.set_shaper_3dlut(pipe_ctx, plane_state); in dcn20_set_input_transfer_func()
953 hws->funcs.set_blend_lut(pipe_ctx, plane_state); in dcn20_set_input_transfer_func()
960 dpp_base->funcs->dpp_set_degamma(dpp_base, in dcn20_set_input_transfer_func()
970 dpp_base->funcs->dpp_program_degamma_pwl(dpp_base, in dcn20_set_input_transfer_func()
975 dpp_base->funcs->dpp_program_degamma_pwl(dpp_base, in dcn20_set_input_transfer_func()
986 dpp_base->funcs->dpp_set_degamma(dpp_base, in dcn20_set_input_transfer_func()
990 dpp_base->funcs->dpp_set_degamma(dpp_base, in dcn20_set_input_transfer_func()
994 dpp_base->funcs->dpp_set_degamma(dpp_base, in dcn20_set_input_transfer_func()
998 dpp_base->funcs->dpp_set_degamma(dpp_base, IPP_DEGAMMA_MODE_USER_PWL); in dcn20_set_input_transfer_func()
1000 dpp_base->funcs->dpp_program_degamma_pwl(dpp_base, &dpp_base->degamma_params); in dcn20_set_input_transfer_func()
1008 dpp_base->funcs->dpp_set_degamma(dpp_base, in dcn20_set_input_transfer_func()
1016 dpp_base->funcs->dpp_set_degamma(dpp_base, in dcn20_set_input_transfer_func()
1035 pipe_ctx->stream_res.tg->funcs->set_odm_combine( in dcn20_update_odm()
1040 pipe_ctx->stream_res.tg->funcs->set_odm_bypass( in dcn20_update_odm()
1112 stream_res->abm->funcs->set_abm_level(stream_res->abm, stream->abm_level); in dcn20_blank_pixel_data()
1123 if (hws->funcs.dpp_root_clock_control) in dcn20_power_on_plane_resources()
1124 hws->funcs.dpp_root_clock_control(hws, pipe_ctx->plane_res.dpp->inst, true); in dcn20_power_on_plane_resources()
1130 if (hws->funcs.dpp_pg_control) in dcn20_power_on_plane_resources()
1131 hws->funcs.dpp_pg_control(hws, pipe_ctx->plane_res.dpp->inst, true); in dcn20_power_on_plane_resources()
1133 if (hws->funcs.hubp_pg_control) in dcn20_power_on_plane_resources()
1134 hws->funcs.hubp_pg_control(hws, pipe_ctx->plane_res.hubp->inst, true); in dcn20_power_on_plane_resources()
1152 pipe_ctx->plane_res.hubp->funcs->hubp_clk_cntl(pipe_ctx->plane_res.hubp, true); in dcn20_enable_plane()
1155 pipe_ctx->plane_res.hubp->funcs->hubp_init(pipe_ctx->plane_res.hubp); in dcn20_enable_plane()
1158 pipe_ctx->stream_res.opp->funcs->opp_pipe_clock_control( in dcn20_enable_plane()
1208 …pipe_ctx->plane_res.hubp->funcs->hubp_set_vm_system_aperture_settings(pipe_ctx->plane_res.hubp, &a… in dcn20_enable_plane()
1214 && pipe_ctx->plane_res.hubp->funcs->hubp_set_flip_int) in dcn20_enable_plane()
1215 pipe_ctx->plane_res.hubp->funcs->hubp_set_flip_int(pipe_ctx->plane_res.hubp); in dcn20_enable_plane()
1257 if (!temp_pipe->plane_res.hubp->funcs->hubp_is_flip_pending(temp_pipe->plane_res.hubp)) in dcn20_pipe_control_lock()
1307 pipe->stream_res.tg->funcs->triplebuffer_lock(pipe->stream_res.tg); in dcn20_pipe_control_lock()
1309 pipe->stream_res.tg->funcs->triplebuffer_unlock(pipe->stream_res.tg); in dcn20_pipe_control_lock()
1312 pipe->stream_res.tg->funcs->lock(pipe->stream_res.tg); in dcn20_pipe_control_lock()
1314 pipe->stream_res.tg->funcs->unlock(pipe->stream_res.tg); in dcn20_pipe_control_lock()
1507 dpp->funcs->dpp_dppclk_control(dpp, false, true); in dcn20_update_dchubp_dpp()
1510 dccg->funcs->update_dpp_dto(dccg, dpp->inst, pipe_ctx->plane_res.bw.dppclk_khz); in dcn20_update_dchubp_dpp()
1517 hubp->funcs->hubp_vtg_sel(hubp, pipe_ctx->stream_res.tg->inst); in dcn20_update_dchubp_dpp()
1519 hubp->funcs->hubp_setup( in dcn20_update_dchubp_dpp()
1527 if (pipe_ctx->update_flags.bits.unbounded_req && hubp->funcs->set_unbounded_requesting) in dcn20_update_dchubp_dpp()
1528 hubp->funcs->set_unbounded_requesting(hubp, pipe_ctx->unbounded_req); in dcn20_update_dchubp_dpp()
1531 hubp->funcs->hubp_setup_interdependent( in dcn20_update_dchubp_dpp()
1545 dpp->funcs->dpp_setup(dpp, in dcn20_update_dchubp_dpp()
1552 if (dpp->funcs->dpp_program_bias_and_scale) { in dcn20_update_dchubp_dpp()
1555 dpp->funcs->dpp_program_bias_and_scale(dpp, &bns_params); in dcn20_update_dchubp_dpp()
1564 hws->funcs.update_mpcc(dc, pipe_ctx); in dcn20_update_dchubp_dpp()
1575 pipe_ctx->plane_res.dpp->funcs->dpp_set_scaler( in dcn20_update_dchubp_dpp()
1584 hubp->funcs->mem_program_viewport( in dcn20_update_dchubp_dpp()
1634 hubp->funcs->hubp_program_surface_config( in dcn20_update_dchubp_dpp()
1649 hws->funcs.update_plane_addr(dc, pipe_ctx); in dcn20_update_dchubp_dpp()
1652 hubp->funcs->set_blank(hubp, false); in dcn20_update_dchubp_dpp()
1655 && hubp->funcs->phantom_hubp_post_enable) in dcn20_update_dchubp_dpp()
1656 hubp->funcs->phantom_hubp_post_enable(hubp); in dcn20_update_dchubp_dpp()
1697 hws->funcs.blank_pixel_data(dc, pipe_ctx, in dcn20_program_pipe()
1705 pipe_ctx->stream_res.tg->funcs->program_global_sync( in dcn20_program_pipe()
1713 pipe_ctx->stream_res.tg->funcs->wait_for_state(pipe_ctx->stream_res.tg, CRTC_STATE_VACTIVE); in dcn20_program_pipe()
1715 pipe_ctx->stream_res.tg->funcs->set_vtg_params( in dcn20_program_pipe()
1718 if (hws->funcs.setup_vupdate_interrupt) in dcn20_program_pipe()
1719 hws->funcs.setup_vupdate_interrupt(dc, pipe_ctx); in dcn20_program_pipe()
1723 hws->funcs.update_odm(dc, context, pipe_ctx); in dcn20_program_pipe()
1727 if (dc->res_pool->hubbub->funcs->force_wm_propagate_to_pipes) in dcn20_program_pipe()
1728 dc->res_pool->hubbub->funcs->force_wm_propagate_to_pipes(dc->res_pool->hubbub); in dcn20_program_pipe()
1731 if (dc->res_pool->hubbub->funcs->program_det_size && pipe_ctx->update_flags.bits.det_size) in dcn20_program_pipe()
1732 dc->res_pool->hubbub->funcs->program_det_size( in dcn20_program_pipe()
1740 hws->funcs.set_hdr_multiplier(pipe_ctx); in dcn20_program_pipe()
1746 hws->funcs.set_input_transfer_func(dc, pipe_ctx, pipe_ctx->plane_state); in dcn20_program_pipe()
1756 hws->funcs.set_output_transfer_func(dc, pipe_ctx, pipe_ctx->stream); in dcn20_program_pipe()
1766 pipe_ctx->stream_res.opp->funcs->opp_set_dyn_expansion( in dcn20_program_pipe()
1772 pipe_ctx->stream_res.opp->funcs->opp_program_fmt( in dcn20_program_pipe()
1782 pipe_ctx->stream_res.abm->funcs->set_abm_level(pipe_ctx->stream_res.abm, in dcn20_program_pipe()
1828 if (dc->res_pool->hubbub->funcs->force_pstate_change_control) in dcn20_program_front_end_for_ctx()
1829 dc->res_pool->hubbub->funcs->force_pstate_change_control( in dcn20_program_front_end_for_ctx()
1849 if (tg->funcs->enable_crtc) { in dcn20_program_front_end_for_ctx()
1857 tg->funcs->enable_crtc(tg); in dcn20_program_front_end_for_ctx()
1867 hws->funcs.blank_pixel_data(dc, &context->res_ctx.pipe_ctx[i], true); in dcn20_program_front_end_for_ctx()
1882 if (hubbub->funcs->program_det_size && (context->res_ctx.pipe_ctx[i].update_flags.bits.disable || in dcn20_program_front_end_for_ctx()
1884 …hubbub->funcs->program_det_size(hubbub, dc->current_state->res_ctx.pipe_ctx[i].plane_res.hubp->ins… in dcn20_program_front_end_for_ctx()
1885 hws->funcs.plane_atomic_disconnect(dc, &dc->current_state->res_ctx.pipe_ctx[i]); in dcn20_program_front_end_for_ctx()
1898 if (hws->funcs.program_pipe) in dcn20_program_front_end_for_ctx()
1899 hws->funcs.program_pipe(dc, pipe, context); in dcn20_program_front_end_for_ctx()
1921 && hws->funcs.program_all_writeback_pipes_in_tree) in dcn20_program_front_end_for_ctx()
1922 hws->funcs.program_all_writeback_pipes_in_tree(dc, pipe->stream, context); in dcn20_program_front_end_for_ctx()
1928 pipe->plane_res.hubp->funcs->hubp_wait_pipe_read_start && in dcn20_program_front_end_for_ctx()
1931 pipe->plane_res.hubp->funcs->hubp_wait_pipe_read_start(pipe->plane_res.hubp); in dcn20_program_front_end_for_ctx()
1942 hws->funcs.update_odm) in dcn20_program_front_end_for_ctx()
1943 hws->funcs.update_odm(dc, context, pipe); in dcn20_program_front_end_for_ctx()
1976 && hubp->funcs->hubp_is_flip_pending(hubp); j++) in dcn20_post_unlock_program_front_end()
1981 if (dc->res_pool->hubbub->funcs->force_pstate_change_control) in dcn20_post_unlock_program_front_end()
1982 dc->res_pool->hubbub->funcs->force_pstate_change_control( in dcn20_post_unlock_program_front_end()
2017 if (hwseq && hwseq->funcs.update_force_pstate) in dcn20_post_unlock_program_front_end()
2018 dc->hwseq->funcs.update_force_pstate(dc, context); in dcn20_post_unlock_program_front_end()
2023 if (hwseq->funcs.program_mall_pipe_config) in dcn20_post_unlock_program_front_end()
2024 hwseq->funcs.program_mall_pipe_config(dc, context); in dcn20_post_unlock_program_front_end()
2028 dc->res_pool->hubbub->funcs->apply_DEDCN21_147_wa(dc->res_pool->hubbub); in dcn20_post_unlock_program_front_end()
2039 dc->res_pool->hubbub->funcs->allow_self_refresh_control(dc->res_pool->hubbub, false); in dcn20_post_unlock_program_front_end()
2042 …hwseq->wa_state.disallow_self_refresh_during_multi_plane_transition_applied_on_frame = tg->funcs->… in dcn20_post_unlock_program_front_end()
2056 dc->clk_mgr->funcs->update_clocks( in dcn20_prepare_bandwidth()
2075 dc->wm_optimized_required |= hubbub->funcs->program_watermarks(hubbub, in dcn20_prepare_bandwidth()
2085 if (hubbub->funcs->program_compbuf_size) { in dcn20_prepare_bandwidth()
2094 hubbub->funcs->program_compbuf_size(hubbub, compbuf_size_kb, false); in dcn20_prepare_bandwidth()
2116 hubbub->funcs->program_watermarks(hubbub, in dcn20_optimize_bandwidth()
2124 dc->clk_mgr->funcs->set_max_memclk(dc->clk_mgr, dc->clk_mgr->bw_params->dc_mode_softmax_memclk); in dcn20_optimize_bandwidth()
2127 if (hubbub->funcs->program_compbuf_size) in dcn20_optimize_bandwidth()
2128 hubbub->funcs->program_compbuf_size(hubbub, context->bw_ctx.bw.dcn.compbuf_size_kb, true); in dcn20_optimize_bandwidth()
2139 dc->clk_mgr->funcs->update_clocks( in dcn20_optimize_bandwidth()
2147 if (pipe_ctx->stream && pipe_ctx->plane_res.hubp->funcs->program_extended_blank in dcn20_optimize_bandwidth()
2150 pipe_ctx->plane_res.hubp->funcs->program_extended_blank(pipe_ctx->plane_res.hubp, in dcn20_optimize_bandwidth()
2164 if (!dc->res_pool->funcs->validate_bandwidth(dc, context, false)) in dcn20_update_bandwidth()
2180 pipe_ctx->stream_res.tg->funcs->program_global_sync( in dcn20_update_bandwidth()
2187 pipe_ctx->stream_res.tg->funcs->set_vtg_params( in dcn20_update_bandwidth()
2191 hws->funcs.blank_pixel_data(dc, pipe_ctx, blank); in dcn20_update_bandwidth()
2193 if (hws->funcs.setup_vupdate_interrupt) in dcn20_update_bandwidth()
2194 hws->funcs.setup_vupdate_interrupt(dc, pipe_ctx); in dcn20_update_bandwidth()
2197 pipe_ctx->plane_res.hubp->funcs->hubp_setup( in dcn20_update_bandwidth()
2224 optc->funcs->set_dwb_source(optc, wb_info->dwb_pipe_inst); in dcn20_enable_writeback()
2226 …mcif_wb->funcs->config_mcif_buf(mcif_wb, &wb_info->mcif_buf_params, wb_info->dwb_params.dest_heigh… in dcn20_enable_writeback()
2227 …mcif_wb->funcs->config_mcif_arb(mcif_wb, &context->bw_ctx.bw.dcn.bw_writeback.mcif_wb_arb[wb_info-… in dcn20_enable_writeback()
2229 mcif_wb->funcs->enable_mcif(mcif_wb); in dcn20_enable_writeback()
2231 dwb->funcs->enable(dwb, &wb_info->dwb_params); in dcn20_enable_writeback()
2246 dwb->funcs->disable(dwb); in dcn20_disable_writeback()
2247 mcif_wb->funcs->disable_mcif(mcif_wb); in dcn20_disable_writeback()
2256 if (opp->funcs->dpg_is_blanked(opp)) in dcn20_wait_for_blank_complete()
2276 return hubp->funcs->dmdata_status_done(hubp); in dcn20_dmdata_status_done()
2286 hws->funcs.dsc_pg_control(hws, pipe_ctx->stream_res.dsc->inst, true); in dcn20_disable_stream_gating()
2288 hws->funcs.dsc_pg_control(hws, odm_pipe->stream_res.dsc->inst, true); in dcn20_disable_stream_gating()
2301 hws->funcs.dsc_pg_control(hws, pipe_ctx->stream_res.dsc->inst, false); in dcn20_enable_stream_gating()
2303 hws->funcs.dsc_pg_control(hws, odm_pipe->stream_res.dsc->inst, false); in dcn20_enable_stream_gating()
2326 hubp->funcs->dmdata_set_attributes(hubp, &attr); in dcn20_set_dmdata_attributes()
2348 dc->res_pool->hubbub->funcs->init_vm_ctx(dc->res_pool->hubbub, &config, vmid); in dcn20_init_vm_ctx()
2366 return dc->res_pool->hubbub->funcs->init_dchub_sys_ctx(dc->res_pool->hubbub, &config); in dcn20_init_sys_ctx()
2411 pipe_ctx->plane_res.hubp->funcs->hubp_program_surface_flip_and_addr( in dcn20_update_plane_addr()
2445 pipe_ctx->stream_res.hpo_dp_stream_enc->funcs->dp_unblank( in dcn20_unblank_stream()
2451 pipe_ctx->stream_res.stream_enc->funcs->dp_set_odm_combine( in dcn20_unblank_stream()
2453 …pipe_ctx->stream_res.stream_enc->funcs->dp_unblank(link, pipe_ctx->stream_res.stream_enc, &params); in dcn20_unblank_stream()
2457 hws->funcs.edp_backlight_control(link, true); in dcn20_unblank_stream()
2469 if (tg->funcs->setup_vertical_interrupt2) in dcn20_setup_vupdate_interrupt()
2470 tg->funcs->setup_vertical_interrupt2(tg, start_line); in dcn20_setup_vupdate_interrupt()
2502 pipe_ctx->stream_res.audio->funcs->az_disable(pipe_ctx->stream_res.audio); in dcn20_reset_back_end_for_pipe()
2522 pipe_ctx->stream_res.tg->funcs->disable_crtc(pipe_ctx->stream_res.tg); in dcn20_reset_back_end_for_pipe()
2524 pipe_ctx->stream_res.tg->funcs->enable_optc_clock(pipe_ctx->stream_res.tg, false); in dcn20_reset_back_end_for_pipe()
2525 if (pipe_ctx->stream_res.tg->funcs->set_odm_bypass) in dcn20_reset_back_end_for_pipe()
2526 pipe_ctx->stream_res.tg->funcs->set_odm_bypass( in dcn20_reset_back_end_for_pipe()
2529 if (pipe_ctx->stream_res.tg->funcs->set_drr) in dcn20_reset_back_end_for_pipe()
2530 pipe_ctx->stream_res.tg->funcs->set_drr( in dcn20_reset_back_end_for_pipe()
2581 if (hws->funcs.enable_stream_gating) in dcn20_reset_hw_ctx_wrap()
2582 hws->funcs.enable_stream_gating(dc, pipe_ctx_old); in dcn20_reset_hw_ctx_wrap()
2584 old_clk->funcs->cs_power_down(old_clk); in dcn20_reset_hw_ctx_wrap()
2643 mpc->funcs->update_blending(mpc, &blnd_cfg, mpcc_id); in dcn20_update_mpcc()
2649 new_mpcc = mpc->funcs->get_mpcc_for_dpp(mpc_tree_params, mpcc_id); in dcn20_update_mpcc()
2652 mpc->funcs->remove_mpcc(mpc, mpc_tree_params, new_mpcc); in dcn20_update_mpcc()
2655 mpc->funcs->assert_mpcc_idle_before_connect( in dcn20_update_mpcc()
2659 new_mpcc = mpc->funcs->insert_plane(dc->res_pool->mpc, in dcn20_update_mpcc()
2726 if (dc->hwseq->funcs.setup_hpo_hw_control) in dcn20_enable_stream()
2727 dc->hwseq->funcs.setup_hpo_hw_control(dc->hwseq, true); in dcn20_enable_stream()
2735 dto_params.ref_dtbclk_khz = dc->clk_mgr->funcs->get_dtb_ref_clk_frequency(dc->clk_mgr); in dcn20_enable_stream()
2736 dccg->funcs->set_dtbclk_dto(dccg, &dto_params); in dcn20_enable_stream()
2738 dccg->funcs->set_dpstreamclk(dccg, DTBCLK0, tg->inst, dp_hpo_inst); in dcn20_enable_stream()
2741 dccg->funcs->enable_symclk32_se(dccg, dp_hpo_inst, phyd32clk); in dcn20_enable_stream()
2744 if (hws->funcs.calculate_dccg_k1_k2_values && dc->res_pool->dccg->funcs->set_pixel_rate_div) { in dcn20_enable_stream()
2745 hws->funcs.calculate_dccg_k1_k2_values(pipe_ctx, &k1_div, &k2_div); in dcn20_enable_stream()
2747 dc->res_pool->dccg->funcs->set_pixel_rate_div( in dcn20_enable_stream()
2777 tg->funcs->set_early_control(tg, early_control); in dcn20_enable_stream()
2779 if (dc->hwseq->funcs.set_pixels_per_cycle) in dcn20_enable_stream()
2780 dc->hwseq->funcs.set_pixels_per_cycle(pipe_ctx); in dcn20_enable_stream()
2802 if (!stream_enc || !stream_enc->funcs->set_dynamic_metadata) in dcn20_program_dmdata_engine()
2805 stream_enc->funcs->set_dynamic_metadata(stream_enc, enable, in dcn20_program_dmdata_engine()
2816 if (dc->clk_mgr && dc->clk_mgr->funcs->init_clocks) in dcn20_fpga_init_hw()
2817 dc->clk_mgr->funcs->init_clocks(dc->clk_mgr); in dcn20_fpga_init_hw()
2820 if (res_pool->dccg->funcs->dccg_init) in dcn20_fpga_init_hw()
2821 res_pool->dccg->funcs->dccg_init(res_pool->dccg); in dcn20_fpga_init_hw()
2824 hws->funcs.enable_power_gating_plane(hws, true); in dcn20_fpga_init_hw()
2830 hws->funcs.dccg_init(hws); in dcn20_fpga_init_hw()
2843 if (tg->funcs->is_tg_enabled(tg)) in dcn20_fpga_init_hw()
2850 if (tg->funcs->is_tg_enabled(tg)) in dcn20_fpga_init_hw()
2851 tg->funcs->lock(tg); in dcn20_fpga_init_hw()
2857 dpp->funcs->dpp_reset(dpp); in dcn20_fpga_init_hw()
2861 res_pool->mpc->funcs->mpc_init(res_pool->mpc); in dcn20_fpga_init_hw()
2888 hubp->funcs->hubp_init(hubp); in dcn20_fpga_init_hw()
2895 hws->funcs.plane_atomic_disconnect(dc, pipe_ctx); in dcn20_fpga_init_hw()
2905 if (tg->funcs->is_tg_enabled(tg)) in dcn20_fpga_init_hw()
2906 tg->funcs->unlock(tg); in dcn20_fpga_init_hw()
2921 tg->funcs->tg_init(tg); in dcn20_fpga_init_hw()
2924 if (dc->res_pool->hubbub->funcs->init_crb) in dcn20_fpga_init_hw()
2925 dc->res_pool->hubbub->funcs->init_crb(dc->res_pool->hubbub); in dcn20_fpga_init_hw()
2963 …pipe_ctx->stream_res.opp->funcs->opp_set_disp_pattern_generator(pipe_ctx->stream_res.opp, test_pat… in dcn20_set_disp_pattern_generator()