Lines Matching refs:centity
191 struct amdgpu_ctx_entity *centity) in amdgpu_ctx_entity_time() argument
198 res = ktime_add(res, amdgpu_ctx_fence_time(centity->fences[i])); in amdgpu_ctx_entity_time()
761 struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity); in amdgpu_ctx_add_fence() local
762 uint64_t seq = centity->sequence; in amdgpu_ctx_add_fence()
767 other = centity->fences[idx]; in amdgpu_ctx_add_fence()
773 centity->fences[idx] = fence; in amdgpu_ctx_add_fence()
774 centity->sequence++; in amdgpu_ctx_add_fence()
778 &ctx->mgr->time_spend[centity->hw_ip]); in amdgpu_ctx_add_fence()
788 struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity); in amdgpu_ctx_get_fence() local
794 seq = centity->sequence - 1; in amdgpu_ctx_get_fence()
796 if (seq >= centity->sequence) { in amdgpu_ctx_get_fence()
802 if (seq + amdgpu_sched_jobs < centity->sequence) { in amdgpu_ctx_get_fence()
807 fence = dma_fence_get(centity->fences[seq & (amdgpu_sched_jobs - 1)]); in amdgpu_ctx_get_fence()
862 struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity); in amdgpu_ctx_wait_prev_fence() local
868 idx = centity->sequence & (amdgpu_sched_jobs - 1); in amdgpu_ctx_wait_prev_fence()
869 other = dma_fence_get(centity->fences[idx]); in amdgpu_ctx_wait_prev_fence()
991 struct amdgpu_ctx_entity *centity; in amdgpu_ctx_mgr_usage() local
994 centity = ctx->entities[hw_ip][i]; in amdgpu_ctx_mgr_usage()
995 if (!centity) in amdgpu_ctx_mgr_usage()
997 spend = amdgpu_ctx_entity_time(ctx, centity); in amdgpu_ctx_mgr_usage()