Lines Matching refs:mca_cache
228 struct mca_bank_cache *mca_cache; in amdgpu_mca_init() local
234 mca_cache = &mca->mca_caches[i]; in amdgpu_mca_init()
235 mutex_init(&mca_cache->lock); in amdgpu_mca_init()
236 amdgpu_mca_bank_set_init(&mca_cache->mca_set); in amdgpu_mca_init()
245 struct mca_bank_cache *mca_cache; in amdgpu_mca_fini() local
251 mca_cache = &mca->mca_caches[i]; in amdgpu_mca_fini()
252 amdgpu_mca_bank_set_release(&mca_cache->mca_set); in amdgpu_mca_fini()
253 mutex_destroy(&mca_cache->lock); in amdgpu_mca_fini()
466 struct mca_bank_cache *mca_cache = &adev->mca.mca_caches[type]; in amdgpu_mca_add_mca_set_to_cache() local
469 mutex_lock(&mca_cache->lock); in amdgpu_mca_add_mca_set_to_cache()
470 ret = amdgpu_mca_bank_set_merge(&mca_cache->mca_set, new); in amdgpu_mca_add_mca_set_to_cache()
471 mutex_unlock(&mca_cache->lock); in amdgpu_mca_add_mca_set_to_cache()
480 struct mca_bank_cache *mca_cache = &adev->mca.mca_caches[type]; in amdgpu_mca_smu_log_ras_error() local
501 mutex_lock(&mca_cache->lock); in amdgpu_mca_smu_log_ras_error()
502 if (mca_cache->mca_set.nr_entries) in amdgpu_mca_smu_log_ras_error()
503 ret = amdgpu_mca_dispatch_mca_set(adev, blk, type, &mca_cache->mca_set, err_data); in amdgpu_mca_smu_log_ras_error()
504 mutex_unlock(&mca_cache->lock); in amdgpu_mca_smu_log_ras_error()