Lines Matching refs:clk_freq
125 u32 clk_freq;
169 static inline unsigned int rpm_from_cnt(u8 cnt, u32 clk_freq, u16 p,
175 return (clk_freq * 30 * gear_mult) / ((cnt ? cnt : 1) * p * clk_div);
182 static inline unsigned char cnt_from_rpm(unsigned long rpm, u32 clk_freq, u16 p,
185 unsigned long f1 = clk_freq * 30 * gear_mult;
265 data->clk_freq = val;
511 data->set_cnt = cnt_from_rpm(val, data->clk_freq,
594 unsigned long clk_freq;
613 clk_freq = clk_get_rate(clk);
614 ret = do_set_clk_freq(&client->dev, clk_freq);
616 dev_err(&client->dev, "invalid clock freq %lu\n", clk_freq);
712 return do_set_clk_freq(&client->dev, pdata->clk_freq);
735 rpm = rpm_from_cnt(data->act_cnt, data->clk_freq,
937 rpm = rpm_from_cnt(data->set_cnt, data->clk_freq,