Searched refs:ecc_log (Results 1 – 2 of 2) sorted by relevance
430 struct ras_ecc_log_info *ecc_log; in amdgpu_umc_logs_ecc_err() local433 ecc_log = &con->umc_ecc_log; in amdgpu_umc_logs_ecc_err()435 mutex_lock(&ecc_log->lock); in amdgpu_umc_logs_ecc_err()440 mutex_unlock(&ecc_log->lock); in amdgpu_umc_logs_ecc_err()
2880 static void amdgpu_ras_ecc_log_init(struct ras_ecc_log_info *ecc_log) in amdgpu_ras_ecc_log_init() argument2882 mutex_init(&ecc_log->lock); in amdgpu_ras_ecc_log_init()2884 INIT_RADIX_TREE(&ecc_log->de_page_tree, GFP_KERNEL); in amdgpu_ras_ecc_log_init()2885 ecc_log->de_queried_count = 0; in amdgpu_ras_ecc_log_init()2886 ecc_log->prev_de_queried_count = 0; in amdgpu_ras_ecc_log_init()2889 static void amdgpu_ras_ecc_log_fini(struct ras_ecc_log_info *ecc_log) in amdgpu_ras_ecc_log_fini() argument2895 mutex_lock(&ecc_log->lock); in amdgpu_ras_ecc_log_fini()2896 radix_tree_for_each_slot(slot, &ecc_log->de_page_tree, &iter, 0) { in amdgpu_ras_ecc_log_fini()2900 radix_tree_iter_delete(&ecc_log->de_page_tree, &iter, slot); in amdgpu_ras_ecc_log_fini()2902 mutex_unlock(&ecc_log->lock); in amdgpu_ras_ecc_log_fini()[all …]