Lines Matching refs:centity
466 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()
566 struct amdgpu_ctx_entity *centity = to_amdgpu_ctx_entity(entity); in amdgpu_ctx_wait_prev_fence() local
572 idx = centity->sequence & (amdgpu_sched_jobs - 1); in amdgpu_ctx_wait_prev_fence()
573 other = dma_fence_get(centity->fences[idx]); in amdgpu_ctx_wait_prev_fence()
667 struct amdgpu_ctx_entity *centity, ktime_t *total, ktime_t *max) in amdgpu_ctx_fence_time() argument
680 fence = dma_fence_get(centity->fences[i]); in amdgpu_ctx_fence_time()
711 struct amdgpu_ctx_entity *centity; in amdgpu_ctx_mgr_fence_usage() local
724 centity = ctx->entities[hwip][idx]; in amdgpu_ctx_mgr_fence_usage()
725 amdgpu_ctx_fence_time(ctx, centity, &ttotal, &tmax); in amdgpu_ctx_mgr_fence_usage()