Home
last modified time | relevance | path

Searched refs:mpcc_id (Results 1 – 25 of 32) sorted by relevance

12

/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn32/
H A Ddcn32_mpc.c48 int mpcc_id; in mpc32_mpc_init() local
54 for (mpcc_id = 0; mpcc_id < mpc30->num_mpcc; mpcc_id++) { in mpc32_mpc_init()
55 REG_UPDATE(MPCC_MCM_MEM_PWR_CTRL[mpcc_id], MPCC_MCM_SHAPER_MEM_LOW_PWR_MODE, 3); in mpc32_mpc_init()
56 REG_UPDATE(MPCC_MCM_MEM_PWR_CTRL[mpcc_id], MPCC_MCM_3DLUT_MEM_LOW_PWR_MODE, 3); in mpc32_mpc_init()
57 REG_UPDATE(MPCC_MCM_MEM_PWR_CTRL[mpcc_id], MPCC_MCM_1DLUT_MEM_LOW_PWR_MODE, 3); in mpc32_mpc_init()
61 for (mpcc_id = 0; mpcc_id < mpc30->num_mpcc; mpcc_id++) in mpc32_mpc_init()
62 REG_UPDATE(MPCC_MEM_PWR_CTRL[mpcc_id], MPCC_OGAM_MEM_LOW_PWR_MODE, 3); in mpc32_mpc_init()
69 uint32_t mpcc_id, in mpc32_power_on_blnd_lut() argument
76 REG_UPDATE(MPCC_MCM_MEM_PWR_CTRL[mpcc_id], MPCC_MCM_1DLUT_MEM_PWR_FORCE, 0); in mpc32_power_on_blnd_lut()
77 REG_WAIT(MPCC_MCM_MEM_PWR_CTRL[mpcc_id], MPCC_MCM_1DLUT_MEM_PWR_STATE, 0, 1, 5); in mpc32_power_on_blnd_lut()
[all …]
H A Ddcn32_mpc.h317 int mpcc_id);
321 uint32_t mpcc_id);
325 uint32_t mpcc_id);
337 uint32_t mpcc_id,
341 uint32_t mpcc_id,
346 uint32_t mpcc_id,
350 uint32_t mpcc_id,
354 uint32_t mpcc_id,
360 uint32_t mpcc_id);
364 uint32_t mpcc_id);
[all …]
H A Ddcn32_hwseq.c443 int mpcc_id = pipe_ctx->plane_res.hubp->inst; in dcn32_set_mpc_shaper_3dlut() local
465 mpcc_id); in dcn32_set_mpc_shaper_3dlut()
469 mpcc_id); in dcn32_set_mpc_shaper_3dlut()
479 int mpcc_id = pipe_ctx->plane_res.hubp->inst; in dcn32_set_mcm_luts() local
494 result = mpc->funcs->program_1dlut(mpc, lut_params, mpcc_id); in dcn32_set_mcm_luts()
509 result = mpc->funcs->program_shaper(mpc, lut_params, mpcc_id); in dcn32_set_mcm_luts()
513 result = mpc->funcs->program_3dlut(mpc, &plane_state->lut3d_func->lut_3d, mpcc_id); in dcn32_set_mcm_luts()
515 result = mpc->funcs->program_3dlut(mpc, NULL, mpcc_id); in dcn32_set_mcm_luts()
566 int mpcc_id = pipe_ctx->plane_res.hubp->inst; in dcn32_set_output_transfer_func() local
591 mpc->funcs->set_output_gamma(mpc, mpcc_id, params); in dcn32_set_output_transfer_func()
H A Ddcn32_hubp.c222 hubp2->base.mpcc_id = 0xf; in hubp32_construct()
H A Ddcn32_resource.c1592 int mpcc_id, in dcn32_acquire_post_bldn_3dlut() argument
1602 if (!res_ctx->is_mpc_3dlut_acquired[mpcc_id]) { in dcn32_acquire_post_bldn_3dlut()
1603 *lut = pool->mpc_lut[mpcc_id]; in dcn32_acquire_post_bldn_3dlut()
1604 *shaper = pool->mpc_shaper[mpcc_id]; in dcn32_acquire_post_bldn_3dlut()
1605 res_ctx->is_mpc_3dlut_acquired[mpcc_id] = true; in dcn32_acquire_post_bldn_3dlut()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn10/
H A Ddcn10_mpc.c42 int mpcc_id) in mpc1_set_bg_color() argument
45 struct mpcc *bottommost_mpcc = mpc1_get_mpcc(mpc, mpcc_id); in mpc1_set_bg_color()
68 REG_SET(MPCC_BG_R_CR[bottommost_mpcc->mpcc_id], 0, in mpc1_set_bg_color()
70 REG_SET(MPCC_BG_G_Y[bottommost_mpcc->mpcc_id], 0, in mpc1_set_bg_color()
72 REG_SET(MPCC_BG_B_CB[bottommost_mpcc->mpcc_id], 0, in mpc1_set_bg_color()
79 int mpcc_id) in mpc1_update_blending() argument
82 struct mpcc *mpcc = mpc1_get_mpcc(mpc, mpcc_id); in mpc1_update_blending()
84 REG_UPDATE_5(MPCC_CONTROL[mpcc_id], in mpc1_update_blending()
97 int mpcc_id) in mpc1_update_stereo_mix() argument
101 REG_UPDATE_6(MPCC_SM_CONTROL[mpcc_id], in mpc1_update_stereo_mix()
[all …]
H A Ddcn10_mpc.h148 int mpcc_id);
160 unsigned int mpcc_id);
174 int mpcc_id);
178 int mpcc_id);
182 int mpcc_id);
190 int mpcc_id);
H A Ddcn10_hw_sequencer.c1408 hubp->mpcc_id = dpp->inst; in dcn10_init_pipes()
2591 int mpcc_id) in dcn10_update_visual_confirm_color() argument
2597 mpc->funcs->set_bg_color(mpc, &(pipe_ctx->visual_confirm_color), mpcc_id); in dcn10_update_visual_confirm_color()
2606 int mpcc_id; in dcn10_update_mpcc() local
2645 mpcc_id = hubp->inst; in dcn10_update_mpcc()
2649 mpc->funcs->update_blending(mpc, &blnd_cfg, mpcc_id); in dcn10_update_mpcc()
2650 dc->hwss.update_visual_confirm_color(dc, pipe_ctx, mpcc_id); in dcn10_update_mpcc()
2655 new_mpcc = mpc->funcs->get_mpcc_for_dpp(mpc_tree_params, mpcc_id); in dcn10_update_mpcc()
2662 dc->res_pool->mpc, mpcc_id); in dcn10_update_mpcc()
2671 mpcc_id); in dcn10_update_mpcc()
[all …]
H A Ddcn10_hw_sequencer.h205 int mpcc_id);
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn20/
H A Ddcn20_mpc.c51 int mpcc_id) in mpc2_update_blending() argument
55 struct mpcc *mpcc = mpc1_get_mpcc(mpc, mpcc_id); in mpc2_update_blending()
57 REG_UPDATE_7(MPCC_CONTROL[mpcc_id], in mpc2_update_blending()
66 REG_SET(MPCC_TOP_GAIN[mpcc_id], 0, MPCC_TOP_GAIN, blnd_cfg->top_gain); in mpc2_update_blending()
67 REG_SET(MPCC_BOT_GAIN_INSIDE[mpcc_id], 0, MPCC_BOT_GAIN_INSIDE, blnd_cfg->bottom_inside_gain); in mpc2_update_blending()
68 REG_SET(MPCC_BOT_GAIN_OUTSIDE[mpcc_id], 0, MPCC_BOT_GAIN_OUTSIDE, blnd_cfg->bottom_outside_gain); in mpc2_update_blending()
273 struct mpc *mpc, int mpcc_id, in mpc20_power_on_ogam_lut() argument
278 REG_SET(MPCC_MEM_PWR_CTRL[mpcc_id], 0, in mpc20_power_on_ogam_lut()
284 struct mpc *mpc, int mpcc_id, in mpc20_configure_ogam_lut() argument
289 REG_UPDATE_2(MPCC_OGAM_LUT_RAM_CONTROL[mpcc_id], in mpc20_configure_ogam_lut()
[all …]
H A Ddcn20_mpc.h280 int mpcc_id);
306 int mpcc_id,
310 void mpc2_assert_mpcc_idle_before_connect(struct mpc *mpc, int mpcc_id);
311 void mpc20_power_on_ogam_lut(struct mpc *mpc, int mpcc_id, bool power_on);
H A Ddcn20_hwseq.c829 int mpcc_id = pipe_ctx->plane_res.hubp->inst; in dcn20_program_output_csc() local
832 mpc->funcs->power_on_mpc_mem_pwr(mpc, mpcc_id, true); in dcn20_program_output_csc()
852 int mpcc_id = pipe_ctx->plane_res.hubp->inst; in dcn20_set_output_transfer_func() local
863 mpc->funcs->power_on_mpc_mem_pwr(mpc, mpcc_id, true); in dcn20_set_output_transfer_func()
884 mpc->funcs->set_output_gamma(mpc, mpcc_id, params); in dcn20_set_output_transfer_func()
2605 int mpcc_id; in dcn20_update_mpcc() local
2649 mpcc_id = hubp->inst; in dcn20_update_mpcc()
2654 mpc->funcs->update_blending(mpc, &blnd_cfg, mpcc_id); in dcn20_update_mpcc()
2655 dc->hwss.update_visual_confirm_color(dc, pipe_ctx, mpcc_id); in dcn20_update_mpcc()
2660 new_mpcc = mpc->funcs->get_mpcc_for_dpp(mpc_tree_params, mpcc_id); in dcn20_update_mpcc()
[all …]
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn30/
H A Ddcn30_mpc.c65 int mpcc_id) in mpc3_set_dwb_mux() argument
70 MPC_DWB0_MUX, mpcc_id); in mpc3_set_dwb_mux()
102 enum dc_lut_mode mpc3_get_ogam_current(struct mpc *mpc, int mpcc_id) in mpc3_get_ogam_current() argument
112 REG_GET_2(MPCC_OGAM_CONTROL[mpcc_id], MPCC_OGAM_MODE_CURRENT, &state_mode, in mpc3_get_ogam_current()
141 struct mpc *mpc, int mpcc_id, in mpc3_power_on_ogam_lut() argument
152 REG_UPDATE(MPCC_MEM_PWR_CTRL[mpcc_id], in mpc3_power_on_ogam_lut()
157 REG_WAIT(MPCC_MEM_PWR_CTRL[mpcc_id], MPCC_OGAM_MEM_PWR_STATE, 0, 10, 10); in mpc3_power_on_ogam_lut()
161 struct mpc *mpc, int mpcc_id, in mpc3_configure_ogam_lut() argument
166 REG_UPDATE_2(MPCC_OGAM_LUT_CONTROL[mpcc_id], in mpc3_configure_ogam_lut()
170 REG_SET(MPCC_OGAM_LUT_INDEX[mpcc_id], 0, MPCC_OGAM_LUT_INDEX, 0); in mpc3_configure_ogam_lut()
[all …]
H A Ddcn30_resource.h86 int mpcc_id,
H A Ddcn30_hwseq.c97 int mpcc_id = pipe_ctx->plane_res.hubp->inst; in dcn30_set_mpc_shaper_3dlut() local
124 if (mpcc_id_projected != mpcc_id) in dcn30_set_mpc_shaper_3dlut()
129 acquired_rmu = mpc->funcs->acquire_rmu(mpc, mpcc_id, in dcn30_set_mpc_shaper_3dlut()
140 mpc->funcs->release_rmu(mpc, mpcc_id); in dcn30_set_mpc_shaper_3dlut()
193 int mpcc_id = pipe_ctx->plane_res.hubp->inst; in dcn30_set_output_transfer_func() local
218 mpc->funcs->set_output_gamma(mpc, mpcc_id, params); in dcn30_set_output_transfer_func()
H A Ddcn30_mpc.h1022 int mpcc_id, int rmu_idx);
1048 int mpcc_id,
1057 int mpcc_id,
1068 int mpcc_id);
1086 struct mpc *mpc, int mpcc_id,
1093 int mpcc_id);
/openbmc/linux/drivers/gpu/drm/amd/display/dc/inc/hw/
H A Dmpc.h157 int mpcc_id; /* MPCC physical instance */ member
232 int mpcc_id);
264 unsigned int mpcc_id);
281 int mpcc_id);
326 int mpcc_id);
354 void (*assert_mpcc_idle_before_connect)(struct mpc *mpc, int mpcc_id);
381 int mpcc_id,
385 int mpcc_id,
390 int mpcc_id);
409 int mpcc_id,
[all …]
H A Dhubp.h65 int mpcc_id; member
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn201/
H A Ddcn201_hwseq.c313 hubp->mpcc_id = dpp->inst; in dcn201_init_hw()
423 int mpcc_id, dpp_id; in dcn201_update_mpcc() local
478 mpcc_id = dpp_id; in dcn201_update_mpcc()
482 dc->hwss.update_visual_confirm_color(dc, pipe_ctx, mpcc_id); in dcn201_update_mpcc()
483 mpc->funcs->update_blending(mpc, &blnd_cfg, mpcc_id); in dcn201_update_mpcc()
504 dc->res_pool->mpc, mpcc_id); in dcn201_update_mpcc()
507 dc->hwss.update_visual_confirm_color(dc, pipe_ctx, mpcc_id); in dcn201_update_mpcc()
514 mpcc_id); in dcn201_update_mpcc()
518 hubp->mpcc_id = mpcc_id; in dcn201_update_mpcc()
H A Ddcn201_mpc.c64 mpcc->mpcc_id = mpcc_inst; in mpc201_init_mpcc()
H A Ddcn201_hubp.c146 hubp201->base.mpcc_id = 0xf; in dcn201_hubp_construct()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/inc/
H A Dhw_sequencer.h114 int mpcc_id; member
119 int mpcc_id; member
398 int mpcc_id);
H A Dcore_types.h171 int mpcc_id,
/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_hw_sequencer.c568 …block_sequence[*num_steps].params.power_on_mpc_mem_pwr_params.mpcc_id = current_mpc_pipe->plane_re… in hwss_build_fast_sequence()
686 params->update_visual_confirm_params.mpcc_id); in hwss_execute_sequence()
760 int mpcc_id = params->power_on_mpc_mem_pwr_params.mpcc_id; in hwss_power_on_mpc_mem_pwr() local
764 mpc->funcs->power_on_mpc_mem_pwr(mpc, mpcc_id, power_on); in hwss_power_on_mpc_mem_pwr()
/openbmc/linux/drivers/gpu/drm/amd/display/dc/dcn31/
H A Ddcn31_hubp.c110 hubp2->base.mpcc_id = 0xf; in hubp31_construct()

12