Lines Matching refs:mca_funcs
218 …amdgpu_mca_smu_init_funcs(struct amdgpu_device *adev, const struct amdgpu_mca_smu_funcs *mca_funcs) in amdgpu_mca_smu_init_funcs() argument
222 mca->mca_funcs = mca_funcs; in amdgpu_mca_smu_init_funcs()
266 const struct amdgpu_mca_smu_funcs *mca_funcs = adev->mca.mca_funcs; in amdgpu_mca_smu_set_debug_mode() local
268 if (mca_funcs && mca_funcs->mca_set_debug_mode) in amdgpu_mca_smu_set_debug_mode()
269 return mca_funcs->mca_set_debug_mode(adev, enable); in amdgpu_mca_smu_set_debug_mode()
294 const struct amdgpu_mca_smu_funcs *mca_funcs = adev->mca.mca_funcs; in amdgpu_mca_smu_get_valid_mca_count() local
299 if (mca_funcs && mca_funcs->mca_get_valid_mca_count) in amdgpu_mca_smu_get_valid_mca_count()
300 return mca_funcs->mca_get_valid_mca_count(adev, type, count); in amdgpu_mca_smu_get_valid_mca_count()
308 const struct amdgpu_mca_smu_funcs *mca_funcs = adev->mca.mca_funcs; in amdgpu_mca_smu_get_mca_entry() local
311 if (!mca_funcs || !mca_funcs->mca_get_mca_entry) in amdgpu_mca_smu_get_mca_entry()
316 count = mca_funcs->max_ue_count; in amdgpu_mca_smu_get_mca_entry()
319 count = mca_funcs->max_ce_count; in amdgpu_mca_smu_get_mca_entry()
328 return mca_funcs->mca_get_mca_entry(adev, type, idx, entry); in amdgpu_mca_smu_get_mca_entry()
385 const struct amdgpu_mca_smu_funcs *mca_funcs = adev->mca.mca_funcs; in amdgpu_mca_smu_parse_mca_error_count() local
390 if (!mca_funcs || !mca_funcs->mca_parse_mca_error_count) in amdgpu_mca_smu_parse_mca_error_count()
393 return mca_funcs->mca_parse_mca_error_count(adev, blk, type, entry, count); in amdgpu_mca_smu_parse_mca_error_count()