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