Lines Matching refs:stable_pstate

293 					u32 *stable_pstate)  in amdgpu_ctx_get_stable_pstate()  argument
302 *stable_pstate = AMDGPU_CTX_STABLE_PSTATE_STANDARD; in amdgpu_ctx_get_stable_pstate()
305 *stable_pstate = AMDGPU_CTX_STABLE_PSTATE_MIN_SCLK; in amdgpu_ctx_get_stable_pstate()
308 *stable_pstate = AMDGPU_CTX_STABLE_PSTATE_MIN_MCLK; in amdgpu_ctx_get_stable_pstate()
311 *stable_pstate = AMDGPU_CTX_STABLE_PSTATE_PEAK; in amdgpu_ctx_get_stable_pstate()
314 *stable_pstate = AMDGPU_CTX_STABLE_PSTATE_NONE; in amdgpu_ctx_get_stable_pstate()
348 ctx->stable_pstate = mgr->adev->pm.stable_pstate_ctx->stable_pstate; in amdgpu_ctx_init()
350 ctx->stable_pstate = current_stable_pstate; in amdgpu_ctx_init()
357 u32 stable_pstate) in amdgpu_ctx_set_stable_pstate() argument
371 if (r || (stable_pstate == current_stable_pstate)) in amdgpu_ctx_set_stable_pstate()
374 switch (stable_pstate) { in amdgpu_ctx_set_stable_pstate()
427 amdgpu_ctx_set_stable_pstate(ctx, ctx->stable_pstate); in amdgpu_ctx_fini()
639 bool set, u32 *stable_pstate) in amdgpu_ctx_stable_pstate() argument
657 r = amdgpu_ctx_set_stable_pstate(ctx, *stable_pstate); in amdgpu_ctx_stable_pstate()
659 r = amdgpu_ctx_get_stable_pstate(ctx, stable_pstate); in amdgpu_ctx_stable_pstate()
669 uint32_t id, stable_pstate; in amdgpu_ctx_ioctl() local
711 r = amdgpu_ctx_stable_pstate(adev, fpriv, id, false, &stable_pstate); in amdgpu_ctx_ioctl()
713 args->out.pstate.flags = stable_pstate; in amdgpu_ctx_ioctl()
718 stable_pstate = args->in.flags & AMDGPU_CTX_STABLE_PSTATE_FLAGS_MASK; in amdgpu_ctx_ioctl()
719 if (stable_pstate > AMDGPU_CTX_STABLE_PSTATE_PEAK) in amdgpu_ctx_ioctl()
721 r = amdgpu_ctx_stable_pstate(adev, fpriv, id, true, &stable_pstate); in amdgpu_ctx_ioctl()