Lines Matching refs:ras_if
101 if (!adev->sdma.ras_if) { in amdgpu_sdma_ras_late_init()
102 adev->sdma.ras_if = kmalloc(sizeof(struct ras_common_if), GFP_KERNEL); in amdgpu_sdma_ras_late_init()
103 if (!adev->sdma.ras_if) in amdgpu_sdma_ras_late_init()
105 adev->sdma.ras_if->block = AMDGPU_RAS_BLOCK__SDMA; in amdgpu_sdma_ras_late_init()
106 adev->sdma.ras_if->type = AMDGPU_RAS_ERROR__MULTI_UNCORRECTABLE; in amdgpu_sdma_ras_late_init()
107 adev->sdma.ras_if->sub_block_index = 0; in amdgpu_sdma_ras_late_init()
108 strcpy(adev->sdma.ras_if->name, "sdma"); in amdgpu_sdma_ras_late_init()
110 fs_info.head = ih_info->head = *adev->sdma.ras_if; in amdgpu_sdma_ras_late_init()
112 r = amdgpu_ras_late_init(adev, adev->sdma.ras_if, in amdgpu_sdma_ras_late_init()
117 if (amdgpu_ras_is_supported(adev, adev->sdma.ras_if->block)) { in amdgpu_sdma_ras_late_init()
132 amdgpu_ras_late_fini(adev, adev->sdma.ras_if, ih_info); in amdgpu_sdma_ras_late_init()
134 kfree(adev->sdma.ras_if); in amdgpu_sdma_ras_late_init()
135 adev->sdma.ras_if = NULL; in amdgpu_sdma_ras_late_init()
142 adev->sdma.ras_if) { in amdgpu_sdma_ras_fini()
143 struct ras_common_if *ras_if = adev->sdma.ras_if; in amdgpu_sdma_ras_fini() local
145 .head = *ras_if, in amdgpu_sdma_ras_fini()
153 amdgpu_ras_late_fini(adev, ras_if, &ih_info); in amdgpu_sdma_ras_fini()
154 kfree(ras_if); in amdgpu_sdma_ras_fini()
172 struct ras_common_if *ras_if = adev->sdma.ras_if; in amdgpu_sdma_process_ecc_irq() local
177 if (!ras_if) in amdgpu_sdma_process_ecc_irq()
180 ih_data.head = *ras_if; in amdgpu_sdma_process_ecc_irq()