Searched refs:delta_pwr_idx (Results 1 – 2 of 2) sorted by relevance
849 s8 delta_pwr_idx = dm_info->delta_power_index[RF_PATH_A]; in rtw8821c_txagc_swing_offset() local859 if (delta_pwr_idx >= 0) { in rtw8821c_txagc_swing_offset()860 if (delta_pwr_idx <= pwr_idx_offset) { in rtw8821c_txagc_swing_offset()861 agc_index = delta_pwr_idx; in rtw8821c_txagc_swing_offset()863 } else if (delta_pwr_idx > pwr_idx_offset) { in rtw8821c_txagc_swing_offset()866 delta_pwr_idx - pwr_idx_offset; in rtw8821c_txagc_swing_offset()869 } else if (delta_pwr_idx < 0) { in rtw8821c_txagc_swing_offset()870 if (delta_pwr_idx >= pwr_idx_offset_lower) { in rtw8821c_txagc_swing_offset()871 agc_index = delta_pwr_idx; in rtw8821c_txagc_swing_offset()873 } else if (delta_pwr_idx < pwr_idx_offset_lower) { in rtw8821c_txagc_swing_offset()[all …]
1369 s8 delta_pwr_idx = dm_info->delta_power_index[path]; in rtw8822b_txagc_swing_offset() local1378 if (delta_pwr_idx >= 0) { in rtw8822b_txagc_swing_offset()1379 if (delta_pwr_idx <= tx_pwr_idx_offset) { in rtw8822b_txagc_swing_offset()1380 agc_index = delta_pwr_idx; in rtw8822b_txagc_swing_offset()1382 } else if (delta_pwr_idx > tx_pwr_idx_offset) { in rtw8822b_txagc_swing_offset()1385 delta_pwr_idx - tx_pwr_idx_offset; in rtw8822b_txagc_swing_offset()1389 if (dm_info->default_ofdm_index > abs(delta_pwr_idx)) in rtw8822b_txagc_swing_offset()1391 dm_info->default_ofdm_index + delta_pwr_idx; in rtw8822b_txagc_swing_offset()