Lines Matching refs:stable_pstate

276 					u32 *stable_pstate)  in amdgpu_ctx_get_stable_pstate()  argument
285 *stable_pstate = AMDGPU_CTX_STABLE_PSTATE_STANDARD; in amdgpu_ctx_get_stable_pstate()
288 *stable_pstate = AMDGPU_CTX_STABLE_PSTATE_MIN_SCLK; in amdgpu_ctx_get_stable_pstate()
291 *stable_pstate = AMDGPU_CTX_STABLE_PSTATE_MIN_MCLK; in amdgpu_ctx_get_stable_pstate()
294 *stable_pstate = AMDGPU_CTX_STABLE_PSTATE_PEAK; in amdgpu_ctx_get_stable_pstate()
297 *stable_pstate = AMDGPU_CTX_STABLE_PSTATE_NONE; in amdgpu_ctx_get_stable_pstate()
330 ctx->stable_pstate = mgr->adev->pm.stable_pstate_ctx->stable_pstate; in amdgpu_ctx_init()
332 ctx->stable_pstate = current_stable_pstate; in amdgpu_ctx_init()
338 u32 stable_pstate) in amdgpu_ctx_set_stable_pstate() argument
352 if (r || (stable_pstate == current_stable_pstate)) in amdgpu_ctx_set_stable_pstate()
355 switch (stable_pstate) { in amdgpu_ctx_set_stable_pstate()
408 amdgpu_ctx_set_stable_pstate(ctx, ctx->stable_pstate); in amdgpu_ctx_fini()
611 bool set, u32 *stable_pstate) in amdgpu_ctx_stable_pstate() argument
629 r = amdgpu_ctx_set_stable_pstate(ctx, *stable_pstate); in amdgpu_ctx_stable_pstate()
631 r = amdgpu_ctx_get_stable_pstate(ctx, stable_pstate); in amdgpu_ctx_stable_pstate()
641 uint32_t id, stable_pstate; in amdgpu_ctx_ioctl() local
673 r = amdgpu_ctx_stable_pstate(adev, fpriv, id, false, &stable_pstate); in amdgpu_ctx_ioctl()
675 args->out.pstate.flags = stable_pstate; in amdgpu_ctx_ioctl()
680 stable_pstate = args->in.flags & AMDGPU_CTX_STABLE_PSTATE_FLAGS_MASK; in amdgpu_ctx_ioctl()
681 if (stable_pstate > AMDGPU_CTX_STABLE_PSTATE_PEAK) in amdgpu_ctx_ioctl()
683 r = amdgpu_ctx_stable_pstate(adev, fpriv, id, true, &stable_pstate); in amdgpu_ctx_ioctl()