Lines Matching refs:vid
54 u8 vid; /* VID output register */ member
72 data->reg.vid = i2c_smbus_read_byte_data(client, ATXP1_VID); in atxp1_update_device()
95 size = sprintf(buf, "%d\n", vid_from_reg(data->reg.vid & ATXP1_VIDMASK, in atxp1_showvcore()
107 int vid, cvid; in atxp1_storevcore() local
119 vid = vid_to_reg(vcore, data->vrm); in atxp1_storevcore()
120 if (vid < 0) { in atxp1_storevcore()
122 return vid; in atxp1_storevcore()
129 if (data->reg.vid & ATXP1_VIDENA) in atxp1_storevcore()
130 cvid = data->reg.vid & ATXP1_VIDMASK; in atxp1_storevcore()
135 if (vid == cvid) in atxp1_storevcore()
138 dev_dbg(dev, "Setting VCore to %d mV (0x%02x)\n", (int)vcore, vid); in atxp1_storevcore()
141 if (cvid > vid) { in atxp1_storevcore()
142 for (; cvid >= vid; cvid--) in atxp1_storevcore()
146 for (; cvid <= vid; cvid++) in atxp1_storevcore()