Lines Matching refs:cring
340 struct amdgpu_ctx_ring *cring = & ctx->rings[ring->idx]; in amdgpu_ctx_add_fence() local
341 uint64_t seq = cring->sequence; in amdgpu_ctx_add_fence()
346 other = cring->fences[idx]; in amdgpu_ctx_add_fence()
353 cring->fences[idx] = fence; in amdgpu_ctx_add_fence()
354 cring->sequence++; in amdgpu_ctx_add_fence()
367 struct amdgpu_ctx_ring *cring = & ctx->rings[ring->idx]; in amdgpu_ctx_get_fence() local
375 if (seq >= cring->sequence) { in amdgpu_ctx_get_fence()
381 if (seq + amdgpu_sched_jobs < cring->sequence) { in amdgpu_ctx_get_fence()
386 fence = dma_fence_get(cring->fences[seq & (amdgpu_sched_jobs - 1)]); in amdgpu_ctx_get_fence()
421 struct amdgpu_ctx_ring *cring = &ctx->rings[ring_id]; in amdgpu_ctx_wait_prev_fence() local
422 unsigned idx = cring->sequence & (amdgpu_sched_jobs - 1); in amdgpu_ctx_wait_prev_fence()
423 struct dma_fence *other = cring->fences[idx]; in amdgpu_ctx_wait_prev_fence()