Lines Matching defs:rpm
182 static inline unsigned char cnt_from_rpm(unsigned long rpm, u32 clk_freq, u16 p,
188 if (!rpm) /* to stop the fan, set cnt to 255 */
191 rpm = clamp_val(rpm, f1 / (255 * f2), ULONG_MAX / f2);
192 return DIV_ROUND_CLOSEST(f1, rpm * f2);
727 unsigned int rpm = 0;
735 rpm = rpm_from_cnt(data->act_cnt, data->clk_freq,
742 return sprintf(buf, "%u\n", rpm);
931 unsigned int rpm;
937 rpm = rpm_from_cnt(data->set_cnt, data->clk_freq,
943 return sprintf(buf, "%u\n", rpm);