Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ctx.c455 struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity); in amdgpu_ctx_add_fence() local
456 uint64_t seq = centity->sequence; in amdgpu_ctx_add_fence()
461 other = centity->fences[idx]; in amdgpu_ctx_add_fence()
468 centity->fences[idx] = fence; in amdgpu_ctx_add_fence()
469 centity->sequence++; in amdgpu_ctx_add_fence()
481 struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity); in amdgpu_ctx_get_fence() local
487 seq = centity->sequence - 1; in amdgpu_ctx_get_fence()
489 if (seq >= centity->sequence) { in amdgpu_ctx_get_fence()
495 if (seq + amdgpu_sched_jobs < centity->sequence) { in amdgpu_ctx_get_fence()
500 fence = dma_fence_get(centity->fences[seq & (amdgpu_sched_jobs - 1)]); in amdgpu_ctx_get_fence()
[all …]