Lines Matching refs:SCALE

2317 #define SCALE		(1 << 15)  in ar9003_get_iq_corr()  macro
2355 mag[i][j] = (m * SCALE) / p; in ar9003_get_iq_corr()
2356 phs[i][j] = (c * SCALE) / p; in ar9003_get_iq_corr()
2367 sin[i] = (sin[i] * SCALE) / div; in ar9003_get_iq_corr()
2368 cos[i] = (cos[i] * SCALE) / div; in ar9003_get_iq_corr()
2374 f2 = (f1 * f1 + f3 * f3) / SCALE; in ar9003_get_iq_corr()
2385 if (txmag == SCALE) in ar9003_get_iq_corr()
2389 rxmag = mag[0][0] - (cos[0] * txmag + sin[0] * txphs) / SCALE; in ar9003_get_iq_corr()
2391 rxphs = phs[0][0] + (sin[0] * txmag - cos[0] * txphs) / SCALE; in ar9003_get_iq_corr()
2393 if (-rxmag == SCALE) in ar9003_get_iq_corr()
2396 txmag = (txmag * SCALE) / (SCALE - txmag); in ar9003_get_iq_corr()
2399 q_coff = (txmag * 128) / SCALE; in ar9003_get_iq_corr()
2404 i_coff = (txphs * 256) / SCALE; in ar9003_get_iq_corr()
2411 rxmag = (-rxmag * SCALE) / (SCALE + rxmag); in ar9003_get_iq_corr()
2414 q_coff = (rxmag * 128) / SCALE; in ar9003_get_iq_corr()
2419 i_coff = (rxphs * 256) / SCALE; in ar9003_get_iq_corr()
2428 #undef SCALE in ar9003_get_iq_corr()
2788 #define SCALE 32 in ar9003_compute_predistortion() macro
2804 txsum *= SCALE; in ar9003_compute_predistortion()
2805 rxsum *= SCALE; in ar9003_compute_predistortion()
2806 rosum *= SCALE; in ar9003_compute_predistortion()
2808 x[i + 1] = ((txsum + nsamples) / nsamples + SCALE) / SCALE; in ar9003_compute_predistortion()
2809 y[i + 1] = ((rxsum + nsamples) / nsamples + SCALE) / SCALE + in ar9003_compute_predistortion()
2810 SCALE * maxidx + SCALE / 2; in ar9003_compute_predistortion()
2814 #undef SCALE in ar9003_compute_predistortion()
2817 #define SCALE (1 << SCALE_LOG) in ar9003_compute_predistortion() macro
2820 G = ((y[6] - y[3]) * SCALE + (x[6] - x[3])) / (x[6] - x[3]); in ar9003_compute_predistortion()
2827 icept = (G * (x[0] - x[3]) + SCALE) / SCALE + y[3]; in ar9003_compute_predistortion()
2830 x[i] = (y[i] * SCALE + G) / G; in ar9003_compute_predistortion()
2835 xnonlin = x[maxidx] - (y[maxidx] * SCALE + G) / G; in ar9003_compute_predistortion()
2852 xnonlin = x[i + I] - ((y[i + I] * SCALE) + G) / G; in ar9003_compute_predistortion()
2857 y2 = (y[i + I] * y[i + I] + SCALE * SCALE) / (SCALE * SCALE); in ar9003_compute_predistortion()
2934 in = y5 + y3 + (SCALE * tmp) / G; in ar9003_compute_predistortion()
3014 #undef SCALE in ar9003_compute_predistortion()