Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ctx.c466 struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity); in amdgpu_ctx_add_fence() local
467 uint64_t seq = centity->sequence; in amdgpu_ctx_add_fence()
472 other = centity->fences[idx]; in amdgpu_ctx_add_fence()
479 centity->fences[idx] = fence; in amdgpu_ctx_add_fence()
480 centity->sequence++; in amdgpu_ctx_add_fence()
492 struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity); in amdgpu_ctx_get_fence() local
498 seq = centity->sequence - 1; in amdgpu_ctx_get_fence()
500 if (seq >= centity->sequence) { in amdgpu_ctx_get_fence()
506 if (seq + amdgpu_sched_jobs < centity->sequence) { in amdgpu_ctx_get_fence()
511 fence = dma_fence_get(centity->fences[seq & (amdgpu_sched_jobs - 1)]); in amdgpu_ctx_get_fence()
[all …]