Searched defs:coef_exp (Results 1 - 2 of 2) sorted by relevance

/drivers/net/wireless/ath/ath5k/
H A Dphy.c289 u32 coef_scaled, coef_exp, coef_man, local
316 * ALGO: coef_exp = 14 - highest set bit position */
317 coef_exp = ilog2(coef_scaled);
320 if (!coef_scaled || !coef_exp)
324 coef_exp = 14 - (coef_exp - 24);
328 * ALGO: coef_mant = floor(coef_scaled* 2^coef_exp+0.5) */
330 (1 << (24 - coef_exp - 1));
334 ds_coef_man = coef_man >> (24 - coef_exp);
335 ds_coef_exp = coef_exp
[all...]
/drivers/net/wireless/ath/ath9k/
H A Dhw.c1206 u32 coef_exp, coef_man; local
1208 for (coef_exp = 31; coef_exp > 0; coef_exp--)
1209 if ((coef_scaled >> coef_exp) & 0x1)
1212 coef_exp = 14 - (coef_exp - COEF_SCALE_S);
1214 coef_man = coef_scaled + (1 << (COEF_SCALE_S - coef_exp - 1));
1216 *coef_mantissa = coef_man >> (COEF_SCALE_S - coef_exp);
1217 *coef_exponent = coef_exp
[all...]

Completed in 84 milliseconds