Lines Matching refs:stable_pstate
292 u32 *stable_pstate) in amdgpu_ctx_get_stable_pstate() argument
301 *stable_pstate = AMDGPU_CTX_STABLE_PSTATE_STANDARD; in amdgpu_ctx_get_stable_pstate()
304 *stable_pstate = AMDGPU_CTX_STABLE_PSTATE_MIN_SCLK; in amdgpu_ctx_get_stable_pstate()
307 *stable_pstate = AMDGPU_CTX_STABLE_PSTATE_MIN_MCLK; in amdgpu_ctx_get_stable_pstate()
310 *stable_pstate = AMDGPU_CTX_STABLE_PSTATE_PEAK; in amdgpu_ctx_get_stable_pstate()
313 *stable_pstate = AMDGPU_CTX_STABLE_PSTATE_NONE; in amdgpu_ctx_get_stable_pstate()
347 ctx->stable_pstate = mgr->adev->pm.stable_pstate_ctx->stable_pstate; in amdgpu_ctx_init()
349 ctx->stable_pstate = current_stable_pstate; in amdgpu_ctx_init()
356 u32 stable_pstate) in amdgpu_ctx_set_stable_pstate() argument
370 if (r || (stable_pstate == current_stable_pstate)) in amdgpu_ctx_set_stable_pstate()
373 switch (stable_pstate) { in amdgpu_ctx_set_stable_pstate()
426 amdgpu_ctx_set_stable_pstate(ctx, ctx->stable_pstate); in amdgpu_ctx_fini()
638 bool set, u32 *stable_pstate) in amdgpu_ctx_stable_pstate() argument
656 r = amdgpu_ctx_set_stable_pstate(ctx, *stable_pstate); in amdgpu_ctx_stable_pstate()
658 r = amdgpu_ctx_get_stable_pstate(ctx, stable_pstate); in amdgpu_ctx_stable_pstate()
668 uint32_t id, stable_pstate; in amdgpu_ctx_ioctl() local
702 r = amdgpu_ctx_stable_pstate(adev, fpriv, id, false, &stable_pstate); in amdgpu_ctx_ioctl()
704 args->out.pstate.flags = stable_pstate; in amdgpu_ctx_ioctl()
709 stable_pstate = args->in.flags & AMDGPU_CTX_STABLE_PSTATE_FLAGS_MASK; in amdgpu_ctx_ioctl()
710 if (stable_pstate > AMDGPU_CTX_STABLE_PSTATE_PEAK) in amdgpu_ctx_ioctl()
712 r = amdgpu_ctx_stable_pstate(adev, fpriv, id, true, &stable_pstate); in amdgpu_ctx_ioctl()