Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
Dbase.c41 u8 pstate, u8 domain, u32 input) in nvkm_clk_adjust() argument
48 data = nvbios_boostEm(bios, pstate, &ver, &hdr, &cnt, &len, &boostE); in nvkm_clk_adjust()
78 nvkm_cstate_prog(struct nvkm_clk *clk, struct nvkm_pstate *pstate, int cstatei) in nvkm_cstate_prog() argument
85 if (!list_empty(&pstate->list)) { in nvkm_cstate_prog()
86 cstate = list_entry(pstate->list.prev, typeof(*cstate), head); in nvkm_cstate_prog()
88 cstate = &pstate->base; in nvkm_cstate_prog()
92 ret = nvkm_therm_cstate(ptherm, pstate->fanspeed, +1); in nvkm_cstate_prog()
120 ret = nvkm_therm_cstate(ptherm, pstate->fanspeed, -1); in nvkm_cstate_prog()
136 nvkm_cstate_new(struct nvkm_clk *clk, int idx, struct nvkm_pstate *pstate) in nvkm_cstate_new() argument
153 *cstate = pstate->base; in nvkm_cstate_new()
[all …]
Dgk20a.c648 gk20a_pstates[i].pstate = i + 1; in gk20a_clk_ctor()
/linux-4.1.27/arch/arm64/include/asm/
Dptrace.h114 u64 pstate; member
125 (((regs)->pstate & COMPAT_PSR_T_BIT))
131 (((regs)->pstate & PSR_MODE_MASK) == PSR_MODE_EL0t)
134 (((regs)->pstate & (PSR_MODE32_BIT | PSR_MODE_MASK)) == \
138 ((regs)->pstate & PSR_MODE_MASK)
141 (!((regs)->pstate & PSR_I_BIT))
144 (!((regs)->pstate & PSR_F_BIT))
160 if (user_mode(regs) && (regs->pstate & PSR_I_BIT) == 0) { in valid_user_regs()
161 regs->pstate &= ~(PSR_F_BIT | PSR_A_BIT); in valid_user_regs()
164 if (!(regs->pstate & PSR_MODE32_BIT)) in valid_user_regs()
[all …]
Dprocessor.h101 regs->pstate = PSR_MODE_EL0t; in start_thread()
110 regs->pstate = COMPAT_PSR_MODE_USR; in compat_start_thread()
112 regs->pstate |= COMPAT_PSR_T_BIT; in compat_start_thread()
115 regs->pstate |= COMPAT_PSR_E_BIT; in compat_start_thread()
Dkvm_emulate.h73 return (unsigned long *)&vcpu_gp_regs(vcpu)->regs.pstate; in vcpu_cpsr()
/linux-4.1.27/tools/power/cpupower/utils/helpers/
Damd.c32 static int get_did(int family, union msr_pstate pstate) in get_did() argument
37 t = pstate.val & 0xf; in get_did()
39 t = pstate.bits.did; in get_did()
44 static int get_cof(int family, union msr_pstate pstate) in get_cof() argument
49 did = get_did(family, pstate); in get_cof()
52 fid = pstate.bits.fid; in get_cof()
76 union msr_pstate pstate; in decode_pstates() local
104 if (read_msr(cpu, MSR_AMD_PSTATE + i, &pstate.val)) in decode_pstates()
106 pstates[i] = get_cof(cpu_family, pstate); in decode_pstates()
/linux-4.1.27/drivers/cpufreq/
Dintel_pstate.c105 struct pstate_data pstate; member
130 void (*set)(struct cpudata*, int pstate);
257 cpu->pstate.max_pstate == cpu->pstate.turbo_pstate); in update_turbo_state()
355 total = cpu->pstate.turbo_pstate - cpu->pstate.min_pstate + 1; in show_turbo_pct()
356 no_turbo = cpu->pstate.max_pstate - cpu->pstate.min_pstate + 1; in show_turbo_pct()
369 total = cpu->pstate.turbo_pstate - cpu->pstate.min_pstate + 1; in show_num_pstates()
516 static void byt_set_pstate(struct cpudata *cpudata, int pstate) in byt_set_pstate() argument
522 val = pstate << 8; in byt_set_pstate()
527 int_tofp(pstate - cpudata->pstate.min_pstate), in byt_set_pstate()
533 if (pstate > cpudata->pstate.max_pstate) in byt_set_pstate()
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/device/
Dctrl.c54 args->v0.pstate = clk->pstate; in nvkm_control_mthd_pstate_info()
60 args->v0.pstate = NVIF_CONTROL_PSTATE_INFO_V0_PSTATE_UNKNOWN; in nvkm_control_mthd_pstate_info()
74 struct nvkm_pstate *pstate; in nvkm_control_mthd_pstate_attr() local
105 list_for_each_entry(pstate, &clk->states, head) { in nvkm_control_mthd_pstate_attr()
110 lo = pstate->base.domain[domain->name]; in nvkm_control_mthd_pstate_attr()
112 list_for_each_entry(cstate, &pstate->list, head) { in nvkm_control_mthd_pstate_attr()
117 args->v0.state = pstate->pstate; in nvkm_control_mthd_pstate_attr()
/linux-4.1.27/arch/x86/kernel/cpu/mcheck/
Dtherm_throt.c157 struct thermal_state *pstate = &per_cpu(thermal_state, this_cpu); in therm_throt_process() local
162 state = &pstate->core_throttle; in therm_throt_process()
164 state = &pstate->core_power_limit; in therm_throt_process()
169 state = &pstate->package_throttle; in therm_throt_process()
171 state = &pstate->package_power_limit; in therm_throt_process()
214 struct thermal_state *pstate = &per_cpu(thermal_state, this_cpu); in thresh_event_valid() local
218 state = (event == 0) ? &pstate->pkg_thresh0 : in thresh_event_valid()
219 &pstate->pkg_thresh1; in thresh_event_valid()
221 state = (event == 0) ? &pstate->core_thresh0 : in thresh_event_valid()
222 &pstate->core_thresh1; in thresh_event_valid()
/linux-4.1.27/arch/sparc/kernel/
Dspiterrs.S159 rdpr %pstate, %g4
160 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate
188 rdpr %pstate, %g4
189 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate
209 rdpr %pstate, %g4
210 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate
229 rdpr %pstate, %g4
230 wrpr %g4, PSTATE_MG|PSTATE_AG, %pstate
Drtrap_64.S31 wrpr %g0, RTRAP_PSTATE, %pstate
33 wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate
37 wrpr %g0, RTRAP_PSTATE, %pstate
39 wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate
54 wrpr %g0, RTRAP_PSTATE, %pstate
55 wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate
127 to_user: wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate
169 661: wrpr %g0, RTRAP_PSTATE_AG_IRQOFF, %pstate
173 wrpr %g0, RTRAP_PSTATE_IRQOFF, %pstate
276 wrpr %g0, RTRAP_PSTATE, %pstate
Dhelpers.S27 rdpr %pstate, %o0
28 wrpr %o0, PSTATE_IE, %pstate
43 wrpr %o0, %pstate
Dtsb.S157 661: rdpr %pstate, %g5
158 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate
264 661: rdpr %pstate, %g5
265 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate
326 rdpr %pstate, %o5
327 wrpr %o5, PSTATE_IE, %pstate
330 wrpr %o5, %pstate
379 rdpr %pstate, %g1
380 wrpr %g1, PSTATE_IE, %pstate
451 wrpr %g1, %pstate
Dsmp_64.c390 static void spitfire_xcall_helper(u64 data0, u64 data1, u64 data2, u64 pstate, unsigned long cpu) in spitfire_xcall_helper() argument
425 : "r" (pstate), "i" (PSTATE_IE), "i" (ASI_INTR_W), in spitfire_xcall_helper()
438 : : "r" (pstate)); in spitfire_xcall_helper()
446 : : "r" (pstate)); in spitfire_xcall_helper()
460 u64 pstate; in spitfire_xcall_deliver() local
463 __asm__ __volatile__("rdpr %%pstate, %0" : "=r" (pstate)); in spitfire_xcall_deliver()
470 spitfire_xcall_helper(data0, data1, data2, pstate, cpu_list[i]); in spitfire_xcall_deliver()
480 u64 *mondo, pstate, ver, busy_mask; in cheetah_xcall_deliver() local
494 __asm__ __volatile__("rdpr %%pstate, %0" : "=r" (pstate)); in cheetah_xcall_deliver()
499 : : "r" (pstate), "i" (PSTATE_IE)); in cheetah_xcall_deliver()
[all …]
Ddtlb_prot.S20 rdpr %pstate, %g5 ! Move into alt-globals
21 wrpr %g5, PSTATE_AG|PSTATE_MG, %pstate
Dktlb.S81 661: rdpr %pstate, %g5
82 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate
235 661: rdpr %pstate, %g5
236 wrpr %g5, PSTATE_AG | PSTATE_MG, %pstate
Dhvtramp.S81 wrpr %g0, (PSTATE_PRIV | PSTATE_PEF), %pstate
124 wrpr %g0, (PSTATE_PRIV | PSTATE_PEF | PSTATE_IE), %pstate
Dasm-offsets.c36 OFFSET(SC_REG_PSTATE, saved_context, pstate); in sparc64_foo()
Dsyscalls.S139 1: rdpr %pstate, %g2
140 wrpr %g2, PSTATE_IE, %pstate
146 wrpr %g2, 0x0, %pstate
Dtime_64.c748 unsigned long pstate; in setup_sparc64_timer() local
755 : "=r" (pstate) in setup_sparc64_timer()
763 : "r" (pstate)); in setup_sparc64_timer()
Dhead_64.S94 rdpr %pstate, %g1
96 wrpr %g1, 0x0, %pstate
531 wrpr %g0, (PSTATE_PRIV|PSTATE_PEF|PSTATE_IE), %pstate
744 rdpr %pstate, %l0
746 wrpr %o1, 0x0, %pstate
841 wrpr %l0, 0, %pstate
Dtrampoline_64.S250 wrpr %g0, (PSTATE_PRIV | PSTATE_PEF), %pstate
401 rdpr %pstate, %o1
403 wrpr %o1, 0, %pstate
Dsignal32.c355 unsigned long pstate, paddr; in flush_signal_insns() local
370 __asm__ __volatile__("rdpr %%pstate, %0" : "=r" (pstate)); in flush_signal_insns()
372 : : "r" (pstate), "i" (PSTATE_IE)); in flush_signal_insns()
400 __asm__ __volatile__("wrpr %0, 0x0, %%pstate" : : "r" (pstate)); in flush_signal_insns()
Dprocess_64.c63 unsigned long pstate; in arch_cpu_idle() local
74 : "=&r" (pstate) in arch_cpu_idle()
85 : "=&r" (pstate) in arch_cpu_idle()
Dirq_64.c811 unsigned long pstate, bucket_pa; in handler_irq() local
826 : "=&r" (pstate), "=&r" (bucket_pa) in handler_irq()
Detrap_64.S119 661: wrpr %g0, ETRAP_PSTATE1, %pstate
Dcherrs.S122 wrpr PSTATE_IG | PSTATE_PEF | PSTATE_PRIV, %pstate
164 wrpr PSTATE_IG | PSTATE_PEF | PSTATE_PRIV, %pstate
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
Dcstep.c78 info->pstate = (nv_ro16(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 = (nv_ro16(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()
Dperf.c101 info->pstate = nv_ro08(bios, perf + 0x00); in nvbios_perfEp()
/linux-4.1.27/arch/sparc/mm/
Dultra.S59 rdpr %pstate, %g7
61 wrpr %g2, %pstate
76 wrpr %g7, 0x0, %pstate
86 rdpr %pstate, %g7
89 wrpr %g2, %pstate
108 wrpr %g7, 0x0, %pstate
136 rdpr %pstate, %g1
137 wrpr %g1, PSTATE_IE, %pstate
146 wrpr %g1, 0, %pstate
213 rdpr %pstate, %g7
[all …]
Dinit_64.c2586 unsigned long pstate; in __flush_tlb_all() local
2592 : "=r" (pstate) in __flush_tlb_all()
2639 : : "r" (pstate)); in __flush_tlb_all()
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnouveau_sysfs.c31 MODULE_PARM_DESC(pstate, "enable sysfs pstate file, which will be moved in the future");
33 module_param_named(pstate, nouveau_pstate, int, 0400);
101 if (info.pstate == state) in nouveau_sysfs_pstate_get()
157 static DEVICE_ATTR(pstate, S_IRUGO | S_IWUSR,
/linux-4.1.27/arch/sparc/lib/
Dclear_page.S62 rdpr %pstate, %o4
63 wrpr %o4, PSTATE_IE, %pstate
68 wrpr %o4, 0x0, %pstate
Dcopy_page.S77 rdpr %pstate, %o2
78 wrpr %o2, PSTATE_IE, %pstate
85 wrpr %o2, 0x0, %pstate
/linux-4.1.27/arch/arm64/kvm/
Dreset.c37 .regs.pstate = (PSR_MODE_EL1h | PSR_A_BIT | PSR_I_BIT |
42 .regs.pstate = (COMPAT_PSR_MODE_SVC | COMPAT_PSR_A_BIT |
Dguest.c98 if (off == KVM_REG_ARM_CORE_REG(regs.pstate)) { in set_core_reg()
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
Dcstep.h7 u8 pstate; member
14 u16 nvbios_cstepEm(struct nvkm_bios *, u8 pstate, u8 *ver, u8 *hdr,
Dboost.h6 u8 pstate; member
Dperf.h7 u8 pstate; member
/linux-4.1.27/arch/arm64/kernel/
Ddebug-monitors.c170 spsr = regs->pstate; in set_regs_spsr_ss()
173 regs->pstate = spsr; in set_regs_spsr_ss()
180 spsr = regs->pstate; in clear_regs_spsr_ss()
182 regs->pstate = spsr; in clear_regs_spsr_ss()
Dsignal.c111 __get_user_error(regs->pstate, &sf->uc.uc_mcontext.pstate, err); in restore_sigframe()
181 __put_user_error(regs->pstate, &sf->uc.uc_mcontext.pstate, err); in setup_sigframe()
Darmv8_deprecated.c379 switch (arm_check_condition(instr, regs->pstate)) { in swp_handler()
460 switch (arm_check_condition(instr, regs->pstate)) { in cp15barrier_handler()
573 regs->pstate |= COMPAT_PSR_E_BIT; in compat_setend_handler()
576 regs->pstate &= ~COMPAT_PSR_E_BIT; in compat_setend_handler()
Dprocess.c193 regs->pc, lr, regs->pstate); in __show_regs()
288 childregs->pstate = PSR_MODE_EL1h; in copy_thread()
Dsignal32.c352 __get_user_error(regs->pstate, &sf->uc.uc_mcontext.arm_cpsr, err); in compat_restore_sigframe()
466 compat_ulong_t spsr = regs->pstate & ~(PSR_f | COMPAT_PSR_E_BIT); in compat_setup_return()
501 regs->pstate = spsr; in compat_setup_return()
526 __put_user_error(regs->pstate, &sf->uc.uc_mcontext.arm_cpsr, err); in compat_setup_sigframe()
Dkgdb.c61 { "pstate", 8, offsetof(struct pt_regs, pstate)},
Dasm-offsets.c57 DEFINE(S_PSTATE, offsetof(struct pt_regs, pstate)); in main()
Dtraps.c318 (regs->pstate & hook->pstate_mask) == hook->pstate_val) in call_undef_hook()
Dptrace.c694 reg = task_pt_regs(target)->pstate; in compat_gpr_get()
762 newregs.pstate = reg; in compat_gpr_set()
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvkm/subdev/
Dclk.h60 u8 pstate; member
88 int pstate; /* current */ member
/linux-4.1.27/arch/sparc/include/asm/
Dhibernate.h16 unsigned long pstate; member
/linux-4.1.27/arch/arm64/include/asm/xen/
Devents.h16 return raw_irqs_disabled_flags((unsigned long) regs->pstate); in xen_irqs_disabled()
/linux-4.1.27/arch/sparc/power/
Dhibernate_asm.S30 rdpr %pstate, %g2
110 wrpr %g2, %pstate
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_sp.h87 unsigned long *pstate; /* pointer to state buffer */ member
473 unsigned long *pstate; member
1389 unsigned long *pstate, bnx2x_obj_type type,
1396 unsigned long *pstate, bnx2x_obj_type type,
1435 int state, unsigned long *pstate,
1475 int state, unsigned long *pstate,
Dbnx2x_sp.c256 return !!test_bit(o->state, o->pstate); in bnx2x_raw_check_pending()
262 clear_bit(o->state, o->pstate); in bnx2x_raw_clear_pending()
269 set_bit(o->state, o->pstate); in bnx2x_raw_set_pending()
282 unsigned long *pstate) in bnx2x_state_wait() argument
294 if (!test_bit(state, pstate)) { in bnx2x_state_wait()
318 return bnx2x_state_wait(bp, raw->state, raw->pstate); in bnx2x_raw_wait()
1911 unsigned long *pstate, bnx2x_obj_type type) in bnx2x_init_raw_obj() argument
1919 raw->pstate = pstate; in bnx2x_init_raw_obj()
1929 int state, unsigned long *pstate, bnx2x_obj_type type, in bnx2x_init_vlan_mac_common() argument
1947 state, pstate, type); in bnx2x_init_vlan_mac_common()
[all …]
Dbnx2x_sriov.c644 ramrod->pstate = &vf->filter_state; in bnx2x_vf_prep_rx_mode()
Dbnx2x_main.c6120 ramrod_param.pstate = &bp->sp_state; in bnx2x_set_q_rx_mode()
/linux-4.1.27/arch/arm64/include/uapi/asm/
Dsigcontext.h31 __u64 pstate; member
Dptrace.h71 __u64 pstate; member
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/
Dgk20a.c63 *state = clk->pstate; in gk20a_pmu_dvfs_get_cur_state()
76 level = cur_level = clk->pstate; in gk20a_pmu_dvfs_get_target_state()
/linux-4.1.27/drivers/media/platform/blackfin/
Dppi.c212 struct pinctrl_state *pstate; in ppi_set_params() local
217 pstate = pinctrl_lookup_state(pctrl, in ppi_set_params()
219 if (pinctrl_select_state(pctrl, pstate)) in ppi_set_params()
/linux-4.1.27/drivers/gpu/drm/msm/mdp/mdp5/
Dmdp5_crtc.c337 struct drm_plane_state *pstate; in mdp5_crtc_atomic_check() local
344 pstate = state->state->plane_states[drm_plane_index(plane)]; in mdp5_crtc_atomic_check()
349 if (!pstate) in mdp5_crtc_atomic_check()
350 pstate = plane->state; in mdp5_crtc_atomic_check()
353 pstates[cnt].state = to_mdp5_plane_state(pstate); in mdp5_crtc_atomic_check()
/linux-4.1.27/arch/s390/include/asm/
Druntime_instr.h13 __u32 pstate : 1; member
/linux-4.1.27/arch/s390/kernel/
Druntime_instr.c44 cb->pstate = 1; in init_runtime_instr_cb()
/linux-4.1.27/arch/sparc/include/uapi/asm/
DKbuild30 header-y += pstate.h
/linux-4.1.27/drivers/net/ethernet/dec/tulip/
Dtulip_core.c1838 pci_power_t pstate; in tulip_suspend() local
1857 pstate = pci_choose_state(pdev, state); in tulip_suspend()
1858 if (state.event == PM_EVENT_SUSPEND && pstate != PCI_D0) { in tulip_suspend()
1862 rc = pci_enable_wake(pdev, pstate, tp->wolinfo.wolopts); in tulip_suspend()
1866 pci_set_power_state(pdev, pstate); in tulip_suspend()
/linux-4.1.27/drivers/gpu/drm/nouveau/include/nvif/
Dclass.h302 __s8 pstate; /* out: current pstate index */ member
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dcl_object.c458 static const char *pstate[] = { in cl_site_stats_print() local
484 seq_printf(m, "%s: %u ", pstate[i], in cl_site_stats_print()
/linux-4.1.27/drivers/scsi/qla2xxx/
Dqla_attr.c1447 uint32_t pstate; in qla2x00_fw_state_show() local
1450 pstate = qlafx00_fw_state_show(dev, attr, buf); in qla2x00_fw_state_show()
1451 return scnprintf(buf, PAGE_SIZE, "0x%x\n", pstate); in qla2x00_fw_state_show()
/linux-4.1.27/Documentation/ABI/testing/
Dsysfs-devices-system-cpu226 More details can be found in Documentation/cpu-freq/intel-pstate.txt
/linux-4.1.27/drivers/gpu/drm/radeon/
Dr600_dpm.c1125 rdev->pm.dpm.vce_states[i].pstate = in r600_parse_extended_power_table()
Dradeon.h1543 u8 pstate; member