Home
last modified time | relevance | path

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

/freebsd/sys/contrib/dev/rtw88/
H A Drtw8821c.c994 if (delta_pwr_idx >= 0) { in rtw8821c_txagc_swing_offset()
995 if (delta_pwr_idx <= pwr_idx_offset) { in rtw8821c_txagc_swing_offset()
996 agc_index = delta_pwr_idx; in rtw8821c_txagc_swing_offset()
998 } else if (delta_pwr_idx > pwr_idx_offset) { in rtw8821c_txagc_swing_offset()
1001 delta_pwr_idx - pwr_idx_offset; in rtw8821c_txagc_swing_offset()
1004 } else if (delta_pwr_idx < 0) { in rtw8821c_txagc_swing_offset()
1005 if (delta_pwr_idx >= pwr_idx_offset_lower) { in rtw8821c_txagc_swing_offset()
1006 agc_index = delta_pwr_idx; in rtw8821c_txagc_swing_offset()
1008 } else if (delta_pwr_idx < pwr_idx_offset_lower) { in rtw8821c_txagc_swing_offset()
1010 (pwr_idx_offset_lower - delta_pwr_idx)) in rtw8821c_txagc_swing_offset()
[all …]
H A Drtw8822b.c1392 s8 delta_pwr_idx = dm_info->delta_power_index[path]; in rtw8822b_txagc_swing_offset() local
1401 if (delta_pwr_idx >= 0) { in rtw8822b_txagc_swing_offset()
1402 if (delta_pwr_idx <= tx_pwr_idx_offset) { in rtw8822b_txagc_swing_offset()
1403 agc_index = delta_pwr_idx; in rtw8822b_txagc_swing_offset()
1405 } else if (delta_pwr_idx > tx_pwr_idx_offset) { in rtw8822b_txagc_swing_offset()
1408 delta_pwr_idx - tx_pwr_idx_offset; in rtw8822b_txagc_swing_offset()
1412 if (dm_info->default_ofdm_index > abs(delta_pwr_idx)) in rtw8822b_txagc_swing_offset()
1414 dm_info->default_ofdm_index + delta_pwr_idx; in rtw8822b_txagc_swing_offset()