Lines Matching full:frequency

57  * @max_freq:	Maximum frequency for this device
58 * @fxtal: Factory xtal frequency
62 * @frequency: Current output frequency
74 u64 frequency; member
125 * @fout: Factory frequency output
153 data->frequency = fout; in si570_get_defaults()
180 * @frequency: Target frequency
188 * (@out_rfreq) for a given target @frequency.
190 static int si570_calc_divs(unsigned long frequency, struct clk_si570 *data, in si570_calc_divs() argument
201 n1 = div_u64(div_u64(FDCO_MIN, hs_div), frequency); in si570_calc_divs()
205 fdco = (u64)frequency * (u64)hs_div * (u64)n1; in si570_calc_divs()
235 return data->frequency; in si570_recalc_rate()
255 if (div64_u64(abs(rate - data->frequency) * 10000LL, in si570_round_rate()
256 data->frequency) < 35) { in si570_round_rate()
258 div64_u64(data->frequency, 2), data->frequency); in si570_round_rate()
275 * si570_set_frequency() - Adjust output frequency
277 * @frequency: Target frequency
280 * Update output frequency for big frequency changes (> 3,500 ppm).
282 static int si570_set_frequency(struct clk_si570 *data, unsigned long frequency) in si570_set_frequency() argument
286 err = si570_calc_divs(frequency, data, &data->rfreq, &data->n1, in si570_set_frequency()
303 /* Applying a new frequency can take up to 10ms */ in si570_set_frequency()
310 * si570_set_frequency_small() - Adjust output frequency
312 * @frequency: Target frequency
315 * Update output frequency for small frequency changes (< 3,500 ppm).
318 unsigned long frequency) in si570_set_frequency_small() argument
325 data->rfreq = div64_u64((data->rfreq * frequency) + in si570_set_frequency_small()
326 div_u64(data->frequency, 2), data->frequency); in si570_set_frequency_small()
331 /* Applying a new frequency (small change) can take up to 100us */ in si570_set_frequency_small()
346 "requested frequency %lu Hz is out of range\n", rate); in si570_set_rate()
350 if (div64_u64(abs(rate - data->frequency) * 10000LL, in si570_set_rate()
351 data->frequency) < 35) in si570_set_rate()
359 data->frequency = rate; in si570_set_rate()
484 /* Read the requested initial output frequency from device tree */ in si570_probe()
485 if (!of_property_read_u32(client->dev.of_node, "clock-frequency", in si570_probe()
495 dev_info(&client->dev, "registered, current frequency %llu Hz\n", in si570_probe()
496 data->frequency); in si570_probe()