Lines Matching refs:temp
206 u8 reg_temp, u8 reg_temp_low, int *temp)
211 *temp = 0;
224 *temp = (s16)t1 / 32 * 125;
455 int err, temp;
457 err = nct7802_read_temp(data, sattr->nr, sattr->index, &temp);
461 return sprintf(buf, "%d\n", temp);
580 static SENSOR_DEVICE_ATTR_2_RO(temp1_input, temp, 0x01, REG_TEMP_LSB);
581 static SENSOR_DEVICE_ATTR_2_RW(temp1_min, temp, 0x31, 0);
582 static SENSOR_DEVICE_ATTR_2_RW(temp1_max, temp, 0x30, 0);
583 static SENSOR_DEVICE_ATTR_2_RW(temp1_crit, temp, 0x3a, 0);
586 static SENSOR_DEVICE_ATTR_2_RO(temp2_input, temp, 0x02, REG_TEMP_LSB);
587 static SENSOR_DEVICE_ATTR_2_RW(temp2_min, temp, 0x33, 0);
588 static SENSOR_DEVICE_ATTR_2_RW(temp2_max, temp, 0x32, 0);
589 static SENSOR_DEVICE_ATTR_2_RW(temp2_crit, temp, 0x3b, 0);
592 static SENSOR_DEVICE_ATTR_2_RO(temp3_input, temp, 0x03, REG_TEMP_LSB);
593 static SENSOR_DEVICE_ATTR_2_RW(temp3_min, temp, 0x35, 0);
594 static SENSOR_DEVICE_ATTR_2_RW(temp3_max, temp, 0x34, 0);
595 static SENSOR_DEVICE_ATTR_2_RW(temp3_crit, temp, 0x3c, 0);
597 static SENSOR_DEVICE_ATTR_2_RO(temp4_input, temp, 0x04, 0);
598 static SENSOR_DEVICE_ATTR_2_RW(temp4_min, temp, 0x37, 0);
599 static SENSOR_DEVICE_ATTR_2_RW(temp4_max, temp, 0x36, 0);
600 static SENSOR_DEVICE_ATTR_2_RW(temp4_crit, temp, 0x3d, 0);
602 static SENSOR_DEVICE_ATTR_2_RO(temp5_input, temp, 0x06, REG_TEMP_PECI_LSB);
603 static SENSOR_DEVICE_ATTR_2_RW(temp5_min, temp, 0x39, 0);
604 static SENSOR_DEVICE_ATTR_2_RW(temp5_max, temp, 0x38, 0);
605 static SENSOR_DEVICE_ATTR_2_RW(temp5_crit, temp, 0x3e, 0);
607 static SENSOR_DEVICE_ATTR_2_RO(temp6_input, temp, 0x07, REG_TEMP_PECI_LSB);
909 static SENSOR_DEVICE_ATTR_2_RW(pwm1_auto_point1_temp, temp, 0x80, 0);
910 static SENSOR_DEVICE_ATTR_2_RW(pwm1_auto_point2_temp, temp, 0x81, 0);
911 static SENSOR_DEVICE_ATTR_2_RW(pwm1_auto_point3_temp, temp, 0x82, 0);
912 static SENSOR_DEVICE_ATTR_2_RW(pwm1_auto_point4_temp, temp, 0x83, 0);
913 static SENSOR_DEVICE_ATTR_2_RW(pwm1_auto_point5_temp, temp, 0x84, 0);
923 static SENSOR_DEVICE_ATTR_2_RW(pwm2_auto_point1_temp, temp, 0x90, 0);
924 static SENSOR_DEVICE_ATTR_2_RW(pwm2_auto_point2_temp, temp, 0x91, 0);
925 static SENSOR_DEVICE_ATTR_2_RW(pwm2_auto_point3_temp, temp, 0x92, 0);
926 static SENSOR_DEVICE_ATTR_2_RW(pwm2_auto_point4_temp, temp, 0x93, 0);
927 static SENSOR_DEVICE_ATTR_2_RW(pwm2_auto_point5_temp, temp, 0x94, 0);
937 static SENSOR_DEVICE_ATTR_2_RW(pwm3_auto_point1_temp, temp, 0xA0, 0);
938 static SENSOR_DEVICE_ATTR_2_RW(pwm3_auto_point2_temp, temp, 0xA1, 0);
939 static SENSOR_DEVICE_ATTR_2_RW(pwm3_auto_point3_temp, temp, 0xA2, 0);
940 static SENSOR_DEVICE_ATTR_2_RW(pwm3_auto_point4_temp, temp, 0xA3, 0);
941 static SENSOR_DEVICE_ATTR_2_RW(pwm3_auto_point5_temp, temp, 0xA4, 0);