Lines Matching refs:delta_pwr_idx
1051 s8 delta_pwr_idx = dm_info->delta_power_index[RF_PATH_A]; in rtw8821c_txagc_swing_offset() local
1061 if (delta_pwr_idx >= 0) { in rtw8821c_txagc_swing_offset()
1062 if (delta_pwr_idx <= pwr_idx_offset) { in rtw8821c_txagc_swing_offset()
1063 agc_index = delta_pwr_idx; in rtw8821c_txagc_swing_offset()
1065 } else if (delta_pwr_idx > pwr_idx_offset) { in rtw8821c_txagc_swing_offset()
1068 delta_pwr_idx - pwr_idx_offset; in rtw8821c_txagc_swing_offset()
1071 } else if (delta_pwr_idx < 0) { in rtw8821c_txagc_swing_offset()
1072 if (delta_pwr_idx >= pwr_idx_offset_lower) { in rtw8821c_txagc_swing_offset()
1073 agc_index = delta_pwr_idx; in rtw8821c_txagc_swing_offset()
1075 } else if (delta_pwr_idx < pwr_idx_offset_lower) { in rtw8821c_txagc_swing_offset()
1077 (pwr_idx_offset_lower - delta_pwr_idx)) in rtw8821c_txagc_swing_offset()
1079 delta_pwr_idx - pwr_idx_offset_lower; in rtw8821c_txagc_swing_offset()