Lines Matching refs:dmub

36 #define CTX dmub
37 #define REGS dmub->regs
60 static void dmub_dcn20_get_fb_base_offset(struct dmub_srv *dmub, in dmub_dcn20_get_fb_base_offset() argument
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()
87 bool dmub_dcn20_use_cached_inbox(struct dmub_srv *dmub) in dmub_dcn20_use_cached_inbox() argument
90 return !(dmub->fw_version >= DMUB_FW_VERSION(1, 0, 0) && in dmub_dcn20_use_cached_inbox()
91 dmub->fw_version <= DMUB_FW_VERSION(1, 10, 0)); in dmub_dcn20_use_cached_inbox()
94 void dmub_dcn20_reset(struct dmub_srv *dmub) in dmub_dcn20_reset() argument
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()
146 void dmub_dcn20_reset_release(struct dmub_srv *dmub) in dmub_dcn20_reset_release() argument
149 REG_WRITE(DMCUB_SCRATCH15, dmub->psp_version & 0x001100FF); in dmub_dcn20_reset_release()
154 void dmub_dcn20_backdoor_load(struct dmub_srv *dmub, in dmub_dcn20_backdoor_load() argument
161 dmub_dcn20_get_fb_base_offset(dmub, &fb_base, &fb_offset); in dmub_dcn20_backdoor_load()
189 void dmub_dcn20_setup_windows(struct dmub_srv *dmub, in dmub_dcn20_setup_windows() argument
199 dmub_dcn20_get_fb_base_offset(dmub, &fb_base, &fb_offset); in dmub_dcn20_setup_windows()
231 if (dmub_dcn20_use_cached_inbox(dmub)) { in dmub_dcn20_setup_windows()
273 void dmub_dcn20_setup_mailbox(struct dmub_srv *dmub, in dmub_dcn20_setup_mailbox() argument
277 if (dmub_dcn20_use_cached_inbox(dmub)) in dmub_dcn20_setup_mailbox()
285 uint32_t dmub_dcn20_get_inbox1_rptr(struct dmub_srv *dmub) in dmub_dcn20_get_inbox1_rptr() argument
290 void dmub_dcn20_set_inbox1_wptr(struct dmub_srv *dmub, uint32_t wptr_offset) in dmub_dcn20_set_inbox1_wptr() argument
295 void dmub_dcn20_setup_out_mailbox(struct dmub_srv *dmub, in dmub_dcn20_setup_out_mailbox() argument
299 if (dmub_dcn20_use_cached_inbox(dmub)) in dmub_dcn20_setup_out_mailbox()
307 uint32_t dmub_dcn20_get_outbox1_wptr(struct dmub_srv *dmub) in dmub_dcn20_get_outbox1_wptr() argument
316 void dmub_dcn20_set_outbox1_rptr(struct dmub_srv *dmub, uint32_t rptr_offset) in dmub_dcn20_set_outbox1_rptr() argument
325 void dmub_dcn20_setup_outbox0(struct dmub_srv *dmub, in dmub_dcn20_setup_outbox0() argument
333 uint32_t dmub_dcn20_get_outbox0_wptr(struct dmub_srv *dmub) in dmub_dcn20_get_outbox0_wptr() argument
338 void dmub_dcn20_set_outbox0_rptr(struct dmub_srv *dmub, uint32_t rptr_offset) in dmub_dcn20_set_outbox0_rptr() argument
343 bool dmub_dcn20_is_hw_init(struct dmub_srv *dmub) in dmub_dcn20_is_hw_init() argument
352 bool dmub_dcn20_is_supported(struct dmub_srv *dmub) in dmub_dcn20_is_supported() argument
361 void dmub_dcn20_set_gpint(struct dmub_srv *dmub, in dmub_dcn20_set_gpint() argument
367 bool dmub_dcn20_is_gpint_acked(struct dmub_srv *dmub, in dmub_dcn20_is_gpint_acked() argument
378 uint32_t dmub_dcn20_get_gpint_response(struct dmub_srv *dmub) in dmub_dcn20_get_gpint_response() argument
383 union dmub_fw_boot_status dmub_dcn20_get_fw_boot_status(struct dmub_srv *dmub) in dmub_dcn20_get_fw_boot_status() argument
391 void dmub_dcn20_enable_dmub_boot_options(struct dmub_srv *dmub, const struct dmub_srv_hw_params *pa… in dmub_dcn20_enable_dmub_boot_options() argument
398 void dmub_dcn20_skip_dmub_panel_power_sequence(struct dmub_srv *dmub, bool skip) in dmub_dcn20_skip_dmub_panel_power_sequence() argument
406 uint32_t dmub_dcn20_get_current_time(struct dmub_srv *dmub) in dmub_dcn20_get_current_time() argument
411 void dmub_dcn20_get_diagnostic_data(struct dmub_srv *dmub, struct dmub_diagnostic_data *diag_data) in dmub_dcn20_get_diagnostic_data() argument
416 if (!dmub || !diag_data) in dmub_dcn20_get_diagnostic_data()
421 diag_data->dmcub_version = dmub->fw_version; in dmub_dcn20_get_diagnostic_data()