Lines Matching refs:hw_funcs

154 	struct dmub_srv_hw_funcs *funcs = &dmub->hw_funcs;  in dmub_srv_hw_setup()
337 if (params->hw_funcs) { in dmub_srv_create()
338 if (params->hw_funcs->emul_get_inbox1_rptr) in dmub_srv_create()
339 dmub->hw_funcs.emul_get_inbox1_rptr = in dmub_srv_create()
340 params->hw_funcs->emul_get_inbox1_rptr; in dmub_srv_create()
342 if (params->hw_funcs->emul_set_inbox1_wptr) in dmub_srv_create()
343 dmub->hw_funcs.emul_set_inbox1_wptr = in dmub_srv_create()
344 params->hw_funcs->emul_set_inbox1_wptr; in dmub_srv_create()
346 if (params->hw_funcs->is_supported) in dmub_srv_create()
347 dmub->hw_funcs.is_supported = in dmub_srv_create()
348 params->hw_funcs->is_supported; in dmub_srv_create()
352 if (!dmub->hw_funcs.get_inbox1_rptr || in dmub_srv_create()
353 !dmub->hw_funcs.set_inbox1_wptr) { in dmub_srv_create()
505 if (dmub->hw_funcs.is_supported) in dmub_srv_has_hw_support()
506 *is_supported = dmub->hw_funcs.is_supported(dmub); in dmub_srv_has_hw_support()
521 if (dmub->hw_funcs.is_hw_init) in dmub_srv_is_hw_init()
522 *is_hw_init = dmub->hw_funcs.is_hw_init(dmub); in dmub_srv_is_hw_init()
556 if (dmub->hw_funcs.reset) in dmub_srv_hw_init()
557 dmub->hw_funcs.reset(dmub); in dmub_srv_hw_init()
570 if (params->fw_in_system_memory && dmub->hw_funcs.configure_dmub_in_system_memory) in dmub_srv_hw_init()
571 dmub->hw_funcs.configure_dmub_in_system_memory(dmub); in dmub_srv_hw_init()
573 if (params->load_inst_const && dmub->hw_funcs.backdoor_load) { in dmub_srv_hw_init()
581 if (params->fw_in_system_memory && dmub->hw_funcs.backdoor_load_zfb_mode) in dmub_srv_hw_init()
582 dmub->hw_funcs.backdoor_load_zfb_mode(dmub, &cw0, &cw1); in dmub_srv_hw_init()
584 dmub->hw_funcs.backdoor_load(dmub, &cw0, &cw1); in dmub_srv_hw_init()
626 if (dmub->hw_funcs.setup_windows) in dmub_srv_hw_init()
627 dmub->hw_funcs.setup_windows(dmub, &cw2, &cw3, &cw4, &cw5, &cw6); in dmub_srv_hw_init()
629 if (dmub->hw_funcs.setup_outbox0) in dmub_srv_hw_init()
630 dmub->hw_funcs.setup_outbox0(dmub, &outbox0); in dmub_srv_hw_init()
632 if (dmub->hw_funcs.setup_mailbox) in dmub_srv_hw_init()
633 dmub->hw_funcs.setup_mailbox(dmub, &inbox1); in dmub_srv_hw_init()
634 if (dmub->hw_funcs.setup_out_mailbox) in dmub_srv_hw_init()
635 dmub->hw_funcs.setup_out_mailbox(dmub, &outbox1); in dmub_srv_hw_init()
656 if (dmub->hw_funcs.enable_dmub_boot_options) in dmub_srv_hw_init()
657 dmub->hw_funcs.enable_dmub_boot_options(dmub, params); in dmub_srv_hw_init()
659 if (dmub->hw_funcs.skip_dmub_panel_power_sequence && !dmub->is_virtual) in dmub_srv_hw_init()
660 dmub->hw_funcs.skip_dmub_panel_power_sequence(dmub, in dmub_srv_hw_init()
663 if (dmub->hw_funcs.reset_release && !dmub->is_virtual) in dmub_srv_hw_init()
664 dmub->hw_funcs.reset_release(dmub); in dmub_srv_hw_init()
676 if (dmub->hw_funcs.get_inbox1_rptr && dmub->hw_funcs.get_inbox1_wptr) { in dmub_srv_sync_inbox1()
677 uint32_t rptr = dmub->hw_funcs.get_inbox1_rptr(dmub); in dmub_srv_sync_inbox1()
678 uint32_t wptr = dmub->hw_funcs.get_inbox1_wptr(dmub); in dmub_srv_sync_inbox1()
697 if (dmub->hw_funcs.reset) in dmub_srv_hw_reset()
698 dmub->hw_funcs.reset(dmub); in dmub_srv_hw_reset()
747 dmub->hw_funcs.set_inbox1_wptr(dmub, dmub->inbox1_rb.wrpt); in dmub_srv_cmd_execute()
763 union dmub_fw_boot_status status = dmub->hw_funcs.get_fw_status(dmub); in dmub_srv_wait_for_auto_load()
783 rptr = dmub->hw_funcs.get_inbox1_rptr(dmub); in dmub_srv_wait_for_idle()
810 if (!dmub->hw_funcs.set_gpint) in dmub_srv_send_gpint_command()
813 if (!dmub->hw_funcs.is_gpint_acked) in dmub_srv_send_gpint_command()
820 dmub->hw_funcs.set_gpint(dmub, reg); in dmub_srv_send_gpint_command()
825 if (dmub->hw_funcs.is_gpint_acked(dmub, reg)) in dmub_srv_send_gpint_command()
840 if (!dmub->hw_funcs.get_gpint_response) in dmub_srv_get_gpint_response()
843 *response = dmub->hw_funcs.get_gpint_response(dmub); in dmub_srv_get_gpint_response()
856 if (!dmub->hw_funcs.get_gpint_dataout) in dmub_srv_get_gpint_dataout()
859 *dataout = dmub->hw_funcs.get_gpint_dataout(dmub); in dmub_srv_get_gpint_dataout()
872 if (dmub->hw_funcs.get_fw_status) in dmub_srv_get_fw_boot_status()
873 *status = dmub->hw_funcs.get_fw_status(dmub); in dmub_srv_get_fw_boot_status()
886 if (dmub->hw_funcs.get_fw_boot_option) in dmub_srv_get_fw_boot_option()
887 *option = dmub->hw_funcs.get_fw_boot_option(dmub); in dmub_srv_get_fw_boot_option()
898 if (dmub->hw_funcs.skip_dmub_panel_power_sequence && !dmub->is_virtual) in dmub_srv_set_skip_panel_power_sequence()
899 dmub->hw_funcs.skip_dmub_panel_power_sequence(dmub, skip); in dmub_srv_set_skip_panel_power_sequence()
958 dmub->outbox0_rb.wrpt = dmub->hw_funcs.get_outbox0_wptr(dmub); in dmub_srv_get_outbox0_msg()
965 if (!dmub || !dmub->hw_funcs.get_diagnostic_data || !diag_data) in dmub_srv_get_diagnostic_data()
967 dmub->hw_funcs.get_diagnostic_data(dmub, diag_data); in dmub_srv_get_diagnostic_data()
973 if (!dmub->hw_init || !dmub->hw_funcs.should_detect) in dmub_srv_should_detect()
976 return dmub->hw_funcs.should_detect(dmub); in dmub_srv_should_detect()
981 if (!dmub->hw_init || !dmub->hw_funcs.clear_inbox0_ack_register) in dmub_srv_clear_inbox0_ack()
984 dmub->hw_funcs.clear_inbox0_ack_register(dmub); in dmub_srv_clear_inbox0_ack()
993 if (!dmub->hw_init || !dmub->hw_funcs.read_inbox0_ack_register) in dmub_srv_wait_for_inbox0_ack()
997 ack = dmub->hw_funcs.read_inbox0_ack_register(dmub); in dmub_srv_wait_for_inbox0_ack()
1008 if (!dmub->hw_init || !dmub->hw_funcs.send_inbox0_cmd) in dmub_srv_send_inbox0_cmd()
1011 dmub->hw_funcs.send_inbox0_cmd(dmub, data); in dmub_srv_send_inbox0_cmd()