Lines Matching refs:fences
90 ctx->fences = kcalloc(amdgpu_sched_jobs * num_entities, in amdgpu_ctx_init()
92 if (!ctx->fences) in amdgpu_ctx_init()
107 entity->fences = &ctx->fences[amdgpu_sched_jobs * i]; in amdgpu_ctx_init()
202 kfree(ctx->fences); in amdgpu_ctx_init()
203 ctx->fences = NULL; in amdgpu_ctx_init()
219 dma_fence_put(ctx->entities[0][i].fences[j]); in amdgpu_ctx_fini()
220 kfree(ctx->fences); in amdgpu_ctx_fini()
476 other = centity->fences[idx]; in amdgpu_ctx_add_fence()
483 centity->fences[idx] = fence; in amdgpu_ctx_add_fence()
515 fence = dma_fence_get(centity->fences[seq & (amdgpu_sched_jobs - 1)]); in amdgpu_ctx_get_fence()
550 other = dma_fence_get(centity->fences[idx]); in amdgpu_ctx_wait_prev_fence()