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()
641 bool set, u32 *stable_pstate) in amdgpu_ctx_stable_pstate() argument
659 r = amdgpu_ctx_set_stable_pstate(ctx, *stable_pstate); in amdgpu_ctx_stable_pstate()
661 r = amdgpu_ctx_get_stable_pstate(ctx, stable_pstate); in amdgpu_ctx_stable_pstate()
671 uint32_t id, stable_pstate; in amdgpu_ctx_ioctl() local
713 r = amdgpu_ctx_stable_pstate(adev, fpriv, id, false, &stable_pstate); in amdgpu_ctx_ioctl()
715 args->out.pstate.flags = stable_pstate; in amdgpu_ctx_ioctl()
720 stable_pstate = args->in.flags & AMDGPU_CTX_STABLE_PSTATE_FLAGS_MASK; in amdgpu_ctx_ioctl()
721 if (stable_pstate > AMDGPU_CTX_STABLE_PSTATE_PEAK) in amdgpu_ctx_ioctl()
723 r = amdgpu_ctx_stable_pstate(adev, fpriv, id, true, &stable_pstate); in amdgpu_ctx_ioctl()