Home
last modified time | relevance | path

Searched refs:pstate (Results 1 – 25 of 87) sorted by relevance

1234

/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dbase.c42 u8 pstate, u8 domain, u32 input) in nvkm_clk_adjust() argument
49 data = nvbios_boostEm(bios, pstate, &ver, &hdr, &cnt, &len, &boostE); in nvkm_clk_adjust()
112 nvkm_cstate_find_best(struct nvkm_clk *clk, struct nvkm_pstate *pstate, in nvkm_cstate_find_best() argument
119 if (!pstate || !cstate) in nvkm_cstate_find_best()
136 list_for_each_entry_from_reverse(cstate, &pstate->list, head) { in nvkm_cstate_find_best()
145 nvkm_cstate_get(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_get() argument
149 return list_last_entry(&pstate->list, typeof(*cstate), head); in nvkm_cstate_get()
151 list_for_each_entry(cstate, &pstate->list, head) { in nvkm_cstate_get()
160 nvkm_cstate_prog(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_prog() argument
169 if (!list_empty(&pstate->list)) { in nvkm_cstate_prog()
[all …]
/linux/drivers/regulator/
H A Dpwm-regulator.c86 struct pwm_state pstate; in pwm_regulator_set_voltage_sel() local
89 pwm_init_state(drvdata->pwm, &pstate); in pwm_regulator_set_voltage_sel()
90 pwm_set_relative_duty_cycle(&pstate, in pwm_regulator_set_voltage_sel()
93 ret = pwm_apply_might_sleep(drvdata->pwm, &pstate); in pwm_regulator_set_voltage_sel()
154 struct pwm_state pstate; in pwm_regulator_get_voltage() local
158 pwm_get_state(drvdata->pwm, &pstate); in pwm_regulator_get_voltage()
160 if (!pstate.enabled) { in pwm_regulator_get_voltage()
161 if (pstate.polarity == PWM_POLARITY_INVERSED) in pwm_regulator_get_voltage()
162 pstate.duty_cycle = pstate.period; in pwm_regulator_get_voltage()
164 pstate.duty_cycle = 0; in pwm_regulator_get_voltage()
[all …]
/linux/arch/arm64/kernel/
H A Dprocess.c164 u64 pstate = regs->pstate; in print_pstate() local
168 pstate, in print_pstate()
169 pstate & PSR_AA32_N_BIT ? 'N' : 'n', in print_pstate()
170 pstate & PSR_AA32_Z_BIT ? 'Z' : 'z', in print_pstate()
171 pstate & PSR_AA32_C_BIT ? 'C' : 'c', in print_pstate()
172 pstate & PSR_AA32_V_BIT ? 'V' : 'v', in print_pstate()
173 pstate & PSR_AA32_Q_BIT ? 'Q' : 'q', in print_pstate()
174 pstate & PSR_AA32_T_BIT ? "T32" : "A32", in print_pstate()
175 pstate & PSR_AA32_E_BIT ? "BE" : "LE", in print_pstate()
176 pstate & PSR_AA32_A_BIT ? 'A' : 'a', in print_pstate()
[all …]
/linux/drivers/cpufreq/
H A Dintel_pstate.c236 struct pstate_data pstate; member
295 u64 (*get_val)(struct cpudata*, int pstate);
537 if (freq == cpu->pstate.turbo_freq) in intel_pstate_freq_to_hwp_rel()
538 return cpu->pstate.turbo_pstate; in intel_pstate_freq_to_hwp_rel()
540 if (freq == cpu->pstate.max_freq) in intel_pstate_freq_to_hwp_rel()
541 return cpu->pstate.max_pstate; in intel_pstate_freq_to_hwp_rel()
545 return freq / cpu->pstate.scaling; in intel_pstate_freq_to_hwp_rel()
547 return DIV_ROUND_CLOSEST(freq, cpu->pstate.scaling); in intel_pstate_freq_to_hwp_rel()
550 return DIV_ROUND_UP(freq, cpu->pstate.scaling); in intel_pstate_freq_to_hwp_rel()
571 int perf_ctl_max_phys = cpu->pstate.max_pstate_physical; in intel_pstate_hybrid_hwp_adjust()
[all …]
/linux/Documentation/admin-guide/pm/
H A Damd-pstate.rst5 ``amd-pstate`` CPU Performance Scaling Driver
16 ``amd-pstate`` is the AMD CPU performance scaling driver that introduces a
26 ``amd-pstate`` leverages the Linux kernel governors such as ``schedutil``,
30 Volume 2: System Programming [1]_). Currently, ``amd-pstate`` supports basic
45 interpreter for performance adjustments. ``amd-pstate`` will initialize a
117 effectively conveys the most efficient performance level to ``amd-pstate``.
130 ``amd-pstate`` passes performance goals through these registers. The
136 ``amd-pstate`` specifies the minimum allowed performance level.
141 ``amd-pstate`` specifies a limit the maximum performance that is expected
147 ``amd-pstate`` specifies a desired target in the CPPC performance scale as
[all …]
/linux/samples/bpf/
H A Dcpustat_kern.c106 u64 *cts, *pts, *cstate, *pstate, prev_state, cur_ts, delta; in bpf_prog1() local
131 pstate = bpf_map_lookup_elem(&my_map, &key); in bpf_prog1()
132 if (!pstate) in bpf_prog1()
171 pstate_idx = find_cpu_pstate_idx(*pstate); in bpf_prog1()
214 u64 *pts, *cstate, *pstate, cur_ts, delta; in bpf_prog2() local
226 pstate = bpf_map_lookup_elem(&my_map, &key); in bpf_prog2()
227 if (!pstate) in bpf_prog2()
235 *pstate = ctx->state; in bpf_prog2()
267 pstate_idx = find_cpu_pstate_idx(*pstate); in bpf_prog2()
/linux/drivers/gpu/drm/nouveau/nvkm/engine/device/
H A Dctrl.c55 args->v0.pstate = clk->pstate; in nvkm_control_mthd_pstate_info()
61 args->v0.pstate = NVIF_CONTROL_PSTATE_INFO_V0_PSTATE_UNKNOWN; in nvkm_control_mthd_pstate_info()
75 struct nvkm_pstate *pstate; in nvkm_control_mthd_pstate_attr() local
106 list_for_each_entry(pstate, &clk->states, head) { in nvkm_control_mthd_pstate_attr()
111 lo = pstate->base.domain[domain->name]; in nvkm_control_mthd_pstate_attr()
113 list_for_each_entry(cstate, &pstate->list, head) { in nvkm_control_mthd_pstate_attr()
118 args->v0.state = pstate->pstate; in nvkm_control_mthd_pstate_attr()
/linux/tools/testing/selftests/amd-pstate/
H A Dbasic.sh27 if ! /sbin/modprobe -q -n amd-pstate-ut; then
31 if /sbin/modprobe -q amd-pstate-ut; then
32 /sbin/modprobe -q -r amd-pstate-ut
/linux/arch/sparc/kernel/
H A Drtrap_64.S28 661: wrpr %g0, RTRAP_PSTATE, %pstate
36 wrpr %g0, RTRAP_PSTATE|PSTATE_MCDE, %pstate
39 wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate
44 661: wrpr %g0, RTRAP_PSTATE, %pstate
52 wrpr %g0, RTRAP_PSTATE|PSTATE_MCDE, %pstate
55 wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate
70 661: wrpr %g0, RTRAP_PSTATE, %pstate
78 wrpr %g0, RTRAP_PSTATE|PSTATE_MCDE, %pstate
80 wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate
159 to_user: wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate
[all …]
H A Dspiterrs.S159 rdpr %pstate, %g4
160 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate
187 rdpr %pstate, %g4
188 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate
207 rdpr %pstate, %g4
208 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate
226 rdpr %pstate, %g4
227 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate
H A Dhelpers.S29 rdpr %pstate, %o0
30 wrpr %o0, PSTATE_IE, %pstate
45 wrpr %o0, %pstate
H A Dtsb.S147 661: rdpr %pstate, %g5
148 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate
254 661: rdpr %pstate, %g5
255 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate
320 rdpr %pstate, %o5
321 wrpr %o5, PSTATE_IE, %pstate
324 wrpr %o5, %pstate
374 rdpr %pstate, %g1
375 wrpr %g1, PSTATE_IE, %pstate
457 wrpr %g1, %pstate
H A Dsmp_64.c393 static void spitfire_xcall_helper(u64 data0, u64 data1, u64 data2, u64 pstate, unsigned long cpu) in spitfire_xcall_helper() argument
428 : "r" (pstate), "i" (PSTATE_IE), "i" (ASI_INTR_W), in spitfire_xcall_helper()
441 : : "r" (pstate)); in spitfire_xcall_helper()
449 : : "r" (pstate)); in spitfire_xcall_helper()
463 u64 pstate; in spitfire_xcall_deliver() local
466 __asm__ __volatile__("rdpr %%pstate, %0" : "=r" (pstate)); in spitfire_xcall_deliver()
473 spitfire_xcall_helper(data0, data1, data2, pstate, cpu_list[i]); in spitfire_xcall_deliver()
483 u64 *mondo, pstate, ver, busy_mask; in cheetah_xcall_deliver() local
497 __asm__ __volatile__("rdpr %%pstate, %0" : "=r" (pstate)); in cheetah_xcall_deliver()
502 : : "r" (pstate), "i" (PSTATE_IE)); in cheetah_xcall_deliver()
[all …]
/linux/arch/arm64/kvm/
H A Dreset.c194 u32 pstate; in kvm_reset_vcpu() local
214 pstate = VCPU_RESET_PSTATE_SVC; in kvm_reset_vcpu()
216 pstate = VCPU_RESET_PSTATE_EL2; in kvm_reset_vcpu()
218 pstate = VCPU_RESET_PSTATE_EL1; in kvm_reset_vcpu()
227 vcpu_gp_regs(vcpu)->pstate = pstate; in kvm_reset_vcpu()
/linux/drivers/net/wwan/
H A Dwwan_hwsim.c68 } pstate; member
117 port->at_emul.pstate = AT_PARSER_WAIT_A; in wwan_hwsim_at_emul_start()
154 if (port->at_emul.pstate == AT_PARSER_WAIT_A) { in wwan_hwsim_at_emul_tx()
156 port->at_emul.pstate = AT_PARSER_WAIT_T; in wwan_hwsim_at_emul_tx()
158 port->at_emul.pstate = AT_PARSER_SKIP_LINE; in wwan_hwsim_at_emul_tx()
159 } else if (port->at_emul.pstate == AT_PARSER_WAIT_T) { in wwan_hwsim_at_emul_tx()
161 port->at_emul.pstate = AT_PARSER_WAIT_TERM; in wwan_hwsim_at_emul_tx()
163 port->at_emul.pstate = AT_PARSER_SKIP_LINE; in wwan_hwsim_at_emul_tx()
164 } else if (port->at_emul.pstate == AT_PARSER_WAIT_TERM) { in wwan_hwsim_at_emul_tx()
174 port->at_emul.pstate = AT_PARSER_WAIT_A; in wwan_hwsim_at_emul_tx()
[all …]
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dcstep.c78 info->pstate = (nvbios_rd16(bios, data + 0x00) & 0x01e0) >> 5; in nvbios_cstepEp()
85 nvbios_cstepEm(struct nvkm_bios *bios, u8 pstate, u8 *ver, u8 *hdr, in nvbios_cstepEm() argument
90 if (info->pstate == pstate) in nvbios_cstepEm()
H A Dboost.c81 info->pstate = (nvbios_rd16(bios, data + 0x00) & 0x01e0) >> 5; in nvbios_boostEp()
89 nvbios_boostEm(struct nvkm_bios *bios, u8 pstate, in nvbios_boostEm() argument
94 if (info->pstate == pstate) in nvbios_boostEm()
/linux/arch/arm64/kvm/hyp/include/hyp/
H A Dsysreg-sr.h185 ctxt->regs.pstate = read_sysreg_el2(SYS_SPSR); in __sysreg_save_el2_return_state()
293 u64 mode = ctxt->regs.pstate & (PSR_MODE_MASK | PSR_MODE32_BIT); in to_hw_pstate()
304 return (ctxt->regs.pstate & ~(PSR_MODE_MASK | PSR_MODE32_BIT)) | mode; in to_hw_pstate()
309 u64 pstate = to_hw_pstate(ctxt); in __sysreg_restore_el2_return_state() local
310 u64 mode = pstate & PSR_AA32_MODE_MASK; in __sysreg_restore_el2_return_state()
325 pstate = PSR_MODE_EL2h | PSR_IL_BIT; in __sysreg_restore_el2_return_state()
328 write_sysreg_el2(pstate, SYS_SPSR); in __sysreg_restore_el2_return_state()
H A Dadjust_pc.h36 vcpu_gp_regs(vcpu)->pstate = read_sysreg_el2(SYS_SPSR); in __kvm_skip_instr()
40 write_sysreg_el2(vcpu_gp_regs(vcpu)->pstate, SYS_SPSR); in __kvm_skip_instr()
/linux/arch/sparc/mm/
H A Dultra.S60 rdpr %pstate, %g7
62 wrpr %g2, %pstate
77 wrpr %g7, 0x0, %pstate
87 rdpr %pstate, %g7
90 wrpr %g2, %pstate
109 wrpr %g7, 0x0, %pstate
174 rdpr %pstate, %g1
175 wrpr %g1, PSTATE_IE, %pstate
184 wrpr %g1, 0, %pstate
251 rdpr %pstate, %g7
[all …]
/linux/tools/testing/selftests/arm64/signal/testcases/
H A Dmangle_pstate_invalid_mode_template.h15 uc->uc_mcontext.pstate &= ~PSR_MODE_MASK; \
16 uc->uc_mcontext.pstate |= PSR_MODE_EL ## _mode; \
/linux/arch/sparc/lib/
H A Dclear_page.S66 rdpr %pstate, %o4
67 wrpr %o4, PSTATE_IE, %pstate
72 wrpr %o4, 0x0, %pstate
/linux/drivers/thermal/intel/
H A Dtherm_throt.c389 struct thermal_state *pstate = &per_cpu(thermal_state, this_cpu); in therm_throt_process() local
394 state = &pstate->core_throttle; in therm_throt_process()
396 state = &pstate->core_power_limit; in therm_throt_process()
401 state = &pstate->package_throttle; in therm_throt_process()
403 state = &pstate->package_power_limit; in therm_throt_process()
449 struct thermal_state *pstate = &per_cpu(thermal_state, this_cpu); in thresh_event_valid() local
453 state = (event == 0) ? &pstate->pkg_thresh0 : in thresh_event_valid()
454 &pstate->pkg_thresh1; in thresh_event_valid()
456 state = (event == 0) ? &pstate->core_thresh0 : in thresh_event_valid()
457 &pstate->core_thresh1; in thresh_event_valid()
/linux/drivers/clk/tegra/
H A Dclk-device.c34 unsigned int pstate; in tegra_clock_set_pd_state() local
55 pstate = dev_pm_opp_get_required_pstate(opp, 0); in tegra_clock_set_pd_state()
58 return dev_pm_genpd_set_performance_state(dev, pstate); in tegra_clock_set_pd_state()
/linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
H A Dcstep.h8 u8 pstate; member
15 u32 nvbios_cstepEm(struct nvkm_bios *, u8 pstate, u8 *ver, u8 *hdr,

1234