Lines Matching refs:dsc
32 static void dsc_log_pps(struct display_stream_compressor *dsc, struct drm_dsc_config *pps);
37 static void dsc_write_to_registers(struct display_stream_compressor *dsc, const struct dsc_reg_valu…
43 static void dsc2_read_state(struct display_stream_compressor *dsc, struct dcn_dsc_state *s);
44 static bool dsc2_validate_stream(struct display_stream_compressor *dsc, const struct dsc_config *ds…
45 static void dsc2_set_config(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg,
47 static bool dsc2_get_packed_pps(struct display_stream_compressor *dsc, const struct dsc_config *dsc…
48 static void dsc2_enable(struct display_stream_compressor *dsc, int opp_pipe);
49 static void dsc2_disable(struct display_stream_compressor *dsc);
50 static void dsc2_disconnect(struct display_stream_compressor *dsc);
74 dsc->ctx->logger
85 void dsc2_construct(struct dcn20_dsc *dsc, in dsc2_construct() argument
92 dsc->base.ctx = ctx; in dsc2_construct()
93 dsc->base.inst = inst; in dsc2_construct()
94 dsc->base.funcs = &dcn20_dsc_funcs; in dsc2_construct()
96 dsc->dsc_regs = dsc_regs; in dsc2_construct()
97 dsc->dsc_shift = dsc_shift; in dsc2_construct()
98 dsc->dsc_mask = dsc_mask; in dsc2_construct()
100 dsc->max_image_width = 5184; in dsc2_construct()
157 static void dsc2_read_state(struct display_stream_compressor *dsc, struct dcn_dsc_state *s) in dsc2_read_state() argument
159 struct dcn20_dsc *dsc20 = TO_DCN20_DSC(dsc); in dsc2_read_state()
174 static bool dsc2_validate_stream(struct display_stream_compressor *dsc, const struct dsc_config *ds… in dsc2_validate_stream() argument
177 struct dcn20_dsc *dsc20 = TO_DCN20_DSC(dsc); in dsc2_validate_stream()
186 static void dsc_config_log(struct display_stream_compressor *dsc, const struct dsc_config *config) in dsc_config_log() argument
197 static void dsc2_set_config(struct display_stream_compressor *dsc, const struct dsc_config *dsc_cfg, in dsc2_set_config() argument
201 struct dcn20_dsc *dsc20 = TO_DCN20_DSC(dsc); in dsc2_set_config()
204 DC_LOG_DSC("Setting DSC Config at DSC inst %d", dsc->inst); in dsc2_set_config()
205 dsc_config_log(dsc, dsc_cfg); in dsc2_set_config()
209 dsc_log_pps(dsc, &dsc20->reg_vals.pps); in dsc2_set_config()
210 dsc_write_to_registers(dsc, &dsc20->reg_vals); in dsc2_set_config()
214 static bool dsc2_get_packed_pps(struct display_stream_compressor *dsc, const struct dsc_config *dsc… in dsc2_get_packed_pps() argument
224 dsc_config_log(dsc, dsc_cfg); in dsc2_get_packed_pps()
229 dsc_log_pps(dsc, &dsc_reg_vals.pps); in dsc2_get_packed_pps()
235 static void dsc2_enable(struct display_stream_compressor *dsc, int opp_pipe) in dsc2_enable() argument
237 struct dcn20_dsc *dsc20 = TO_DCN20_DSC(dsc); in dsc2_enable()
242 DC_LOG_DSC("enable DSC %d at opp pipe %d", dsc->inst, opp_pipe); in dsc2_enable()
247 DC_LOG_DSC("ERROR: DSC %d at opp pipe %d already enabled!", dsc->inst, enabled_opp_pipe); in dsc2_enable()
260 static void dsc2_disable(struct display_stream_compressor *dsc) in dsc2_disable() argument
262 struct dcn20_dsc *dsc20 = TO_DCN20_DSC(dsc); in dsc2_disable()
267 DC_LOG_DSC("disable DSC %d", dsc->inst); in dsc2_disable()
272 DC_LOG_DSC("ERROR: DSC %d at opp pipe %d already disabled!", dsc->inst, enabled_opp_pipe); in dsc2_disable()
283 static void dsc2_disconnect(struct display_stream_compressor *dsc) in dsc2_disconnect() argument
285 struct dcn20_dsc *dsc20 = TO_DCN20_DSC(dsc); in dsc2_disconnect()
287 DC_LOG_DSC("disconnect DSC %d", dsc->inst); in dsc2_disconnect()
294 static void dsc_log_pps(struct display_stream_compressor *dsc, struct drm_dsc_config *pps) in dsc_log_pps() argument
557 static void dsc_write_to_registers(struct display_stream_compressor *dsc, const struct dsc_reg_valu… in dsc_write_to_registers() argument
560 struct dcn20_dsc *dsc20 = TO_DCN20_DSC(dsc); in dsc_write_to_registers()