Lines Matching refs:rpm
610 int rpm; in rpm_show() local
613 rpm = aspeed_get_fan_tach_ch_rpm(priv, index); in rpm_show()
614 if (rpm < 0) in rpm_show()
615 return rpm; in rpm_show()
617 return sprintf(buf, "%d\n", rpm); in rpm_show()
667 static SENSOR_DEVICE_ATTR_RO(fan1_input, rpm, 0);
668 static SENSOR_DEVICE_ATTR_RO(fan2_input, rpm, 1);
669 static SENSOR_DEVICE_ATTR_RO(fan3_input, rpm, 2);
670 static SENSOR_DEVICE_ATTR_RO(fan4_input, rpm, 3);
671 static SENSOR_DEVICE_ATTR_RO(fan5_input, rpm, 4);
672 static SENSOR_DEVICE_ATTR_RO(fan6_input, rpm, 5);
673 static SENSOR_DEVICE_ATTR_RO(fan7_input, rpm, 6);
674 static SENSOR_DEVICE_ATTR_RO(fan8_input, rpm, 7);
675 static SENSOR_DEVICE_ATTR_RO(fan9_input, rpm, 8);
676 static SENSOR_DEVICE_ATTR_RO(fan10_input, rpm, 9);
677 static SENSOR_DEVICE_ATTR_RO(fan11_input, rpm, 10);
678 static SENSOR_DEVICE_ATTR_RO(fan12_input, rpm, 11);
679 static SENSOR_DEVICE_ATTR_RO(fan13_input, rpm, 12);
680 static SENSOR_DEVICE_ATTR_RO(fan14_input, rpm, 13);
681 static SENSOR_DEVICE_ATTR_RO(fan15_input, rpm, 14);
682 static SENSOR_DEVICE_ATTR_RO(fan16_input, rpm, 15);