Lines Matching refs:n1
71 unsigned int n1; member
95 unsigned int *n1, unsigned int *hs_div) in si570_get_divs() argument
107 *n1 = ((reg[0] & N1_6_2_MASK) << 2) + ((reg[1] & N1_1_0_MASK) >> 6) + 1; in si570_get_divs()
109 if (*n1 > 1) in si570_get_divs()
110 *n1 &= ~1; in si570_get_divs()
139 err = si570_get_divs(data, &data->rfreq, &data->n1, &data->hs_div); in si570_get_defaults()
147 fdco = fout * data->n1 * data->hs_div; in si570_get_defaults()
167 reg[0] = ((data->n1 - 1) << 6) | in si570_update_rfreq()
194 unsigned int n1, hs_div; in si570_calc_divs() local
201 n1 = div_u64(div_u64(FDCO_MIN, hs_div), frequency); in si570_calc_divs()
202 if (!n1 || (n1 & 1)) in si570_calc_divs()
203 n1++; in si570_calc_divs()
204 while (n1 <= 128) { in si570_calc_divs()
205 fdco = (u64)frequency * (u64)hs_div * (u64)n1; in si570_calc_divs()
209 *out_n1 = n1; in si570_calc_divs()
214 n1 += (n1 == 1 ? 1 : 2); in si570_calc_divs()
229 unsigned int n1, hs_div; in si570_recalc_rate() local
232 err = si570_get_divs(data, &rfreq, &n1, &hs_div); in si570_recalc_rate()
238 rfreq = div_u64(rfreq, hs_div * n1); in si570_recalc_rate()
249 unsigned int n1, hs_div; in si570_round_rate() local
259 n1 = data->n1; in si570_round_rate()
263 err = si570_calc_divs(rate, data, &rfreq, &n1, &hs_div); in si570_round_rate()
286 err = si570_calc_divs(frequency, data, &data->rfreq, &data->n1, in si570_set_frequency()
298 (((data->n1 - 1) >> 2) & N1_6_2_MASK)); in si570_set_frequency()