Home
last modified time | relevance | path

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

/openbmc/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()
/openbmc/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()
/openbmc/linux/drivers/media/i2c/
H A Dov7670.c1334 static int ov7670_sine(int theta) in ov7670_sine() argument
1339 if (theta < 0) { in ov7670_sine()
1340 theta = -theta; in ov7670_sine()
1343 if (theta <= 90) in ov7670_sine()
1346 theta -= 90; in ov7670_sine()
1354 theta = 90 - theta; in ov7670_cosine()
1355 if (theta > 180) in ov7670_cosine()
1356 theta -= 360; in ov7670_cosine()
1357 else if (theta < -180) in ov7670_cosine()
1358 theta += 360; in ov7670_cosine()
[all …]
/openbmc/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()
/openbmc/linux/include/linux/
H A Dcordic.h55 struct cordic_iq cordic_calc_iq(s32 theta);
/openbmc/linux/sound/soc/codecs/
H A Dmadera.c3651 cfg->theta = 0; in madera_calc_fll()
3661 cfg->theta >>= 1; in madera_calc_fll()
3706 cfg->n, cfg->theta, cfg->lambda); in madera_calc_fll()
3724 cfg->theta, &change); in madera_write_fll()
3827 if (!sync && ref_cfg->theta == 0) in madera_set_fll_phase_integrator()
4028 cfg.theta = (cfg.theta * (1 << 16)) / cfg.lambda; in madera_enable_fll()
4040 if (!have_sync && cfg.theta == 0) in madera_enable_fll()
4054 if (!have_sync && cfg.theta == 0) in madera_enable_fll()
4505 theta = num % lambda; in madera_fllhj_apply()
4508 fll_n, fllgcd, theta, lambda); in madera_fllhj_apply()
[all …]
H A Dwm2200.c1827 u16 theta; member
1902 fll_div->theta = 0; in fll_factors()
1907 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors()
1913 fll_div->n, fll_div->theta, fll_div->lambda); in fll_factors()
1963 if (factors.theta) { in wm2200_set_fll()
1978 factors.theta); in wm2200_set_fll()
H A Darizona.c2097 unsigned int theta; member
2290 cfg->theta = (target - (cfg->n * ratio * Fref)) in arizona_calc_fll()
2294 cfg->theta = 0; in arizona_calc_fll()
2303 cfg->theta >>= 1; in arizona_calc_fll()
2320 cfg->n, cfg->theta, cfg->lambda); in arizona_calc_fll()
2334 ARIZONA_FLL1_THETA_MASK, cfg->theta); in arizona_apply_fll()
2454 cfg.theta = (cfg.theta * (1 << 16)) / cfg.lambda; in arizona_enable_fll()
H A Dwm8996.c1897 u16 theta; member
1982 fll_div->theta = 0; in fll_factors()
1987 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors()
1993 fll_div->n, fll_div->theta, fll_div->lambda); in fll_factors()
2059 if (fll_div.theta || fll_div.lambda) in wm8996_set_fll()
2071 snd_soc_component_write(component, WM8996_FLL_CONTROL_3, fll_div.theta); in wm8996_set_fll()
H A Dwm8962.c2786 u16 theta; member
2865 fll_div->theta = 0; in fll_factors()
2870 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors()
2876 fll_div->n, fll_div->theta, fll_div->lambda); in fll_factors()
2940 if (fll_div.theta) in wm8962_set_fll()
2955 snd_soc_component_write(component, WM8962_FLL_CONTROL_6, fll_div.theta); in wm8962_set_fll()
H A Dwm5100.c1660 u16 theta; member
1735 fll_div->theta = 0; in fll_factors()
1740 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors()
1746 fll_div->n, fll_div->theta, fll_div->lambda); in fll_factors()
1815 factors.theta); in wm5100_set_fll()
H A Dmadera.h150 unsigned int theta; member
/openbmc/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.c23044 s32 theta = 0, rot = 0; in wlc_phy_gen_load_samples_nphy() local
23068 theta = 0; in wlc_phy_gen_load_samples_nphy()
23072 tone_buf[t] = cordic_calc_iq(theta); in wlc_phy_gen_load_samples_nphy()
23074 theta += rot; in wlc_phy_gen_load_samples_nphy()
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/vmwgfx/device_include/
H A Dsvga3d_cmd.h415 float theta; member