Home
last modified time | relevance | path

Searched refs:vrm (Results 1 – 25 of 28) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/hwmon/
Datxp1.c47 u8 vrm; /* Detected CPU VRM */ member
84 data->vrm)); in cpu0_vid_show()
107 vid = vid_to_reg(vcore, data->vrm); in cpu0_vid_store()
258 data->vrm = vid_which_vrm(); in atxp1_probe()
259 if (data->vrm != 90 && data->vrm != 91) { in atxp1_probe()
261 data->vrm / 10, data->vrm % 10); in atxp1_probe()
274 dev_info(dev, "Using VRM: %d.%d\n", data->vrm / 10, data->vrm % 10); in atxp1_probe()
Dhwmon-vid.c69 int vid_from_reg(int val, u8 vrm) in vid_from_reg() argument
73 switch (vrm) { in vid_from_reg()
139 if (vrm == 131 && val == 0x3f) in vid_from_reg()
147 if (vrm) in vid_from_reg()
149 (unsigned int)vrm); in vid_from_reg()
Dvia-cputemp.c40 u8 vrm; member
89 return sprintf(buf, "%d\n", vid_from_reg(~edx & 0x7f, data->vrm)); in cpu0_vid_show()
160 data->vrm = vid_which_vrm(); in via_cputemp_probe()
162 if (data->vrm) { in via_cputemp_probe()
179 if (data->vrm) in via_cputemp_probe()
190 if (data->vrm) in via_cputemp_remove()
Dadm1025.c111 u8 vrm; member
355 return sprintf(buf, "%u\n", vid_from_reg(data->vid, data->vrm)); in cpu0_vid_show()
363 return sprintf(buf, "%u\n", data->vrm); in vrm_show()
379 data->vrm = val; in vrm_store()
382 static DEVICE_ATTR_RW(vrm);
484 data->vrm = vid_which_vrm(); in adm1025_init_client()
Dsmsc47m192.c101 u8 vrm; member
404 return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); in cpu0_vid_show()
412 return sprintf(buf, "%d\n", data->vrm); in vrm_show()
428 data->vrm = val; in vrm_store()
431 static DEVICE_ATTR_RW(vrm);
602 data->vrm = vid_which_vrm(); in smsc47m192_probe()
Dasb100.c202 u8 vrm; member
476 return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); in cpu0_vid_show()
486 return sprintf(buf, "%d\n", data->vrm); in vrm_show()
503 data->vrm = val; in vrm_store()
508 static DEVICE_ATTR_RW(vrm);
930 data->vrm = vid_which_vrm(); in asb100_init_client()
Dadm9240.c144 u8 vrm; /* -- vrm set on startup, no accessor */ member
614 return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); in cpu0_vid_show()
778 data->vrm = vid_which_vrm(); /* need this to report vid as mV */ in adm9240_init_client()
780 dev_info(&client->dev, "Using VRM: %d.%d\n", data->vrm / 10, in adm9240_init_client()
781 data->vrm % 10); in adm9240_init_client()
Dlm87.c168 u8 vrm; member
596 return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); in cpu0_vid_show()
604 return sprintf(buf, "%d\n", data->vrm); in vrm_show()
620 data->vrm = val; in vrm_store()
623 static DEVICE_ATTR_RW(vrm);
964 data->vrm = vid_which_vrm(); in lm87_probe()
Dvt1211.c128 u8 vrm; member
861 return sprintf(buf, "%d\n", data->vrm); in show_vrm()
878 data->vrm = val; in set_vrm()
888 return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); in show_vid()
1078 __ATTR(vrm, S_IRUGO | S_IWUSR, show_vrm, set_vrm),
1091 data->vrm = vid_which_vrm(); in vt1211_init_device()
Dw83791d.c312 u8 vrm; /* hwmon-vid */ member
1137 return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); in cpu0_vid_show()
1146 return sprintf(buf, "%d\n", data->vrm); in vrm_show()
1169 data->vrm = val; in vrm_store()
1173 static DEVICE_ATTR_RW(vrm);
1474 data->vrm = vid_which_vrm(); in w83791d_init_client()
1649 dev_dbg(dev, "vrm is: 0x%02x\n", data->vrm); in w83791d_print_debug()
Dlm85.c314 u8 vrm; /* VRM version */ member
608 vid = vid_from_reg(data->vid & 0x3f, data->vrm); in cpu0_vid_show()
611 vid = vid_from_reg(data->vid & 0x1f, data->vrm); in cpu0_vid_show()
623 return sprintf(buf, "%ld\n", (long) data->vrm); in vrm_show()
640 data->vrm = val; in vrm_store()
644 static DEVICE_ATTR_RW(vrm);
1589 data->vrm = vid_which_vrm(); in lm85_probe()
Dpc87360.c202 u8 vrm; member
585 return sprintf(buf, "%u\n", vid_from_reg(data->vid, data->vrm)); in cpu0_vid_show()
593 return sprintf(buf, "%u\n", data->vrm); in vrm_show()
609 data->vrm = val; in vrm_store()
612 static DEVICE_ATTR_RW(vrm);
1271 data->vrm = vid_which_vrm(); in pc87360_probe()
Dw83781d.c234 u8 vrm; member
409 return sprintf(buf, "%ld\n", (long) vid_from_reg(data->vid, data->vrm)); in cpu0_vid_show()
418 return sprintf(buf, "%ld\n", (long) data->vrm); in vrm_show()
432 data->vrm = clamp_val(val, 0, 255); in vrm_store()
437 static DEVICE_ATTR_RW(vrm);
1388 data->vrm = vid_which_vrm(); in w83781d_init_device()
Dadt7475.c216 u8 vrm; member
1053 return sprintf(buf, "%d\n", (int)data->vrm); in vrm_show()
1066 data->vrm = val; in vrm_store()
1079 return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); in cpu0_vid_show()
1175 static DEVICE_ATTR_RW(vrm);
1687 data->vrm = vid_which_vrm(); in adt7475_probe()
Dw83627hf.c382 u8 vrm; member
802 return sprintf(buf, "%ld\n", (long) vid_from_reg(data->vid, data->vrm)); in cpu0_vid_show()
810 return sprintf(buf, "%ld\n", (long) data->vrm); in vrm_show()
826 data->vrm = val; in vrm_store()
830 static DEVICE_ATTR_RW(vrm);
1507 data->vrm = vid_which_vrm(); in w83627hf_probe()
Dgl520sm.c71 u8 vrm; member
193 return sprintf(buf, "%u\n", vid_from_reg(data->vid, data->vrm)); in cpu0_vid_show()
828 data->vrm = vid_which_vrm(); in gl520_init_client()
Dw83793.c214 u8 vrm; member
315 return sprintf(buf, "%d\n", data->vrm); in vrm_show()
326 return sprintf(buf, "%d\n", vid_from_reg(data->vid[index], data->vrm)); in show_vid()
344 data->vrm = val; in vrm_store()
1157 static DEVICE_ATTR_RW(vrm);
1779 data->vrm = vid_which_vrm(); in w83793_probe()
Dadm1026.c279 u8 vrm; /* VRM version */ member
1076 return sprintf(buf, "%d\n", vid_from_reg(vid, data->vrm)); in cpu0_vid_show()
1085 return sprintf(buf, "%d\n", data->vrm); in vrm_show()
1102 data->vrm = val; in vrm_store()
1106 static DEVICE_ATTR_RW(vrm);
1834 data->vrm = vid_which_vrm(); in adm1026_probe()
Dw83627ehf.c367 u8 vrm; member
1084 return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); in cpu0_vid_show()
1881 data->vrm = vid_which_vrm(); in w83627ehf_probe()
1910 if ((en_vrm10 & 0x08) && data->vrm == 90) { in w83627ehf_probe()
1917 && data->vrm == 100) { in w83627ehf_probe()
Ddme1737.c226 u8 vrm; member
1468 return sprintf(buf, "%d\n", data->vrm); in vrm_show()
1485 data->vrm = val; in vrm_store()
1494 return sprintf(buf, "%d\n", vid_from_reg(data->vid, data->vrm)); in cpu0_vid_show()
1639 static DEVICE_ATTR_RW(vrm);
2371 data->vrm = vid_which_vrm(); in dme1737_init_device()
Dit87.c539 u8 vrm; member
1920 return sprintf(buf, "%u\n", data->vrm); in vrm_show()
1932 data->vrm = val; in vrm_store()
1936 static DEVICE_ATTR_RW(vrm);
1943 return sprintf(buf, "%ld\n", (long)vid_from_reg(data->vid, data->vrm)); in cpu0_vid_show()
3156 data->vrm = vid_which_vrm(); in it87_probe()
/kernel/linux/linux-5.10/include/linux/
Dhwmon-vid.h14 int vid_from_reg(int val, u8 vrm);
21 static inline int vid_to_reg(int val, u8 vrm) in vid_to_reg() argument
23 switch (vrm) { in vid_to_reg()
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Daspeed-bmc-opp-zaius.dts347 vrm@64 {
352 vrm@40 {
357 vrm@60 {
362 vrm@43 {
367 vrm@41 {
406 vrm@64 {
411 vrm@40 {
416 vrm@41 {
421 vrm@42 {
426 vrm@60 {
/kernel/linux/linux-5.10/Documentation/hwmon/
Dsmsc47m192.rst112 vrm CPU VID standard used for decoding CPU voltage
115 The `*_min`, `*_max`, `*_offset` and `vrm` files can be read and written,
Dw83792d.rst123 - The function of vid and vrm has not been finished, because I'm NOT

12