Searched refs:vf_errors (Results 1 – 3 of 3) sorted by relevance
41 mutex_lock(&adev->virt.vf_errors.lock); in amdgpu_vf_error_put()42 index = adev->virt.vf_errors.write_count % AMDGPU_VF_ERROR_ENTRY_SIZE; in amdgpu_vf_error_put()43 adev->virt.vf_errors.code [index] = error_code; in amdgpu_vf_error_put()44 adev->virt.vf_errors.flags [index] = error_flags; in amdgpu_vf_error_put()45 adev->virt.vf_errors.data [index] = error_data; in amdgpu_vf_error_put()46 adev->virt.vf_errors.write_count ++; in amdgpu_vf_error_put()47 mutex_unlock(&adev->virt.vf_errors.lock); in amdgpu_vf_error_put()69 mutex_lock(&adev->virt.vf_errors.lock); in amdgpu_vf_error_trans_all()71 …if (adev->virt.vf_errors.write_count - adev->virt.vf_errors.read_count > AMDGPU_VF_ERROR_ENTRY_SIZ… in amdgpu_vf_error_trans_all()72 adev->virt.vf_errors.read_count = adev->virt.vf_errors.write_count - AMDGPU_VF_ERROR_ENTRY_SIZE; in amdgpu_vf_error_trans_all()[all …]
240 struct amdgpu_vf_error_buffer vf_errors; member
3582 mutex_init(&adev->virt.vf_errors.lock); in amdgpu_device_init()