Lines Matching refs:clk_freq
127 u32 clk_freq;
171 static inline unsigned int rpm_from_cnt(u8 cnt, u32 clk_freq, u16 p,
177 return (clk_freq * 30 * gear_mult) / ((cnt ? cnt : 1) * p * clk_div);
184 static inline unsigned char cnt_from_rpm(unsigned long rpm, u32 clk_freq, u16 p,
187 unsigned long f1 = clk_freq * 30 * gear_mult;
267 data->clk_freq = val;
513 data->set_cnt = cnt_from_rpm(val, data->clk_freq,
597 unsigned long clk_freq;
631 clk_freq = clk_get_rate(clk);
632 ret = do_set_clk_freq(&client->dev, clk_freq);
634 dev_err(&client->dev, "invalid clock freq %lu\n", clk_freq);
734 return do_set_clk_freq(&client->dev, pdata->clk_freq);
757 rpm = rpm_from_cnt(data->act_cnt, data->clk_freq,
959 rpm = rpm_from_cnt(data->set_cnt, data->clk_freq,