Lines Matching refs:block_obj

892 static int amdgpu_ras_block_match_default(struct amdgpu_ras_block_object *block_obj,  in amdgpu_ras_block_match_default()  argument
895 if (!block_obj) in amdgpu_ras_block_match_default()
898 if (block_obj->ras_comm.block == block) in amdgpu_ras_block_match_default()
971 struct amdgpu_ras_block_object *block_obj = NULL; in amdgpu_ras_query_error_status() local
981 block_obj = amdgpu_ras_get_ras_block(adev, info->head.block, 0); in amdgpu_ras_query_error_status()
982 if (!block_obj || !block_obj->hw_ops) { in amdgpu_ras_query_error_status()
988 if (block_obj->hw_ops->query_ras_error_count) in amdgpu_ras_query_error_status()
989 block_obj->hw_ops->query_ras_error_count(adev, &err_data); in amdgpu_ras_query_error_status()
994 if (block_obj->hw_ops->query_ras_error_status) in amdgpu_ras_query_error_status()
995 block_obj->hw_ops->query_ras_error_status(adev); in amdgpu_ras_query_error_status()
1050 struct amdgpu_ras_block_object *block_obj = amdgpu_ras_get_ras_block(adev, block, 0); in amdgpu_ras_reset_error_status() local
1055 if (!block_obj || !block_obj->hw_ops) { in amdgpu_ras_reset_error_status()
1061 if (block_obj->hw_ops->reset_ras_error_count) in amdgpu_ras_reset_error_status()
1062 block_obj->hw_ops->reset_ras_error_count(adev); in amdgpu_ras_reset_error_status()
1066 if (block_obj->hw_ops->reset_ras_error_status) in amdgpu_ras_reset_error_status()
1067 block_obj->hw_ops->reset_ras_error_status(adev); in amdgpu_ras_reset_error_status()
1086 struct amdgpu_ras_block_object *block_obj = amdgpu_ras_get_ras_block(adev, in amdgpu_ras_error_inject() local
1093 if (!block_obj || !block_obj->hw_ops) { in amdgpu_ras_error_inject()
1107 if (block_obj->hw_ops->ras_error_inject) in amdgpu_ras_error_inject()
1108 ret = block_obj->hw_ops->ras_error_inject(adev, info); in amdgpu_ras_error_inject()
1111 if (block_obj->hw_ops->ras_error_inject) in amdgpu_ras_error_inject()
1112 ret = block_obj->hw_ops->ras_error_inject(adev, &block_info); in amdgpu_ras_error_inject()
1565 struct amdgpu_ras_block_object *block_obj = in amdgpu_ras_interrupt_poison_consumption_handler() local
1568 if (!block_obj || !block_obj->hw_ops) in amdgpu_ras_interrupt_poison_consumption_handler()
1575 if (block_obj->hw_ops->query_poison_status) { in amdgpu_ras_interrupt_poison_consumption_handler()
1576 poison_stat = block_obj->hw_ops->query_poison_status(adev); in amdgpu_ras_interrupt_poison_consumption_handler()
1580 block_obj->ras_comm.name); in amdgpu_ras_interrupt_poison_consumption_handler()
1589 if (block_obj->hw_ops->handle_poison_consumption) in amdgpu_ras_interrupt_poison_consumption_handler()
1590 poison_stat = block_obj->hw_ops->handle_poison_consumption(adev); in amdgpu_ras_interrupt_poison_consumption_handler()
1595 block_obj->ras_comm.name); in amdgpu_ras_interrupt_poison_consumption_handler()
1826 struct amdgpu_ras_block_object *block_obj; in amdgpu_ras_error_status_query() local
1835 block_obj = amdgpu_ras_get_ras_block(adev, in amdgpu_ras_error_status_query()
1839 if (!block_obj || !block_obj->hw_ops) { in amdgpu_ras_error_status_query()
1845 if (block_obj->hw_ops->query_ras_error_status) in amdgpu_ras_error_status_query()
1846 block_obj->hw_ops->query_ras_error_status(adev); in amdgpu_ras_error_status_query()