Home
last modified time | relevance | path

Searched refs:dmub_srv (Results 1 – 25 of 57) sorted by relevance

123

/linux-6.12.1/drivers/gpu/drm/amd/display/dmub/
Ddmub_srv.h73 struct dmub_srv;
374 void (*init)(struct dmub_srv *dmub);
376 void (*reset)(struct dmub_srv *dmub);
378 void (*reset_release)(struct dmub_srv *dmub);
380 void (*backdoor_load)(struct dmub_srv *dmub,
384 void (*backdoor_load_zfb_mode)(struct dmub_srv *dmub,
387 void (*setup_windows)(struct dmub_srv *dmub,
395 void (*setup_mailbox)(struct dmub_srv *dmub,
398 uint32_t (*get_inbox1_wptr)(struct dmub_srv *dmub);
400 uint32_t (*get_inbox1_rptr)(struct dmub_srv *dmub);
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dmub/src/
Ddmub_dcn401.h10 struct dmub_srv;
201 void dmub_dcn401_reset(struct dmub_srv *dmub);
203 void dmub_dcn401_reset_release(struct dmub_srv *dmub);
205 void dmub_dcn401_backdoor_load(struct dmub_srv *dmub,
209 void dmub_dcn401_backdoor_load_zfb_mode(struct dmub_srv *dmub,
213 void dmub_dcn401_setup_windows(struct dmub_srv *dmub,
221 void dmub_dcn401_setup_mailbox(struct dmub_srv *dmub,
224 uint32_t dmub_dcn401_get_inbox1_wptr(struct dmub_srv *dmub);
226 uint32_t dmub_dcn401_get_inbox1_rptr(struct dmub_srv *dmub);
228 void dmub_dcn401_set_inbox1_wptr(struct dmub_srv *dmub, uint32_t wptr_offset);
[all …]
Ddmub_dcn35.h31 struct dmub_srv;
203 void dmub_dcn35_init(struct dmub_srv *dmub);
205 void dmub_dcn35_reset(struct dmub_srv *dmub);
207 void dmub_dcn35_reset_release(struct dmub_srv *dmub);
209 void dmub_dcn35_backdoor_load(struct dmub_srv *dmub,
213 void dmub_dcn35_backdoor_load_zfb_mode(struct dmub_srv *dmub,
217 void dmub_dcn35_setup_windows(struct dmub_srv *dmub,
225 void dmub_dcn35_setup_mailbox(struct dmub_srv *dmub,
228 uint32_t dmub_dcn35_get_inbox1_wptr(struct dmub_srv *dmub);
230 uint32_t dmub_dcn35_get_inbox1_rptr(struct dmub_srv *dmub);
[all …]
Ddmub_dcn32.h31 struct dmub_srv;
192 void dmub_dcn32_reset(struct dmub_srv *dmub);
194 void dmub_dcn32_reset_release(struct dmub_srv *dmub);
196 void dmub_dcn32_backdoor_load(struct dmub_srv *dmub,
200 void dmub_dcn32_backdoor_load_zfb_mode(struct dmub_srv *dmub,
204 void dmub_dcn32_setup_windows(struct dmub_srv *dmub,
212 void dmub_dcn32_setup_mailbox(struct dmub_srv *dmub,
215 uint32_t dmub_dcn32_get_inbox1_wptr(struct dmub_srv *dmub);
217 uint32_t dmub_dcn32_get_inbox1_rptr(struct dmub_srv *dmub);
219 void dmub_dcn32_set_inbox1_wptr(struct dmub_srv *dmub, uint32_t wptr_offset);
[all …]
Ddmub_dcn31.h31 struct dmub_srv;
187 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,
205 void dmub_dcn31_setup_mailbox(struct dmub_srv *dmub,
208 uint32_t dmub_dcn31_get_inbox1_wptr(struct dmub_srv *dmub);
210 uint32_t dmub_dcn31_get_inbox1_rptr(struct dmub_srv *dmub);
212 void dmub_dcn31_set_inbox1_wptr(struct dmub_srv *dmub, uint32_t wptr_offset);
[all …]
Ddmub_dcn20.h31 struct dmub_srv;
185 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,
203 void dmub_dcn20_setup_mailbox(struct dmub_srv *dmub,
206 uint32_t dmub_dcn20_get_inbox1_wptr(struct dmub_srv *dmub);
208 uint32_t dmub_dcn20_get_inbox1_rptr(struct dmub_srv *dmub);
210 void dmub_dcn20_set_inbox1_wptr(struct dmub_srv *dmub, uint32_t wptr_offset);
[all …]
Ddmub_dcn401.c36 static void dmub_dcn401_get_fb_base_offset(struct dmub_srv *dmub, in dmub_dcn401_get_fb_base_offset()
63 void dmub_dcn401_reset(struct dmub_srv *dmub) in dmub_dcn401_reset()
117 void dmub_dcn401_reset_release(struct dmub_srv *dmub) in dmub_dcn401_reset_release()
125 void dmub_dcn401_backdoor_load(struct dmub_srv *dmub, in dmub_dcn401_backdoor_load()
158 void dmub_dcn401_backdoor_load_zfb_mode(struct dmub_srv *dmub, in dmub_dcn401_backdoor_load_zfb_mode()
188 void dmub_dcn401_setup_windows(struct dmub_srv *dmub, in dmub_dcn401_setup_windows()
251 void dmub_dcn401_setup_mailbox(struct dmub_srv *dmub, in dmub_dcn401_setup_mailbox()
258 uint32_t dmub_dcn401_get_inbox1_wptr(struct dmub_srv *dmub) in dmub_dcn401_get_inbox1_wptr()
263 uint32_t dmub_dcn401_get_inbox1_rptr(struct dmub_srv *dmub) in dmub_dcn401_get_inbox1_rptr()
268 void dmub_dcn401_set_inbox1_wptr(struct dmub_srv *dmub, uint32_t wptr_offset) in dmub_dcn401_set_inbox1_wptr()
[all …]
Ddmub_dcn35.c40 void dmub_srv_dcn35_regs_init(struct dmub_srv *dmub, struct dc_context *ctx) { in dmub_srv_dcn35_regs_init()
59 static void dmub_dcn35_get_fb_base_offset(struct dmub_srv *dmub, in dmub_dcn35_get_fb_base_offset()
88 void dmub_dcn35_reset(struct dmub_srv *dmub) in dmub_dcn35_reset()
154 void dmub_dcn35_reset_release(struct dmub_srv *dmub) in dmub_dcn35_reset_release()
172 void dmub_dcn35_backdoor_load(struct dmub_srv *dmub, in dmub_dcn35_backdoor_load()
203 void dmub_dcn35_backdoor_load_zfb_mode(struct dmub_srv *dmub, in dmub_dcn35_backdoor_load_zfb_mode()
227 void dmub_dcn35_setup_windows(struct dmub_srv *dmub, in dmub_dcn35_setup_windows()
290 void dmub_dcn35_setup_mailbox(struct dmub_srv *dmub, in dmub_dcn35_setup_mailbox()
297 uint32_t dmub_dcn35_get_inbox1_wptr(struct dmub_srv *dmub) in dmub_dcn35_get_inbox1_wptr()
302 uint32_t dmub_dcn35_get_inbox1_rptr(struct dmub_srv *dmub) in dmub_dcn35_get_inbox1_rptr()
[all …]
Ddmub_dcn32.c40 void dmub_srv_dcn32_regs_init(struct dmub_srv *dmub, struct dc_context *ctx) in dmub_srv_dcn32_regs_init()
62 static void dmub_dcn32_get_fb_base_offset(struct dmub_srv *dmub, in dmub_dcn32_get_fb_base_offset()
89 void dmub_dcn32_reset(struct dmub_srv *dmub) in dmub_dcn32_reset()
143 void dmub_dcn32_reset_release(struct dmub_srv *dmub) in dmub_dcn32_reset_release()
151 void dmub_dcn32_backdoor_load(struct dmub_srv *dmub, in dmub_dcn32_backdoor_load()
184 void dmub_dcn32_backdoor_load_zfb_mode(struct dmub_srv *dmub, in dmub_dcn32_backdoor_load_zfb_mode()
214 void dmub_dcn32_setup_windows(struct dmub_srv *dmub, in dmub_dcn32_setup_windows()
268 void dmub_dcn32_setup_mailbox(struct dmub_srv *dmub, in dmub_dcn32_setup_mailbox()
275 uint32_t dmub_dcn32_get_inbox1_wptr(struct dmub_srv *dmub) in dmub_dcn32_get_inbox1_wptr()
280 uint32_t dmub_dcn32_get_inbox1_rptr(struct dmub_srv *dmub) in dmub_dcn32_get_inbox1_rptr()
[all …]
Ddmub_dcn31.c56 static void dmub_dcn31_get_fb_base_offset(struct dmub_srv *dmub, in dmub_dcn31_get_fb_base_offset()
83 void dmub_dcn31_reset(struct dmub_srv *dmub) in dmub_dcn31_reset()
144 void dmub_dcn31_reset_release(struct dmub_srv *dmub) in dmub_dcn31_reset_release()
152 void dmub_dcn31_backdoor_load(struct dmub_srv *dmub, in dmub_dcn31_backdoor_load()
185 void dmub_dcn31_setup_windows(struct dmub_srv *dmub, in dmub_dcn31_setup_windows()
239 void dmub_dcn31_setup_mailbox(struct dmub_srv *dmub, in dmub_dcn31_setup_mailbox()
246 uint32_t dmub_dcn31_get_inbox1_wptr(struct dmub_srv *dmub) in dmub_dcn31_get_inbox1_wptr()
251 uint32_t dmub_dcn31_get_inbox1_rptr(struct dmub_srv *dmub) in dmub_dcn31_get_inbox1_rptr()
256 void dmub_dcn31_set_inbox1_wptr(struct dmub_srv *dmub, uint32_t wptr_offset) in dmub_dcn31_set_inbox1_wptr()
261 void dmub_dcn31_setup_out_mailbox(struct dmub_srv *dmub, in dmub_dcn31_setup_out_mailbox()
[all …]
Ddmub_dcn20.c60 static void dmub_dcn20_get_fb_base_offset(struct dmub_srv *dmub, in dmub_dcn20_get_fb_base_offset()
87 bool dmub_dcn20_use_cached_inbox(struct dmub_srv *dmub) in dmub_dcn20_use_cached_inbox()
94 void dmub_dcn20_reset(struct dmub_srv *dmub) in dmub_dcn20_reset()
146 void dmub_dcn20_reset_release(struct dmub_srv *dmub) in dmub_dcn20_reset_release()
154 void dmub_dcn20_backdoor_load(struct dmub_srv *dmub, in dmub_dcn20_backdoor_load()
189 void dmub_dcn20_setup_windows(struct dmub_srv *dmub, in dmub_dcn20_setup_windows()
274 void dmub_dcn20_setup_mailbox(struct dmub_srv *dmub, in dmub_dcn20_setup_mailbox()
286 uint32_t dmub_dcn20_get_inbox1_wptr(struct dmub_srv *dmub) in dmub_dcn20_get_inbox1_wptr()
291 uint32_t dmub_dcn20_get_inbox1_rptr(struct dmub_srv *dmub) in dmub_dcn20_get_inbox1_rptr()
296 void dmub_dcn20_set_inbox1_wptr(struct dmub_srv *dmub, uint32_t wptr_offset) in dmub_dcn20_set_inbox1_wptr()
[all …]
Ddmub_srv.c159 static bool dmub_srv_hw_setup(struct dmub_srv *dmub, enum dmub_asic asic) in dmub_srv_hw_setup()
417 enum dmub_status dmub_srv_create(struct dmub_srv *dmub, in dmub_srv_create()
467 void dmub_srv_destroy(struct dmub_srv *dmub) in dmub_srv_destroy()
493 dmub_srv_calc_region_info(struct dmub_srv *dmub, in dmub_srv_calc_region_info()
548 enum dmub_status dmub_srv_calc_mem_info(struct dmub_srv *dmub, in dmub_srv_calc_mem_info()
582 enum dmub_status dmub_srv_has_hw_support(struct dmub_srv *dmub, in dmub_srv_has_hw_support()
596 enum dmub_status dmub_srv_is_hw_init(struct dmub_srv *dmub, bool *is_hw_init) in dmub_srv_is_hw_init()
612 enum dmub_status dmub_srv_hw_init(struct dmub_srv *dmub, in dmub_srv_hw_init()
769 enum dmub_status dmub_srv_sync_inbox1(struct dmub_srv *dmub) in dmub_srv_sync_inbox1()
790 enum dmub_status dmub_srv_hw_reset(struct dmub_srv *dmub) in dmub_srv_hw_reset()
[all …]
Ddmub_dcn351.h9 struct dmub_srv;
11 void dmub_srv_dcn351_regs_init(struct dmub_srv *dmub, struct dc_context *ctx);
Ddmub_reg.h31 struct dmub_srv;
114 void dmub_reg_set(struct dmub_srv *srv, uint32_t addr, uint32_t reg_val, int n,
117 void dmub_reg_update(struct dmub_srv *srv, uint32_t addr, int n, uint8_t shift1,
120 void dmub_reg_get(struct dmub_srv *srv, uint32_t addr, uint8_t shift,
Ddmub_dcn30.h37 void dmub_dcn30_backdoor_load(struct dmub_srv *dmub,
41 void dmub_dcn30_setup_windows(struct dmub_srv *dmub,
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/dce/
Ddmub_hw_lock_mgr.c31 void dmub_hw_lock_mgr_cmd(struct dc_dmub_srv *dmub_srv, in dmub_hw_lock_mgr_cmd() argument
50 dc_wake_and_execute_dmub_cmd(dmub_srv->ctx, &cmd, DM_DMUB_WAIT_TYPE_WAIT); in dmub_hw_lock_mgr_cmd()
53 void dmub_hw_lock_mgr_inbox0_cmd(struct dc_dmub_srv *dmub_srv, in dmub_hw_lock_mgr_inbox0_cmd() argument
59 dc_dmub_srv_clear_inbox0_ack(dmub_srv); in dmub_hw_lock_mgr_inbox0_cmd()
60 dc_dmub_srv_send_inbox0_cmd(dmub_srv, data); in dmub_hw_lock_mgr_inbox0_cmd()
61 dc_dmub_srv_wait_for_inbox0_ack(dmub_srv); in dmub_hw_lock_mgr_inbox0_cmd()
Ddmub_abm_lcd.c169 dmub_flush_buffer_mem(&dc->dmub_srv->dmub->scratch_mem_fb); in dmub_abm_init_config()
172 memcpy(dc->dmub_srv->dmub->scratch_mem_fb.cpu_addr, (void *)src, bytes); in dmub_abm_init_config()
178 …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()
229 dmub_flush_buffer_mem(&dc->dmub_srv->dmub->scratch_mem_fb); in dmub_abm_save_restore()
232 memcpy(dc->dmub_srv->dmub->scratch_mem_fb.cpu_addr, (void *)pData, bytes); in dmub_abm_save_restore()
238 …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()
248 memcpy((void *)pData, dc->dmub_srv->dmub->scratch_mem_fb.cpu_addr, bytes); in dmub_abm_save_restore()
Ddmub_hw_lock_mgr.h32 void dmub_hw_lock_mgr_cmd(struct dc_dmub_srv *dmub_srv,
37 void dmub_hw_lock_mgr_inbox0_cmd(struct dc_dmub_srv *dmub_srv,
Ddmub_outbox.c39 void dmub_enable_outbox_notification(struct dc_dmub_srv *dmub_srv) in dmub_enable_outbox_notification() argument
51 dc_wake_and_execute_dmub_cmd(dmub_srv->ctx, &cmd, DM_DMUB_WAIT_TYPE_WAIT); in dmub_enable_outbox_notification()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/core/
Ddc_stat.c55 struct dmub_srv *dmub = dc->ctx->dmub_srv->dmub; in dc_stat_get_dmub_notification()
85 struct dmub_srv *dmub = dc->ctx->dmub_srv->dmub; in dc_stat_get_dmub_dataout()
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/
Ddc_dmub_srv.h32 struct dmub_srv;
49 struct dmub_srv *dmub;
93 void dc_dmub_srv_clear_inbox0_ack(struct dc_dmub_srv *dmub_srv);
94 void dc_dmub_srv_wait_for_inbox0_ack(struct dc_dmub_srv *dmub_srv);
95 void dc_dmub_srv_send_inbox0_cmd(struct dc_dmub_srv *dmub_srv, union dmub_inbox0_data_register data…
103 bool dc_dmub_check_min_version(struct dmub_srv *srv);
Ddc_helper.c146 struct dc_reg_helper_state *offload = &ctx->dmub_srv->reg_helper_offload; in dmub_reg_value_burst_set_pack()
171 struct dc_reg_helper_state *offload = &ctx->dmub_srv->reg_helper_offload; in dmub_reg_value_pack()
210 struct dc_reg_helper_state *offload = &ctx->dmub_srv->reg_helper_offload; in dmub_reg_wait_done_pack()
237 if (ctx->dmub_srv && in generic_reg_update_ex()
238 ctx->dmub_srv->reg_helper_offload.gather_in_progress) in generic_reg_update_ex()
267 if (ctx->dmub_srv && in generic_reg_set_ex()
268 ctx->dmub_srv->reg_helper_offload.gather_in_progress) { in generic_reg_set_ex()
436 if (ctx->dmub_srv && in generic_reg_wait()
437 ctx->dmub_srv->reg_helper_offload.gather_in_progress) { in generic_reg_wait()
494 if (ctx->dmub_srv && in generic_read_indirect_reg()
[all …]
Ddc_dmub_srv.c44 struct dmub_srv *dmub) in dc_dmub_srv_construct()
50 struct dc_dmub_srv *dc_dmub_srv_create(struct dc *dc, struct dmub_srv *dmub) in dc_dmub_srv_create()
65 void dc_dmub_srv_destroy(struct dc_dmub_srv **dmub_srv) in dc_dmub_srv_destroy() argument
67 if (*dmub_srv) { in dc_dmub_srv_destroy()
68 kfree(*dmub_srv); in dc_dmub_srv_destroy()
69 *dmub_srv = NULL; in dc_dmub_srv_destroy()
75 struct dmub_srv *dmub = dc_dmub_srv->dmub; in dc_dmub_srv_wait_idle()
91 struct dmub_srv *dmub = dc_dmub_srv->dmub; in dc_dmub_srv_clear_inbox0_ack()
104 struct dmub_srv *dmub = dc_dmub_srv->dmub; in dc_dmub_srv_wait_for_inbox0_ack()
118 struct dmub_srv *dmub = dc_dmub_srv->dmub; in dc_dmub_srv_send_inbox0_cmd()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/bios/
Dcommand_table2.c181 if (bp->base.ctx->dc->ctx->dmub_srv && in encoder_control_digx_v1_5()
183 encoder_control_dmcub(bp->base.ctx->dmub_srv, &params); in encoder_control_digx_v1_5()
197 if (bp->base.ctx->dc->ctx->dmub_srv && in encoder_control_fallback()
297 if (bp->base.ctx->dc->ctx->dmub_srv && in transmitter_control_v1_6()
299 transmitter_control_dmcub(bp->base.ctx->dmub_srv, &ps.param); in transmitter_control_v1_6()
364 if (bp->base.ctx->dc->ctx->dmub_srv && in transmitter_control_v1_7()
366 transmitter_control_dmcub_v1_7(bp->base.ctx->dmub_srv, &dig_v1_7); in transmitter_control_v1_7()
380 if (bp->base.ctx->dc->ctx->dmub_srv && in transmitter_control_fallback()
510 if (bp->base.ctx->dc->ctx->dmub_srv && in set_pixel_clock_v7()
512 set_pixel_clock_dmcub(bp->base.ctx->dmub_srv, &clk); in set_pixel_clock_v7()
[all …]
/linux-6.12.1/drivers/gpu/drm/amd/display/dc/link/protocols/
Dlink_dp_dpia.c84 struct dc_dmub_srv *dmub_srv = link->ctx->dmub_srv; in dpia_query_hpd_status() local
92 if (dc_wake_and_execute_dmub_cmd(dmub_srv->ctx, &cmd, in dpia_query_hpd_status()

123