Lines Matching refs:rf_reg18
438 u32 rf_reg18, rf_reg_be; in rtw8822b_set_channel_rf() local
440 rf_reg18 = rtw_read_rf(rtwdev, RF_PATH_A, 0x18, RFREG_MASK); in rtw8822b_set_channel_rf()
442 rf_reg18 &= ~(RF18_BAND_MASK | RF18_CHANNEL_MASK | RF18_RFSI_MASK | in rtw8822b_set_channel_rf()
445 rf_reg18 |= (channel <= 14 ? RF18_BAND_2G : RF18_BAND_5G); in rtw8822b_set_channel_rf()
446 rf_reg18 |= (channel & RF18_CHANNEL_MASK); in rtw8822b_set_channel_rf()
448 rf_reg18 |= RF18_RFSI_GT_CH144; in rtw8822b_set_channel_rf()
450 rf_reg18 |= RF18_RFSI_GE_CH80; in rtw8822b_set_channel_rf()
457 rf_reg18 |= RF18_BW_20M; in rtw8822b_set_channel_rf()
460 rf_reg18 |= RF18_BW_40M; in rtw8822b_set_channel_rf()
463 rf_reg18 |= RF18_BW_80M; in rtw8822b_set_channel_rf()
486 rtw_write_rf(rtwdev, RF_PATH_A, 0x18, RFREG_MASK, rf_reg18); in rtw8822b_set_channel_rf()
488 rtw_write_rf(rtwdev, RF_PATH_B, 0x18, RFREG_MASK, rf_reg18); in rtw8822b_set_channel_rf()