Lines Matching refs:cmd
62 union dmub_rb_cmd cmd; in dmub_abm_enable_fractional_pwm() local
71 memset(&cmd, 0, sizeof(cmd)); in dmub_abm_enable_fractional_pwm()
72 cmd.abm_set_pwm_frac.header.type = DMUB_CMD__ABM; in dmub_abm_enable_fractional_pwm()
73 cmd.abm_set_pwm_frac.header.sub_type = DMUB_CMD__ABM_SET_PWM_FRAC; in dmub_abm_enable_fractional_pwm()
74 cmd.abm_set_pwm_frac.abm_set_pwm_frac_data.fractional_pwm = fractional_pwm; in dmub_abm_enable_fractional_pwm()
75 cmd.abm_set_pwm_frac.abm_set_pwm_frac_data.version = DMUB_CMD_ABM_CONTROL_VERSION_1; in dmub_abm_enable_fractional_pwm()
76 cmd.abm_set_pwm_frac.abm_set_pwm_frac_data.panel_mask = panel_mask; in dmub_abm_enable_fractional_pwm()
77 cmd.abm_set_pwm_frac.header.payload_bytes = sizeof(struct dmub_cmd_abm_set_pwm_frac_data); in dmub_abm_enable_fractional_pwm()
79 dm_execute_dmub_cmd(dc, &cmd, DM_DMUB_WAIT_TYPE_WAIT); in dmub_abm_enable_fractional_pwm()
147 union dmub_rb_cmd cmd; in dmub_abm_set_level() local
150 memset(&cmd, 0, sizeof(cmd)); in dmub_abm_set_level()
151 cmd.abm_set_level.header.type = DMUB_CMD__ABM; in dmub_abm_set_level()
152 cmd.abm_set_level.header.sub_type = DMUB_CMD__ABM_SET_LEVEL; in dmub_abm_set_level()
153 cmd.abm_set_level.abm_set_level_data.level = level; in dmub_abm_set_level()
154 cmd.abm_set_level.abm_set_level_data.version = DMUB_CMD_ABM_CONTROL_VERSION_1; in dmub_abm_set_level()
155 cmd.abm_set_level.abm_set_level_data.panel_mask = panel_mask; in dmub_abm_set_level()
156 cmd.abm_set_level.header.payload_bytes = sizeof(struct dmub_cmd_abm_set_level_data); in dmub_abm_set_level()
158 dm_execute_dmub_cmd(dc, &cmd, DM_DMUB_WAIT_TYPE_WAIT); in dmub_abm_set_level()
168 union dmub_rb_cmd cmd; in dmub_abm_init_config() local
178 memset(&cmd, 0, sizeof(cmd)); in dmub_abm_init_config()
180 cmd.abm_init_config.header.type = DMUB_CMD__ABM; in dmub_abm_init_config()
181 cmd.abm_init_config.header.sub_type = DMUB_CMD__ABM_INIT_CONFIG; in dmub_abm_init_config()
182 …cmd.abm_init_config.abm_init_config_data.src.quad_part = dc->dmub_srv->dmub->scratch_mem_fb.gpu_ad… in dmub_abm_init_config()
183 cmd.abm_init_config.abm_init_config_data.bytes = bytes; in dmub_abm_init_config()
184 cmd.abm_init_config.abm_init_config_data.version = DMUB_CMD_ABM_CONTROL_VERSION_1; in dmub_abm_init_config()
185 cmd.abm_init_config.abm_init_config_data.panel_mask = panel_mask; in dmub_abm_init_config()
187 cmd.abm_init_config.header.payload_bytes = sizeof(struct dmub_cmd_abm_init_config_data); in dmub_abm_init_config()
189 dm_execute_dmub_cmd(dc, &cmd, DM_DMUB_WAIT_TYPE_WAIT); in dmub_abm_init_config()
195 union dmub_rb_cmd cmd; in dmub_abm_set_pause() local
199 memset(&cmd, 0, sizeof(cmd)); in dmub_abm_set_pause()
200 cmd.abm_pause.header.type = DMUB_CMD__ABM; in dmub_abm_set_pause()
201 cmd.abm_pause.header.sub_type = DMUB_CMD__ABM_PAUSE; in dmub_abm_set_pause()
202 cmd.abm_pause.abm_pause_data.enable = pause; in dmub_abm_set_pause()
203 cmd.abm_pause.abm_pause_data.panel_mask = panel_mask; in dmub_abm_set_pause()
204 cmd.abm_set_level.header.payload_bytes = sizeof(struct dmub_cmd_abm_pause_data); in dmub_abm_set_pause()
206 dm_execute_dmub_cmd(dc, &cmd, DM_DMUB_WAIT_TYPE_WAIT); in dmub_abm_set_pause()
228 union dmub_rb_cmd cmd; in dmub_abm_save_restore() local
238 memset(&cmd, 0, sizeof(cmd)); in dmub_abm_save_restore()
239 cmd.abm_save_restore.header.type = DMUB_CMD__ABM; in dmub_abm_save_restore()
240 cmd.abm_save_restore.header.sub_type = DMUB_CMD__ABM_SAVE_RESTORE; in dmub_abm_save_restore()
242 …cmd.abm_save_restore.abm_init_config_data.src.quad_part = dc->dmub_srv->dmub->scratch_mem_fb.gpu_a… in dmub_abm_save_restore()
243 cmd.abm_save_restore.abm_init_config_data.bytes = bytes; in dmub_abm_save_restore()
244 cmd.abm_save_restore.abm_init_config_data.version = DMUB_CMD_ABM_CONTROL_VERSION_1; in dmub_abm_save_restore()
245 cmd.abm_save_restore.abm_init_config_data.panel_mask = panel_mask; in dmub_abm_save_restore()
247 cmd.abm_save_restore.header.payload_bytes = sizeof(struct dmub_rb_cmd_abm_save_restore); in dmub_abm_save_restore()
249 dm_execute_dmub_cmd(dc, &cmd, DM_DMUB_WAIT_TYPE_WAIT); in dmub_abm_save_restore()
263 union dmub_rb_cmd cmd; in dmub_abm_set_pipe() local
267 memset(&cmd, 0, sizeof(cmd)); in dmub_abm_set_pipe()
268 cmd.abm_set_pipe.header.type = DMUB_CMD__ABM; in dmub_abm_set_pipe()
269 cmd.abm_set_pipe.header.sub_type = DMUB_CMD__ABM_SET_PIPE; in dmub_abm_set_pipe()
270 cmd.abm_set_pipe.abm_set_pipe_data.otg_inst = otg_inst; in dmub_abm_set_pipe()
271 cmd.abm_set_pipe.abm_set_pipe_data.pwrseq_inst = pwrseq_inst; in dmub_abm_set_pipe()
272 cmd.abm_set_pipe.abm_set_pipe_data.set_pipe_option = option; in dmub_abm_set_pipe()
273 cmd.abm_set_pipe.abm_set_pipe_data.panel_inst = panel_inst; in dmub_abm_set_pipe()
274 cmd.abm_set_pipe.abm_set_pipe_data.ramping_boundary = ramping_boundary; in dmub_abm_set_pipe()
275 cmd.abm_set_pipe.header.payload_bytes = sizeof(struct dmub_cmd_abm_set_pipe_data); in dmub_abm_set_pipe()
277 dm_execute_dmub_cmd(dc, &cmd, DM_DMUB_WAIT_TYPE_WAIT); in dmub_abm_set_pipe()
287 union dmub_rb_cmd cmd; in dmub_abm_set_backlight_level() local
290 memset(&cmd, 0, sizeof(cmd)); in dmub_abm_set_backlight_level()
291 cmd.abm_set_backlight.header.type = DMUB_CMD__ABM; in dmub_abm_set_backlight_level()
292 cmd.abm_set_backlight.header.sub_type = DMUB_CMD__ABM_SET_BACKLIGHT; in dmub_abm_set_backlight_level()
293 cmd.abm_set_backlight.abm_set_backlight_data.frame_ramp = frame_ramp; in dmub_abm_set_backlight_level()
294 cmd.abm_set_backlight.abm_set_backlight_data.backlight_user_level = backlight_pwm_u16_16; in dmub_abm_set_backlight_level()
295 cmd.abm_set_backlight.abm_set_backlight_data.version = DMUB_CMD_ABM_CONTROL_VERSION_1; in dmub_abm_set_backlight_level()
296 cmd.abm_set_backlight.abm_set_backlight_data.panel_mask = (0x01 << panel_inst); in dmub_abm_set_backlight_level()
297 cmd.abm_set_backlight.header.payload_bytes = sizeof(struct dmub_cmd_abm_set_backlight_data); in dmub_abm_set_backlight_level()
299 dm_execute_dmub_cmd(dc, &cmd, DM_DMUB_WAIT_TYPE_WAIT); in dmub_abm_set_backlight_level()