Lines Matching refs:hw

45 static void _rtl88ee_set_bcn_ctrl_reg(struct ieee80211_hw *hw,  in _rtl88ee_set_bcn_ctrl_reg()  argument
48 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl88ee_set_bcn_ctrl_reg()
49 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_set_bcn_ctrl_reg()
57 static void _rtl88ee_stop_tx_beacon(struct ieee80211_hw *hw) in _rtl88ee_stop_tx_beacon() argument
59 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_stop_tx_beacon()
70 static void _rtl88ee_resume_tx_beacon(struct ieee80211_hw *hw) in _rtl88ee_resume_tx_beacon() argument
72 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_resume_tx_beacon()
83 static void _rtl88ee_enable_bcn_sub_func(struct ieee80211_hw *hw) in _rtl88ee_enable_bcn_sub_func() argument
85 _rtl88ee_set_bcn_ctrl_reg(hw, 0, BIT(1)); in _rtl88ee_enable_bcn_sub_func()
88 static void _rtl88ee_return_beacon_queue_skb(struct ieee80211_hw *hw) in _rtl88ee_return_beacon_queue_skb() argument
90 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_return_beacon_queue_skb()
91 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl88ee_return_beacon_queue_skb()
110 static void _rtl88ee_disable_bcn_sub_func(struct ieee80211_hw *hw) in _rtl88ee_disable_bcn_sub_func() argument
112 _rtl88ee_set_bcn_ctrl_reg(hw, BIT(1), 0); in _rtl88ee_disable_bcn_sub_func()
115 static void _rtl88ee_set_fw_clock_on(struct ieee80211_hw *hw, in _rtl88ee_set_fw_clock_on() argument
118 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_set_fw_clock_on()
119 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl88ee_set_fw_clock_on()
123 rtlpriv->cfg->ops->get_hw_reg(hw, HAL_DEF_WOWLAN, in _rtl88ee_set_fw_clock_on()
151 rtlpriv->cfg->ops->get_hw_reg(hw, HW_VAR_SET_RPWM, &rpwm_val); in _rtl88ee_set_fw_clock_on()
185 static void _rtl88ee_set_fw_clock_off(struct ieee80211_hw *hw, in _rtl88ee_set_fw_clock_off() argument
188 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_set_fw_clock_off()
189 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl88ee_set_fw_clock_off()
190 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl88ee_set_fw_clock_off()
202 rtlpriv->cfg->ops->get_hw_reg(hw, HW_VAR_RF_STATE, (u8 *)(&rtstate)); in _rtl88ee_set_fw_clock_off()
228 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_SET_RPWM, in _rtl88ee_set_fw_clock_off()
241 static void _rtl88ee_set_fw_ps_rf_on(struct ieee80211_hw *hw) in _rtl88ee_set_fw_ps_rf_on() argument
246 _rtl88ee_set_fw_clock_on(hw, rpwm_val, true); in _rtl88ee_set_fw_ps_rf_on()
249 static void _rtl88ee_set_fw_ps_rf_off_low_power(struct ieee80211_hw *hw) in _rtl88ee_set_fw_ps_rf_off_low_power() argument
253 _rtl88ee_set_fw_clock_off(hw, rpwm_val); in _rtl88ee_set_fw_ps_rf_off_low_power()
257 struct ieee80211_hw *hw = (struct ieee80211_hw *)data; in rtl88ee_fw_clk_off_timer_callback() local
259 _rtl88ee_set_fw_ps_rf_off_low_power(hw); in rtl88ee_fw_clk_off_timer_callback()
262 static void _rtl88ee_fwlps_leave(struct ieee80211_hw *hw) in _rtl88ee_fwlps_leave() argument
264 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_fwlps_leave()
265 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl88ee_fwlps_leave()
266 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl88ee_fwlps_leave()
272 _rtl88ee_set_fw_clock_on(hw, rpwm_val, false); in _rtl88ee_fwlps_leave()
274 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_H2C_FW_PWRMODE, in _rtl88ee_fwlps_leave()
276 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_FW_PSMODE_STATUS, in _rtl88ee_fwlps_leave()
280 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_SET_RPWM, &rpwm_val); in _rtl88ee_fwlps_leave()
281 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_H2C_FW_PWRMODE, in _rtl88ee_fwlps_leave()
283 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_FW_PSMODE_STATUS, in _rtl88ee_fwlps_leave()
288 static void _rtl88ee_fwlps_enter(struct ieee80211_hw *hw) in _rtl88ee_fwlps_enter() argument
290 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_fwlps_enter()
291 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl88ee_fwlps_enter()
292 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl88ee_fwlps_enter()
298 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_FW_PSMODE_STATUS, in _rtl88ee_fwlps_enter()
300 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_H2C_FW_PWRMODE, in _rtl88ee_fwlps_enter()
303 _rtl88ee_set_fw_clock_off(hw, rpwm_val); in _rtl88ee_fwlps_enter()
306 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_FW_PSMODE_STATUS, in _rtl88ee_fwlps_enter()
308 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_H2C_FW_PWRMODE, in _rtl88ee_fwlps_enter()
310 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_SET_RPWM, &rpwm_val); in _rtl88ee_fwlps_enter()
314 void rtl88ee_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) in rtl88ee_get_hw_reg() argument
316 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_get_hw_reg()
317 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl88ee_get_hw_reg()
318 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl88ee_get_hw_reg()
331 rtlpriv->cfg->ops->get_hw_reg(hw, in rtl88ee_get_hw_reg()
365 void rtl88ee_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) in rtl88ee_set_hw_reg() argument
367 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_set_hw_reg()
368 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl88ee_set_hw_reg()
369 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl88ee_set_hw_reg()
370 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl88ee_set_hw_reg()
371 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl88ee_set_hw_reg()
426 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_AC_PARAM, in rtl88ee_set_hw_reg()
527 rtl88e_dm_init_edca_turbo(hw); in rtl88ee_set_hw_reg()
530 rtlpriv->cfg->ops->set_hw_reg(hw, in rtl88ee_set_hw_reg()
605 rtl88e_phy_set_io_cmd(hw, (*(enum io_type *)val)); in rtl88ee_set_hw_reg()
620 rtl88e_set_fw_pwrmode_cmd(hw, *val); in rtl88ee_set_hw_reg()
626 _rtl88ee_set_fw_ps_rf_on(hw); in rtl88ee_set_hw_reg()
632 _rtl88ee_fwlps_enter(hw); in rtl88ee_set_hw_reg()
634 _rtl88ee_fwlps_leave(hw); in rtl88ee_set_hw_reg()
644 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_AID, in rtl88ee_set_hw_reg()
651 _rtl88ee_set_bcn_ctrl_reg(hw, 0, BIT(3)); in rtl88ee_set_hw_reg()
652 _rtl88ee_set_bcn_ctrl_reg(hw, BIT(4), 0); in rtl88ee_set_hw_reg()
667 _rtl88ee_return_beacon_queue_skb(hw); in rtl88ee_set_hw_reg()
669 rtl88e_set_fw_rsvdpagepkt(hw, 0); in rtl88ee_set_hw_reg()
685 _rtl88ee_set_bcn_ctrl_reg(hw, BIT(3), 0); in rtl88ee_set_hw_reg()
686 _rtl88ee_set_bcn_ctrl_reg(hw, 0, BIT(4)); in rtl88ee_set_hw_reg()
697 rtl88e_set_fw_joinbss_report_cmd(hw, (*(u8 *)val)); in rtl88ee_set_hw_reg()
700 rtl88e_set_p2p_ps_offload_cmd(hw, *val); in rtl88ee_set_hw_reg()
714 _rtl88ee_stop_tx_beacon(hw); in rtl88ee_set_hw_reg()
716 _rtl88ee_set_bcn_ctrl_reg(hw, 0, BIT(3)); in rtl88ee_set_hw_reg()
723 _rtl88ee_set_bcn_ctrl_reg(hw, BIT(3), 0); in rtl88ee_set_hw_reg()
726 _rtl88ee_resume_tx_beacon(hw); in rtl88ee_set_hw_reg()
733 rtl88e_fill_h2c_cmd(hw, H2C_88E_KEEP_ALIVE_CTRL, in rtl88ee_set_hw_reg()
743 static bool _rtl88ee_llt_write(struct ieee80211_hw *hw, u32 address, u32 data) in _rtl88ee_llt_write() argument
745 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_llt_write()
770 static bool _rtl88ee_llt_table_init(struct ieee80211_hw *hw) in _rtl88ee_llt_table_init() argument
772 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_llt_table_init()
796 status = _rtl88ee_llt_write(hw, i, i + 1); in _rtl88ee_llt_table_init()
801 status = _rtl88ee_llt_write(hw, (txpktbuf_bndy - 1), 0xFF); in _rtl88ee_llt_table_init()
806 status = _rtl88ee_llt_write(hw, i, (i + 1)); in _rtl88ee_llt_table_init()
811 status = _rtl88ee_llt_write(hw, maxpage, txpktbuf_bndy); in _rtl88ee_llt_table_init()
818 static void _rtl88ee_gen_refresh_led_state(struct ieee80211_hw *hw) in _rtl88ee_gen_refresh_led_state() argument
820 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_gen_refresh_led_state()
821 struct rtl_pci_priv *pcipriv = rtl_pcipriv(hw); in _rtl88ee_gen_refresh_led_state()
822 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl88ee_gen_refresh_led_state()
829 rtl88ee_sw_led_on(hw, pLed0); in _rtl88ee_gen_refresh_led_state()
831 rtl88ee_sw_led_on(hw, pLed0); in _rtl88ee_gen_refresh_led_state()
833 rtl88ee_sw_led_off(hw, pLed0); in _rtl88ee_gen_refresh_led_state()
836 static bool _rtl88ee_init_mac(struct ieee80211_hw *hw) in _rtl88ee_init_mac() argument
838 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_init_mac()
839 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl88ee_init_mac()
840 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl88ee_init_mac()
892 if (_rtl88ee_llt_table_init(hw) == false) { in _rtl88ee_init_mac()
945 _rtl88ee_gen_refresh_led_state(hw); in _rtl88ee_init_mac()
949 static void _rtl88ee_hw_configure(struct ieee80211_hw *hw) in _rtl88ee_hw_configure() argument
951 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_hw_configure()
964 static void _rtl88ee_enable_aspm_back_door(struct ieee80211_hw *hw) in _rtl88ee_enable_aspm_back_door() argument
966 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_enable_aspm_back_door()
967 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl88ee_enable_aspm_back_door()
1024 void rtl88ee_enable_hw_security_config(struct ieee80211_hw *hw) in rtl88ee_enable_hw_security_config() argument
1026 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_enable_hw_security_config()
1054 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_WPA_CONFIG, &sec_reg_value); in rtl88ee_enable_hw_security_config()
1057 int rtl88ee_hw_init(struct ieee80211_hw *hw) in rtl88ee_hw_init() argument
1059 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_hw_init()
1060 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl88ee_hw_init()
1061 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl88ee_hw_init()
1063 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl88ee_hw_init()
1064 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl88ee_hw_init()
1065 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl88ee_hw_init()
1083 rtlpriv->intf_ops->disable_aspm(hw); in rtl88ee_hw_init()
1094 rtstatus = _rtl88ee_init_mac(hw); in rtl88ee_hw_init()
1101 err = rtl88e_download_fw(hw, false); in rtl88ee_hw_init()
1116 rtl88e_phy_mac_config(hw); in rtl88ee_hw_init()
1125 rtl88e_phy_bb_config(hw); in rtl88ee_hw_init()
1126 rtl_set_bbreg(hw, RFPGA0_RFMOD, BCCKEN, 0x1); in rtl88ee_hw_init()
1127 rtl_set_bbreg(hw, RFPGA0_RFMOD, BOFDMEN, 0x1); in rtl88ee_hw_init()
1130 rtl88e_phy_rf_config(hw); in rtl88ee_hw_init()
1132 rtlphy->rfreg_chnlval[0] = rtl_get_rfreg(hw, (enum radio_path)0, in rtl88ee_hw_init()
1136 _rtl88ee_hw_configure(hw); in rtl88ee_hw_init()
1137 rtl_cam_reset_all_entry(hw); in rtl88ee_hw_init()
1138 rtl88ee_enable_hw_security_config(hw); in rtl88ee_hw_init()
1143 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_ETHER_ADDR, mac->mac_addr); in rtl88ee_hw_init()
1144 _rtl88ee_enable_aspm_back_door(hw); in rtl88ee_hw_init()
1145 rtlpriv->intf_ops->enable_aspm(hw); in rtl88ee_hw_init()
1151 rtl88e_phy_set_rfpath_switch(hw, true); in rtl88ee_hw_init()
1154 rtl88e_phy_set_rfpath_switch(hw, false); in rtl88ee_hw_init()
1162 rtl88e_phy_iq_calibrate(hw, true); in rtl88ee_hw_init()
1164 rtl88e_phy_iq_calibrate(hw, false); in rtl88ee_hw_init()
1168 rtl88e_dm_check_txpower_tracking(hw); in rtl88ee_hw_init()
1169 rtl88e_phy_lc_calibrate(hw); in rtl88ee_hw_init()
1172 tmp_u1b = efuse_read_1byte(hw, 0x1FA); in rtl88ee_hw_init()
1174 rtl_set_rfreg(hw, RF90_PATH_A, 0x15, 0x0F, 0x05); in rtl88ee_hw_init()
1187 rtl88e_dm_init(hw); in rtl88ee_hw_init()
1194 static enum version_8188e _rtl88ee_read_chip_version(struct ieee80211_hw *hw) in _rtl88ee_read_chip_version() argument
1196 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_read_chip_version()
1219 static int _rtl88ee_set_media_status(struct ieee80211_hw *hw, in _rtl88ee_set_media_status() argument
1222 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_set_media_status()
1270 _rtl88ee_stop_tx_beacon(hw); in _rtl88ee_set_media_status()
1271 _rtl88ee_enable_bcn_sub_func(hw); in _rtl88ee_set_media_status()
1273 _rtl88ee_resume_tx_beacon(hw); in _rtl88ee_set_media_status()
1274 _rtl88ee_disable_bcn_sub_func(hw); in _rtl88ee_set_media_status()
1282 rtlpriv->cfg->ops->led_control(hw, ledaction); in _rtl88ee_set_media_status()
1290 void rtl88ee_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid) in rtl88ee_set_check_bssid() argument
1292 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_set_check_bssid()
1293 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl88ee_set_check_bssid()
1301 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_RCR, in rtl88ee_set_check_bssid()
1303 _rtl88ee_set_bcn_ctrl_reg(hw, 0, BIT(4)); in rtl88ee_set_check_bssid()
1306 _rtl88ee_set_bcn_ctrl_reg(hw, BIT(4), 0); in rtl88ee_set_check_bssid()
1307 rtlpriv->cfg->ops->set_hw_reg(hw, in rtl88ee_set_check_bssid()
1313 int rtl88ee_set_network_type(struct ieee80211_hw *hw, in rtl88ee_set_network_type() argument
1316 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_set_network_type()
1318 if (_rtl88ee_set_media_status(hw, type)) in rtl88ee_set_network_type()
1324 rtl88ee_set_check_bssid(hw, true); in rtl88ee_set_network_type()
1326 rtl88ee_set_check_bssid(hw, false); in rtl88ee_set_network_type()
1335 void rtl88ee_set_qos(struct ieee80211_hw *hw, int aci) in rtl88ee_set_qos() argument
1337 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_set_qos()
1338 rtl88e_dm_init_edca_turbo(hw); in rtl88ee_set_qos()
1357 void rtl88ee_enable_interrupt(struct ieee80211_hw *hw) in rtl88ee_enable_interrupt() argument
1359 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_enable_interrupt()
1360 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl88ee_enable_interrupt()
1378 void rtl88ee_disable_interrupt(struct ieee80211_hw *hw) in rtl88ee_disable_interrupt() argument
1380 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_disable_interrupt()
1381 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl88ee_disable_interrupt()
1389 static void _rtl88ee_poweroff_adapter(struct ieee80211_hw *hw) in _rtl88ee_poweroff_adapter() argument
1391 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_poweroff_adapter()
1392 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl88ee_poweroff_adapter()
1396 rtlpriv->intf_ops->enable_aspm(hw); in _rtl88ee_poweroff_adapter()
1417 rtl88e_firmware_selfreset(hw); in _rtl88ee_poweroff_adapter()
1448 void rtl88ee_card_disable(struct ieee80211_hw *hw) in rtl88ee_card_disable() argument
1450 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_card_disable()
1451 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl88ee_card_disable()
1452 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl88ee_card_disable()
1460 _rtl88ee_set_media_status(hw, opmode); in rtl88ee_card_disable()
1464 rtlpriv->cfg->ops->led_control(hw, LED_CTL_POWER_OFF); in rtl88ee_card_disable()
1467 _rtl88ee_poweroff_adapter(hw); in rtl88ee_card_disable()
1473 void rtl88ee_interrupt_recognized(struct ieee80211_hw *hw, in rtl88ee_interrupt_recognized() argument
1476 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_interrupt_recognized()
1477 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl88ee_interrupt_recognized()
1487 void rtl88ee_set_beacon_related_registers(struct ieee80211_hw *hw) in rtl88ee_set_beacon_related_registers() argument
1489 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_set_beacon_related_registers()
1490 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl88ee_set_beacon_related_registers()
1491 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl88ee_set_beacon_related_registers()
1496 rtl88ee_disable_interrupt(hw); in rtl88ee_set_beacon_related_registers()
1508 void rtl88ee_set_beacon_interval(struct ieee80211_hw *hw) in rtl88ee_set_beacon_interval() argument
1510 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_set_beacon_interval()
1511 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl88ee_set_beacon_interval()
1521 void rtl88ee_update_interrupt_mask(struct ieee80211_hw *hw, in rtl88ee_update_interrupt_mask() argument
1524 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_update_interrupt_mask()
1525 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl88ee_update_interrupt_mask()
1534 rtl88ee_disable_interrupt(hw); in rtl88ee_update_interrupt_mask()
1535 rtl88ee_enable_interrupt(hw); in rtl88ee_update_interrupt_mask()
1579 static void read_power_value_fromprom(struct ieee80211_hw *hw, in read_power_value_fromprom() argument
1584 struct rtl_priv *rtlpriv = rtl_priv(hw); in read_power_value_fromprom()
1769 static void _rtl88ee_read_txpower_info_from_hwpg(struct ieee80211_hw *hw, in _rtl88ee_read_txpower_info_from_hwpg() argument
1773 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_read_txpower_info_from_hwpg()
1774 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl88ee_read_txpower_info_from_hwpg()
1780 read_power_value_fromprom(hw, &pwrinfo24g, in _rtl88ee_read_txpower_info_from_hwpg()
1833 static void _rtl88ee_read_adapter_info(struct ieee80211_hw *hw) in _rtl88ee_read_adapter_info() argument
1835 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_read_adapter_info()
1836 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl88ee_read_adapter_info()
1837 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl88ee_read_adapter_info()
1843 rtl_efuse_shadow_map_update(hw); in _rtl88ee_read_adapter_info()
1909 _rtl88ee_read_txpower_info_from_hwpg(hw, in _rtl88ee_read_adapter_info()
1914 rtl8188ee_read_bt_coexist_info_from_hwpg(hw, in _rtl88ee_read_adapter_info()
1981 static void _rtl88ee_hal_customized_behavior(struct ieee80211_hw *hw) in _rtl88ee_hal_customized_behavior() argument
1983 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_hal_customized_behavior()
1984 struct rtl_pci_priv *pcipriv = rtl_pcipriv(hw); in _rtl88ee_hal_customized_behavior()
1985 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl88ee_hal_customized_behavior()
2006 void rtl88ee_read_eeprom_info(struct ieee80211_hw *hw) in rtl88ee_read_eeprom_info() argument
2008 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_read_eeprom_info()
2009 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl88ee_read_eeprom_info()
2011 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl88ee_read_eeprom_info()
2014 rtlhal->version = _rtl88ee_read_chip_version(hw); in rtl88ee_read_eeprom_info()
2033 _rtl88ee_read_adapter_info(hw); in rtl88ee_read_eeprom_info()
2037 _rtl88ee_hal_customized_behavior(hw); in rtl88ee_read_eeprom_info()
2040 static void rtl88ee_update_hal_rate_table(struct ieee80211_hw *hw, in rtl88ee_update_hal_rate_table() argument
2043 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_update_hal_rate_table()
2045 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl88ee_update_hal_rate_table()
2046 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl88ee_update_hal_rate_table()
2130 static void rtl88ee_update_hal_rate_mask(struct ieee80211_hw *hw, in rtl88ee_update_hal_rate_mask() argument
2133 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_update_hal_rate_mask()
2135 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl88ee_update_hal_rate_mask()
2136 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl88ee_update_hal_rate_mask()
2257 rtl88e_fill_h2c_cmd(hw, H2C_88E_RA_MASK, 5, rate_mask); in rtl88ee_update_hal_rate_mask()
2258 _rtl88ee_set_bcn_ctrl_reg(hw, BIT(3), 0); in rtl88ee_update_hal_rate_mask()
2261 void rtl88ee_update_hal_rate_tbl(struct ieee80211_hw *hw, in rtl88ee_update_hal_rate_tbl() argument
2264 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_update_hal_rate_tbl()
2267 rtl88ee_update_hal_rate_mask(hw, sta, rssi_level); in rtl88ee_update_hal_rate_tbl()
2269 rtl88ee_update_hal_rate_table(hw, sta); in rtl88ee_update_hal_rate_tbl()
2272 void rtl88ee_update_channel_access_setting(struct ieee80211_hw *hw) in rtl88ee_update_channel_access_setting() argument
2274 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_update_channel_access_setting()
2275 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl88ee_update_channel_access_setting()
2278 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_SLOT_TIME, &mac->slot_time); in rtl88ee_update_channel_access_setting()
2283 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_SIFS, (u8 *)&sifs_timer); in rtl88ee_update_channel_access_setting()
2286 bool rtl88ee_gpio_radio_on_off_checking(struct ieee80211_hw *hw, u8 *valid) in rtl88ee_gpio_radio_on_off_checking() argument
2288 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_gpio_radio_on_off_checking()
2289 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl88ee_gpio_radio_on_off_checking()
2349 void rtl88ee_set_key(struct ieee80211_hw *hw, u32 key_index, in rtl88ee_set_key() argument
2353 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl88ee_set_key()
2354 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl88ee_set_key()
2355 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl88ee_set_key()
2377 rtl_cam_mark_invalid(hw, cam_offset + idx); in rtl88ee_set_key()
2378 rtl_cam_empty_entry(hw, cam_offset + idx); in rtl88ee_set_key()
2419 rtl_cam_get_free_entry(hw, p_macaddr); in rtl88ee_set_key()
2440 rtl_cam_del_entry(hw, p_macaddr); in rtl88ee_set_key()
2441 rtl_cam_delete_one_entry(hw, p_macaddr, entry_id); in rtl88ee_set_key()
2449 rtl_cam_add_one_entry(hw, macaddr, key_index, in rtl88ee_set_key()
2458 rtl_cam_add_one_entry(hw, in rtl88ee_set_key()
2468 rtl_cam_add_one_entry(hw, macaddr, key_index, in rtl88ee_set_key()
2478 static void rtl8188ee_bt_var_init(struct ieee80211_hw *hw) in rtl8188ee_bt_var_init() argument
2480 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8188ee_bt_var_init()
2515 void rtl8188ee_read_bt_coexist_info_from_hwpg(struct ieee80211_hw *hw, in rtl8188ee_read_bt_coexist_info_from_hwpg() argument
2518 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8188ee_read_bt_coexist_info_from_hwpg()
2540 rtl8188ee_bt_var_init(hw); in rtl8188ee_read_bt_coexist_info_from_hwpg()
2543 void rtl8188ee_bt_reg_init(struct ieee80211_hw *hw) in rtl8188ee_bt_reg_init() argument
2545 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8188ee_bt_reg_init()
2555 void rtl8188ee_bt_hw_init(struct ieee80211_hw *hw) in rtl8188ee_bt_hw_init() argument
2557 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8188ee_bt_hw_init()
2593 void rtl88ee_suspend(struct ieee80211_hw *hw) in rtl88ee_suspend() argument
2597 void rtl88ee_resume(struct ieee80211_hw *hw) in rtl88ee_resume() argument