Lines Matching defs:rpm
181 static inline unsigned char cnt_from_rpm(unsigned long rpm, u32 clk_freq, u16 p,
187 if (!rpm) /* to stop the fan, set cnt to 255 */
190 rpm = clamp_val(rpm, f1 / (255 * f2), ULONG_MAX / f2);
191 return DIV_ROUND_CLOSEST(f1, rpm * f2);
731 unsigned int rpm = 0;
739 rpm = rpm_from_cnt(data->act_cnt, data->clk_freq,
746 return sprintf(buf, "%u\n", rpm);
935 unsigned int rpm;
941 rpm = rpm_from_cnt(data->set_cnt, data->clk_freq,
947 return sprintf(buf, "%u\n", rpm);