Lines Matching refs:block_obj

977 static int amdgpu_ras_block_match_default(struct amdgpu_ras_block_object *block_obj,  in amdgpu_ras_block_match_default()  argument
980 if (!block_obj) in amdgpu_ras_block_match_default()
983 if (block_obj->ras_comm.block == block) in amdgpu_ras_block_match_default()
1317 struct amdgpu_ras_block_object *block_obj = NULL; in amdgpu_ras_query_error_status_helper() local
1330 block_obj = amdgpu_ras_get_ras_block(adev, info->head.block, 0); in amdgpu_ras_query_error_status_helper()
1331 if (!block_obj || !block_obj->hw_ops) { in amdgpu_ras_query_error_status_helper()
1337 if (block_obj->hw_ops->query_ras_error_count) in amdgpu_ras_query_error_status_helper()
1338 block_obj->hw_ops->query_ras_error_count(adev, err_data); in amdgpu_ras_query_error_status_helper()
1343 if (block_obj->hw_ops->query_ras_error_status) in amdgpu_ras_query_error_status_helper()
1344 block_obj->hw_ops->query_ras_error_status(adev); in amdgpu_ras_query_error_status_helper()
1430 struct amdgpu_ras_block_object *block_obj = amdgpu_ras_get_ras_block(adev, block, 0); in amdgpu_ras_reset_error_count() local
1434 if (!block_obj || !block_obj->hw_ops) { in amdgpu_ras_reset_error_count()
1450 if (block_obj->hw_ops->reset_ras_error_count) in amdgpu_ras_reset_error_count()
1451 block_obj->hw_ops->reset_ras_error_count(adev); in amdgpu_ras_reset_error_count()
1459 struct amdgpu_ras_block_object *block_obj = amdgpu_ras_get_ras_block(adev, block, 0); in amdgpu_ras_reset_error_status() local
1466 if (block_obj->hw_ops->reset_ras_error_status) in amdgpu_ras_reset_error_status()
1467 block_obj->hw_ops->reset_ras_error_status(adev); in amdgpu_ras_reset_error_status()
1486 struct amdgpu_ras_block_object *block_obj = amdgpu_ras_get_ras_block(adev, in amdgpu_ras_error_inject() local
1497 if (!block_obj || !block_obj->hw_ops) { in amdgpu_ras_error_inject()
1511 if (block_obj->hw_ops->ras_error_inject) { in amdgpu_ras_error_inject()
1513 ret = block_obj->hw_ops->ras_error_inject(adev, info, info->instance_mask); in amdgpu_ras_error_inject()
1515 ret = block_obj->hw_ops->ras_error_inject(adev, &block_info, in amdgpu_ras_error_inject()
2119 struct amdgpu_ras_block_object *block_obj = in amdgpu_ras_interrupt_poison_consumption_handler() local
2126 if (!block_obj || !con) in amdgpu_ras_interrupt_poison_consumption_handler()
2137 if (block_obj->hw_ops && block_obj->hw_ops->query_poison_status) { in amdgpu_ras_interrupt_poison_consumption_handler()
2138 poison_stat = block_obj->hw_ops->query_poison_status(adev); in amdgpu_ras_interrupt_poison_consumption_handler()
2142 block_obj->ras_comm.name); in amdgpu_ras_interrupt_poison_consumption_handler()
2150 if (block_obj->hw_ops && block_obj->hw_ops->handle_poison_consumption) in amdgpu_ras_interrupt_poison_consumption_handler()
2151 poison_stat = block_obj->hw_ops->handle_poison_consumption(adev); in amdgpu_ras_interrupt_poison_consumption_handler()
2160 block_obj->ras_comm.name); in amdgpu_ras_interrupt_poison_consumption_handler()
2427 struct amdgpu_ras_block_object *block_obj; in amdgpu_ras_error_status_query() local
2436 block_obj = amdgpu_ras_get_ras_block(adev, in amdgpu_ras_error_status_query()
2440 if (!block_obj || !block_obj->hw_ops) { in amdgpu_ras_error_status_query()
2446 if (block_obj->hw_ops->query_ras_error_status) in amdgpu_ras_error_status_query()
2447 block_obj->hw_ops->query_ras_error_status(adev); in amdgpu_ras_error_status_query()