Home
last modified time | relevance | path

Searched refs:theta (Results 1 – 16 of 16) sorted by relevance

/linux/lib/math/
H A Dcordic.c46 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 Dtcp_illinois.c39 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 Dov7670.c1331 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 Dar9003_paprd.c422 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 Dcordic.h55 struct cordic_iq cordic_calc_iq(s32 theta);
/linux/sound/soc/codecs/
H A Dmadera.c3634 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 Darizona.c2095 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 Dwm5100.c1663 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 Dwm8962.c2794 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 Dcs48l32.h334 unsigned int theta; member
H A Dmadera.h150 unsigned int theta; member
H A Dcs48l32.c1604 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 Dphy_lcn.c3339 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 Dphy_n.c23035 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 Dphy_lp.c1771 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 Dsvga3d_cmd.h415 float theta; member