Lines Matching refs:vid
43 u8 vid; /* VID output register */ member
61 data->reg.vid = i2c_smbus_read_byte_data(client, ATXP1_VID); in atxp1_update_device()
84 size = sprintf(buf, "%d\n", vid_from_reg(data->reg.vid & ATXP1_VIDMASK, in cpu0_vid_show()
96 int vid, cvid; in cpu0_vid_store() local
108 vid = vid_to_reg(vcore, data->vrm); in cpu0_vid_store()
109 if (vid < 0) { in cpu0_vid_store()
111 return vid; in cpu0_vid_store()
118 if (data->reg.vid & ATXP1_VIDENA) in cpu0_vid_store()
119 cvid = data->reg.vid & ATXP1_VIDMASK; in cpu0_vid_store()
124 if (vid == cvid) in cpu0_vid_store()
127 dev_dbg(dev, "Setting VCore to %d mV (0x%02x)\n", (int)vcore, vid); in cpu0_vid_store()
130 if (cvid > vid) { in cpu0_vid_store()
131 for (; cvid >= vid; cvid--) in cpu0_vid_store()
135 for (; cvid <= vid; cvid++) in cpu0_vid_store()