Lines Matching refs:centity
541 struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity); in amdgpu_ctx_add_fence() local
542 uint64_t seq = centity->sequence; in amdgpu_ctx_add_fence()
547 other = centity->fences[idx]; in amdgpu_ctx_add_fence()
554 centity->fences[idx] = fence; in amdgpu_ctx_add_fence()
555 centity->sequence++; in amdgpu_ctx_add_fence()
567 struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity); in amdgpu_ctx_get_fence() local
573 seq = centity->sequence - 1; in amdgpu_ctx_get_fence()
575 if (seq >= centity->sequence) { in amdgpu_ctx_get_fence()
581 if (seq + amdgpu_sched_jobs < centity->sequence) { in amdgpu_ctx_get_fence()
586 fence = dma_fence_get(centity->fences[seq & (amdgpu_sched_jobs - 1)]); in amdgpu_ctx_get_fence()
641 struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity); in amdgpu_ctx_wait_prev_fence() local
647 idx = centity->sequence & (amdgpu_sched_jobs - 1); in amdgpu_ctx_wait_prev_fence()
648 other = dma_fence_get(centity->fences[idx]); in amdgpu_ctx_wait_prev_fence()
742 struct amdgpu_ctx_entity *centity, ktime_t *total, ktime_t *max) in amdgpu_ctx_fence_time() argument
755 fence = dma_fence_get(centity->fences[i]); in amdgpu_ctx_fence_time()
786 struct amdgpu_ctx_entity *centity; in amdgpu_ctx_mgr_fence_usage() local
799 centity = ctx->entities[hwip][idx]; in amdgpu_ctx_mgr_fence_usage()
800 amdgpu_ctx_fence_time(ctx, centity, &ttotal, &tmax); in amdgpu_ctx_mgr_fence_usage()