Home
last modified time | relevance | path

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

12345

/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/arch/arm64/kernel/
H A Dtraps.c52 static bool __kprobes __check_eq(unsigned long pstate) in __check_eq() argument
54 return (pstate & PSR_Z_BIT) != 0; in __check_eq()
57 static bool __kprobes __check_ne(unsigned long pstate) in __check_ne() argument
59 return (pstate & PSR_Z_BIT) == 0; in __check_ne()
62 static bool __kprobes __check_cs(unsigned long pstate) in __check_cs() argument
64 return (pstate & PSR_C_BIT) != 0; in __check_cs()
67 static bool __kprobes __check_cc(unsigned long pstate) in __check_cc() argument
69 return (pstate & PSR_C_BIT) == 0; in __check_cc()
72 static bool __kprobes __check_mi(unsigned long pstate) in __check_mi() argument
74 return (pstate & PSR_N_BIT) != 0; in __check_mi()
[all …]
H A Dprocess.c164 u64 pstate = regs->pstate; in print_pstate() local
167 printk("pstate: %08llx (%c%c%c%c %c %s %s %c%c%c %cDIT %cSSBS)\n", in print_pstate()
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 in print_pstate()
[all...]
/linux/arch/arm64/include/asm/
H A Dptrace.h148 unsigned long pstate;
150 pstate = psr & ~COMPAT_PSR_DIT_BIT;
153 pstate |= PSR_AA32_DIT_BIT;
155 return pstate; member
158 static inline unsigned long pstate_to_compat_psr(const unsigned long pstate)
162 psr = pstate & ~PSR_AA32_DIT_BIT;
164 if (pstate & PSR_AA32_DIT_BIT)
181 u64 pstate; in forget_syscall()
210 #define MAX_REG_OFFSET offsetof(struct pt_regs, pstate) in regs_irqs_disabled()
216 (((regs)->pstate
122 unsigned long pstate; compat_psr_to_pstate() local
132 pstate_to_compat_psr(const unsigned long pstate) pstate_to_compat_psr() argument
[all...]
H A Dprocessor.h306 unsigned long pstate) in start_thread_common() argument
314 .pstate = pstate, in start_thread_common()
351 unsigned long pstate = PSR_AA32_MODE_USR; in compat_start_thread() local
353 pstate |= PSR_AA32_T_BIT; in compat_start_thread()
355 start_thread_common(regs, pc, pstate); in compat_start_thread()
/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 in pwm_regulator_get_voltage()
201 struct pwm_state pstate; pwm_regulator_set_voltage() local
328 struct pwm_state pstate; pwm_regulator_init_boot_on() local
[all...]
/linux/drivers/cpufreq/
H A Dintel_pstate.c198 * @pstate: Stores P state limits for this CPU
236 struct pstate_data pstate; member
295 u64 (*get_val)(struct cpudata*, int pstate);
538 if (freq == cpu->pstate.turbo_freq) in intel_pstate_freq_to_hwp_rel()
539 return cpu->pstate.turbo_pstate; in intel_pstate_freq_to_hwp_rel()
541 if (freq == cpu->pstate.max_freq) in intel_pstate_freq_to_hwp_rel()
542 return cpu->pstate.max_pstate; in intel_pstate_freq_to_hwp_rel()
546 return freq / cpu->pstate.scaling; in intel_pstate_freq_to_hwp_rel()
548 return DIV_ROUND_CLOSEST(freq, cpu->pstate.scaling); in intel_pstate_freq_to_hwp_rel()
551 return DIV_ROUND_UP(freq, cpu->pstate in intel_pstate_freq_to_hwp_rel()
2017 get_perf_ctl_val(int pstate) get_perf_ctl_val() argument
2053 atom_get_val(struct cpudata * cpudata,int pstate) atom_get_val() argument
2216 core_get_val(struct cpudata * cpudata,int pstate) core_get_val() argument
2544 intel_pstate_prepare_request(struct cpudata * cpu,int pstate) intel_pstate_prepare_request() argument
2552 intel_pstate_update_pstate(struct cpudata * cpu,int pstate) intel_pstate_update_pstate() argument
2862 intel_pstate_set_pstate(struct cpudata * cpu,int pstate) intel_pstate_set_pstate() argument
2910 int pstate = max(cpu->pstate.min_pstate, cpu->max_perf_ratio); intel_pstate_set_policy() local
[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`` specifie
[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
107 list_for_each_entry(pstate, &clk->states, head) { in nvkm_control_mthd_pstate_attr()
117 lo = pstate->base.domain[domain->name]; in nvkm_control_mthd_pstate_attr()
119 list_for_each_entry(cstate, &pstate->list, head) { in nvkm_control_mthd_pstate_attr()
124 args->v0.state = pstate->pstate; in nvkm_control_mthd_pstate_attr()
/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/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/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 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/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_core_perf.c91 struct dpu_plane_state *pstate;
100 pstate = to_dpu_plane_state(plane->state); in _dpu_core_perf_calc_clk()
101 if (!pstate) in _dpu_core_perf_calc_clk()
104 mode_clk = max(pstate->plane_clk, mode_clk); in _dpu_core_perf_calc_clk()
64 struct dpu_plane_state *pstate; _dpu_core_perf_calc_bw() local
96 struct dpu_plane_state *pstate; _dpu_core_perf_calc_clk() local
/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/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 in thresh_event_valid()
[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/arch/arm64/kvm/hyp/include/hyp/
H A Dadjust_pc.h

12345