vf_errors 2633 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c mutex_init(&adev->virt.vf_errors.lock); vf_errors 41 drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c mutex_lock(&adev->virt.vf_errors.lock); vf_errors 42 drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c index = adev->virt.vf_errors.write_count % AMDGPU_VF_ERROR_ENTRY_SIZE; vf_errors 43 drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c adev->virt.vf_errors.code [index] = error_code; vf_errors 44 drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c adev->virt.vf_errors.flags [index] = error_flags; vf_errors 45 drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c adev->virt.vf_errors.data [index] = error_data; vf_errors 46 drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c adev->virt.vf_errors.write_count ++; vf_errors 47 drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c mutex_unlock(&adev->virt.vf_errors.lock); vf_errors 69 drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c mutex_lock(&adev->virt.vf_errors.lock); vf_errors 71 drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c if (adev->virt.vf_errors.write_count - adev->virt.vf_errors.read_count > AMDGPU_VF_ERROR_ENTRY_SIZE) { vf_errors 72 drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c adev->virt.vf_errors.read_count = adev->virt.vf_errors.write_count - AMDGPU_VF_ERROR_ENTRY_SIZE; vf_errors 75 drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c while (adev->virt.vf_errors.read_count < adev->virt.vf_errors.write_count) { vf_errors 76 drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c index =adev->virt.vf_errors.read_count % AMDGPU_VF_ERROR_ENTRY_SIZE; vf_errors 77 drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c data1 = AMDGIM_ERROR_CODE_FLAGS_TO_MAILBOX(adev->virt.vf_errors.code[index], vf_errors 78 drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c adev->virt.vf_errors.flags[index]); vf_errors 79 drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c data2 = adev->virt.vf_errors.data[index] & 0xFFFFFFFF; vf_errors 80 drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c data3 = (adev->virt.vf_errors.data[index] >> 32) & 0xFFFFFFFF; vf_errors 83 drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c adev->virt.vf_errors.read_count ++; vf_errors 85 drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c mutex_unlock(&adev->virt.vf_errors.lock); vf_errors 257 drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h struct amdgpu_vf_error_buffer vf_errors;