Lines Matching refs:mdp
53 static void dpu_hw_setup_split_pipe(struct dpu_hw_mdp *mdp, in dpu_hw_setup_split_pipe() argument
60 if (!mdp || !cfg) in dpu_hw_setup_split_pipe()
63 c = &mdp->hw; in dpu_hw_setup_split_pipe()
91 static bool dpu_hw_setup_clk_force_ctrl(struct dpu_hw_mdp *mdp, in dpu_hw_setup_clk_force_ctrl() argument
99 if (!mdp) in dpu_hw_setup_clk_force_ctrl()
102 c = &mdp->hw; in dpu_hw_setup_clk_force_ctrl()
107 reg_off = mdp->caps->clk_ctrls[clk_ctrl].reg_off; in dpu_hw_setup_clk_force_ctrl()
108 bit_off = mdp->caps->clk_ctrls[clk_ctrl].bit_off; in dpu_hw_setup_clk_force_ctrl()
125 static void dpu_hw_get_danger_status(struct dpu_hw_mdp *mdp, in dpu_hw_get_danger_status() argument
131 if (!mdp || !status) in dpu_hw_get_danger_status()
134 c = &mdp->hw; in dpu_hw_get_danger_status()
137 status->mdp = (value >> 0) & 0x3; in dpu_hw_get_danger_status()
154 static void dpu_hw_setup_vsync_source(struct dpu_hw_mdp *mdp, in dpu_hw_setup_vsync_source() argument
161 if (!mdp || !cfg || (cfg->pp_count > ARRAY_SIZE(cfg->ppnumber))) in dpu_hw_setup_vsync_source()
164 c = &mdp->hw; in dpu_hw_setup_vsync_source()
222 static void dpu_hw_get_safe_status(struct dpu_hw_mdp *mdp, in dpu_hw_get_safe_status() argument
228 if (!mdp || !status) in dpu_hw_get_safe_status()
231 c = &mdp->hw; in dpu_hw_get_safe_status()
234 status->mdp = (value >> 0) & 0x1; in dpu_hw_get_safe_status()
251 static void dpu_hw_intf_audio_select(struct dpu_hw_mdp *mdp) in dpu_hw_intf_audio_select() argument
255 if (!mdp) in dpu_hw_intf_audio_select()
258 c = &mdp->hw; in dpu_hw_intf_audio_select()
276 static const struct dpu_mdp_cfg *_top_offset(enum dpu_mdp mdp, in _top_offset() argument
287 if (mdp == m->mdp[i].id) { in _top_offset()
288 b->blk_addr = addr + m->mdp[i].base; in _top_offset()
290 return &m->mdp[i]; in _top_offset()
301 struct dpu_hw_mdp *mdp; in dpu_hw_mdptop_init() local
307 mdp = kzalloc(sizeof(*mdp), GFP_KERNEL); in dpu_hw_mdptop_init()
308 if (!mdp) in dpu_hw_mdptop_init()
311 cfg = _top_offset(idx, m, addr, &mdp->hw); in dpu_hw_mdptop_init()
313 kfree(mdp); in dpu_hw_mdptop_init()
320 mdp->idx = idx; in dpu_hw_mdptop_init()
321 mdp->caps = cfg; in dpu_hw_mdptop_init()
322 _setup_mdp_ops(&mdp->ops, mdp->caps->features); in dpu_hw_mdptop_init()
324 return mdp; in dpu_hw_mdptop_init()
327 void dpu_hw_mdp_destroy(struct dpu_hw_mdp *mdp) in dpu_hw_mdp_destroy() argument
329 kfree(mdp); in dpu_hw_mdp_destroy()