Lines Matching refs:hal
337 if (rtwdev->hal.no_mcs_12_13)
411 for (i = 0; i < rtwdev->hal.tx_nss; i++)
467 ra->ss_num = min(link_sta->rx_nss, rtwdev->hal.tx_nss) - 1;
594 u8 tx_nss = rtwdev->hal.tx_nss;
1620 u8 cv = rtwdev->hal.cv;
4354 if (rtwdev->chip->chip_id == RTL8852A && rtwdev->hal.cv == CHIP_CBV)
4767 if (chip->chip_id == RTL8852B && rtwdev->hal.cv > CHIP_CBV)
5003 struct rtw89_hal *hal = &rtwdev->hal;
5005 if (!hal->ant_diversity || hal->ant_diversity_fixed)
5013 if (hal->antenna_rx == RF_A)
5015 else if (hal->antenna_rx == RF_B)
5059 struct rtw89_hal *hal = &rtwdev->hal;
5061 if (!hal->ant_diversity)
5073 struct rtw89_hal *hal = &rtwdev->hal;
5075 u8 lv = hal->thermal_prot_lv;
5077 if (!hal->thermal_prot_th ||
5078 (hal->disabled_dm_bitmap & BIT(RTW89_DM_THERMAL_PROTECT)))
5081 if (th_max > hal->thermal_prot_th && lv < RTW89_THERMAL_PROT_LV_MAX)
5083 else if (th_max < hal->thermal_prot_th - 2 && lv > 0)
5088 hal->thermal_prot_lv = lv;
5092 rtw89_fw_h2c_tx_duty(rtwdev, hal->thermal_prot_lv);
5187 rtwdev->hal.thermal_prot_lv = 0;
5860 if (!rtwdev->hal.support_igi)
6093 if (!rtwdev->hal.support_igi)
6125 if (!rtwdev->hal.support_igi)
6192 if (!rtwdev->hal.support_cckpd)
6278 struct rtw89_hal *hal = &rtwdev->hal;
6292 if (hal->antenna_tx == candidate)
6295 hal->antenna_tx = candidate;
6298 if (hal->antenna_tx == RF_A) {
6301 } else if (hal->antenna_tx == RF_B) {
6340 struct rtw89_hal *hal = &rtwdev->hal;
6343 if (!hal->tx_path_diversity)
6356 struct rtw89_hal *hal = &rtwdev->hal;
6359 if (!hal->ant_diversity || hal->antenna_tx == 0)
6362 if (hal->antenna_tx == RF_B) {
6382 struct rtw89_hal *hal = &rtwdev->hal;
6384 hal->antenna_rx = hal->antenna_rx == RF_A ? RF_B : RF_A;
6385 hal->antenna_tx = hal->antenna_rx;
6391 struct rtw89_hal *hal = &rtwdev->hal;
6422 hal->antenna_tx = candidate;
6423 hal->antenna_rx = candidate;
6471 struct rtw89_hal *hal = &rtwdev->hal;
6474 if (!hal->ant_diversity || hal->ant_diversity_fixed)
6498 struct rtw89_edcca_bak *edcca_bak = &rtwdev->hal.edcca_bak;
6502 if (rtwdev->chip->chip_id == RTL8922A && rtwdev->hal.cv == CHIP_CAV) {
6881 struct rtw89_edcca_bak *edcca_bak = &rtwdev->hal.edcca_bak;
7031 struct rtw89_edcca_bak *edcca_bak = &rtwdev->hal.edcca_bak;
7053 struct rtw89_hal *hal = &rtwdev->hal;
7055 if (hal->disabled_dm_bitmap & BIT(RTW89_DM_DYNAMIC_EDCCA))