/linux/drivers/gpu/drm/amd/display/dc/dce/ |
H A D | dmub_replay.c | 23 … void dmub_replay_get_state(struct dmub_replay *dmub, enum replay_state *state, uint8_t panel_inst) in dmub_replay_get_state() argument 29 if (!dc_wake_and_execute_gpint(dmub->ctx, DMUB_GPINT__GET_REPLAY_STATE, panel_inst, in dmub_replay_get_state() 46 static void dmub_replay_enable(struct dmub_replay *dmub, bool enable, bool wait, uint8_t panel_inst) in dmub_replay_enable() argument 55 cmd.replay_enable.data.panel_inst = panel_inst; in dmub_replay_enable() 73 dmub_replay_get_state(dmub, &state, panel_inst); in dmub_replay_enable() 96 …oid dmub_replay_set_power_opt(struct dmub_replay *dmub, unsigned int power_opt, uint8_t panel_inst) in dmub_replay_set_power_opt() argument 106 cmd.replay_set_power_opt.replay_set_power_opt_data.panel_inst = panel_inst; in dmub_replay_set_power_opt() 117 uint8_t panel_inst) in dmub_replay_copy_settings() argument 165 copy_settings_data->panel_inst = panel_inst; in dmub_replay_copy_settings() 202 uint8_t panel_inst) in dmub_replay_set_coasting_vtotal() argument [all …]
|
H A D | dmub_abm.c | 38 static unsigned int abm_feature_support(struct abm *abm, unsigned int panel_inst) in abm_feature_support() argument 49 if (panel_inst == i) in abm_feature_support() 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() 137 unsigned int panel_inst, in dmub_abm_save_restore_ex() argument 144 feature_support = abm_feature_support(abm, panel_inst); in dmub_abm_save_restore_ex() 147 ret = dmub_abm_save_restore(dc, panel_inst, pData); in dmub_abm_save_restore_ex() 155 uint32_t panel_inst, in dmub_abm_set_pipe_ex() argument 161 feature_support = abm_feature_support(abm, panel_inst); in dmub_abm_set_pipe_ex() [all …]
|
H A D | dmub_psr.c | 108 static void dmub_psr_get_state(struct dmub_psr *dmub, enum dc_psr_state *state, uint8_t panel_inst) in dmub_psr_get_state() argument 115 if (dc_wake_and_execute_gpint(dmub->ctx, DMUB_GPINT__GET_PSR_STATE, panel_inst, &raw_state, in dmub_psr_get_state() 140 …ool dmub_psr_set_version(struct dmub_psr *dmub, struct dc_stream_state *stream, uint8_t panel_inst) in dmub_psr_set_version() argument 168 cmd.psr_set_version.psr_set_version_data.panel_inst = panel_inst; in dmub_psr_set_version() 179 static void dmub_psr_enable(struct dmub_psr *dmub, bool enable, bool wait, uint8_t panel_inst) in dmub_psr_enable() argument 190 cmd.psr_enable.data.panel_inst = panel_inst; in dmub_psr_enable() 207 dmub_psr_get_state(dmub, &state, panel_inst); in dmub_psr_enable() 230 static void dmub_psr_set_level(struct dmub_psr *dmub, uint16_t psr_level, uint8_t panel_inst) in dmub_psr_set_level() argument 236 dmub_psr_get_state(dmub, &state, panel_inst); in dmub_psr_set_level() 247 cmd.psr_set_level.psr_set_level_data.panel_inst = panel_inst; in dmub_psr_set_level() [all …]
|
H A D | dmub_psr.h | 41 struct psr_context *psr_context, uint8_t panel_inst); 43 uint8_t panel_inst); 45 uint8_t panel_inst); 47 uint8_t panel_inst); 48 void (*psr_force_static)(struct dmub_psr *dmub, uint8_t panel_inst); 50 uint8_t panel_inst, enum psr_residency_mode mode); 53 void (*psr_set_power_opt)(struct dmub_psr *dmub, unsigned int power_opt, uint8_t panel_inst);
|
H A D | dmub_replay.h | 20 uint8_t panel_inst); 22 uint8_t panel_inst); 24 struct replay_context *replay_context, uint8_t panel_inst); 26 uint8_t panel_inst); 30 uint8_t panel_inst); 32 uint8_t panel_inst, uint32_t *residency, const bool is_start, const enum pr_residency_mode mode); 34 unsigned int power_opt, uint8_t panel_inst, uint32_t coasting_vtotal);
|
H A D | dmub_abm_lcd.h | 42 bool dmub_abm_set_pause(struct abm *abm, bool pause, unsigned int panel_inst, unsigned int stream_i… 45 unsigned int panel_inst, 47 bool dmub_abm_set_pipe(struct abm *abm, uint32_t otg_inst, uint32_t option, uint32_t panel_inst, ui… 51 unsigned int panel_inst); 53 unsigned int panel_inst);
|
H A D | dmub_abm_lcd.c | 189 bool dmub_abm_set_pause(struct abm *abm, bool pause, unsigned int panel_inst, unsigned int stream_i… in dmub_abm_set_pause() argument 193 uint8_t panel_mask = 0x01 << panel_inst; in dmub_abm_set_pause() 221 unsigned int panel_inst, in dmub_abm_save_restore() argument 225 uint8_t panel_mask = 0x01 << panel_inst; in dmub_abm_save_restore() 256 uint32_t panel_inst, in dmub_abm_set_pipe() argument 269 cmd.abm_set_pipe.abm_set_pipe_data.panel_inst = panel_inst; in dmub_abm_set_pipe() 281 unsigned int panel_inst) in dmub_abm_set_backlight_level() argument 292 cmd.abm_set_backlight.abm_set_backlight_data.panel_mask = (0x01 << panel_inst); in dmub_abm_set_backlight_level() 301 unsigned int panel_inst) in dmub_abm_set_event() argument 311 cmd.abm_set_event.abm_set_event_data.panel_mask = (1<<panel_inst); in dmub_abm_set_event()
|
H A D | dce_abm.c | 58 static bool dce_abm_set_pipe(struct abm *abm, uint32_t controller_id, uint32_t panel_inst) in dce_abm_set_pipe() argument 220 static bool dce_abm_immediate_disable(struct abm *abm, uint32_t panel_inst) in dce_abm_immediate_disable() argument 225 dce_abm_set_pipe(abm, MCP_DISABLE_ABM_IMMEDIATELY, panel_inst); in dce_abm_immediate_disable() 235 unsigned int panel_inst) in dce_abm_set_backlight_level_pwm() argument 246 panel_inst); in dce_abm_set_backlight_level_pwm()
|
/linux/drivers/gpu/drm/amd/display/dc/inc/hw/ |
H A D | abm.h | 41 bool (*set_abm_immediate_disable)(struct abm *abm, unsigned int panel_inst); 42 bool (*set_pipe)(struct abm *abm, unsigned int controller_id, unsigned int panel_inst); 51 unsigned int panel_inst); 59 bool (*set_abm_pause)(struct abm *abm, bool pause, unsigned int panel_inst, unsigned int otg_inst); 62 unsigned int panel_inst, 67 unsigned int panel_inst,
|
/linux/drivers/gpu/drm/amd/display/dc/link/protocols/ |
H A D | link_edp_panel_control.c | 562 unsigned int panel_inst; in edp_set_psr_allow_active() local 567 if (!dc_get_edp_link_panel_inst(dc, link, &panel_inst)) in edp_set_psr_allow_active() 580 psr->funcs->psr_set_power_opt(psr, link->psr_settings.psr_power_opt, panel_inst); in edp_set_psr_allow_active() 585 psr->funcs->psr_force_static(psr, panel_inst); in edp_set_psr_allow_active() 595 psr->funcs->psr_enable(psr, link->psr_settings.psr_allow_active, wait, panel_inst); in edp_set_psr_allow_active() 610 unsigned int panel_inst; in edp_get_psr_state() local 612 if (!dc_get_edp_link_panel_inst(dc, link, &panel_inst)) in edp_get_psr_state() 616 psr->funcs->psr_get_state(psr, state, panel_inst); in edp_get_psr_state() 668 unsigned int panel_inst; in edp_setup_psr() local 685 if (!dc_get_edp_link_panel_inst(dc, link, &panel_inst)) in edp_setup_psr() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/ |
H A D | clk_mgr.c | 101 unsigned int panel_inst; in clk_mgr_exit_optimized_pwr_state() local 108 for (panel_inst = 0; panel_inst < edp_num; panel_inst++) { in clk_mgr_exit_optimized_pwr_state() 111 edp_link = edp_links[panel_inst]; in clk_mgr_exit_optimized_pwr_state() 127 unsigned int panel_inst; in clk_mgr_optimize_pwr_state() local 131 for (panel_inst = 0; panel_inst < edp_num; panel_inst++) { in clk_mgr_optimize_pwr_state() 132 edp_link = edp_links[panel_inst]; in clk_mgr_optimize_pwr_state()
|
/linux/drivers/gpu/drm/amd/display/dmub/inc/ |
H A D | dmub_cmd.h | 508 uint16_t panel_inst; member 2983 uint8_t panel_inst; member 3041 uint8_t panel_inst; member 3068 uint8_t panel_inst; member 3112 uint8_t panel_inst; member 3143 uint8_t panel_inst; member 3218 uint8_t panel_inst; member 3356 uint8_t panel_inst; member 3403 uint8_t panel_inst; member 3441 uint8_t panel_inst; member [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/ |
H A D | dc_dmub_srv.c | 520 unsigned int panel_inst = 0; in dc_dmub_srv_get_visual_confirm_color_cmd() local 522 if (!dc_get_edp_link_panel_inst(dc, pipe_ctx->stream->link, &panel_inst) && in dc_dmub_srv_get_visual_confirm_color_cmd() 533 cmd.visual_confirm_color.visual_confirm_color_data.visual_confirm_color.panel_inst = panel_inst; in dc_dmub_srv_get_visual_confirm_color_cmd() 1064 unsigned int panel_inst = 0; in dc_build_cursor_update_payload0() local 1067 pipe_ctx->stream->link, &panel_inst)) in dc_build_cursor_update_payload0() 1082 payload->panel_inst = panel_inst; in dc_build_cursor_update_payload0()
|
/linux/drivers/gpu/drm/amd/display/dc/hwss/dcn31/ |
H A D | dcn31_hwseq.c | 647 struct set_backlight_level_params *backlight_level_params, uint32_t panel_inst) in dmub_abm_set_backlight() argument 663 cmd.abm_set_backlight.abm_set_backlight_data.panel_mask = (0x01 << panel_inst); in dmub_abm_set_backlight()
|