Lines Matching full:rpm
25 int rpm; member
153 static int rpm_to_speed_index(struct gpio_fan_data *fan_data, unsigned long rpm) in rpm_to_speed_index() argument
159 if (speed[i].rpm >= rpm) in rpm_to_speed_index()
246 return sprintf(buf, "%d\n", fan_data->speed[0].rpm); in fan1_min_show()
255 fan_data->speed[fan_data->num_speed - 1].rpm); in fan1_max_show()
263 return sprintf(buf, "%d\n", fan_data->speed[fan_data->speed_index].rpm); in fan1_input_show()
270 unsigned long rpm; in set_rpm() local
273 if (kstrtoul(buf, 10, &rpm)) in set_rpm()
283 set_fan_speed(fan_data, rpm_to_speed_index(fan_data, rpm)); in set_rpm()
443 /* Get number of RPM/ctrl_val pairs in speed map */ in gpio_fan_get_of_data()
458 * Speed map is in the form <RPM ctrl_val RPM ctrl_val ...> in gpio_fan_get_of_data()
471 speed[i].rpm = u; in gpio_fan_get_of_data()