Lines Matching refs:smu_funcs

95 	const struct aca_smu_funcs *smu_funcs = aca->smu_funcs;  in aca_smu_get_valid_aca_count()  local
100 if (!smu_funcs || !smu_funcs->get_valid_aca_count) in aca_smu_get_valid_aca_count()
103 return smu_funcs->get_valid_aca_count(adev, type, count); in aca_smu_get_valid_aca_count()
140 const struct aca_smu_funcs *smu_funcs = aca->smu_funcs; in aca_smu_get_valid_aca_banks() local
147 if (!smu_funcs || !smu_funcs->get_valid_aca_bank) in aca_smu_get_valid_aca_banks()
152 max_count = smu_funcs->max_ue_bank_count; in aca_smu_get_valid_aca_banks()
155 max_count = smu_funcs->max_ce_bank_count; in aca_smu_get_valid_aca_banks()
167 ret = smu_funcs->get_valid_aca_bank(adev, type, start + i, &bank); in aca_smu_get_valid_aca_banks()
735 void amdgpu_aca_set_smu_funcs(struct amdgpu_device *adev, const struct aca_smu_funcs *smu_funcs) in amdgpu_aca_set_smu_funcs() argument
739 WARN_ON(aca->smu_funcs); in amdgpu_aca_set_smu_funcs()
740 aca->smu_funcs = smu_funcs; in amdgpu_aca_set_smu_funcs()
770 const struct aca_smu_funcs *smu_funcs = aca->smu_funcs; in aca_bank_get_error_code() local
772 if (!smu_funcs || !smu_funcs->parse_error_code) in aca_bank_get_error_code()
775 return smu_funcs->parse_error_code(adev, bank); in aca_bank_get_error_code()
800 const struct aca_smu_funcs *smu_funcs = aca->smu_funcs; in amdgpu_aca_smu_set_debug_mode() local
802 if (!smu_funcs || !smu_funcs->set_debug_mode) in amdgpu_aca_smu_set_debug_mode()
805 return smu_funcs->set_debug_mode(adev, en); in amdgpu_aca_smu_set_debug_mode()