Lines Matching refs:n1
421 unsigned char n1, n2, best_n1=16+2, best_n2=2, best_m=125+2; in SavageCalcClock() local
436 for (n1=min_n1+2; n1<=max_n1+2; n1++) { in SavageCalcClock()
437 m = (freq * n1 * (1 << n2) + HALF_BASE_FREQ) / in SavageCalcClock()
441 if ((m * BASE_FREQ >= freq_min * n1) && in SavageCalcClock()
442 (m * BASE_FREQ <= freq_max * n1)) { in SavageCalcClock()
443 diff = freq * (1 << n2) * n1 - BASE_FREQ * m; in SavageCalcClock()
449 best_n1 = n1; in SavageCalcClock()
468 unsigned char n1, n2; in common_calc_clock() local
474 for (n1 = min_n1+2; n1 <= max_n1+2; n1++) { in common_calc_clock()
475 m = (freq * n1 * (1 << n2) + HALF_BASE_FREQ) / in common_calc_clock()
479 if ((m * BASE_FREQ >= freq_min * n1) && in common_calc_clock()
480 (m * BASE_FREQ <= freq_max * n1)) { in common_calc_clock()
481 diff = freq * (1 << n2) * n1 - BASE_FREQ * m; in common_calc_clock()
487 best_n1 = n1; in common_calc_clock()
1809 unsigned char config1, m, n, n1, n2, sr8, cr3f, cr66 = 0, tmp; in savage_init_hw() local
1931 n1 = n & 0x1f; in savage_init_hw()
1933 par->MCLK = ((1431818 * (m+2)) / (n1+2) / (1 << n2) + 50) / 100; in savage_init_hw()