Lines Matching refs:pp

45 static void dpu_hw_pp_setup_dither(struct dpu_hw_pingpong *pp,  in dpu_hw_pp_setup_dither()  argument
51 c = &pp->hw; in dpu_hw_pp_setup_dither()
52 base = pp->caps->sblk->dither.base; in dpu_hw_pp_setup_dither()
76 static int dpu_hw_pp_enable_te(struct dpu_hw_pingpong *pp, in dpu_hw_pp_enable_te() argument
82 if (!pp || !te) in dpu_hw_pp_enable_te()
84 c = &pp->hw; in dpu_hw_pp_enable_te()
108 static void dpu_hw_pp_setup_autorefresh_config(struct dpu_hw_pingpong *pp, in dpu_hw_pp_setup_autorefresh_config() argument
111 DPU_REG_WRITE(&pp->hw, PP_AUTOREFRESH_CONFIG, in dpu_hw_pp_setup_autorefresh_config()
122 static bool dpu_hw_pp_get_autorefresh_config(struct dpu_hw_pingpong *pp, in dpu_hw_pp_get_autorefresh_config() argument
125 u32 val = DPU_REG_READ(&pp->hw, PP_AUTOREFRESH_CONFIG); in dpu_hw_pp_get_autorefresh_config()
131 static int dpu_hw_pp_disable_te(struct dpu_hw_pingpong *pp) in dpu_hw_pp_disable_te() argument
135 if (!pp) in dpu_hw_pp_disable_te()
137 c = &pp->hw; in dpu_hw_pp_disable_te()
143 static int dpu_hw_pp_connect_external_te(struct dpu_hw_pingpong *pp, in dpu_hw_pp_connect_external_te() argument
146 struct dpu_hw_blk_reg_map *c = &pp->hw; in dpu_hw_pp_connect_external_te()
150 if (!pp) in dpu_hw_pp_connect_external_te()
153 c = &pp->hw; in dpu_hw_pp_connect_external_te()
161 trace_dpu_pp_connect_ext_te(pp->idx - PINGPONG_0, cfg); in dpu_hw_pp_connect_external_te()
166 static int dpu_hw_pp_get_vsync_info(struct dpu_hw_pingpong *pp, in dpu_hw_pp_get_vsync_info() argument
172 if (!pp || !info) in dpu_hw_pp_get_vsync_info()
174 c = &pp->hw; in dpu_hw_pp_get_vsync_info()
189 static u32 dpu_hw_pp_get_line_count(struct dpu_hw_pingpong *pp) in dpu_hw_pp_get_line_count() argument
191 struct dpu_hw_blk_reg_map *c = &pp->hw; in dpu_hw_pp_get_line_count()
195 if (!pp) in dpu_hw_pp_get_line_count()
197 c = &pp->hw; in dpu_hw_pp_get_line_count()
215 static void dpu_hw_pp_disable_autorefresh(struct dpu_hw_pingpong *pp, in dpu_hw_pp_disable_autorefresh() argument
222 if (!dpu_hw_pp_get_autorefresh_config(pp, NULL)) in dpu_hw_pp_disable_autorefresh()
234 dpu_hw_pp_connect_external_te(pp, false); in dpu_hw_pp_disable_autorefresh()
235 dpu_hw_pp_setup_autorefresh_config(pp, 0, false); in dpu_hw_pp_disable_autorefresh()
242 encoder_id, pp->idx - PINGPONG_0); in dpu_hw_pp_disable_autorefresh()
248 dpu_hw_pp_get_vsync_info(pp, &info); in dpu_hw_pp_disable_autorefresh()
252 dpu_hw_pp_connect_external_te(pp, true); in dpu_hw_pp_disable_autorefresh()
255 encoder_id, pp->idx - PINGPONG_0); in dpu_hw_pp_disable_autorefresh()
258 static int dpu_hw_pp_dsc_enable(struct dpu_hw_pingpong *pp) in dpu_hw_pp_dsc_enable() argument
260 struct dpu_hw_blk_reg_map *c = &pp->hw; in dpu_hw_pp_dsc_enable()
266 static void dpu_hw_pp_dsc_disable(struct dpu_hw_pingpong *pp) in dpu_hw_pp_dsc_disable() argument
268 struct dpu_hw_blk_reg_map *c = &pp->hw; in dpu_hw_pp_dsc_disable()
273 static int dpu_hw_pp_setup_dsc(struct dpu_hw_pingpong *pp) in dpu_hw_pp_setup_dsc() argument
275 struct dpu_hw_blk_reg_map *pp_c = &pp->hw; in dpu_hw_pp_setup_dsc()
324 void dpu_hw_pingpong_destroy(struct dpu_hw_pingpong *pp) in dpu_hw_pingpong_destroy() argument
326 kfree(pp); in dpu_hw_pingpong_destroy()