Lines Matching refs:hal
135 for (path = RF_PATH_A; path < rtwdev->hal.rf_path_num; path++) { in rtw8822b_pwrtrack_init()
153 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_phy_set_param() local
177 rtw8822b_config_trx_mode(rtwdev, hal->antenna_tx, hal->antenna_rx, in rtw8822b_phy_set_param()
291 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_set_channel_rfe_efem() local
305 if (hal->antenna_rx == BB_PATH_AB || in rtw8822b_set_channel_rfe_efem()
306 hal->antenna_tx == BB_PATH_AB) { in rtw8822b_set_channel_rfe_efem()
309 } else if (hal->antenna_rx == hal->antenna_tx) { in rtw8822b_set_channel_rfe_efem()
320 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_set_channel_rfe_ifem() local
335 if (hal->antenna_rx == BB_PATH_AB || in rtw8822b_set_channel_rfe_ifem()
336 hal->antenna_tx == BB_PATH_AB) { in rtw8822b_set_channel_rfe_ifem()
339 } else if (hal->antenna_rx == hal->antenna_tx) { in rtw8822b_set_channel_rfe_ifem()
423 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_set_channel_cca() local
433 if (hal->antenna_rx == BB_PATH_A || in rtw8822b_set_channel_cca()
434 hal->antenna_rx == BB_PATH_B) in rtw8822b_set_channel_cca()
441 if (hal->antenna_rx == BB_PATH_A || in rtw8822b_set_channel_cca()
442 hal->antenna_rx == BB_PATH_B) in rtw8822b_set_channel_cca()
469 if ((hal->cut_version == RTW_CHIP_VER_CUT_B && in rtw8822b_set_channel_cca()
482 if (is_efem_cca && !(hal->cut_version == RTW_CHIP_VER_CUT_B)) in rtw8822b_set_channel_cca()
512 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_set_channel_rf() local
562 if (hal->rf_type > RF_1T1R) in rtw8822b_set_channel_rf()
576 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_toggle_igi() local
587 hal->antenna_rx | (hal->antenna_rx << 4)); in rtw8822b_toggle_igi()
742 u8 ch = rtwdev->hal.current_channel; in rtw8822b_config_trx_mode()
898 for (path = 0; path <= rtwdev->hal.rf_path_num; path++) { in query_phy_status_page1()
980 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_set_tx_power_index_by_rate() local
988 pwr_index = hal->tx_pwr_tbl[path][rate]; in rtw8822b_set_tx_power_index_by_rate()
1002 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_set_tx_power_index() local
1005 for (path = 0; path < hal->rf_path_num; path++) { in rtw8822b_set_tx_power_index()
1027 struct rtw_hal *hal = &rtwdev->hal; in rtw8822b_set_antenna() local
1042 hal->antenna_tx = antenna_tx; in rtw8822b_set_antenna()
1043 hal->antenna_rx = antenna_rx; in rtw8822b_set_antenna()
1458 u8 channel = rtwdev->hal.current_channel; in rtw8822b_pwrtrack_set()
1459 u8 band_width = rtwdev->hal.current_band_width; in rtw8822b_pwrtrack_set()
1518 for (path = 0; path < rtwdev->hal.rf_path_num; path++) in rtw8822b_phy_pwrtrack()