Searched refs:swing_index (Results 1 – 2 of 2) sorted by relevance
950 u8 swing_index = dm_info->default_ofdm_index; in rtw8821c_txagc_swing_offset() local958 swing_index = dm_info->default_ofdm_index; in rtw8821c_txagc_swing_offset()961 swing_index = dm_info->default_ofdm_index + in rtw8821c_txagc_swing_offset()963 swing_index = min_t(u8, swing_index, swing_upper_bound); in rtw8821c_txagc_swing_offset()968 swing_index = dm_info->default_ofdm_index; in rtw8821c_txagc_swing_offset()972 swing_index = dm_info->default_ofdm_index + in rtw8821c_txagc_swing_offset()975 swing_index = swing_lower_bound; in rtw8821c_txagc_swing_offset()981 if (swing_index >= ARRAY_SIZE(rtw8821c_txscale_tbl)) { in rtw8821c_txagc_swing_offset()983 swing_index = ARRAY_SIZE(rtw8821c_txscale_tbl) - 1; in rtw8821c_txagc_swing_offset()987 *swing_idx = swing_index; in rtw8821c_txagc_swing_offset()
1376 u8 swing_index = dm_info->default_ofdm_index; in rtw8822b_txagc_swing_offset() local1383 swing_index = dm_info->default_ofdm_index; in rtw8822b_txagc_swing_offset()1386 swing_index = dm_info->default_ofdm_index + in rtw8822b_txagc_swing_offset()1388 swing_index = min_t(u8, swing_index, swing_upper_bound); in rtw8822b_txagc_swing_offset()1392 swing_index = in rtw8822b_txagc_swing_offset()1395 swing_index = swing_lower_bound; in rtw8822b_txagc_swing_offset()1396 swing_index = max_t(u8, swing_index, swing_lower_bound); in rtw8822b_txagc_swing_offset()1401 if (swing_index >= RTW_TXSCALE_SIZE) { in rtw8822b_txagc_swing_offset()1403 swing_index = RTW_TXSCALE_SIZE - 1; in rtw8822b_txagc_swing_offset()1406 *swing_idx = swing_index; in rtw8822b_txagc_swing_offset()