Lines Matching refs:pstate
42 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()
122 if ((cpu_family == 0x17) && (!pstate.fam17h_bits.en)) in decode_pstates()
124 else if (!pstate.bits.en) in decode_pstates()
127 pstates[i] = get_cof(cpu_family, pstate); in decode_pstates()