Lines Matching refs:fpriv
232 struct amdgpu_fpriv *fpriv; in amdgpu_ctx_init_entity() local
234 fpriv = container_of(ctx->ctx_mgr, struct amdgpu_fpriv, ctx_mgr); in amdgpu_ctx_init_entity()
235 r = amdgpu_xcp_select_scheds(adev, hw_ip, hw_prio, fpriv, in amdgpu_ctx_init_entity()
322 struct amdgpu_fpriv *fpriv = filp->driver_priv; in amdgpu_ctx_init() local
338 ctx->generation = amdgpu_vm_generation(mgr->adev, &fpriv->vm); in amdgpu_ctx_init()
351 ctx->ctx_mgr = &(fpriv->ctx_mgr); in amdgpu_ctx_init()
473 struct amdgpu_fpriv *fpriv, in amdgpu_ctx_alloc() argument
478 struct amdgpu_ctx_mgr *mgr = &fpriv->ctx_mgr; in amdgpu_ctx_alloc()
523 static int amdgpu_ctx_free(struct amdgpu_fpriv *fpriv, uint32_t id) in amdgpu_ctx_free() argument
525 struct amdgpu_ctx_mgr *mgr = &fpriv->ctx_mgr; in amdgpu_ctx_free()
537 struct amdgpu_fpriv *fpriv, uint32_t id, in amdgpu_ctx_query() argument
544 if (!fpriv) in amdgpu_ctx_query()
547 mgr = &fpriv->ctx_mgr; in amdgpu_ctx_query()
575 struct amdgpu_fpriv *fpriv, uint32_t id, in amdgpu_ctx_query2() argument
582 if (!fpriv) in amdgpu_ctx_query2()
585 mgr = &fpriv->ctx_mgr; in amdgpu_ctx_query2()
599 if (ctx->generation != amdgpu_vm_generation(adev, &fpriv->vm)) in amdgpu_ctx_query2()
637 struct amdgpu_fpriv *fpriv, uint32_t id, in amdgpu_ctx_stable_pstate() argument
644 if (!fpriv) in amdgpu_ctx_stable_pstate()
647 mgr = &fpriv->ctx_mgr; in amdgpu_ctx_stable_pstate()
673 struct amdgpu_fpriv *fpriv = filp->driver_priv; in amdgpu_ctx_ioctl() local
687 r = amdgpu_ctx_alloc(adev, fpriv, filp, priority, &id); in amdgpu_ctx_ioctl()
691 r = amdgpu_ctx_free(fpriv, id); in amdgpu_ctx_ioctl()
694 r = amdgpu_ctx_query(adev, fpriv, id, &args->out); in amdgpu_ctx_ioctl()
697 r = amdgpu_ctx_query2(adev, fpriv, id, &args->out); in amdgpu_ctx_ioctl()
702 r = amdgpu_ctx_stable_pstate(adev, fpriv, id, false, &stable_pstate); in amdgpu_ctx_ioctl()
712 r = amdgpu_ctx_stable_pstate(adev, fpriv, id, true, &stable_pstate); in amdgpu_ctx_ioctl()
721 struct amdgpu_ctx *amdgpu_ctx_get(struct amdgpu_fpriv *fpriv, uint32_t id) in amdgpu_ctx_get() argument
726 if (!fpriv) in amdgpu_ctx_get()
729 mgr = &fpriv->ctx_mgr; in amdgpu_ctx_get()