Home
last modified time | relevance | path

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

/linux-4.1.27/lib/
Dcordic.c55 struct cordic_iq cordic_calc_iq(s32 theta) in cordic_calc_iq() argument
67 theta = FIXED(theta); in cordic_calc_iq()
68 signtheta = (theta < 0) ? -1 : 1; in cordic_calc_iq()
69 theta = ((theta + FIXED(180) * signtheta) % FIXED(360)) - in cordic_calc_iq()
72 if (FLOAT(theta) > 90) { in cordic_calc_iq()
73 theta -= FIXED(180); in cordic_calc_iq()
75 } else if (FLOAT(theta) < -90) { in cordic_calc_iq()
76 theta += FIXED(180); in cordic_calc_iq()
81 if (theta > angle) { in cordic_calc_iq()
/linux-4.1.27/drivers/net/wireless/b43/
Dphy_common.c609 struct b43_c32 b43_cordic(int theta) in b43_cordic() argument
622 while (theta > (180 << 16)) in b43_cordic()
623 theta -= (360 << 16); in b43_cordic()
624 while (theta < -(180 << 16)) in b43_cordic()
625 theta += (360 << 16); in b43_cordic()
627 if (theta > (90 << 16)) { in b43_cordic()
628 theta -= (180 << 16); in b43_cordic()
630 } else if (theta < -(90 << 16)) { in b43_cordic()
631 theta += (180 << 16); in b43_cordic()
636 if (theta > angle) { in b43_cordic()
Dphy_common.h455 struct b43_c32 b43_cordic(int theta);
/linux-4.1.27/drivers/media/i2c/
Dov7670.c1178 static int ov7670_sine(int theta) in ov7670_sine() argument
1183 if (theta < 0) { in ov7670_sine()
1184 theta = -theta; in ov7670_sine()
1187 if (theta <= 90) in ov7670_sine()
1188 sine = ov7670_sin_table[theta/SIN_STEP]; in ov7670_sine()
1190 theta -= 90; in ov7670_sine()
1191 sine = 1000 - ov7670_sin_table[theta/SIN_STEP]; in ov7670_sine()
1196 static int ov7670_cosine(int theta) in ov7670_cosine() argument
1198 theta = 90 - theta; in ov7670_cosine()
1199 if (theta > 180) in ov7670_cosine()
[all …]
/linux-4.1.27/net/ipv4/
Dtcp_illinois.c38 static int theta __read_mostly = 5;
39 module_param(theta, int, 0);
40 MODULE_PARM_DESC(theta, "# of fast RTT's before full growth");
150 if (++ca->rtt_low < theta) in alpha()
/linux-4.1.27/include/linux/
Dcordic.h46 struct cordic_iq cordic_calc_iq(s32 theta);
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
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-4.1.27/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs_hash.h761 static inline int __cfs_hash_theta_int(int theta) in __cfs_hash_theta_int() argument
763 return (theta >> CFS_HASH_THETA_BITS); in __cfs_hash_theta_int()
767 static inline int __cfs_hash_theta_frac(int theta) in __cfs_hash_theta_frac() argument
769 return ((theta * 1000) >> CFS_HASH_THETA_BITS) - in __cfs_hash_theta_frac()
770 (__cfs_hash_theta_int(theta) * 1000); in __cfs_hash_theta_frac()
/linux-4.1.27/sound/soc/codecs/
Darizona.c1638 int theta; member
1801 cfg->theta = (target - (cfg->n * ratio * Fref)) in arizona_calc_fll()
1805 cfg->theta = 0; in arizona_calc_fll()
1814 cfg->theta >>= 1; in arizona_calc_fll()
1831 cfg->n, cfg->theta, cfg->lambda); in arizona_calc_fll()
1845 ARIZONA_FLL1_THETA_MASK, cfg->theta); in arizona_apply_fll()
Dwm2200.c1843 u16 theta; member
1918 fll_div->theta = 0; in fll_factors()
1923 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors()
1929 fll_div->n, fll_div->theta, fll_div->lambda); in fll_factors()
1979 if (factors.theta) { in wm2200_set_fll()
1994 factors.theta); in wm2200_set_fll()
Dwm8962.c2721 u16 theta; member
2800 fll_div->theta = 0; in fll_factors()
2805 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors()
2811 fll_div->n, fll_div->theta, fll_div->lambda); in fll_factors()
2871 if (fll_div.theta || fll_div.lambda) in wm8962_set_fll()
2886 snd_soc_write(codec, WM8962_FLL_CONTROL_6, fll_div.theta); in wm8962_set_fll()
Dwm8996.c1902 u16 theta; member
1987 fll_div->theta = 0; in fll_factors()
1992 fll_div->theta = (target - (fll_div->n * fratio * Fref)) in fll_factors()
1998 fll_div->n, fll_div->theta, fll_div->lambda); in fll_factors()
2064 if (fll_div.theta || fll_div.lambda) in wm8996_set_fll()
2076 snd_soc_write(codec, WM8996_FLL_CONTROL_3, fll_div.theta); in wm8996_set_fll()
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()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
Dhash.c2048 int theta; in cfs_hash_debug_str() local
2052 theta = __cfs_hash_theta(hs); in cfs_hash_debug_str()
2058 __cfs_hash_theta_int(theta), __cfs_hash_theta_frac(theta), in cfs_hash_debug_str()
2088 dist[min(fls(bd.bd_bucket->hsb_count / max(theta, 1)), 7)]++; in cfs_hash_debug_str()
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dsvga3d_reg.h1467 float theta; member
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/phy/
Dphy_lcn.c3417 s32 theta = 0, rot = 0; in wlc_lcnphy_start_tx_tone() local
3447 theta = 0; in wlc_lcnphy_start_tx_tone()
3451 tone_samp = cordic_calc_iq(theta); in wlc_lcnphy_start_tx_tone()
3453 theta += rot; in wlc_lcnphy_start_tx_tone()
Dphy_n.c23147 s32 theta = 0, rot = 0; in wlc_phy_gen_load_samples_nphy() local
23170 theta = 0; in wlc_phy_gen_load_samples_nphy()
23174 tone_buf[t] = cordic_calc_iq(theta); in wlc_phy_gen_load_samples_nphy()
23176 theta += rot; in wlc_phy_gen_load_samples_nphy()