Lines Matching refs:rf_reg18
495 u32 rf_reg18, rf_reg_be; in rtw8822b_set_channel_rf() local
497 rf_reg18 = rtw_read_rf(rtwdev, RF_PATH_A, 0x18, RFREG_MASK); in rtw8822b_set_channel_rf()
499 rf_reg18 &= ~(RF18_BAND_MASK | RF18_CHANNEL_MASK | RF18_RFSI_MASK | in rtw8822b_set_channel_rf()
502 rf_reg18 |= (IS_CH_2G_BAND(channel) ? RF18_BAND_2G : RF18_BAND_5G); in rtw8822b_set_channel_rf()
503 rf_reg18 |= (channel & RF18_CHANNEL_MASK); in rtw8822b_set_channel_rf()
505 rf_reg18 |= RF18_RFSI_GT_CH144; in rtw8822b_set_channel_rf()
507 rf_reg18 |= RF18_RFSI_GE_CH80; in rtw8822b_set_channel_rf()
514 rf_reg18 |= RF18_BW_20M; in rtw8822b_set_channel_rf()
517 rf_reg18 |= RF18_BW_40M; in rtw8822b_set_channel_rf()
520 rf_reg18 |= RF18_BW_80M; in rtw8822b_set_channel_rf()
543 rtw_write_rf(rtwdev, RF_PATH_A, 0x18, RFREG_MASK, rf_reg18); in rtw8822b_set_channel_rf()
545 rtw_write_rf(rtwdev, RF_PATH_B, 0x18, RFREG_MASK, rf_reg18); in rtw8822b_set_channel_rf()