Lines Matching refs:vid

134 	u8 fid, vid;  in fidvid_msr_init()  local
137 vid = hi & MSR_S_HI_CURRENT_VID; in fidvid_msr_init()
139 lo = fid | (vid << MSR_C_LO_VID_SHIFT); in fidvid_msr_init()
190 static int write_new_vid(struct powernow_k8_data *data, u32 vid) in write_new_vid() argument
196 if ((data->currfid & INVALID_FID_MASK) || (vid & INVALID_VID_MASK)) { in write_new_vid()
202 lo |= (vid << MSR_C_LO_VID_SHIFT); in write_new_vid()
206 vid, lo, STOP_GRANT_5NS); in write_new_vid()
222 if (vid != data->currvid) { in write_new_vid()
224 vid, data->currvid); in write_new_vid()
499 if (pst[j].vid > LEAST_VID) { in check_pst_table()
501 pst[j].vid); in check_pst_table()
504 if (pst[j].vid < data->rvo) { in check_pst_table()
509 if (pst[j].vid < maxvid + data->rvo) { in check_pst_table()
595 powernow_table[j].driver_data |= (pst[j].vid << 8); /* upper 8 bits */ in fill_powernow_table()
614 (pst[j].vid == data->currvid)) in fill_powernow_table()
805 u32 vid; in fill_powernow_table_fidvid() local
812 vid = (status >> VID_SHIFT) & EXT_VID_MASK; in fill_powernow_table_fidvid()
816 vid = (control >> VID_SHIFT) & VID_MASK; in fill_powernow_table_fidvid()
819 pr_debug(" %d : fid 0x%x, vid 0x%x\n", i, fid, vid); in fill_powernow_table_fidvid()
821 index = fid | (vid<<8); in fill_powernow_table_fidvid()
836 if (vid == VID_OFF) { in fill_powernow_table_fidvid()
837 pr_debug("invalid vid %u, ignoring\n", vid); in fill_powernow_table_fidvid()
885 u32 vid = 0; in transition_frequency_fidvid() local
897 vid = (data->powernow_table[index].driver_data & 0xFF00) >> 8; in transition_frequency_fidvid()
899 pr_debug("table matched fid 0x%x, giving vid 0x%x\n", fid, vid); in transition_frequency_fidvid()
904 if ((data->currvid == vid) && (data->currfid == fid)) { in transition_frequency_fidvid()
906 fid, vid); in transition_frequency_fidvid()
911 smp_processor_id(), fid, vid); in transition_frequency_fidvid()
916 res = transition_fid_vid(data, fid, vid); in transition_frequency_fidvid()