Home
last modified time | relevance | path

Searched refs:coef_exp (Results 1 – 2 of 2) sorted by relevance

/drivers/net/wireless/ath/ath9k/
Dhw.c1278 u32 coef_exp, coef_man; in ath9k_hw_get_delta_slope_vals() local
1280 for (coef_exp = 31; coef_exp > 0; coef_exp--) in ath9k_hw_get_delta_slope_vals()
1281 if ((coef_scaled >> coef_exp) & 0x1) in ath9k_hw_get_delta_slope_vals()
1284 coef_exp = 14 - (coef_exp - COEF_SCALE_S); in ath9k_hw_get_delta_slope_vals()
1286 coef_man = coef_scaled + (1 << (COEF_SCALE_S - coef_exp - 1)); in ath9k_hw_get_delta_slope_vals()
1288 *coef_mantissa = coef_man >> (COEF_SCALE_S - coef_exp); in ath9k_hw_get_delta_slope_vals()
1289 *coef_exponent = coef_exp - 16; in ath9k_hw_get_delta_slope_vals()
/drivers/net/wireless/ath/ath5k/
Dphy.c289 u32 coef_scaled, coef_exp, coef_man, in ath5k_hw_write_ofdm_timings() local
317 coef_exp = ilog2(coef_scaled); in ath5k_hw_write_ofdm_timings()
320 if (!coef_scaled || !coef_exp) in ath5k_hw_write_ofdm_timings()
324 coef_exp = 14 - (coef_exp - 24); in ath5k_hw_write_ofdm_timings()
330 (1 << (24 - coef_exp - 1)); in ath5k_hw_write_ofdm_timings()
334 ds_coef_man = coef_man >> (24 - coef_exp); in ath5k_hw_write_ofdm_timings()
335 ds_coef_exp = coef_exp - 16; in ath5k_hw_write_ofdm_timings()