Lines Matching refs:vid
51 u8 vid; /* VID output register */ member
69 data->reg.vid = i2c_smbus_read_byte_data(client, ATXP1_VID); in atxp1_update_device()
92 size = sprintf(buf, "%d\n", vid_from_reg(data->reg.vid & ATXP1_VIDMASK, in atxp1_showvcore()
104 int vid, cvid; in atxp1_storevcore() local
116 vid = vid_to_reg(vcore, data->vrm); in atxp1_storevcore()
117 if (vid < 0) { in atxp1_storevcore()
119 return vid; in atxp1_storevcore()
126 if (data->reg.vid & ATXP1_VIDENA) in atxp1_storevcore()
127 cvid = data->reg.vid & ATXP1_VIDMASK; in atxp1_storevcore()
132 if (vid == cvid) in atxp1_storevcore()
135 dev_dbg(dev, "Setting VCore to %d mV (0x%02x)\n", (int)vcore, vid); in atxp1_storevcore()
138 if (cvid > vid) { in atxp1_storevcore()
139 for (; cvid >= vid; cvid--) in atxp1_storevcore()
143 for (; cvid <= vid; cvid++) in atxp1_storevcore()