Lines Matching refs:n1
81 unsigned int n1; member
100 unsigned int *n1, unsigned int *hs_div) in si570_get_divs() argument
112 *n1 = ((reg[0] & N1_6_2_MASK) << 2) + ((reg[1] & N1_1_0_MASK) >> 6) + 1; in si570_get_divs()
114 if (*n1 > 1) in si570_get_divs()
115 *n1 &= ~1; in si570_get_divs()
144 err = si570_get_divs(data, &data->rfreq, &data->n1, &data->hs_div); in si570_get_defaults()
152 fdco = fout * data->n1 * data->hs_div; in si570_get_defaults()
172 reg[0] = ((data->n1 - 1) << 6) | in si570_update_rfreq()
199 unsigned int n1, hs_div; in si570_calc_divs() local
206 n1 = div_u64(div_u64(FDCO_MIN, hs_div), frequency); in si570_calc_divs()
207 if (!n1 || (n1 & 1)) in si570_calc_divs()
208 n1++; in si570_calc_divs()
209 while (n1 <= 128) { in si570_calc_divs()
210 fdco = (u64)frequency * (u64)hs_div * (u64)n1; in si570_calc_divs()
214 *out_n1 = n1; in si570_calc_divs()
219 n1 += (n1 == 1 ? 1 : 2); in si570_calc_divs()
234 unsigned int n1, hs_div; 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()
254 unsigned int n1, hs_div; in si570_round_rate() local
264 n1 = data->n1; 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()
303 (((data->n1 - 1) >> 2) & N1_6_2_MASK)); in si570_set_frequency()