Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ctx.c470 struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity); in amdgpu_ctx_add_fence() local
471 uint64_t seq = centity->sequence; in amdgpu_ctx_add_fence()
476 other = centity->fences[idx]; in amdgpu_ctx_add_fence()
483 centity->fences[idx] = fence; in amdgpu_ctx_add_fence()
484 centity->sequence++; in amdgpu_ctx_add_fence()
496 struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity); in amdgpu_ctx_get_fence() local
502 seq = centity->sequence - 1; in amdgpu_ctx_get_fence()
504 if (seq >= centity->sequence) { in amdgpu_ctx_get_fence()
510 if (seq + amdgpu_sched_jobs < centity->sequence) { in amdgpu_ctx_get_fence()
515 fence = dma_fence_get(centity->fences[seq & (amdgpu_sched_jobs - 1)]); in amdgpu_ctx_get_fence()
[all …]