Home
last modified time | relevance | path

Searched refs:vf_errors (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_vf_error.c41 mutex_lock(&adev->virt.vf_errors.lock); in amdgpu_vf_error_put()
43 adev->virt.vf_errors.code [index] = error_code; 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()
75 while (adev->virt.vf_errors.read_count < adev->virt.vf_errors.write_count) { in amdgpu_vf_error_trans_all()
78 adev->virt.vf_errors.flags[index]); in amdgpu_vf_error_trans_all()
83 adev->virt.vf_errors.read_count ++; in amdgpu_vf_error_trans_all()
[all …]
H A Damdgpu_virt.h243 struct amdgpu_vf_error_buffer vf_errors; member
H A Damdgpu_device.c3563 mutex_init(&adev->virt.vf_errors.lock); in amdgpu_device_init()