Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/gpu/drm/amd/display/dmub/
Ddmub_srv.h74 struct dmub_srv;
327 void (*init)(struct dmub_srv *dmub);
329 void (*reset)(struct dmub_srv *dmub);
331 void (*reset_release)(struct dmub_srv *dmub);
333 void (*backdoor_load)(struct dmub_srv *dmub,
337 void (*backdoor_load_zfb_mode)(struct dmub_srv *dmub,
340 void (*setup_windows)(struct dmub_srv *dmub,
347 void (*setup_mailbox)(struct dmub_srv *dmub,
350 uint32_t (*get_inbox1_wptr)(struct dmub_srv *dmub);
352 uint32_t (*get_inbox1_rptr)(struct dmub_srv *dmub);
[all …]
/linux-6.6.21/drivers/gpu/drm/amd/display/dmub/src/
Ddmub_dcn32.h31 struct dmub_srv;
188 void dmub_dcn32_reset(struct dmub_srv *dmub);
190 void dmub_dcn32_reset_release(struct dmub_srv *dmub);
192 void dmub_dcn32_backdoor_load(struct dmub_srv *dmub,
196 void dmub_dcn32_backdoor_load_zfb_mode(struct dmub_srv *dmub,
200 void dmub_dcn32_setup_windows(struct dmub_srv *dmub,
207 void dmub_dcn32_setup_mailbox(struct dmub_srv *dmub,
210 uint32_t dmub_dcn32_get_inbox1_wptr(struct dmub_srv *dmub);
212 uint32_t dmub_dcn32_get_inbox1_rptr(struct dmub_srv *dmub);
214 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,
204 void dmub_dcn31_setup_mailbox(struct dmub_srv *dmub,
207 uint32_t dmub_dcn31_get_inbox1_wptr(struct dmub_srv *dmub);
209 uint32_t dmub_dcn31_get_inbox1_rptr(struct dmub_srv *dmub);
211 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,
202 void dmub_dcn20_setup_mailbox(struct dmub_srv *dmub,
205 uint32_t dmub_dcn20_get_inbox1_wptr(struct dmub_srv *dmub);
207 uint32_t dmub_dcn20_get_inbox1_rptr(struct dmub_srv *dmub);
209 void dmub_dcn20_set_inbox1_wptr(struct dmub_srv *dmub, uint32_t wptr_offset);
[all …]
Ddmub_dcn32.c57 static void dmub_dcn32_get_fb_base_offset(struct dmub_srv *dmub, in dmub_dcn32_get_fb_base_offset()
84 void dmub_dcn32_reset(struct dmub_srv *dmub) in dmub_dcn32_reset()
138 void dmub_dcn32_reset_release(struct dmub_srv *dmub) in dmub_dcn32_reset_release()
146 void dmub_dcn32_backdoor_load(struct dmub_srv *dmub, in dmub_dcn32_backdoor_load()
179 void dmub_dcn32_backdoor_load_zfb_mode(struct dmub_srv *dmub, in dmub_dcn32_backdoor_load_zfb_mode()
209 void dmub_dcn32_setup_windows(struct dmub_srv *dmub, in dmub_dcn32_setup_windows()
262 void dmub_dcn32_setup_mailbox(struct dmub_srv *dmub, in dmub_dcn32_setup_mailbox()
269 uint32_t dmub_dcn32_get_inbox1_wptr(struct dmub_srv *dmub) in dmub_dcn32_get_inbox1_wptr()
274 uint32_t dmub_dcn32_get_inbox1_rptr(struct dmub_srv *dmub) in dmub_dcn32_get_inbox1_rptr()
279 void dmub_dcn32_set_inbox1_wptr(struct dmub_srv *dmub, uint32_t wptr_offset) in dmub_dcn32_set_inbox1_wptr()
[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()
238 void dmub_dcn31_setup_mailbox(struct dmub_srv *dmub, in dmub_dcn31_setup_mailbox()
245 uint32_t dmub_dcn31_get_inbox1_wptr(struct dmub_srv *dmub) in dmub_dcn31_get_inbox1_wptr()
250 uint32_t dmub_dcn31_get_inbox1_rptr(struct dmub_srv *dmub) in dmub_dcn31_get_inbox1_rptr()
255 void dmub_dcn31_set_inbox1_wptr(struct dmub_srv *dmub, uint32_t wptr_offset) in dmub_dcn31_set_inbox1_wptr()
260 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()
273 void dmub_dcn20_setup_mailbox(struct dmub_srv *dmub, in dmub_dcn20_setup_mailbox()
285 uint32_t dmub_dcn20_get_inbox1_wptr(struct dmub_srv *dmub) in dmub_dcn20_get_inbox1_wptr()
290 uint32_t dmub_dcn20_get_inbox1_rptr(struct dmub_srv *dmub) in dmub_dcn20_get_inbox1_rptr()
295 void dmub_dcn20_set_inbox1_wptr(struct dmub_srv *dmub, uint32_t wptr_offset) in dmub_dcn20_set_inbox1_wptr()
[all …]
Ddmub_srv.c152 static bool dmub_srv_hw_setup(struct dmub_srv *dmub, enum dmub_asic asic) in dmub_srv_hw_setup()
317 enum dmub_status dmub_srv_create(struct dmub_srv *dmub, in dmub_srv_create()
367 void dmub_srv_destroy(struct dmub_srv *dmub) in dmub_srv_destroy()
373 dmub_srv_calc_region_info(struct dmub_srv *dmub, in dmub_srv_calc_region_info()
458 enum dmub_status dmub_srv_calc_mem_info(struct dmub_srv *dmub, in dmub_srv_calc_mem_info()
497 enum dmub_status dmub_srv_has_hw_support(struct dmub_srv *dmub, in dmub_srv_has_hw_support()
511 enum dmub_status dmub_srv_is_hw_init(struct dmub_srv *dmub, bool *is_hw_init) in dmub_srv_is_hw_init()
527 enum dmub_status dmub_srv_hw_init(struct dmub_srv *dmub, in dmub_srv_hw_init()
671 enum dmub_status dmub_srv_sync_inbox1(struct dmub_srv *dmub) in dmub_srv_sync_inbox1()
692 enum dmub_status dmub_srv_hw_reset(struct dmub_srv *dmub) in dmub_srv_hw_reset()
[all …]
Ddmub_dcn30.h37 void dmub_dcn30_backdoor_load(struct dmub_srv *dmub,
41 void dmub_dcn30_setup_windows(struct dmub_srv *dmub,
Ddmub_reg.h31 struct dmub_srv;
115 void dmub_reg_set(struct dmub_srv *srv, uint32_t addr, uint32_t reg_val, int n,
118 void dmub_reg_update(struct dmub_srv *srv, uint32_t addr, int n, uint8_t shift1,
121 void dmub_reg_get(struct dmub_srv *srv, uint32_t addr, uint8_t shift,
Ddmub_reg.c72 void dmub_reg_update(struct dmub_srv *srv, uint32_t addr, int n, uint8_t shift1, in dmub_reg_update()
89 void dmub_reg_set(struct dmub_srv *srv, uint32_t addr, uint32_t reg_val, int n, in dmub_reg_set()
104 void dmub_reg_get(struct dmub_srv *srv, uint32_t addr, uint8_t shift, in dmub_reg_get()
Ddmub_dcn30.c60 static void dmub_dcn30_get_fb_base_offset(struct dmub_srv *dmub, in dmub_dcn30_get_fb_base_offset()
87 void dmub_dcn30_backdoor_load(struct dmub_srv *dmub, in dmub_dcn30_backdoor_load()
122 void dmub_dcn30_setup_windows(struct dmub_srv *dmub, in dmub_dcn30_setup_windows()
/linux-6.6.21/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 dm_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.c173 dmub_flush_buffer_mem(&dc->dmub_srv->dmub->scratch_mem_fb); in dmub_abm_init_config()
176 memcpy(dc->dmub_srv->dmub->scratch_mem_fb.cpu_addr, (void *)src, bytes); 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()
233 dmub_flush_buffer_mem(&dc->dmub_srv->dmub->scratch_mem_fb); in dmub_abm_save_restore()
236 memcpy(dc->dmub_srv->dmub->scratch_mem_fb.cpu_addr, (void *)pData, bytes); 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()
252 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 dm_execute_dmub_cmd(dmub_srv->ctx, &cmd, DM_DMUB_WAIT_TYPE_WAIT); in dmub_enable_outbox_notification()
Ddmub_replay.c41 struct dmub_srv *srv = dmub->ctx->dmub_srv->dmub; in dmub_replay_get_state()
243 struct dmub_srv *srv = dmub->ctx->dmub_srv->dmub; in dmub_replay_residency()
Ddmub_psr.c107 struct dmub_srv *srv = dmub->ctx->dmub_srv->dmub; in dmub_psr_get_state()
201 dm_execute_dmub_cmd(dc->dmub_srv->ctx, &cmd, DM_DMUB_WAIT_TYPE_WAIT); in dmub_psr_enable()
447 struct dmub_srv *srv = dmub->ctx->dmub_srv->dmub; in dmub_psr_get_residency()
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/
Ddc_dmub_srv.h32 struct dmub_srv;
48 struct dmub_srv *dmub;
79 void dc_dmub_srv_clear_inbox0_ack(struct dc_dmub_srv *dmub_srv);
80 void dc_dmub_srv_wait_for_inbox0_ack(struct dc_dmub_srv *dmub_srv);
81 void dc_dmub_srv_send_inbox0_cmd(struct dc_dmub_srv *dmub_srv, union dmub_inbox0_data_register data…
89 bool dc_dmub_check_min_version(struct dmub_srv *srv);
Ddc_dmub_srv.c40 struct dmub_srv *dmub) in dc_dmub_srv_construct()
46 struct dc_dmub_srv *dc_dmub_srv_create(struct dc *dc, struct dmub_srv *dmub) in dc_dmub_srv_create()
61 void dc_dmub_srv_destroy(struct dc_dmub_srv **dmub_srv) in dc_dmub_srv_destroy() argument
63 if (*dmub_srv) { in dc_dmub_srv_destroy()
64 kfree(*dmub_srv); in dc_dmub_srv_destroy()
65 *dmub_srv = NULL; in dc_dmub_srv_destroy()
71 struct dmub_srv *dmub = dc_dmub_srv->dmub; in dc_dmub_srv_wait_idle()
82 void dc_dmub_srv_clear_inbox0_ack(struct dc_dmub_srv *dmub_srv) in dc_dmub_srv_clear_inbox0_ack() argument
84 struct dmub_srv *dmub = dmub_srv->dmub; in dc_dmub_srv_clear_inbox0_ack()
85 struct dc_context *dc_ctx = dmub_srv->ctx; in dc_dmub_srv_clear_inbox0_ack()
[all …]
Ddc_helper.c148 struct dc_reg_helper_state *offload = &ctx->dmub_srv->reg_helper_offload; in dmub_reg_value_burst_set_pack()
173 struct dc_reg_helper_state *offload = &ctx->dmub_srv->reg_helper_offload; in dmub_reg_value_pack()
212 struct dc_reg_helper_state *offload = &ctx->dmub_srv->reg_helper_offload; in dmub_reg_wait_done_pack()
239 if (ctx->dmub_srv && in generic_reg_update_ex()
240 ctx->dmub_srv->reg_helper_offload.gather_in_progress) in generic_reg_update_ex()
270 if (ctx->dmub_srv && in generic_reg_set_ex()
271 ctx->dmub_srv->reg_helper_offload.gather_in_progress) { in generic_reg_set_ex()
439 if (ctx->dmub_srv && in generic_reg_wait()
440 ctx->dmub_srv->reg_helper_offload.gather_in_progress) { in generic_reg_wait()
497 if (ctx->dmub_srv && in generic_read_indirect_reg()
[all …]
Ddm_services.h41 struct dmub_srv;
127 struct dc_dmub_srv *dc_dmub_srv_create(struct dc *dc, struct dmub_srv *dmub);
128 void dc_dmub_srv_destroy(struct dc_dmub_srv **dmub_srv);
/linux-6.6.21/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()
84 struct dmub_srv *dmub = dc->ctx->dmub_srv->dmub; in dc_stat_get_dmub_dataout()
/linux-6.6.21/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()
296 if (bp->base.ctx->dc->ctx->dmub_srv && in transmitter_control_v1_6()
298 transmitter_control_dmcub(bp->base.ctx->dmub_srv, &ps.param); in transmitter_control_v1_6()
363 if (bp->base.ctx->dc->ctx->dmub_srv && in transmitter_control_v1_7()
365 transmitter_control_dmcub_v1_7(bp->base.ctx->dmub_srv, &dig_v1_7); in transmitter_control_v1_7()
379 if (bp->base.ctx->dc->ctx->dmub_srv && in transmitter_control_fallback()
509 if (bp->base.ctx->dc->ctx->dmub_srv && in set_pixel_clock_v7()
511 set_pixel_clock_dmcub(bp->base.ctx->dmub_srv, &clk); in set_pixel_clock_v7()
[all …]
/linux-6.6.21/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
93 …if (dm_execute_dmub_cmd(dmub_srv->ctx, &cmd, DM_DMUB_WAIT_TYPE_WAIT_WITH_REPLY) && cmd.query_hpd.d… in dpia_query_hpd_status()

12