Lines Matching refs:voltage
309 if (index == 0) { /* voltage */
336 unsigned long voltage)
341 voltage = clamp_val(voltage, 0, 0x3ff * nct7802_vmul[nr]);
342 voltage = DIV_ROUND_CLOSEST(voltage, nct7802_vmul[nr]);
347 voltage & 0xff);
352 0x0300 >> shift, (voltage & 0x0300) >> shift);
363 int voltage;
365 voltage = nct7802_read_voltage(data, sattr->nr, sattr->index);
366 if (voltage < 0)
367 return voltage;
369 return sprintf(buf, "%d\n", voltage);
1028 /* Also validate lower bits of voltage and temperature registers */
1103 if (!strcmp(type_str, "voltage")) {
1178 /* Enable Vcore and VCC voltage monitoring */