| /linux/lib/math/ |
| H A D | cordic.c | 46 struct cordic_iq cordic_calc_iq(s32 theta) in cordic_calc_iq() argument 58 theta = CORDIC_FIXED(theta); in cordic_calc_iq() 59 signtheta = (theta < 0) ? -1 : 1; in cordic_calc_iq() 60 theta = ((theta + CORDIC_FIXED(180) * signtheta) % CORDIC_FIXED(360)) - in cordic_calc_iq() 63 if (CORDIC_FLOAT(theta) > 90) { in cordic_calc_iq() 64 theta -= CORDIC_FIXED(180); in cordic_calc_iq() 66 } else if (CORDIC_FLOAT(theta) < -90) { in cordic_calc_iq() 67 theta += CORDIC_FIXED(180); in cordic_calc_iq() 72 if (theta > angle) { in cordic_calc_iq()
|
| /linux/net/ipv4/ |
| H A D | tcp_illinois.c | 39 static int theta __read_mostly = 5; 40 module_param(theta, int, 0); 41 MODULE_PARM_DESC(theta, "# of fast RTT's before full growth"); 152 if (++ca->rtt_low < theta) in alpha()
|
| /linux/drivers/media/i2c/ |
| H A D | ov7670.c | 1331 static int ov7670_sine(int theta) in ov7670_sine() argument 1336 if (theta < 0) { in ov7670_sine() 1337 theta = -theta; in ov7670_sine() 1340 if (theta <= 90) in ov7670_sine() 1341 sine = ov7670_sin_table[theta/SIN_STEP]; in ov7670_sine() 1343 theta -= 90; in ov7670_sine() 1344 sine = 1000 - ov7670_sin_table[theta/SIN_STEP]; in ov7670_sine() 1349 static int ov7670_cosine(int theta) in ov7670_cosine() argument 1351 theta = 90 - theta; in ov7670_cosine() 1352 if (theta > 180) in ov7670_cosine() [all …]
|
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | ar9003_paprd.c | 422 int x_est[NUM_BIN + 1], Y[NUM_BIN + 1], theta[NUM_BIN + 1]; in create_pa_curve() local 442 memset(theta, 0, sizeof(theta)); in create_pa_curve() 485 theta[max_index] = in create_pa_curve() 495 theta_low_bin += theta[i]; in create_pa_curve() 499 theta[i] = theta_low_bin; in create_pa_curve() 502 theta[0] = theta_low_bin; in create_pa_curve() 504 theta[i] -= theta_low_bin; in create_pa_curve() 675 ((theta[i + I] << M) + y_est[i + I]) / y_est[i + I]; in create_pa_curve()
|
| /linux/include/linux/ |
| H A D | cordic.h | 55 struct cordic_iq cordic_calc_iq(s32 theta);
|
| /linux/sound/soc/codecs/ |
| H A D | madera.c | 3634 cfg->theta = (fll->fout - (cfg->n * ratio * fref)) in madera_calc_fll() 3638 cfg->theta = 0; in madera_calc_fll() 3648 cfg->theta >>= 1; in madera_calc_fll() 3693 cfg->n, cfg->theta, cfg->lambda); in madera_calc_fll() 3711 cfg->theta, &change); in madera_calc_fll() 3814 if (!sync && ref_cfg->theta == 0) in madera_wait_for_fll() 4015 cfg.theta = (cfg.theta * (1 << 16)) / cfg.lambda; in madera_enable_fll() 4027 if (!have_sync && cfg.theta == 0) in madera_enable_fll() 4041 if (!have_sync && cfg.theta in madera_enable_fll() 4426 unsigned int fll_n, min_n, max_n, ratio, theta, lambda; madera_fllhj_apply() local [all...] |
| H A D | arizona.c | 2095 unsigned int theta; 2288 cfg->theta = (target - (cfg->n * ratio * Fref)) in arizona_calc_fll() 2292 cfg->theta = 0; in arizona_calc_fll() 2301 cfg->theta >>= 1; in arizona_calc_fll() 2318 cfg->n, cfg->theta, cfg->lambda); in arizona_calc_fll() 2332 ARIZONA_FLL1_THETA_MASK, cfg->theta); in arizona_apply_fll() 2452 cfg.theta = (cfg.theta * (1 << 16)) / cfg.lambda; in arizona_enable_fll() 2097 unsigned int theta; global() member
|
| H A D | wm5100.c | 1663 u16 theta; member 1738 fll_div->theta = 0; in fll_factors() 1743 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors() 1749 fll_div->n, fll_div->theta, fll_div->lambda); in fll_factors() 1818 factors.theta); in wm5100_set_fll()
|
| H A D | wm8962.c | 2794 u16 theta; 2873 fll_div->theta = 0; in fll_factors() 2878 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors() 2884 fll_div->n, fll_div->theta, fll_div->lambda); in fll_factors() 2948 if (fll_div.theta) in wm8962_set_fll() 2963 snd_soc_component_write(component, WM8962_FLL_CONTROL_6, fll_div.theta); in wm8962_set_fll() 2790 u16 theta; global() member
|
| H A D | cs48l32.h | 334 unsigned int theta; member
|
| H A D | madera.h | 150 unsigned int theta; member
|
| H A D | cs48l32.c | 1604 unsigned int fll_n, min_n, max_n, ratio, theta, lambda, hp; in cs48l32_fllhj_apply() local 1680 theta = num % lambda; in cs48l32_fllhj_apply() 1682 cs48l32_fll_dbg(fll, "fll_n=%d, gcd=%d, theta=%d, lambda=%d\n", in cs48l32_fllhj_apply() 1683 fll_n, fllgcd, theta, lambda); in cs48l32_fllhj_apply() 1715 (theta << CS48L32_FLL_THETA_SHIFT)); in cs48l32_fllhj_apply()
|
| /linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
| H A D | phy_lcn.c | 3339 s32 theta = 0, rot = 0; in wlc_lcnphy_start_tx_tone() local 3369 theta = 0; in wlc_lcnphy_start_tx_tone() 3373 tone_samp = cordic_calc_iq(theta); in wlc_lcnphy_start_tx_tone() 3375 theta += rot; in wlc_lcnphy_start_tx_tone()
|
| H A D | phy_n.c | 23035 s32 theta = 0, rot = 0; in wlc_phy_gen_load_samples_nphy() local 23059 theta = 0; in wlc_phy_gen_load_samples_nphy() 23063 tone_buf[t] = cordic_calc_iq(theta); in wlc_phy_gen_load_samples_nphy() 23065 theta += rot; in wlc_phy_gen_load_samples_nphy()
|
| /linux/drivers/net/wireless/broadcom/b43/ |
| H A D | phy_lp.c | 1771 int i, samples = 0, theta = 0; in lpphy_start_tx_tone() local 1789 sample = cordic_calc_iq(CORDIC_FIXED(theta)); in lpphy_start_tx_tone() 1790 theta += rotation; in lpphy_start_tx_tone()
|
| /linux/drivers/gpu/drm/vmwgfx/device_include/ |
| H A D | svga3d_cmd.h | 415 float theta; member
|