Lines Matching refs:abm
32 #define TO_DMUB_ABM(abm)\ argument
33 container_of(abm, struct dce_abm, base)
38 static unsigned int abm_feature_support(struct abm *abm, unsigned int panel_inst) in abm_feature_support() argument
40 struct dc_context *dc = abm->ctx; in abm_feature_support()
60 static void dmub_abm_init_ex(struct abm *abm, uint32_t backlight, uint32_t user_level) in dmub_abm_init_ex() argument
62 dmub_abm_init(abm, backlight, user_level); in dmub_abm_init_ex()
65 static unsigned int dmub_abm_get_current_backlight_ex(struct abm *abm) in dmub_abm_get_current_backlight_ex() argument
67 dc_allow_idle_optimizations(abm->ctx->dc, false); in dmub_abm_get_current_backlight_ex()
69 return dmub_abm_get_current_backlight(abm); in dmub_abm_get_current_backlight_ex()
72 static unsigned int dmub_abm_get_target_backlight_ex(struct abm *abm) in dmub_abm_get_target_backlight_ex() argument
74 dc_allow_idle_optimizations(abm->ctx->dc, false); in dmub_abm_get_target_backlight_ex()
76 return dmub_abm_get_target_backlight(abm); in dmub_abm_get_target_backlight_ex()
79 static bool dmub_abm_set_level_ex(struct abm *abm, uint32_t level) in dmub_abm_set_level_ex() argument
86 feature_support = abm_feature_support(abm, i); in dmub_abm_set_level_ex()
93 ret = dmub_abm_set_level(abm, level, panel_mask0); in dmub_abm_set_level_ex()
98 static bool dmub_abm_init_config_ex(struct abm *abm, in dmub_abm_init_config_ex() argument
105 feature_support = abm_feature_support(abm, inst); in dmub_abm_init_config_ex()
108 dmub_abm_init_config(abm, src, bytes, inst); in dmub_abm_init_config_ex()
113 static bool dmub_abm_set_pause_ex(struct abm *abm, bool pause, unsigned int panel_inst, unsigned in… in dmub_abm_set_pause_ex() argument
118 feature_support = abm_feature_support(abm, panel_inst); in dmub_abm_set_pause_ex()
121 ret = dmub_abm_set_pause(abm, pause, panel_inst, stream_inst); in dmub_abm_set_pause_ex()
136 struct abm *abm, in dmub_abm_save_restore_ex() argument
142 struct dc_context *dc = abm->ctx; in dmub_abm_save_restore_ex()
144 feature_support = abm_feature_support(abm, panel_inst); in dmub_abm_save_restore_ex()
152 static bool dmub_abm_set_pipe_ex(struct abm *abm, in dmub_abm_set_pipe_ex() argument
161 feature_support = abm_feature_support(abm, panel_inst); in dmub_abm_set_pipe_ex()
164 ret = dmub_abm_set_pipe(abm, otg_inst, option, panel_inst, pwrseq_inst); in dmub_abm_set_pipe_ex()
169 static bool dmub_abm_set_backlight_level_pwm_ex(struct abm *abm, in dmub_abm_set_backlight_level_pwm_ex() argument
178 feature_support = abm_feature_support(abm, panel_inst); in dmub_abm_set_backlight_level_pwm_ex()
181 ret = dmub_abm_set_backlight_level(abm, backlight_pwm_u16_16, frame_ramp, panel_inst); in dmub_abm_set_backlight_level_pwm_ex()
205 struct abm *base = &abm_dce->base; in dmub_abm_construct()
216 struct abm *dmub_abm_create( in dmub_abm_create()
237 void dmub_abm_destroy(struct abm **abm) in dmub_abm_destroy() argument
239 struct dce_abm *abm_dce = TO_DMUB_ABM(*abm); in dmub_abm_destroy()
242 *abm = NULL; in dmub_abm_destroy()