Lines Matching refs:hal

713 	struct rtw_hal *hal = &rtwdev->hal;  in rtw_set_channel()  local
727 hal->current_band_width = bandwidth; in rtw_set_channel()
728 hal->current_channel = center_chan; in rtw_set_channel()
729 hal->current_band_type = center_chan > 14 ? RTW_BAND_5G : RTW_BAND_2G; in rtw_set_channel()
732 hal->cch_by_bw[i] = ch_param.cch_by_bw[i]; in rtw_set_channel()
736 if (hal->current_band_type == RTW_BAND_5G) { in rtw_set_channel()
826 struct rtw_hal *hal = &rtwdev->hal; in rtw_hw_config_rf_ant_num() local
830 hw_ant_num >= hal->rf_path_num) in rtw_hw_config_rf_ant_num()
835 hal->rf_type = RF_1T1R; in rtw_hw_config_rf_ant_num()
836 hal->rf_path_num = 1; in rtw_hw_config_rf_ant_num()
838 hal->rf_phy_num = hal->rf_path_num; in rtw_hw_config_rf_ant_num()
839 hal->antenna_tx = BB_PATH_A; in rtw_hw_config_rf_ant_num()
840 hal->antenna_rx = BB_PATH_A; in rtw_hw_config_rf_ant_num()
982 struct rtw_hal *hal = &rtwdev->hal; in rtw_update_rate_mask() local
1006 band = hal->current_band_type; in rtw_update_rate_mask()
1042 struct rtw_hal *hal = &rtwdev->hal; in rtw_update_sta_info() local
1073 if (hal->current_band_type == RTW_BAND_5G) { in rtw_update_sta_info()
1085 } else if (hal->current_band_type == RTW_BAND_2G) { in rtw_update_sta_info()
1286 rtw_write32(rtwdev, REG_RCR, rtwdev->hal.rcr); in rtw_core_start()
1382 if (rtwdev->hal.rf_path_num > 1) in rtw_init_vht_cap()
1386 vht_cap->cap |= (rtwdev->hal.bfee_sts_cap << in rtw_init_vht_cap()
1555 struct rtw_hal *hal = &rtwdev->hal; in rtw_chip_parameter_setup() local
1568 hal->chip_version = rtw_read32(rtwdev, REG_SYS_CFG1); in rtw_chip_parameter_setup()
1569 hal->cut_version = BIT_GET_CHIP_VER(hal->chip_version); in rtw_chip_parameter_setup()
1570 hal->mp_chip = (hal->chip_version & BIT_RTL_ID) ? 0 : 1; in rtw_chip_parameter_setup()
1571 if (hal->chip_version & BIT_RF_TYPE_ID) { in rtw_chip_parameter_setup()
1572 hal->rf_type = RF_2T2R; in rtw_chip_parameter_setup()
1573 hal->rf_path_num = 2; in rtw_chip_parameter_setup()
1574 hal->antenna_tx = BB_PATH_AB; in rtw_chip_parameter_setup()
1575 hal->antenna_rx = BB_PATH_AB; in rtw_chip_parameter_setup()
1577 hal->rf_type = RF_1T1R; in rtw_chip_parameter_setup()
1578 hal->rf_path_num = 1; in rtw_chip_parameter_setup()
1579 hal->antenna_tx = BB_PATH_A; in rtw_chip_parameter_setup()
1580 hal->antenna_rx = BB_PATH_A; in rtw_chip_parameter_setup()
1582 hal->rf_phy_num = chip->fix_rf_phy_num ? chip->fix_rf_phy_num : in rtw_chip_parameter_setup()
1583 hal->rf_path_num; in rtw_chip_parameter_setup()
1590 rtwdev->hal.rcr |= BIT_VHT_DACK; in rtw_chip_parameter_setup()
1592 hal->bfee_sts_cap = 3; in rtw_chip_parameter_setup()
1667 efuse->hw_cap.nss > rtwdev->hal.rf_path_num) in rtw_dump_hw_feature()
1668 efuse->hw_cap.nss = rtwdev->hal.rf_path_num; in rtw_dump_hw_feature()
1747 struct rtw_hal *hal = &rtwdev->hal; in rtw_chip_board_info_setup() local
1760 rtw_phy_tx_power_by_rate_config(hal); in rtw_chip_board_info_setup()
1761 rtw_phy_tx_power_limit_config(hal); in rtw_chip_board_info_setup()
1848 mutex_init(&rtwdev->hal.tx_power_mutex); in rtw_core_init()
1855 rtwdev->hal.current_channel = 1; in rtw_core_init()
1861 rtwdev->hal.rcr = BIT_APP_FCS | BIT_APP_MIC | BIT_APP_ICV | in rtw_core_init()
1915 mutex_destroy(&rtwdev->hal.tx_power_mutex); in rtw_core_deinit()
1921 struct rtw_hal *hal = &rtwdev->hal; in rtw_register_hw() local
1950 hw->wiphy->available_antennas_tx = hal->antenna_tx; in rtw_register_hw()
1951 hw->wiphy->available_antennas_rx = hal->antenna_rx; in rtw_register_hw()