Lines Matching refs:hw
49 static void _rtl92ce_set_bcn_ctrl_reg(struct ieee80211_hw *hw, in _rtl92ce_set_bcn_ctrl_reg() argument
52 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl92ce_set_bcn_ctrl_reg()
53 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_set_bcn_ctrl_reg()
61 static void _rtl92ce_stop_tx_beacon(struct ieee80211_hw *hw) in _rtl92ce_stop_tx_beacon() argument
63 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_stop_tx_beacon()
74 static void _rtl92ce_resume_tx_beacon(struct ieee80211_hw *hw) in _rtl92ce_resume_tx_beacon() argument
76 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_resume_tx_beacon()
87 static void _rtl92ce_enable_bcn_sub_func(struct ieee80211_hw *hw) in _rtl92ce_enable_bcn_sub_func() argument
89 _rtl92ce_set_bcn_ctrl_reg(hw, 0, BIT(1)); in _rtl92ce_enable_bcn_sub_func()
92 static void _rtl92ce_disable_bcn_sub_func(struct ieee80211_hw *hw) in _rtl92ce_disable_bcn_sub_func() argument
94 _rtl92ce_set_bcn_ctrl_reg(hw, BIT(1), 0); in _rtl92ce_disable_bcn_sub_func()
97 void rtl92ce_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) in rtl92ce_get_hw_reg() argument
99 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_get_hw_reg()
100 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92ce_get_hw_reg()
101 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ce_get_hw_reg()
114 rtlpriv->cfg->ops->get_hw_reg(hw, in rtl92ce_get_hw_reg()
151 void rtl92ce_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) in rtl92ce_set_hw_reg() argument
153 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_set_hw_reg()
154 struct rtl_pci_priv *rtlpcipriv = rtl_pcipriv(hw); in rtl92ce_set_hw_reg()
155 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ce_set_hw_reg()
156 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ce_set_hw_reg()
157 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl92ce_set_hw_reg()
158 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92ce_set_hw_reg()
159 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92ce_set_hw_reg()
217 rtlpriv->cfg->ops->set_hw_reg(hw, in rtl92ce_set_hw_reg()
322 rtl92c_dm_init_edca_turbo(hw); in rtl92ce_set_hw_reg()
325 rtlpriv->cfg->ops->set_hw_reg(hw, in rtl92ce_set_hw_reg()
404 rtl92c_phy_set_io_cmd(hw, (*(enum io_type *)val)); in rtl92ce_set_hw_reg()
429 rtl92c_dm_rf_saving(hw, true); in rtl92ce_set_hw_reg()
432 rtl92c_set_fw_pwrmode_cmd(hw, *val); in rtl92ce_set_hw_reg()
444 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_AID, in rtl92ce_set_hw_reg()
451 _rtl92ce_set_bcn_ctrl_reg(hw, 0, BIT(3)); in rtl92ce_set_hw_reg()
452 _rtl92ce_set_bcn_ctrl_reg(hw, BIT(4), 0); in rtl92ce_set_hw_reg()
462 rtl92c_set_fw_rsvdpagepkt(hw, NULL); in rtl92ce_set_hw_reg()
464 _rtl92ce_set_bcn_ctrl_reg(hw, BIT(3), 0); in rtl92ce_set_hw_reg()
465 _rtl92ce_set_bcn_ctrl_reg(hw, 0, BIT(4)); in rtl92ce_set_hw_reg()
476 rtl92c_set_fw_joinbss_report_cmd(hw, *val); in rtl92ce_set_hw_reg()
481 rtl92c_set_p2p_ps_offload_cmd(hw, *val); in rtl92ce_set_hw_reg()
496 _rtl92ce_stop_tx_beacon(hw); in rtl92ce_set_hw_reg()
498 _rtl92ce_set_bcn_ctrl_reg(hw, 0, BIT(3)); in rtl92ce_set_hw_reg()
505 _rtl92ce_set_bcn_ctrl_reg(hw, BIT(3), 0); in rtl92ce_set_hw_reg()
508 _rtl92ce_resume_tx_beacon(hw); in rtl92ce_set_hw_reg()
521 rtlpriv->cfg->ops->set_hw_reg(hw, in rtl92ce_set_hw_reg()
524 rtlpriv->cfg->ops->set_hw_reg(hw, in rtl92ce_set_hw_reg()
528 rtlpriv->cfg->ops->set_hw_reg(hw, in rtl92ce_set_hw_reg()
535 rtlpriv->cfg->ops->set_hw_reg(hw, in rtl92ce_set_hw_reg()
538 rtlpriv->cfg->ops->set_hw_reg(hw, in rtl92ce_set_hw_reg()
542 rtlpriv->cfg->ops->set_hw_reg(hw, in rtl92ce_set_hw_reg()
552 rtl92c_fill_h2c_cmd(hw, H2C_92C_KEEP_ALIVE_CTRL, 2, array); in rtl92ce_set_hw_reg()
561 static bool _rtl92ce_llt_write(struct ieee80211_hw *hw, u32 address, u32 data) in _rtl92ce_llt_write() argument
563 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_llt_write()
588 static bool _rtl92ce_llt_table_init(struct ieee80211_hw *hw) in _rtl92ce_llt_table_init() argument
590 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_llt_table_init()
639 status = _rtl92ce_llt_write(hw, i, i + 1); in _rtl92ce_llt_table_init()
644 status = _rtl92ce_llt_write(hw, (txpktbuf_bndy - 1), 0xFF); in _rtl92ce_llt_table_init()
649 status = _rtl92ce_llt_write(hw, i, (i + 1)); in _rtl92ce_llt_table_init()
654 status = _rtl92ce_llt_write(hw, maxPage, txpktbuf_bndy); in _rtl92ce_llt_table_init()
661 static void _rtl92ce_gen_refresh_led_state(struct ieee80211_hw *hw) in _rtl92ce_gen_refresh_led_state() argument
663 struct rtl_pci_priv *pcipriv = rtl_pcipriv(hw); in _rtl92ce_gen_refresh_led_state()
664 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl92ce_gen_refresh_led_state()
665 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl92ce_gen_refresh_led_state()
672 rtl92ce_sw_led_on(hw, pLed0); in _rtl92ce_gen_refresh_led_state()
674 rtl92ce_sw_led_on(hw, pLed0); in _rtl92ce_gen_refresh_led_state()
676 rtl92ce_sw_led_off(hw, pLed0); in _rtl92ce_gen_refresh_led_state()
679 static bool _rtl92ce_init_mac(struct ieee80211_hw *hw) in _rtl92ce_init_mac() argument
681 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_init_mac()
682 struct rtl_pci_priv *rtlpcipriv = rtl_pcipriv(hw); in _rtl92ce_init_mac()
683 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl92ce_init_mac()
684 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl92ce_init_mac()
741 if (!_rtl92ce_llt_table_init(hw)) in _rtl92ce_init_mac()
795 _rtl92ce_gen_refresh_led_state(hw); in _rtl92ce_init_mac()
802 static void _rtl92ce_hw_configure(struct ieee80211_hw *hw) in _rtl92ce_hw_configure() argument
804 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl92ce_hw_configure()
805 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_hw_configure()
806 struct rtl_pci_priv *rtlpcipriv = rtl_pcipriv(hw); in _rtl92ce_hw_configure()
885 static void _rtl92ce_enable_aspm_back_door(struct ieee80211_hw *hw) in _rtl92ce_enable_aspm_back_door() argument
887 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_enable_aspm_back_door()
888 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl92ce_enable_aspm_back_door()
903 void rtl92ce_enable_hw_security_config(struct ieee80211_hw *hw) in rtl92ce_enable_hw_security_config() argument
905 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_enable_hw_security_config()
933 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_WPA_CONFIG, &sec_reg_value); in rtl92ce_enable_hw_security_config()
937 int rtl92ce_hw_init(struct ieee80211_hw *hw) in rtl92ce_hw_init() argument
939 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_hw_init()
940 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl92ce_hw_init()
941 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ce_hw_init()
943 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ce_hw_init()
944 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92ce_hw_init()
964 rtlpriv->intf_ops->disable_aspm(hw); in rtl92ce_hw_init()
965 rtstatus = _rtl92ce_init_mac(hw); in rtl92ce_hw_init()
972 err = rtl92c_download_fw(hw); in rtl92ce_hw_init()
982 rtl92c_phy_mac_config(hw); in rtl92ce_hw_init()
990 rtl92c_phy_bb_config(hw); in rtl92ce_hw_init()
992 rtl92c_phy_rf_config(hw); in rtl92ce_hw_init()
995 rtl_set_rfreg(hw, RF90_PATH_A, RF_RX_G1, MASKDWORD, 0x30255); in rtl92ce_hw_init()
996 rtl_set_rfreg(hw, RF90_PATH_A, RF_RX_G2, MASKDWORD, 0x50a00); in rtl92ce_hw_init()
998 rtl_set_rfreg(hw, RF90_PATH_A, 0x0C, MASKDWORD, 0x894AE); in rtl92ce_hw_init()
999 rtl_set_rfreg(hw, RF90_PATH_A, 0x0A, MASKDWORD, 0x1AF31); in rtl92ce_hw_init()
1000 rtl_set_rfreg(hw, RF90_PATH_A, RF_IPA, MASKDWORD, 0x8F425); in rtl92ce_hw_init()
1001 rtl_set_rfreg(hw, RF90_PATH_A, RF_SYN_G2, MASKDWORD, 0x4F200); in rtl92ce_hw_init()
1002 rtl_set_rfreg(hw, RF90_PATH_A, RF_RCK1, MASKDWORD, 0x44053); in rtl92ce_hw_init()
1003 rtl_set_rfreg(hw, RF90_PATH_A, RF_RCK2, MASKDWORD, 0x80201); in rtl92ce_hw_init()
1005 rtlphy->rfreg_chnlval[0] = rtl_get_rfreg(hw, (enum radio_path)0, in rtl92ce_hw_init()
1007 rtlphy->rfreg_chnlval[1] = rtl_get_rfreg(hw, (enum radio_path)1, in rtl92ce_hw_init()
1009 rtl_set_bbreg(hw, RFPGA0_RFMOD, BCCKEN, 0x1); in rtl92ce_hw_init()
1010 rtl_set_bbreg(hw, RFPGA0_RFMOD, BOFDMEN, 0x1); in rtl92ce_hw_init()
1011 rtl_set_bbreg(hw, RFPGA0_ANALOGPARAMETER2, BIT(10), 1); in rtl92ce_hw_init()
1012 _rtl92ce_hw_configure(hw); in rtl92ce_hw_init()
1013 rtl_cam_reset_all_entry(hw); in rtl92ce_hw_init()
1014 rtl92ce_enable_hw_security_config(hw); in rtl92ce_hw_init()
1018 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_ETHER_ADDR, mac->mac_addr); in rtl92ce_hw_init()
1019 _rtl92ce_enable_aspm_back_door(hw); in rtl92ce_hw_init()
1020 rtlpriv->intf_ops->enable_aspm(hw); in rtl92ce_hw_init()
1022 rtl8192ce_bt_hw_init(hw); in rtl92ce_hw_init()
1025 rtl92c_phy_set_rfpath_switch(hw, 1); in rtl92ce_hw_init()
1027 rtl92c_phy_iq_calibrate(hw, true); in rtl92ce_hw_init()
1029 rtl92c_phy_iq_calibrate(hw, false); in rtl92ce_hw_init()
1033 rtl92c_dm_check_txpower_tracking(hw); in rtl92ce_hw_init()
1034 rtl92c_phy_lc_calibrate(hw); in rtl92ce_hw_init()
1038 tmp_u1b = efuse_read_1byte(hw, 0x1FA); in rtl92ce_hw_init()
1040 rtl_set_rfreg(hw, RF90_PATH_A, 0x15, 0x0F, 0x05); in rtl92ce_hw_init()
1045 rtl_set_rfreg(hw, RF90_PATH_B, 0x15, 0x0F, 0x05); in rtl92ce_hw_init()
1057 rtl92c_dm_init(hw); in rtl92ce_hw_init()
1064 static enum version_8192c _rtl92ce_read_chip_version(struct ieee80211_hw *hw) in _rtl92ce_read_chip_version() argument
1066 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_read_chip_version()
1158 static int _rtl92ce_set_media_status(struct ieee80211_hw *hw, in _rtl92ce_set_media_status() argument
1161 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_set_media_status()
1215 _rtl92ce_stop_tx_beacon(hw); in _rtl92ce_set_media_status()
1216 _rtl92ce_enable_bcn_sub_func(hw); in _rtl92ce_set_media_status()
1218 _rtl92ce_resume_tx_beacon(hw); in _rtl92ce_set_media_status()
1219 _rtl92ce_disable_bcn_sub_func(hw); in _rtl92ce_set_media_status()
1227 rtlpriv->cfg->ops->led_control(hw, ledaction); in _rtl92ce_set_media_status()
1235 void rtl92ce_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid) in rtl92ce_set_check_bssid() argument
1237 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_set_check_bssid()
1243 rtlpriv->cfg->ops->get_hw_reg(hw, HW_VAR_RCR, (u8 *)(®_rcr)); in rtl92ce_set_check_bssid()
1247 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_RCR, in rtl92ce_set_check_bssid()
1249 _rtl92ce_set_bcn_ctrl_reg(hw, 0, BIT(4)); in rtl92ce_set_check_bssid()
1252 _rtl92ce_set_bcn_ctrl_reg(hw, BIT(4), 0); in rtl92ce_set_check_bssid()
1253 rtlpriv->cfg->ops->set_hw_reg(hw, in rtl92ce_set_check_bssid()
1259 int rtl92ce_set_network_type(struct ieee80211_hw *hw, enum nl80211_iftype type) in rtl92ce_set_network_type() argument
1261 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_set_network_type()
1263 if (_rtl92ce_set_media_status(hw, type)) in rtl92ce_set_network_type()
1269 rtl92ce_set_check_bssid(hw, true); in rtl92ce_set_network_type()
1271 rtl92ce_set_check_bssid(hw, false); in rtl92ce_set_network_type()
1278 void rtl92ce_set_qos(struct ieee80211_hw *hw, int aci) in rtl92ce_set_qos() argument
1280 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_set_qos()
1281 rtl92c_dm_init_edca_turbo(hw); in rtl92ce_set_qos()
1301 void rtl92ce_enable_interrupt(struct ieee80211_hw *hw) in rtl92ce_enable_interrupt() argument
1303 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_enable_interrupt()
1304 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ce_enable_interrupt()
1311 void rtl92ce_disable_interrupt(struct ieee80211_hw *hw) in rtl92ce_disable_interrupt() argument
1313 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_disable_interrupt()
1314 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ce_disable_interrupt()
1321 static void _rtl92ce_poweroff_adapter(struct ieee80211_hw *hw) in _rtl92ce_poweroff_adapter() argument
1323 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_poweroff_adapter()
1324 struct rtl_pci_priv *rtlpcipriv = rtl_pcipriv(hw); in _rtl92ce_poweroff_adapter()
1329 rtlpriv->intf_ops->enable_aspm(hw); in _rtl92ce_poweroff_adapter()
1331 rtl_set_rfreg(hw, RF90_PATH_A, 0x00, RFREG_OFFSET_MASK, 0x00); in _rtl92ce_poweroff_adapter()
1337 rtl92c_firmware_selfreset(hw); in _rtl92ce_poweroff_adapter()
1368 void rtl92ce_card_disable(struct ieee80211_hw *hw) in rtl92ce_card_disable() argument
1370 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_card_disable()
1371 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92ce_card_disable()
1372 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ce_card_disable()
1373 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ce_card_disable()
1378 _rtl92ce_set_media_status(hw, opmode); in rtl92ce_card_disable()
1381 rtlpriv->cfg->ops->led_control(hw, LED_CTL_POWER_OFF); in rtl92ce_card_disable()
1383 _rtl92ce_poweroff_adapter(hw); in rtl92ce_card_disable()
1389 void rtl92ce_interrupt_recognized(struct ieee80211_hw *hw, in rtl92ce_interrupt_recognized() argument
1392 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_interrupt_recognized()
1393 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ce_interrupt_recognized()
1404 void rtl92ce_set_beacon_related_registers(struct ieee80211_hw *hw) in rtl92ce_set_beacon_related_registers() argument
1407 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_set_beacon_related_registers()
1408 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ce_set_beacon_related_registers()
1413 rtl92ce_disable_interrupt(hw); in rtl92ce_set_beacon_related_registers()
1420 rtl92ce_enable_interrupt(hw); in rtl92ce_set_beacon_related_registers()
1423 void rtl92ce_set_beacon_interval(struct ieee80211_hw *hw) in rtl92ce_set_beacon_interval() argument
1425 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_set_beacon_interval()
1426 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ce_set_beacon_interval()
1431 rtl92ce_disable_interrupt(hw); in rtl92ce_set_beacon_interval()
1433 rtl92ce_enable_interrupt(hw); in rtl92ce_set_beacon_interval()
1436 void rtl92ce_update_interrupt_mask(struct ieee80211_hw *hw, in rtl92ce_update_interrupt_mask() argument
1439 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_update_interrupt_mask()
1440 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ce_update_interrupt_mask()
1449 rtl92ce_disable_interrupt(hw); in rtl92ce_update_interrupt_mask()
1450 rtl92ce_enable_interrupt(hw); in rtl92ce_update_interrupt_mask()
1453 static void _rtl92ce_read_txpower_info_from_hwpg(struct ieee80211_hw *hw, in _rtl92ce_read_txpower_info_from_hwpg() argument
1457 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_read_txpower_info_from_hwpg()
1458 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92ce_read_txpower_info_from_hwpg()
1678 static void _rtl92ce_read_adapter_info(struct ieee80211_hw *hw) in _rtl92ce_read_adapter_info() argument
1680 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_read_adapter_info()
1681 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl92ce_read_adapter_info()
1682 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl92ce_read_adapter_info()
1688 rtl_efuse_shadow_map_update(hw); in _rtl92ce_read_adapter_info()
1736 _rtl92ce_read_txpower_info_from_hwpg(hw, in _rtl92ce_read_adapter_info()
1740 rtl8192ce_read_bt_coexist_info_from_hwpg(hw, in _rtl92ce_read_adapter_info()
1784 static void _rtl92ce_hal_customized_behavior(struct ieee80211_hw *hw) in _rtl92ce_hal_customized_behavior() argument
1786 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_hal_customized_behavior()
1787 struct rtl_pci_priv *pcipriv = rtl_pcipriv(hw); in _rtl92ce_hal_customized_behavior()
1788 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl92ce_hal_customized_behavior()
1807 void rtl92ce_read_eeprom_info(struct ieee80211_hw *hw) in rtl92ce_read_eeprom_info() argument
1809 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_read_eeprom_info()
1810 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92ce_read_eeprom_info()
1812 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl92ce_read_eeprom_info()
1815 rtlhal->version = _rtl92ce_read_chip_version(hw); in rtl92ce_read_eeprom_info()
1834 _rtl92ce_read_adapter_info(hw); in rtl92ce_read_eeprom_info()
1838 _rtl92ce_hal_customized_behavior(hw); in rtl92ce_read_eeprom_info()
1841 static void rtl92ce_update_hal_rate_table(struct ieee80211_hw *hw, in rtl92ce_update_hal_rate_table() argument
1844 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_update_hal_rate_table()
1845 struct rtl_pci_priv *rtlpcipriv = rtl_pcipriv(hw); in rtl92ce_update_hal_rate_table()
1847 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ce_update_hal_rate_table()
1848 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl92ce_update_hal_rate_table()
1933 static void rtl92ce_update_hal_rate_mask(struct ieee80211_hw *hw, in rtl92ce_update_hal_rate_mask() argument
1936 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_update_hal_rate_mask()
1938 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ce_update_hal_rate_mask()
1939 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl92ce_update_hal_rate_mask()
2060 rtl92c_fill_h2c_cmd(hw, H2C_RA_MASK, 5, rate_mask); in rtl92ce_update_hal_rate_mask()
2063 void rtl92ce_update_hal_rate_tbl(struct ieee80211_hw *hw, in rtl92ce_update_hal_rate_tbl() argument
2066 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_update_hal_rate_tbl()
2069 rtl92ce_update_hal_rate_mask(hw, sta, rssi_level); in rtl92ce_update_hal_rate_tbl()
2071 rtl92ce_update_hal_rate_table(hw, sta); in rtl92ce_update_hal_rate_tbl()
2074 void rtl92ce_update_channel_access_setting(struct ieee80211_hw *hw) in rtl92ce_update_channel_access_setting() argument
2076 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_update_channel_access_setting()
2077 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ce_update_channel_access_setting()
2080 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_SLOT_TIME, in rtl92ce_update_channel_access_setting()
2086 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_SIFS, (u8 *)&sifs_timer); in rtl92ce_update_channel_access_setting()
2089 bool rtl92ce_gpio_radio_on_off_checking(struct ieee80211_hw *hw, u8 *valid) in rtl92ce_gpio_radio_on_off_checking() argument
2091 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_gpio_radio_on_off_checking()
2092 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl92ce_gpio_radio_on_off_checking()
2093 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl92ce_gpio_radio_on_off_checking()
2154 void rtl92ce_set_key(struct ieee80211_hw *hw, u32 key_index, in rtl92ce_set_key() argument
2158 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ce_set_key()
2159 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl92ce_set_key()
2160 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl92ce_set_key()
2183 rtl_cam_mark_invalid(hw, cam_offset + idx); in rtl92ce_set_key()
2184 rtl_cam_empty_entry(hw, cam_offset + idx); in rtl92ce_set_key()
2224 entry_id = rtl_cam_get_free_entry(hw, in rtl92ce_set_key()
2247 rtl_cam_del_entry(hw, p_macaddr); in rtl92ce_set_key()
2248 rtl_cam_delete_one_entry(hw, p_macaddr, entry_id); in rtl92ce_set_key()
2270 rtl_cam_add_one_entry(hw, macaddr, key_index, in rtl92ce_set_key()
2280 rtl_cam_add_one_entry(hw, in rtl92ce_set_key()
2290 rtl_cam_add_one_entry(hw, macaddr, key_index, in rtl92ce_set_key()
2300 static void rtl8192ce_bt_var_init(struct ieee80211_hw *hw) in rtl8192ce_bt_var_init() argument
2302 struct rtl_pci_priv *rtlpcipriv = rtl_pcipriv(hw); in rtl8192ce_bt_var_init()
2340 void rtl8192ce_read_bt_coexist_info_from_hwpg(struct ieee80211_hw *hw, in rtl8192ce_read_bt_coexist_info_from_hwpg() argument
2343 struct rtl_pci_priv *rtlpcipriv = rtl_pcipriv(hw); in rtl8192ce_read_bt_coexist_info_from_hwpg()
2363 rtl8192ce_bt_var_init(hw); in rtl8192ce_read_bt_coexist_info_from_hwpg()
2366 void rtl8192ce_bt_reg_init(struct ieee80211_hw *hw) in rtl8192ce_bt_reg_init() argument
2368 struct rtl_pci_priv *rtlpcipriv = rtl_pcipriv(hw); in rtl8192ce_bt_reg_init()
2379 void rtl8192ce_bt_hw_init(struct ieee80211_hw *hw) in rtl8192ce_bt_hw_init() argument
2381 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8192ce_bt_hw_init()
2383 struct rtl_pci_priv *rtlpcipriv = rtl_pcipriv(hw); in rtl8192ce_bt_hw_init()
2420 void rtl92ce_suspend(struct ieee80211_hw *hw) in rtl92ce_suspend() argument
2424 void rtl92ce_resume(struct ieee80211_hw *hw) in rtl92ce_resume() argument