Lines Matching refs:pstate
42 static int get_did(int family, union msr_pstate pstate)
47 t = pstate.val & 0xf;
49 t = pstate.fam17h_bits.did;
51 t = pstate.bits.did;
56 static int get_cof(int family, union msr_pstate pstate)
61 did = get_did(family, pstate);
63 fid = pstate.fam17h_bits.fid;
67 fid = pstate.bits.fid;
92 union msr_pstate pstate;
120 if (read_msr(cpu, MSR_AMD_PSTATE + i, &pstate.val))
122 if ((cpu_family == 0x17) && (!pstate.fam17h_bits.en))
124 else if (!pstate.bits.en)
127 pstates[i] = get_cof(cpu_family, pstate);