vrm 111 drivers/hwmon/adm1025.c u8 vrm; vrm 355 drivers/hwmon/adm1025.c return sprintf(buf, "%u\n", vid_from_reg(data->vid, data->vrm)); vrm 363 drivers/hwmon/adm1025.c return sprintf(buf, "%u\n", data->vrm); vrm 379 drivers/hwmon/adm1025.c data->vrm = val; vrm 382 drivers/hwmon/adm1025.c static DEVICE_ATTR_RW(vrm); vrm 484 drivers/hwmon/adm1025.c data->vrm = vid_which_vrm(); vrm 279 drivers/hwmon/adm1026.c u8 vrm; /* VRM version */ vrm 1076 drivers/hwmon/adm1026.c return sprintf(buf, "%d\n", vid_from_reg(vid, data->vrm)); vrm 1085 drivers/hwmon/adm1026.c return sprintf(buf, "%d\n", data->vrm); vrm 1102 drivers/hwmon/adm1026.c data->vrm = val; vrm 1106 drivers/hwmon/adm1026.c static DEVICE_ATTR_RW(vrm); vrm 1835 drivers/hwmon/adm1026.c data->vrm = vid_which_vrm(); vrm 142 drivers/hwmon/adm9240.c u8 vrm; /* -- vrm set on startup, no accessor */ vrm 519 drivers/hwmon/adm9240.c return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); vrm 671 drivers/hwmon/adm9240.c data->vrm = vid_which_vrm(); /* need this to report vid as mV */ vrm 673 drivers/hwmon/adm9240.c dev_info(&client->dev, "Using VRM: %d.%d\n", data->vrm / 10, vrm 674 drivers/hwmon/adm9240.c data->vrm % 10); vrm 214 drivers/hwmon/adt7475.c u8 vrm; vrm 1051 drivers/hwmon/adt7475.c return sprintf(buf, "%d\n", (int)data->vrm); vrm 1064 drivers/hwmon/adt7475.c data->vrm = val; vrm 1077 drivers/hwmon/adt7475.c return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); vrm 1173 drivers/hwmon/adt7475.c static DEVICE_ATTR_RW(vrm); vrm 1598 drivers/hwmon/adt7475.c data->vrm = vid_which_vrm(); vrm 202 drivers/hwmon/asb100.c u8 vrm; vrm 477 drivers/hwmon/asb100.c return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); vrm 487 drivers/hwmon/asb100.c return sprintf(buf, "%d\n", data->vrm); vrm 504 drivers/hwmon/asb100.c data->vrm = val; vrm 509 drivers/hwmon/asb100.c static DEVICE_ATTR_RW(vrm); vrm 932 drivers/hwmon/asb100.c data->vrm = vid_which_vrm(); vrm 47 drivers/hwmon/atxp1.c u8 vrm; /* Detected CPU VRM */ vrm 84 drivers/hwmon/atxp1.c data->vrm)); vrm 107 drivers/hwmon/atxp1.c vid = vid_to_reg(vcore, data->vrm); vrm 259 drivers/hwmon/atxp1.c data->vrm = vid_which_vrm(); vrm 260 drivers/hwmon/atxp1.c if (data->vrm != 90 && data->vrm != 91) { vrm 262 drivers/hwmon/atxp1.c data->vrm / 10, data->vrm % 10); vrm 275 drivers/hwmon/atxp1.c dev_info(dev, "Using VRM: %d.%d\n", data->vrm / 10, data->vrm % 10); vrm 226 drivers/hwmon/dme1737.c u8 vrm; vrm 1468 drivers/hwmon/dme1737.c return sprintf(buf, "%d\n", data->vrm); vrm 1485 drivers/hwmon/dme1737.c data->vrm = val; vrm 1494 drivers/hwmon/dme1737.c return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); vrm 1639 drivers/hwmon/dme1737.c static DEVICE_ATTR_RW(vrm); vrm 2371 drivers/hwmon/dme1737.c data->vrm = vid_which_vrm(); vrm 71 drivers/hwmon/gl520sm.c u8 vrm; vrm 193 drivers/hwmon/gl520sm.c return sprintf(buf, "%u\n", vid_from_reg(data->vid, data->vrm)); vrm 828 drivers/hwmon/gl520sm.c data->vrm = vid_which_vrm(); vrm 69 drivers/hwmon/hwmon-vid.c int vid_from_reg(int val, u8 vrm) vrm 73 drivers/hwmon/hwmon-vid.c switch (vrm) { vrm 139 drivers/hwmon/hwmon-vid.c if (vrm == 131 && val == 0x3f) vrm 147 drivers/hwmon/hwmon-vid.c if (vrm) vrm 149 drivers/hwmon/hwmon-vid.c (unsigned int)vrm); vrm 539 drivers/hwmon/it87.c u8 vrm; vrm 1920 drivers/hwmon/it87.c return sprintf(buf, "%u\n", data->vrm); vrm 1932 drivers/hwmon/it87.c data->vrm = val; vrm 1936 drivers/hwmon/it87.c static DEVICE_ATTR_RW(vrm); vrm 1943 drivers/hwmon/it87.c return sprintf(buf, "%ld\n", (long)vid_from_reg(data->vid, data->vrm)); vrm 3156 drivers/hwmon/it87.c data->vrm = vid_which_vrm(); vrm 314 drivers/hwmon/lm85.c u8 vrm; /* VRM version */ vrm 608 drivers/hwmon/lm85.c vid = vid_from_reg(data->vid & 0x3f, data->vrm); vrm 611 drivers/hwmon/lm85.c vid = vid_from_reg(data->vid & 0x1f, data->vrm); vrm 623 drivers/hwmon/lm85.c return sprintf(buf, "%ld\n", (long) data->vrm); vrm 640 drivers/hwmon/lm85.c data->vrm = val; vrm 644 drivers/hwmon/lm85.c static DEVICE_ATTR_RW(vrm); vrm 1587 drivers/hwmon/lm85.c data->vrm = vid_which_vrm(); vrm 168 drivers/hwmon/lm87.c u8 vrm; vrm 596 drivers/hwmon/lm87.c return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); vrm 604 drivers/hwmon/lm87.c return sprintf(buf, "%d\n", data->vrm); vrm 620 drivers/hwmon/lm87.c data->vrm = val; vrm 623 drivers/hwmon/lm87.c static DEVICE_ATTR_RW(vrm); vrm 964 drivers/hwmon/lm87.c data->vrm = vid_which_vrm(); vrm 1205 drivers/hwmon/nct6775.c u8 vrm; vrm 3401 drivers/hwmon/nct6775.c return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); vrm 4537 drivers/hwmon/nct6775.c data->vrm = vid_which_vrm(); vrm 202 drivers/hwmon/pc87360.c u8 vrm; vrm 585 drivers/hwmon/pc87360.c return sprintf(buf, "%u\n", vid_from_reg(data->vid, data->vrm)); vrm 593 drivers/hwmon/pc87360.c return sprintf(buf, "%u\n", data->vrm); vrm 609 drivers/hwmon/pc87360.c data->vrm = val; vrm 612 drivers/hwmon/pc87360.c static DEVICE_ATTR_RW(vrm); vrm 1271 drivers/hwmon/pc87360.c data->vrm = vid_which_vrm(); vrm 101 drivers/hwmon/smsc47m192.c u8 vrm; vrm 404 drivers/hwmon/smsc47m192.c return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); vrm 412 drivers/hwmon/smsc47m192.c return sprintf(buf, "%d\n", data->vrm); vrm 428 drivers/hwmon/smsc47m192.c data->vrm = val; vrm 431 drivers/hwmon/smsc47m192.c static DEVICE_ATTR_RW(vrm); vrm 603 drivers/hwmon/smsc47m192.c data->vrm = vid_which_vrm(); vrm 40 drivers/hwmon/via-cputemp.c u8 vrm; vrm 89 drivers/hwmon/via-cputemp.c return sprintf(buf, "%d\n", vid_from_reg(~edx & 0x7f, data->vrm)); vrm 160 drivers/hwmon/via-cputemp.c data->vrm = vid_which_vrm(); vrm 162 drivers/hwmon/via-cputemp.c if (data->vrm) { vrm 179 drivers/hwmon/via-cputemp.c if (data->vrm) vrm 190 drivers/hwmon/via-cputemp.c if (data->vrm) vrm 128 drivers/hwmon/vt1211.c u8 vrm; vrm 861 drivers/hwmon/vt1211.c return sprintf(buf, "%d\n", data->vrm); vrm 878 drivers/hwmon/vt1211.c data->vrm = val; vrm 888 drivers/hwmon/vt1211.c return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); vrm 1078 drivers/hwmon/vt1211.c __ATTR(vrm, S_IRUGO | S_IWUSR, show_vrm, set_vrm), vrm 1091 drivers/hwmon/vt1211.c data->vrm = vid_which_vrm(); vrm 491 drivers/hwmon/w83627ehf.c u8 vrm; vrm 1753 drivers/hwmon/w83627ehf.c return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); vrm 2343 drivers/hwmon/w83627ehf.c data->vrm = vid_which_vrm(); vrm 2377 drivers/hwmon/w83627ehf.c if ((en_vrm10 & 0x08) && data->vrm == 90) { vrm 2384 drivers/hwmon/w83627ehf.c && data->vrm == 100) { vrm 382 drivers/hwmon/w83627hf.c u8 vrm; vrm 802 drivers/hwmon/w83627hf.c return sprintf(buf, "%ld\n", (long) vid_from_reg(data->vid, data->vrm)); vrm 810 drivers/hwmon/w83627hf.c return sprintf(buf, "%ld\n", (long) data->vrm); vrm 826 drivers/hwmon/w83627hf.c data->vrm = val; vrm 830 drivers/hwmon/w83627hf.c static DEVICE_ATTR_RW(vrm); vrm 1507 drivers/hwmon/w83627hf.c data->vrm = vid_which_vrm(); vrm 234 drivers/hwmon/w83781d.c u8 vrm; vrm 409 drivers/hwmon/w83781d.c return sprintf(buf, "%ld\n", (long) vid_from_reg(data->vid, data->vrm)); vrm 418 drivers/hwmon/w83781d.c return sprintf(buf, "%ld\n", (long) data->vrm); vrm 432 drivers/hwmon/w83781d.c data->vrm = clamp_val(val, 0, 255); vrm 437 drivers/hwmon/w83781d.c static DEVICE_ATTR_RW(vrm); vrm 1387 drivers/hwmon/w83781d.c data->vrm = vid_which_vrm(); vrm 315 drivers/hwmon/w83791d.c u8 vrm; /* hwmon-vid */ vrm 1141 drivers/hwmon/w83791d.c return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); vrm 1150 drivers/hwmon/w83791d.c return sprintf(buf, "%d\n", data->vrm); vrm 1173 drivers/hwmon/w83791d.c data->vrm = val; vrm 1177 drivers/hwmon/w83791d.c static DEVICE_ATTR_RW(vrm); vrm 1483 drivers/hwmon/w83791d.c data->vrm = vid_which_vrm(); vrm 1658 drivers/hwmon/w83791d.c dev_dbg(dev, "vrm is: 0x%02x\n", data->vrm); vrm 215 drivers/hwmon/w83793.c u8 vrm; vrm 317 drivers/hwmon/w83793.c return sprintf(buf, "%d\n", data->vrm); vrm 328 drivers/hwmon/w83793.c return sprintf(buf, "%d\n", vid_from_reg(data->vid[index], data->vrm)); vrm 346 drivers/hwmon/w83793.c data->vrm = val; vrm 1159 drivers/hwmon/w83793.c static DEVICE_ATTR_RW(vrm); vrm 1784 drivers/hwmon/w83793.c data->vrm = vid_which_vrm(); vrm 14 include/linux/hwmon-vid.h int vid_from_reg(int val, u8 vrm); vrm 21 include/linux/hwmon-vid.h static inline int vid_to_reg(int val, u8 vrm) vrm 23 include/linux/hwmon-vid.h switch (vrm) {