Lines Matching refs:ctx
590 struct msm_file_private *ctx;
592 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
593 if (!ctx)
596 INIT_LIST_HEAD(&ctx->submitqueues);
597 rwlock_init(&ctx->queuelock);
599 kref_init(&ctx->ref);
600 msm_submitqueue_init(dev, ctx);
602 ctx->aspace = msm_gpu_create_private_address_space(priv->gpu, current);
603 file->driver_priv = ctx;
605 ctx->seqno = atomic_inc_return(&ident);
620 static void context_close(struct msm_file_private *ctx)
622 msm_submitqueue_close(ctx);
623 msm_file_private_put(ctx);
629 struct msm_file_private *ctx = file->driver_priv;
636 msm_file_private_set_sysprof(ctx, priv->gpu, 0);
638 context_close(ctx);
790 struct msm_file_private *ctx = file->driver_priv;
802 return msm_gem_get_iova(obj, ctx->aspace, iova);
810 struct msm_file_private *ctx = file->driver_priv;
816 if (priv->gpu->aspace == ctx->aspace)
822 return msm_gem_set_iova(obj, ctx->aspace, iova);