Lines Matching refs:centity
188 struct amdgpu_ctx_entity *centity) in amdgpu_ctx_entity_time() argument
195 res = ktime_add(res, amdgpu_ctx_fence_time(centity->fences[i])); in amdgpu_ctx_entity_time()
723 struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity); in amdgpu_ctx_add_fence() local
724 uint64_t seq = centity->sequence; in amdgpu_ctx_add_fence()
729 other = centity->fences[idx]; in amdgpu_ctx_add_fence()
735 centity->fences[idx] = fence; in amdgpu_ctx_add_fence()
736 centity->sequence++; in amdgpu_ctx_add_fence()
740 &ctx->mgr->time_spend[centity->hw_ip]); in amdgpu_ctx_add_fence()
750 struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity); in amdgpu_ctx_get_fence() local
756 seq = centity->sequence - 1; in amdgpu_ctx_get_fence()
758 if (seq >= centity->sequence) { in amdgpu_ctx_get_fence()
764 if (seq + amdgpu_sched_jobs < centity->sequence) { in amdgpu_ctx_get_fence()
769 fence = dma_fence_get(centity->fences[seq & (amdgpu_sched_jobs - 1)]); in amdgpu_ctx_get_fence()
824 struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity); in amdgpu_ctx_wait_prev_fence() local
830 idx = centity->sequence & (amdgpu_sched_jobs - 1); in amdgpu_ctx_wait_prev_fence()
831 other = dma_fence_get(centity->fences[idx]); in amdgpu_ctx_wait_prev_fence()
953 struct amdgpu_ctx_entity *centity; in amdgpu_ctx_mgr_usage() local
956 centity = ctx->entities[hw_ip][i]; in amdgpu_ctx_mgr_usage()
957 if (!centity) in amdgpu_ctx_mgr_usage()
959 spend = amdgpu_ctx_entity_time(ctx, centity); in amdgpu_ctx_mgr_usage()