Lines Matching refs:ctx
54 struct etnaviv_file_private *ctx;
57 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
58 if (!ctx)
61 ret = xa_alloc_cyclic(&priv->active_contexts, &ctx->id, ctx,
66 ctx->mmu = etnaviv_iommu_context_init(priv->mmu_global,
68 if (!ctx->mmu) {
79 drm_sched_entity_init(&ctx->sched_entity[i],
85 file->driver_priv = ctx;
90 kfree(ctx);
97 struct etnaviv_file_private *ctx = file->driver_priv;
104 drm_sched_entity_destroy(&ctx->sched_entity[i]);
107 etnaviv_iommu_context_put(ctx->mmu);
109 xa_erase(&priv->active_contexts, ctx->id);
111 kfree(ctx);