Searched refs:delta_pwr_idx (Results 1 – 2 of 2) sorted by relevance
952 s8 delta_pwr_idx = dm_info->delta_power_index[RF_PATH_A]; in rtw8821c_txagc_swing_offset() local962 if (delta_pwr_idx >= 0) { in rtw8821c_txagc_swing_offset()963 if (delta_pwr_idx <= pwr_idx_offset) { in rtw8821c_txagc_swing_offset()964 agc_index = delta_pwr_idx; in rtw8821c_txagc_swing_offset()966 } else if (delta_pwr_idx > pwr_idx_offset) { in rtw8821c_txagc_swing_offset()969 delta_pwr_idx - pwr_idx_offset; in rtw8821c_txagc_swing_offset()972 } else if (delta_pwr_idx < 0) { in rtw8821c_txagc_swing_offset()973 if (delta_pwr_idx >= pwr_idx_offset_lower) { in rtw8821c_txagc_swing_offset()974 agc_index = delta_pwr_idx; in rtw8821c_txagc_swing_offset()976 } else if (delta_pwr_idx < pwr_idx_offset_lower) { in rtw8821c_txagc_swing_offset()[all …]
1374 s8 delta_pwr_idx = dm_info->delta_power_index[path]; in rtw8822b_txagc_swing_offset() local1383 if (delta_pwr_idx >= 0) { in rtw8822b_txagc_swing_offset()1384 if (delta_pwr_idx <= tx_pwr_idx_offset) { in rtw8822b_txagc_swing_offset()1385 agc_index = delta_pwr_idx; in rtw8822b_txagc_swing_offset()1387 } else if (delta_pwr_idx > tx_pwr_idx_offset) { in rtw8822b_txagc_swing_offset()1390 delta_pwr_idx - tx_pwr_idx_offset; in rtw8822b_txagc_swing_offset()1394 if (dm_info->default_ofdm_index > abs(delta_pwr_idx)) in rtw8822b_txagc_swing_offset()1396 dm_info->default_ofdm_index + delta_pwr_idx; in rtw8822b_txagc_swing_offset()