Lines Matching refs:hal
288 struct rtw_hal *hal = &rtwdev->hal; in rtw_set_channel() local
302 hal->current_band_width = bandwidth; in rtw_set_channel()
303 hal->current_channel = center_chan; in rtw_set_channel()
304 hal->current_band_type = center_chan > 14 ? RTW_BAND_5G : RTW_BAND_2G; in rtw_set_channel()
307 hal->cch_by_bw[i] = ch_param.cch_by_bw[i]; in rtw_set_channel()
311 if (hal->current_band_type == RTW_BAND_5G) { in rtw_set_channel()
384 struct rtw_hal *hal = &rtwdev->hal; in rtw_hw_config_rf_ant_num() local
387 hw_ant_num >= hal->rf_path_num) in rtw_hw_config_rf_ant_num()
392 hal->rf_type = RF_1T1R; in rtw_hw_config_rf_ant_num()
393 hal->rf_path_num = 1; in rtw_hw_config_rf_ant_num()
394 hal->antenna_tx = BB_PATH_A; in rtw_hw_config_rf_ant_num()
395 hal->antenna_rx = BB_PATH_A; in rtw_hw_config_rf_ant_num()
536 struct rtw_hal *hal = &rtwdev->hal; in rtw_update_sta_info() local
570 if (hal->current_band_type == RTW_BAND_5G) { in rtw_update_sta_info()
581 } else if (hal->current_band_type == RTW_BAND_2G) { in rtw_update_sta_info()
735 rtw_write32(rtwdev, REG_RCR, rtwdev->hal.rcr); in rtw_core_start()
910 struct rtw_hal *hal = &rtwdev->hal; in rtw_chip_parameter_setup() local
923 hal->chip_version = rtw_read32(rtwdev, REG_SYS_CFG1); in rtw_chip_parameter_setup()
924 hal->fab_version = BIT_GET_VENDOR_ID(hal->chip_version) >> 2; in rtw_chip_parameter_setup()
925 hal->cut_version = BIT_GET_CHIP_VER(hal->chip_version); in rtw_chip_parameter_setup()
926 hal->mp_chip = (hal->chip_version & BIT_RTL_ID) ? 0 : 1; in rtw_chip_parameter_setup()
927 if (hal->chip_version & BIT_RF_TYPE_ID) { in rtw_chip_parameter_setup()
928 hal->rf_type = RF_2T2R; in rtw_chip_parameter_setup()
929 hal->rf_path_num = 2; in rtw_chip_parameter_setup()
930 hal->antenna_tx = BB_PATH_AB; in rtw_chip_parameter_setup()
931 hal->antenna_rx = BB_PATH_AB; in rtw_chip_parameter_setup()
933 hal->rf_type = RF_1T1R; in rtw_chip_parameter_setup()
934 hal->rf_path_num = 1; in rtw_chip_parameter_setup()
935 hal->antenna_tx = BB_PATH_A; in rtw_chip_parameter_setup()
936 hal->antenna_rx = BB_PATH_A; in rtw_chip_parameter_setup()
939 if (hal->fab_version == 2) in rtw_chip_parameter_setup()
940 hal->fab_version = 1; in rtw_chip_parameter_setup()
941 else if (hal->fab_version == 1) in rtw_chip_parameter_setup()
942 hal->fab_version = 2; in rtw_chip_parameter_setup()
949 rtwdev->hal.rcr |= BIT_VHT_DACK; in rtw_chip_parameter_setup()
1024 efuse->hw_cap.nss = rtwdev->hal.rf_path_num; in rtw_dump_hw_feature()
1098 struct rtw_hal *hal = &rtwdev->hal; in rtw_chip_board_info_setup() local
1109 rtw_phy_tx_power_by_rate_config(hal); in rtw_chip_board_info_setup()
1110 rtw_phy_tx_power_limit_config(hal); in rtw_chip_board_info_setup()
1171 mutex_init(&rtwdev->hal.tx_power_mutex); in rtw_core_init()
1176 rtwdev->hal.current_channel = 1; in rtw_core_init()
1184 rtwdev->hal.rcr = BIT_APP_FCS | BIT_APP_MIC | BIT_APP_ICV | in rtw_core_init()
1218 mutex_destroy(&rtwdev->hal.tx_power_mutex); in rtw_core_deinit()