Lines Matching refs:clk_freq
139 u32 clk_freq; member
183 static inline unsigned int rpm_from_cnt(u8 cnt, u32 clk_freq, u16 p, in rpm_from_cnt() argument
189 return (clk_freq * 30 * gear_mult) / ((cnt ? cnt : 1) * p * clk_div); in rpm_from_cnt()
196 static inline unsigned char cnt_from_rpm(unsigned long rpm, u32 clk_freq, u16 p, in cnt_from_rpm() argument
199 unsigned long f1 = clk_freq * 30 * gear_mult; in cnt_from_rpm()
279 data->clk_freq = val; in do_set_clk_freq()
525 data->set_cnt = cnt_from_rpm(val, data->clk_freq, in do_set_fan_target()
600 unsigned long clk_freq; in g762_of_clock_enable() local
619 clk_freq = clk_get_rate(clk); in g762_of_clock_enable()
620 ret = do_set_clk_freq(&client->dev, clk_freq); in g762_of_clock_enable()
622 dev_err(&client->dev, "invalid clock freq %lu\n", clk_freq); in g762_of_clock_enable()
730 return do_set_clk_freq(&client->dev, pdata->clk_freq); in g762_pdata_prop_import()
753 rpm = rpm_from_cnt(data->act_cnt, data->clk_freq, in get_fan_rpm()
955 rpm = rpm_from_cnt(data->set_cnt, data->clk_freq, in get_fan_target()