Lines Matching refs:amdgpu_ctx
136 static unsigned int amdgpu_ctx_get_hw_prio(struct amdgpu_ctx *ctx, u32 hw_ip) in amdgpu_ctx_get_hw_prio()
187 static ktime_t amdgpu_ctx_entity_time(struct amdgpu_ctx *ctx, in amdgpu_ctx_entity_time()
201 static int amdgpu_ctx_init_entity(struct amdgpu_ctx *ctx, u32 hw_ip, in amdgpu_ctx_init_entity()
275 static int amdgpu_ctx_get_stable_pstate(struct amdgpu_ctx *ctx, in amdgpu_ctx_get_stable_pstate()
304 struct drm_file *filp, struct amdgpu_ctx *ctx) in amdgpu_ctx_init()
337 static int amdgpu_ctx_set_stable_pstate(struct amdgpu_ctx *ctx, in amdgpu_ctx_set_stable_pstate()
390 struct amdgpu_ctx *ctx = container_of(ref, struct amdgpu_ctx, refcount); in amdgpu_ctx_fini()
415 int amdgpu_ctx_get_entity(struct amdgpu_ctx *ctx, u32 hw_ip, u32 instance, in amdgpu_ctx_get_entity()
453 struct amdgpu_ctx *ctx; in amdgpu_ctx_alloc()
481 struct amdgpu_ctx *ctx; in amdgpu_ctx_do_release()
484 ctx = container_of(ref, struct amdgpu_ctx, refcount); in amdgpu_ctx_do_release()
500 struct amdgpu_ctx *ctx; in amdgpu_ctx_free()
514 struct amdgpu_ctx *ctx; in amdgpu_ctx_query()
553 struct amdgpu_ctx *ctx; in amdgpu_ctx_query2()
613 struct amdgpu_ctx *ctx; in amdgpu_ctx_stable_pstate()
692 struct amdgpu_ctx *amdgpu_ctx_get(struct amdgpu_fpriv *fpriv, uint32_t id) in amdgpu_ctx_get()
694 struct amdgpu_ctx *ctx; in amdgpu_ctx_get()
710 int amdgpu_ctx_put(struct amdgpu_ctx *ctx) in amdgpu_ctx_put()
719 uint64_t amdgpu_ctx_add_fence(struct amdgpu_ctx *ctx, in amdgpu_ctx_add_fence()
746 struct dma_fence *amdgpu_ctx_get_fence(struct amdgpu_ctx *ctx, in amdgpu_ctx_get_fence()
775 static void amdgpu_ctx_set_entity_priority(struct amdgpu_ctx *ctx, in amdgpu_ctx_set_entity_priority()
800 void amdgpu_ctx_priority_override(struct amdgpu_ctx *ctx, in amdgpu_ctx_priority_override()
821 int amdgpu_ctx_wait_prev_fence(struct amdgpu_ctx *ctx, in amdgpu_ctx_wait_prev_fence()
860 struct amdgpu_ctx *ctx; in amdgpu_ctx_mgr_entity_flush()
886 struct amdgpu_ctx *ctx; in amdgpu_ctx_mgr_entity_fini()
914 struct amdgpu_ctx *ctx; in amdgpu_ctx_mgr_fini()
934 struct amdgpu_ctx *ctx; in amdgpu_ctx_mgr_usage()