Lines Matching refs:rfreq
82 u64 rfreq; member
103 static int si570_get_divs(struct clk_si570 *data, u64 *rfreq, in si570_get_divs() argument
126 *rfreq = tmp; in si570_get_divs()
144 err = si570_get_divs(data, &data->rfreq, &data->n1, &data->hs_div); in si570_get_defaults()
154 data->fxtal = div64_u64(fdco << 24, data->rfreq >> 4); in si570_get_defaults()
156 data->fxtal = div64_u64(fdco << 28, data->rfreq); in si570_get_defaults()
173 ((data->rfreq >> 32) & RFREQ_37_32_MASK); in si570_update_rfreq()
174 reg[1] = (data->rfreq >> 24) & 0xff; in si570_update_rfreq()
175 reg[2] = (data->rfreq >> 16) & 0xff; in si570_update_rfreq()
176 reg[3] = (data->rfreq >> 8) & 0xff; in si570_update_rfreq()
177 reg[4] = data->rfreq & 0xff; in si570_update_rfreq()
233 u64 rfreq, rate; in si570_recalc_rate() local
237 err = si570_get_divs(data, &rfreq, &n1, &hs_div); in si570_recalc_rate()
243 rfreq = div_u64(rfreq, hs_div * n1); in si570_recalc_rate()
244 rate = (data->fxtal * rfreq) >> 28; in si570_recalc_rate()
253 u64 rfreq; in si570_round_rate() local
262 rfreq = div64_u64((data->rfreq * rate) + in si570_round_rate()
268 err = si570_calc_divs(rate, data, &rfreq, &n1, &hs_div); in si570_round_rate()
291 err = si570_calc_divs(frequency, data, &data->rfreq, &data->n1, in si570_set_frequency()
330 data->rfreq = div64_u64((data->rfreq * frequency) + in si570_set_frequency_small()