| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/ |
| H A D | base.c | 42 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 D | pwm-regulator.c | 86 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/drivers/gpu/drm/arm/ |
| H A D | malidp_crtc.c | 255 const struct drm_plane_state *pstate; in malidp_crtc_atomic_check_scaling() local 270 drm_atomic_crtc_state_for_each_plane_state(plane, pstate, state) { in malidp_crtc_atomic_check_scaling() 281 h_upscale_factor = div_u64((u64)pstate->crtc_w << 32, in malidp_crtc_atomic_check_scaling() 282 pstate->src_w); in malidp_crtc_atomic_check_scaling() 283 v_upscale_factor = div_u64((u64)pstate->crtc_h << 32, in malidp_crtc_atomic_check_scaling() 284 pstate->src_h); in malidp_crtc_atomic_check_scaling() 289 if (pstate->rotation & MALIDP_ROTATED_MASK) { in malidp_crtc_atomic_check_scaling() 290 s->input_w = pstate->src_h >> 16; in malidp_crtc_atomic_check_scaling() 291 s->input_h = pstate->src_w >> 16; in malidp_crtc_atomic_check_scaling() 293 s->input_w = pstate->src_w >> 16; in malidp_crtc_atomic_check_scaling() [all …]
|
| /linux/samples/bpf/ |
| H A D | cpustat_kern.c | 106 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 D | ctrl.c | 55 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/drivers/gpu/drm/msm/disp/mdp5/ |
| H A D | mdp5_plane.c | 67 struct mdp5_plane_state *pstate = to_mdp5_plane_state(state); in mdp5_plane_atomic_print_state() local 70 drm_printf(p, "\thwpipe=%s\n", pstate->hwpipe ? in mdp5_plane_atomic_print_state() 71 pstate->hwpipe->name : "(null)"); in mdp5_plane_atomic_print_state() 74 pstate->r_hwpipe ? pstate->r_hwpipe->name : in mdp5_plane_atomic_print_state() 76 drm_printf(p, "\tblend_mode=%u\n", pstate->base.pixel_blend_mode); in mdp5_plane_atomic_print_state() 77 drm_printf(p, "\tzpos=%u\n", pstate->base.zpos); in mdp5_plane_atomic_print_state() 78 drm_printf(p, "\tnormalized_zpos=%u\n", pstate->base.normalized_zpos); in mdp5_plane_atomic_print_state() 79 drm_printf(p, "\talpha=%u\n", pstate->base.alpha); in mdp5_plane_atomic_print_state() 80 drm_printf(p, "\tstage=%s\n", stage2name(pstate->stage)); in mdp5_plane_atomic_print_state() 119 struct mdp5_plane_state *pstate = to_mdp5_plane_state(state); in mdp5_plane_destroy_state() local [all …]
|
| H A D | mdp5_crtc.c | 218 struct mdp5_plane_state *pstate, *pstates[STAGE_MAX + 1] = {NULL}; in blend_setup() local 249 pstate = to_mdp5_plane_state(plane->state); in blend_setup() 250 pstates[pstate->stage] = pstate; in blend_setup() 251 stage[pstate->stage][PIPE_LEFT] = mdp5_plane_pipe(plane); in blend_setup() 257 r_stage[pstate->stage][PIPE_LEFT] = in blend_setup() 266 stage[pstate->stage][PIPE_RIGHT] = right_pipe; in blend_setup() 267 r_stage[pstate->stage][PIPE_RIGHT] = right_pipe; in blend_setup() 662 struct drm_plane_state *pstate) in is_fullscreen() argument 664 return (pstate->crtc_x <= 0) && (pstate->crtc_y <= 0) && in is_fullscreen() 665 ((pstate->crtc_x + pstate->crtc_w) >= cstate->mode.hdisplay) && in is_fullscreen() [all …]
|
| /linux/arch/sparc/kernel/ |
| H A D | rtrap_64.S | 28 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 D | spiterrs.S | 159 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 D | helpers.S | 29 rdpr %pstate, %o0 30 wrpr %o0, PSTATE_IE, %pstate 45 wrpr %o0, %pstate
|
| H A D | tsb.S | 147 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 D | smp_64.c | 393 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 D | basic.sh | 27 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/arm64/kvm/ |
| H A D | reset.c | 194 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/cpufreq/ |
| H A D | apple-soc-cpufreq.c | 140 unsigned int pstate; in apple_soc_cpufreq_get_rate() local 151 pstate = (reg & priv->info->cur_pstate_mask) >> priv->info->cur_pstate_shift; in apple_soc_cpufreq_get_rate() 159 pstate = FIELD_GET(APPLE_DVFS_CMD_PS1, reg); in apple_soc_cpufreq_get_rate() 163 if (p->driver_data == pstate) in apple_soc_cpufreq_get_rate() 167 pstate); in apple_soc_cpufreq_get_rate() 175 unsigned int pstate = policy->freq_table[index].driver_data; in apple_soc_cpufreq_set_target() local 189 reg |= pstate << priv->info->ps1_shift; in apple_soc_cpufreq_set_target() 192 reg |= FIELD_PREP(APPLE_DVFS_CMD_PS2, pstate); in apple_soc_cpufreq_set_target()
|
| /linux/drivers/net/wwan/ |
| H A D | wwan_hwsim.c | 68 } 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/arch/arm64/include/asm/ |
| H A D | processor.h | 303 unsigned long pstate) in start_thread_common() argument 311 .pstate = pstate, in start_thread_common() 348 unsigned long pstate = PSR_AA32_MODE_USR; in compat_start_thread() local 350 pstate |= PSR_AA32_T_BIT; in compat_start_thread() 352 pstate |= PSR_AA32_E_BIT; in compat_start_thread() 354 start_thread_common(regs, pc, pstate); in compat_start_thread()
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
| H A D | cstep.c | 78 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 D | boost.c | 81 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/sparc/mm/ |
| H A D | ultra.S | 60 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/arch/arm64/kvm/hyp/include/hyp/ |
| H A D | sysreg-sr.h | 185 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 D | adjust_pc.h | 36 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/drivers/gpu/drm/tidss/ |
| H A D | tidss_crtc.c | 136 struct drm_plane_state *pstate; in tidss_crtc_position_planes() local 141 for_each_new_plane_in_state(ostate, plane, pstate, i) { in tidss_crtc_position_planes() 142 if (pstate->crtc != crtc || !pstate->visible) in tidss_crtc_position_planes() 145 if (pstate->normalized_zpos == layer) { in tidss_crtc_position_planes() 156 pstate->crtc_x, pstate->crtc_y, in tidss_crtc_position_planes()
|
| /linux/tools/testing/selftests/arm64/signal/testcases/ |
| H A D | mangle_pstate_invalid_mode_template.h | 15 uc->uc_mcontext.pstate &= ~PSR_MODE_MASK; \ 16 uc->uc_mcontext.pstate |= PSR_MODE_EL ## _mode; \
|
| /linux/arch/sparc/lib/ |
| H A D | clear_page.S | 66 rdpr %pstate, %o4 67 wrpr %o4, PSTATE_IE, %pstate 72 wrpr %o4, 0x0, %pstate
|