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