Home
last modified time | relevance | path

Searched refs:dmub (Results 1 – 25 of 32) sorted by relevance

12

/linux-6.3-rc2/drivers/gpu/drm/amd/display/dmub/src/
A Ddmub_srv.c314 dmub_memset(dmub, 0, sizeof(*dmub)); in dmub_srv_create()
361 dmub_memset(dmub, 0, sizeof(*dmub)); in dmub_srv_destroy()
533 dmub->hw_funcs.reset(dmub); in dmub_srv_hw_init()
640 dmub->hw_funcs.reset_release(dmub); in dmub_srv_hw_init()
653 dmub->hw_funcs.reset(dmub); in dmub_srv_hw_reset()
697 dmub->hw_funcs.set_inbox1_wptr(dmub, dmub->inbox1_rb.wrpt); in dmub_srv_cmd_execute()
736 if (dmub->hw_funcs.is_phy_init(dmub)) in dmub_srv_wait_for_phy_init()
791 dmub->hw_funcs.set_gpint(dmub, reg); in dmub_srv_send_gpint_command()
903 dmub->outbox0_rb.wrpt = dmub->hw_funcs.get_outbox0_wptr(dmub); in dmub_srv_get_outbox0_msg()
921 return dmub->hw_funcs.should_detect(dmub); in dmub_srv_should_detect()
[all …]
A Ddmub_dcn20.c36 #define CTX dmub
37 #define REGS dmub->regs
66 if (dmub->fb_base || dmub->fb_offset) { in dmub_dcn20_get_fb_base_offset()
67 *fb_base = dmub->fb_base; in dmub_dcn20_get_fb_base_offset()
68 *fb_offset = dmub->fb_offset; in dmub_dcn20_get_fb_base_offset()
107 dmub->hw_funcs.set_gpint(dmub, cmd); in dmub_dcn20_reset()
119 if (dmub->hw_funcs.is_gpint_acked(dmub, cmd)) in dmub_dcn20_reset()
124 scratch = dmub->hw_funcs.get_gpint_response(dmub); in dmub_dcn20_reset()
131 dmub->hw_funcs.set_gpint(dmub, cmd); in dmub_dcn20_reset()
277 if (dmub_dcn20_use_cached_inbox(dmub)) in dmub_dcn20_setup_mailbox()
[all …]
A Ddmub_dcn32.c36 #define CTX dmub
37 #define REGS dmub->regs_dcn32
63 if (dmub->fb_base || dmub->fb_offset) { in dmub_dcn32_get_fb_base_offset()
64 *fb_base = dmub->fb_base; in dmub_dcn32_get_fb_base_offset()
65 *fb_offset = dmub->fb_offset; in dmub_dcn32_get_fb_base_offset()
84 void dmub_dcn32_reset(struct dmub_srv *dmub) in dmub_dcn32_reset() argument
97 dmub->hw_funcs.set_gpint(dmub, cmd); in dmub_dcn32_reset()
109 if (dmub->hw_funcs.is_gpint_acked(dmub, cmd)) in dmub_dcn32_reset()
114 scratch = dmub->hw_funcs.get_gpint_response(dmub); in dmub_dcn32_reset()
121 dmub->hw_funcs.set_gpint(dmub, cmd); in dmub_dcn32_reset()
[all …]
A Ddmub_dcn31.c35 #define CTX dmub
36 #define REGS dmub->regs_dcn31
62 if (dmub->fb_base || dmub->fb_offset) { in dmub_dcn31_get_fb_base_offset()
63 *fb_base = dmub->fb_base; in dmub_dcn31_get_fb_base_offset()
64 *fb_offset = dmub->fb_offset; in dmub_dcn31_get_fb_base_offset()
83 void dmub_dcn31_reset(struct dmub_srv *dmub) in dmub_dcn31_reset() argument
96 dmub->hw_funcs.set_gpint(dmub, cmd); in dmub_dcn31_reset()
104 if (dmub->hw_funcs.is_gpint_acked(dmub, cmd)) in dmub_dcn31_reset()
111 scratch = dmub->hw_funcs.get_gpint_response(dmub); in dmub_dcn31_reset()
141 dmub->hw_funcs.set_gpint(dmub, cmd); in dmub_dcn31_reset()
[all …]
A Ddmub_dcn32.h187 void dmub_dcn32_reset(struct dmub_srv *dmub);
189 void dmub_dcn32_reset_release(struct dmub_srv *dmub);
191 void dmub_dcn32_backdoor_load(struct dmub_srv *dmub,
199 void dmub_dcn32_setup_windows(struct dmub_srv *dmub,
206 void dmub_dcn32_setup_mailbox(struct dmub_srv *dmub,
213 void dmub_dcn32_setup_out_mailbox(struct dmub_srv *dmub,
220 bool dmub_dcn32_is_hw_init(struct dmub_srv *dmub);
222 bool dmub_dcn32_is_supported(struct dmub_srv *dmub);
224 void dmub_dcn32_set_gpint(struct dmub_srv *dmub,
227 bool dmub_dcn32_is_gpint_acked(struct dmub_srv *dmub,
[all …]
A Ddmub_dcn20.h185 void dmub_dcn20_init(struct dmub_srv *dmub);
187 void dmub_dcn20_reset(struct dmub_srv *dmub);
189 void dmub_dcn20_reset_release(struct dmub_srv *dmub);
191 void dmub_dcn20_backdoor_load(struct dmub_srv *dmub,
195 void dmub_dcn20_setup_windows(struct dmub_srv *dmub,
202 void dmub_dcn20_setup_mailbox(struct dmub_srv *dmub,
216 void dmub_dcn20_setup_outbox0(struct dmub_srv *dmub,
223 bool dmub_dcn20_is_hw_init(struct dmub_srv *dmub);
225 bool dmub_dcn20_is_supported(struct dmub_srv *dmub);
227 void dmub_dcn20_set_gpint(struct dmub_srv *dmub,
[all …]
A Ddmub_dcn31.h187 void dmub_dcn31_init(struct dmub_srv *dmub);
189 void dmub_dcn31_reset(struct dmub_srv *dmub);
191 void dmub_dcn31_reset_release(struct dmub_srv *dmub);
193 void dmub_dcn31_backdoor_load(struct dmub_srv *dmub,
197 void dmub_dcn31_setup_windows(struct dmub_srv *dmub,
204 void dmub_dcn31_setup_mailbox(struct dmub_srv *dmub,
218 bool dmub_dcn31_is_hw_init(struct dmub_srv *dmub);
220 bool dmub_dcn31_is_supported(struct dmub_srv *dmub);
222 void dmub_dcn31_set_gpint(struct dmub_srv *dmub,
225 bool dmub_dcn31_is_gpint_acked(struct dmub_srv *dmub,
[all …]
A Ddmub_srv_stat.c46 enum dmub_status dmub_srv_stat_get_notification(struct dmub_srv *dmub, in dmub_srv_stat_get_notification() argument
56 if (!dmub->hw_init) { in dmub_srv_stat_get_notification()
63 dmub->outbox1_rb.wrpt = dmub->hw_funcs.get_outbox1_wptr(dmub); in dmub_srv_stat_get_notification()
65 if (!dmub_rb_out_front(&dmub->outbox1_rb, &cmd)) { in dmub_srv_stat_get_notification()
122 dmub_rb_pop_front(&dmub->outbox1_rb); in dmub_srv_stat_get_notification()
123 dmub->hw_funcs.set_outbox1_rptr(dmub, dmub->outbox1_rb.rptr); in dmub_srv_stat_get_notification()
129 if (dmub_rb_empty(&dmub->outbox1_rb)) in dmub_srv_stat_get_notification()
A Ddmub_dcn30.c36 #define CTX dmub
37 #define REGS dmub->regs
60 static void dmub_dcn30_get_fb_base_offset(struct dmub_srv *dmub, in dmub_dcn30_get_fb_base_offset() argument
66 if (dmub->fb_base || dmub->fb_offset) { in dmub_dcn30_get_fb_base_offset()
67 *fb_base = dmub->fb_base; in dmub_dcn30_get_fb_base_offset()
68 *fb_offset = dmub->fb_offset; in dmub_dcn30_get_fb_base_offset()
87 void dmub_dcn30_backdoor_load(struct dmub_srv *dmub, in dmub_dcn30_backdoor_load() argument
94 dmub_dcn30_get_fb_base_offset(dmub, &fb_base, &fb_offset); in dmub_dcn30_backdoor_load()
122 void dmub_dcn30_setup_windows(struct dmub_srv *dmub, in dmub_dcn30_setup_windows() argument
161 if (dmub_dcn20_use_cached_inbox(dmub)) { in dmub_dcn30_setup_windows()
A Ddmub_dcn21.c35 #define CTX dmub
36 #define REGS dmub->regs
59 bool dmub_dcn21_is_phy_init(struct dmub_srv *dmub) in dmub_dcn21_is_phy_init() argument
A Ddmub_dcn30.h37 void dmub_dcn30_backdoor_load(struct dmub_srv *dmub,
41 void dmub_dcn30_setup_windows(struct dmub_srv *dmub,
A Ddmub_dcn301.c35 #define CTX dmub
36 #define REGS dmub->regs
A Ddmub_dcn302.c35 #define CTX dmub
36 #define REGS dmub->regs
A Ddmub_dcn303.c17 #define CTX dmub
18 #define REGS dmub->regs
A Ddmub_dcn315.c41 #define CTX dmub
42 #define REGS dmub->regs_dcn31
A Ddmub_dcn316.c41 #define CTX dmub
42 #define REGS dmub->regs_dcn31
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dmub/
A Ddmub_srv.h318 void (*init)(struct dmub_srv *dmub);
320 void (*reset)(struct dmub_srv *dmub);
324 void (*backdoor_load)(struct dmub_srv *dmub,
331 void (*setup_windows)(struct dmub_srv *dmub,
338 void (*setup_mailbox)(struct dmub_srv *dmub,
352 void (*setup_outbox0)(struct dmub_srv *dmub,
363 bool (*is_supported)(struct dmub_srv *dmub);
365 bool (*is_hw_init)(struct dmub_srv *dmub);
367 bool (*is_phy_init)(struct dmub_srv *dmub);
376 void (*set_gpint)(struct dmub_srv *dmub,
[all …]
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dce/
A Ddmub_psr.h38 bool (*psr_copy_settings)(struct dmub_psr *dmub, struct dc_link *link,
40 void (*psr_enable)(struct dmub_psr *dmub, bool enable, bool wait,
42 void (*psr_get_state)(struct dmub_psr *dmub, enum dc_psr_state *dc_psr_state,
44 void (*psr_set_level)(struct dmub_psr *dmub, uint16_t psr_level,
46 void (*psr_force_static)(struct dmub_psr *dmub, uint8_t panel_inst);
47 void (*psr_get_residency)(struct dmub_psr *dmub, uint32_t *residency,
49 void (*psr_set_sink_vtotal_in_psr_active)(struct dmub_psr *dmub,
51 void (*psr_set_power_opt)(struct dmub_psr *dmub, unsigned int power_opt, uint8_t panel_inst);
55 void dmub_psr_destroy(struct dmub_psr **dmub);
A Ddmub_psr.c102 struct dmub_srv *srv = dmub->ctx->dmub_srv->dmub; in dmub_psr_get_state()
140 struct dc_context *dc = dmub->ctx; in dmub_psr_set_version()
181 struct dc_context *dc = dmub->ctx; in dmub_psr_enable()
234 struct dc_context *dc = dmub->ctx; in dmub_psr_set_level()
260 struct dc_context *dc = dmub->ctx; in dmub_psr_set_sink_vtotal_in_psr_active()
280 struct dc_context *dc = dmub->ctx; in dmub_psr_set_power_opt()
304 struct dc_context *dc = dmub->ctx; in dmub_psr_copy_settings()
435 struct dc_context *dc = dmub->ctx; in dmub_psr_force_static()
455 struct dmub_srv *srv = dmub->ctx->dmub_srv->dmub; in dmub_psr_get_residency()
506 kfree(*dmub); in dmub_psr_destroy()
[all …]
A Ddmub_abm.c183 dmub_flush_buffer_mem(&dc->dmub_srv->dmub->scratch_mem_fb); in dmub_abm_init_config()
186 memcpy(dc->dmub_srv->dmub->scratch_mem_fb.cpu_addr, (void *)src, bytes); in dmub_abm_init_config()
192 …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()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/
A Ddc_dmub_srv.c41 dc_srv->dmub = dmub; in dc_dmub_srv_construct()
71 struct dmub_srv *dmub = dc_dmub_srv->dmub; in dc_dmub_srv_cmd_queue() local
98 struct dmub_srv *dmub = dc_dmub_srv->dmub; in dc_dmub_srv_cmd_execute() local
111 struct dmub_srv *dmub = dc_dmub_srv->dmub; in dc_dmub_srv_wait_idle() local
124 struct dmub_srv *dmub = dmub_srv->dmub; in dc_dmub_srv_clear_inbox0_ack() local
137 struct dmub_srv *dmub = dmub_srv->dmub; in dc_dmub_srv_wait_for_inbox0_ack() local
151 struct dmub_srv *dmub = dmub_srv->dmub; in dc_dmub_srv_send_inbox0_cmd() local
170 dmub = dc_dmub_srv->dmub; in dc_dmub_srv_cmd_with_reply_data()
183 struct dmub_srv *dmub = dc_dmub_srv->dmub; in dc_dmub_srv_wait_phy_init() local
217 dmub = dc_dmub_srv->dmub; in dc_dmub_srv_notify_stream_mask()
[all …]
A Ddc_dmub_srv.h48 struct dmub_srv *dmub; member
80 void dc_dmub_srv_query_caps_cmd(struct dmub_srv *dmub);
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/core/
A Ddc_stat.c59 struct dmub_srv *dmub = dc->ctx->dmub_srv->dmub; in dc_stat_get_dmub_notification() local
62 status = dmub_srv_stat_get_notification(dmub, notify); in dc_stat_get_dmub_notification()
92 struct dmub_srv *dmub = dc->ctx->dmub_srv->dmub; in dc_stat_get_dmub_dataout() local
95 status = dmub_srv_get_gpint_dataout(dmub, dataout); in dc_stat_get_dmub_dataout()
/linux-6.3-rc2/drivers/gpu/drm/amd/display/
A DMakefile37 subdir-ccflags-y += -I$(FULL_AMD_DISPLAY_PATH)/dmub/inc
46 DAL_LIBS = amdgpu_dm dc modules/freesync modules/color modules/info_packet modules/power dmub/src
/linux-6.3-rc2/drivers/gpu/drm/amd/display/dc/dcn31/
A Ddcn31_dio_link_encoder.c111 !(dc_dmub_srv->dmub->fw_version >= DMUB_FW_VERSION(4, 0, 0) && in has_query_dp_alt()
112 dc_dmub_srv->dmub->fw_version <= DMUB_FW_VERSION(4, 0, 10)); in has_query_dp_alt()
427 struct dc_dmub_srv *dmub = dc_ctx->dmub_srv; in link_dpia_control() local
440 dc_dmub_srv_cmd_queue(dmub, &cmd); in link_dpia_control()
441 dc_dmub_srv_cmd_execute(dmub); in link_dpia_control()
442 dc_dmub_srv_wait_idle(dmub); in link_dpia_control()

Completed in 29 milliseconds

12