Lines Matching full:mdp
32 static void dpu_hw_setup_split_pipe(struct dpu_hw_mdp *mdp, in dpu_hw_setup_split_pipe() argument
39 if (!mdp || !cfg) in dpu_hw_setup_split_pipe()
42 c = &mdp->hw; in dpu_hw_setup_split_pipe()
70 static bool dpu_hw_setup_clk_force_ctrl(struct dpu_hw_mdp *mdp, in dpu_hw_setup_clk_force_ctrl() argument
73 if (!mdp) in dpu_hw_setup_clk_force_ctrl()
79 return dpu_hw_clk_force_ctrl(&mdp->hw, &mdp->caps->clk_ctrls[clk_ctrl], enable); in dpu_hw_setup_clk_force_ctrl()
83 static void dpu_hw_get_danger_status(struct dpu_hw_mdp *mdp, in dpu_hw_get_danger_status() argument
89 if (!mdp || !status) in dpu_hw_get_danger_status()
92 c = &mdp->hw; in dpu_hw_get_danger_status()
95 status->mdp = (value >> 0) & 0x3; in dpu_hw_get_danger_status()
112 static void dpu_hw_setup_wd_timer(struct dpu_hw_mdp *mdp, in dpu_hw_setup_wd_timer() argument
118 if (!mdp || !cfg) in dpu_hw_setup_wd_timer()
121 c = &mdp->hw; in dpu_hw_setup_wd_timer()
168 static void dpu_hw_setup_vsync_sel(struct dpu_hw_mdp *mdp, in dpu_hw_setup_vsync_sel() argument
175 if (!mdp || !cfg || (cfg->pp_count > ARRAY_SIZE(cfg->ppnumber))) in dpu_hw_setup_vsync_sel()
178 c = &mdp->hw; in dpu_hw_setup_vsync_sel()
192 dpu_hw_setup_wd_timer(mdp, cfg); in dpu_hw_setup_vsync_sel()
195 static void dpu_hw_get_safe_status(struct dpu_hw_mdp *mdp, in dpu_hw_get_safe_status() argument
201 if (!mdp || !status) in dpu_hw_get_safe_status()
204 c = &mdp->hw; in dpu_hw_get_safe_status()
207 status->mdp = (value >> 0) & 0x1; in dpu_hw_get_safe_status()
224 static void dpu_hw_intf_audio_select(struct dpu_hw_mdp *mdp) in dpu_hw_intf_audio_select() argument
228 if (!mdp) in dpu_hw_intf_audio_select()
231 c = &mdp->hw; in dpu_hw_intf_audio_select()
236 static void dpu_hw_dp_phy_intf_sel(struct dpu_hw_mdp *mdp, in dpu_hw_dp_phy_intf_sel() argument
239 struct dpu_hw_blk_reg_map *c = &mdp->hw; in dpu_hw_dp_phy_intf_sel()
292 struct dpu_hw_mdp *mdp; in dpu_hw_mdptop_init() local
297 mdp = drmm_kzalloc(dev, sizeof(*mdp), GFP_KERNEL); in dpu_hw_mdptop_init()
298 if (!mdp) in dpu_hw_mdptop_init()
301 mdp->hw.blk_addr = addr + cfg->base; in dpu_hw_mdptop_init()
302 mdp->hw.log_mask = DPU_DBG_MASK_TOP; in dpu_hw_mdptop_init()
307 mdp->caps = cfg; in dpu_hw_mdptop_init()
308 _setup_mdp_ops(&mdp->ops, mdp->caps->features, mdss_rev); in dpu_hw_mdptop_init()
310 return mdp; in dpu_hw_mdptop_init()