Home
last modified time | relevance | path

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

12345

/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
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-v5.4/tools/power/cpupower/utils/helpers/
Damd.c42 static int get_did(int family, union msr_pstate pstate) in get_did() argument
47 t = pstate.val & 0xf; in get_did()
49 t = pstate.fam17h_bits.did; in get_did()
51 t = pstate.bits.did; in get_did()
56 static int get_cof(int family, union msr_pstate pstate) in get_cof() argument
61 did = get_did(family, pstate); in get_cof()
63 fid = pstate.fam17h_bits.fid; in get_cof()
67 fid = pstate.bits.fid; in get_cof()
92 union msr_pstate pstate; in decode_pstates() local
120 if (read_msr(cpu, MSR_AMD_PSTATE + i, &pstate.val)) in decode_pstates()
[all …]
/Linux-v5.4/arch/arm64/kernel/
Dprocess.c214 u64 pstate = regs->pstate; in print_pstate() local
218 pstate, in print_pstate()
219 pstate & PSR_AA32_N_BIT ? 'N' : 'n', in print_pstate()
220 pstate & PSR_AA32_Z_BIT ? 'Z' : 'z', in print_pstate()
221 pstate & PSR_AA32_C_BIT ? 'C' : 'c', in print_pstate()
222 pstate & PSR_AA32_V_BIT ? 'V' : 'v', in print_pstate()
223 pstate & PSR_AA32_Q_BIT ? 'Q' : 'q', in print_pstate()
224 pstate & PSR_AA32_T_BIT ? "T32" : "A32", in print_pstate()
225 pstate & PSR_AA32_E_BIT ? "BE" : "LE", in print_pstate()
226 pstate & PSR_AA32_A_BIT ? 'A' : 'a', in print_pstate()
[all …]
Dinsn.c1399 static bool __kprobes __check_eq(unsigned long pstate) in __check_eq() argument
1401 return (pstate & PSR_Z_BIT) != 0; in __check_eq()
1404 static bool __kprobes __check_ne(unsigned long pstate) in __check_ne() argument
1406 return (pstate & PSR_Z_BIT) == 0; in __check_ne()
1409 static bool __kprobes __check_cs(unsigned long pstate) in __check_cs() argument
1411 return (pstate & PSR_C_BIT) != 0; in __check_cs()
1414 static bool __kprobes __check_cc(unsigned long pstate) in __check_cc() argument
1416 return (pstate & PSR_C_BIT) == 0; in __check_cc()
1419 static bool __kprobes __check_mi(unsigned long pstate) in __check_mi() argument
1421 return (pstate & PSR_N_BIT) != 0; in __check_mi()
[all …]
/Linux-v5.4/arch/arm64/include/asm/
Dptrace.h132 unsigned long pstate; in compat_psr_to_pstate() local
134 pstate = psr & ~COMPAT_PSR_DIT_BIT; in compat_psr_to_pstate()
137 pstate |= PSR_AA32_DIT_BIT; in compat_psr_to_pstate()
139 return pstate; in compat_psr_to_pstate()
142 static inline unsigned long pstate_to_compat_psr(const unsigned long pstate) in pstate_to_compat_psr() argument
146 psr = pstate & ~PSR_AA32_DIT_BIT; in pstate_to_compat_psr()
148 if (pstate & PSR_AA32_DIT_BIT) in pstate_to_compat_psr()
166 u64 pstate; member
194 #define MAX_REG_OFFSET offsetof(struct pt_regs, pstate)
200 (((regs)->pstate & PSR_AA32_T_BIT))
[all …]
Dprocessor.h197 regs->pstate |= PSR_SSBS_BIT; in set_ssbs_bit()
202 regs->pstate |= PSR_AA32_SSBS_BIT; in set_compat_ssbs_bit()
209 regs->pstate = PSR_MODE_EL0t; in start_thread()
222 regs->pstate = PSR_AA32_MODE_USR; in compat_start_thread()
224 regs->pstate |= PSR_AA32_T_BIT; in compat_start_thread()
227 regs->pstate |= PSR_AA32_E_BIT; in compat_start_thread()
/Linux-v5.4/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_plane.c140 struct dpu_plane_state *pstate; in _dpu_plane_calc_fill_level() local
150 pstate = to_dpu_plane_state(plane->state); in _dpu_plane_calc_fill_level()
175 if (pstate->multirect_mode == DPU_SSPP_MULTIRECT_PARALLEL) { in _dpu_plane_calc_fill_level()
417 struct dpu_plane_state *pstate, in _dpu_plane_set_scanout() argument
434 pstate->multirect_index); in _dpu_plane_set_scanout()
436 pstate->multirect_index); in _dpu_plane_set_scanout()
441 struct dpu_plane_state *pstate, in _dpu_plane_setup_scaler3() argument
450 memset(&pstate->pixel_ext, 0, sizeof(struct dpu_hw_pixel_ext)); in _dpu_plane_setup_scaler3()
482 pstate->pixel_ext.num_ext_pxls_top[i] = in _dpu_plane_setup_scaler3()
484 pstate->pixel_ext.num_ext_pxls_left[i] = in _dpu_plane_setup_scaler3()
[all …]
Ddpu_crtc.c64 struct dpu_plane_state *pstate, struct dpu_format *format) in _dpu_crtc_setup_blend_cfg() argument
81 lm->ops.setup_blend_config(lm, pstate->stage, in _dpu_crtc_setup_blend_cfg()
122 struct dpu_plane_state *pstate = NULL; in _dpu_crtc_blend_setup_mixer() local
137 pstate = to_dpu_plane_state(state); in _dpu_crtc_blend_setup_mixer()
144 pstate->stage, in _dpu_crtc_blend_setup_mixer()
149 format = to_dpu_format(msm_framebuffer_format(pstate->base.fb)); in _dpu_crtc_blend_setup_mixer()
151 if (pstate->stage == DPU_STAGE_BASE && format->alpha_enable) in _dpu_crtc_blend_setup_mixer()
154 stage_idx = zpos_cnt[pstate->stage]++; in _dpu_crtc_blend_setup_mixer()
155 stage_cfg->stage[pstate->stage][stage_idx] = in _dpu_crtc_blend_setup_mixer()
157 stage_cfg->multirect_index[pstate->stage][stage_idx] = in _dpu_crtc_blend_setup_mixer()
[all …]
/Linux-v5.4/drivers/cpufreq/
Dintel_pstate.c240 struct pstate_data pstate; member
291 u64 (*get_val)(struct cpudata*, int pstate);
510 cpu->pstate.max_pstate == cpu->pstate.turbo_pstate); in update_turbo_state()
516 int turbo_pstate = cpu->pstate.turbo_pstate; in min_perf_pct_min()
519 (cpu->pstate.min_pstate * 100 / turbo_pstate) : 0; in min_perf_pct_min()
740 return sprintf(buf, "%d\n", ratio * cpu->pstate.scaling); in show_base_frequency()
907 cpudata->pstate.max_freq : cpudata->pstate.turbo_freq; in intel_pstate_update_max_freq()
986 total = cpu->pstate.turbo_pstate - cpu->pstate.min_pstate + 1; in show_turbo_pct()
987 no_turbo = cpu->pstate.max_pstate - cpu->pstate.min_pstate + 1; in show_turbo_pct()
1010 total = cpu->pstate.turbo_pstate - cpu->pstate.min_pstate + 1; in show_num_pstates()
[all …]
Dbrcmstb-avs-cpufreq.c365 static int brcm_avs_get_pstate(struct private_data *priv, unsigned int *pstate) in brcm_avs_get_pstate() argument
373 *pstate = args[0]; in brcm_avs_get_pstate()
378 static int brcm_avs_set_pstate(struct private_data *priv, unsigned int pstate) in brcm_avs_set_pstate() argument
382 args[0] = pstate; in brcm_avs_set_pstate()
405 unsigned int pstate; in brcm_avs_get_freq_table() local
409 ret = brcm_avs_get_pstate(priv, &pstate); in brcm_avs_get_freq_table()
428 ret = brcm_avs_set_pstate(priv, pstate); in brcm_avs_get_freq_table()
596 unsigned int pstate; in brcm_avs_cpufreq_init() local
598 ret = brcm_avs_get_pstate(priv, &pstate); in brcm_avs_cpufreq_init()
600 policy->cur = freq_table[pstate].frequency; in brcm_avs_cpufreq_init()
[all …]
/Linux-v5.4/samples/bpf/
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, prev_state, 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 prev_state = *pstate; in bpf_prog2()
236 *pstate = ctx->state; in bpf_prog2()
268 pstate_idx = find_cpu_pstate_idx(*pstate); in bpf_prog2()
/Linux-v5.4/drivers/gpu/drm/arm/
Dmalidp_crtc.c256 const struct drm_plane_state *pstate; in malidp_crtc_atomic_check_scaling() local
271 drm_atomic_crtc_state_for_each_plane_state(plane, pstate, state) { in malidp_crtc_atomic_check_scaling()
282 h_upscale_factor = div_u64((u64)pstate->crtc_w << 32, in malidp_crtc_atomic_check_scaling()
283 pstate->src_w); in malidp_crtc_atomic_check_scaling()
284 v_upscale_factor = div_u64((u64)pstate->crtc_h << 32, in malidp_crtc_atomic_check_scaling()
285 pstate->src_h); in malidp_crtc_atomic_check_scaling()
290 if (pstate->rotation & MALIDP_ROTATED_MASK) { in malidp_crtc_atomic_check_scaling()
291 s->input_w = pstate->src_h >> 16; in malidp_crtc_atomic_check_scaling()
292 s->input_h = pstate->src_w >> 16; in malidp_crtc_atomic_check_scaling()
294 s->input_w = pstate->src_w >> 16; in malidp_crtc_atomic_check_scaling()
[all …]
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/engine/device/
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-v5.4/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_plane.c104 struct mdp5_plane_state *pstate; in mdp5_plane_atomic_set_property() local
108 pstate = to_mdp5_plane_state(state); in mdp5_plane_atomic_set_property()
112 pstate->name = (type)val; \ in mdp5_plane_atomic_set_property()
132 struct mdp5_plane_state *pstate; in mdp5_plane_atomic_get_property() local
136 pstate = to_mdp5_plane_state(state); in mdp5_plane_atomic_get_property()
140 *val = pstate->name; \ in mdp5_plane_atomic_get_property()
159 struct mdp5_plane_state *pstate = to_mdp5_plane_state(state); in mdp5_plane_atomic_print_state() local
162 drm_printf(p, "\thwpipe=%s\n", pstate->hwpipe ? in mdp5_plane_atomic_print_state()
163 pstate->hwpipe->name : "(null)"); in mdp5_plane_atomic_print_state()
166 pstate->r_hwpipe ? pstate->r_hwpipe->name : in mdp5_plane_atomic_print_state()
[all …]
Dmdp5_crtc.c218 struct mdp5_plane_state *pstate, *pstates[STAGE_MAX + 1] = {NULL}; in blend_setup() local
251 pstate = to_mdp5_plane_state(plane->state); in blend_setup()
252 pstates[pstate->stage] = pstate; in blend_setup()
253 stage[pstate->stage][PIPE_LEFT] = mdp5_plane_pipe(plane); in blend_setup()
259 r_stage[pstate->stage][PIPE_LEFT] = in blend_setup()
268 stage[pstate->stage][PIPE_RIGHT] = right_pipe; in blend_setup()
269 r_stage[pstate->stage][PIPE_RIGHT] = right_pipe; in blend_setup()
580 struct drm_plane_state *pstate) in is_fullscreen() argument
582 return (pstate->crtc_x <= 0) && (pstate->crtc_y <= 0) && in is_fullscreen()
583 ((pstate->crtc_x + pstate->crtc_w) >= cstate->mode.hdisplay) && in is_fullscreen()
[all …]
/Linux-v5.4/drivers/regulator/
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_state(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 voltage = pwm_get_relative_duty_cycle(&pstate, duty_unit); in pwm_regulator_get_voltage()
191 struct pwm_state pstate; in pwm_regulator_set_voltage() local
196 pwm_init_state(drvdata->pwm, &pstate); in pwm_regulator_set_voltage()
217 pwm_set_relative_duty_cycle(&pstate, dutycycle, duty_unit); in pwm_regulator_set_voltage()
[all …]
/Linux-v5.4/arch/x86/kernel/cpu/mce/
Dtherm_throt.c155 struct thermal_state *pstate = &per_cpu(thermal_state, this_cpu); in therm_throt_process() local
160 state = &pstate->core_throttle; in therm_throt_process()
162 state = &pstate->core_power_limit; in therm_throt_process()
167 state = &pstate->package_throttle; in therm_throt_process()
169 state = &pstate->package_power_limit; in therm_throt_process()
209 struct thermal_state *pstate = &per_cpu(thermal_state, this_cpu); in thresh_event_valid() local
213 state = (event == 0) ? &pstate->pkg_thresh0 : in thresh_event_valid()
214 &pstate->pkg_thresh1; in thresh_event_valid()
216 state = (event == 0) ? &pstate->core_thresh0 : in thresh_event_valid()
217 &pstate->core_thresh1; in thresh_event_valid()
/Linux-v5.4/arch/sparc/kernel/
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 …]
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
Dhelpers.S29 rdpr %pstate, %o0
30 wrpr %o0, PSTATE_IE, %pstate
45 wrpr %o0, %pstate
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
/Linux-v5.4/drivers/gpu/drm/tve200/
Dtve200_display.c71 struct drm_plane_state *pstate, in tve200_display_check() argument
76 struct drm_framebuffer *fb = pstate->fb; in tve200_display_check()
92 u32 offset = drm_fb_cma_get_gem_addr(fb, pstate, 0); in tve200_display_check()
247 struct drm_plane_state *pstate = plane->state; in tve200_display_update() local
248 struct drm_framebuffer *fb = pstate->fb; in tve200_display_update()
252 writel(drm_fb_cma_get_gem_addr(fb, pstate, 0), in tve200_display_update()
257 writel(drm_fb_cma_get_gem_addr(fb, pstate, 1), in tve200_display_update()
259 writel(drm_fb_cma_get_gem_addr(fb, pstate, 2), in tve200_display_update()
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
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()
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-v5.4/arch/arm64/kvm/hyp/
Dsysreg-sr.c72 ctxt->gp_regs.regs.pstate = read_sysreg_el2(SYS_SPSR); in __sysreg_save_el2_return_state()
146 u64 pstate = ctxt->gp_regs.regs.pstate; in __sysreg_restore_el2_return_state() local
147 u64 mode = pstate & PSR_AA32_MODE_MASK; in __sysreg_restore_el2_return_state()
161 pstate = PSR_MODE_EL2h | PSR_IL_BIT; in __sysreg_restore_el2_return_state()
164 write_sysreg_el2(pstate, SYS_SPSR); in __sysreg_restore_el2_return_state()

12345