Lines Matching refs:rpm
616 int rpm; in rpm_show() local
619 rpm = aspeed_get_fan_tach_ch_rpm(priv, index); in rpm_show()
620 if (rpm < 0) in rpm_show()
621 return rpm; in rpm_show()
623 return sprintf(buf, "%d\n", rpm); in rpm_show()
673 static SENSOR_DEVICE_ATTR_RO(fan1_input, rpm, 0);
674 static SENSOR_DEVICE_ATTR_RO(fan2_input, rpm, 1);
675 static SENSOR_DEVICE_ATTR_RO(fan3_input, rpm, 2);
676 static SENSOR_DEVICE_ATTR_RO(fan4_input, rpm, 3);
677 static SENSOR_DEVICE_ATTR_RO(fan5_input, rpm, 4);
678 static SENSOR_DEVICE_ATTR_RO(fan6_input, rpm, 5);
679 static SENSOR_DEVICE_ATTR_RO(fan7_input, rpm, 6);
680 static SENSOR_DEVICE_ATTR_RO(fan8_input, rpm, 7);
681 static SENSOR_DEVICE_ATTR_RO(fan9_input, rpm, 8);
682 static SENSOR_DEVICE_ATTR_RO(fan10_input, rpm, 9);
683 static SENSOR_DEVICE_ATTR_RO(fan11_input, rpm, 10);
684 static SENSOR_DEVICE_ATTR_RO(fan12_input, rpm, 11);
685 static SENSOR_DEVICE_ATTR_RO(fan13_input, rpm, 12);
686 static SENSOR_DEVICE_ATTR_RO(fan14_input, rpm, 13);
687 static SENSOR_DEVICE_ATTR_RO(fan15_input, rpm, 14);
688 static SENSOR_DEVICE_ATTR_RO(fan16_input, rpm, 15);