Lines Matching defs:clk_freq
124 u32 clk_freq;
168 static inline unsigned int rpm_from_cnt(u8 cnt, u32 clk_freq, u16 p,
174 return (clk_freq * 30 * gear_mult) / ((cnt ? cnt : 1) * p * clk_div);
181 static inline unsigned char cnt_from_rpm(unsigned long rpm, u32 clk_freq, u16 p,
184 unsigned long f1 = clk_freq * 30 * gear_mult;
264 data->clk_freq = val;
510 data->set_cnt = cnt_from_rpm(val, data->clk_freq,
593 unsigned long clk_freq;
612 clk_freq = clk_get_rate(clk);
613 ret = do_set_clk_freq(&client->dev, clk_freq);
615 dev_err(&client->dev, "invalid clock freq %lu\n", clk_freq);
716 return do_set_clk_freq(&client->dev, pdata->clk_freq);
739 rpm = rpm_from_cnt(data->act_cnt, data->clk_freq,
941 rpm = rpm_from_cnt(data->set_cnt, data->clk_freq,