Lines Matching refs:hw
49 static void _rtl8723be_return_beacon_queue_skb(struct ieee80211_hw *hw) in _rtl8723be_return_beacon_queue_skb() argument
51 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_return_beacon_queue_skb()
52 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl8723be_return_beacon_queue_skb()
71 static void _rtl8723be_set_bcn_ctrl_reg(struct ieee80211_hw *hw, in _rtl8723be_set_bcn_ctrl_reg() argument
74 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl8723be_set_bcn_ctrl_reg()
75 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_set_bcn_ctrl_reg()
83 static void _rtl8723be_stop_tx_beacon(struct ieee80211_hw *hw) in _rtl8723be_stop_tx_beacon() argument
85 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_stop_tx_beacon()
96 static void _rtl8723be_resume_tx_beacon(struct ieee80211_hw *hw) in _rtl8723be_resume_tx_beacon() argument
98 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_resume_tx_beacon()
109 static void _rtl8723be_enable_bcn_sub_func(struct ieee80211_hw *hw) in _rtl8723be_enable_bcn_sub_func() argument
111 _rtl8723be_set_bcn_ctrl_reg(hw, 0, BIT(1)); in _rtl8723be_enable_bcn_sub_func()
114 static void _rtl8723be_disable_bcn_sub_func(struct ieee80211_hw *hw) in _rtl8723be_disable_bcn_sub_func() argument
116 _rtl8723be_set_bcn_ctrl_reg(hw, BIT(1), 0); in _rtl8723be_disable_bcn_sub_func()
119 static void _rtl8723be_set_fw_clock_on(struct ieee80211_hw *hw, u8 rpwm_val, in _rtl8723be_set_fw_clock_on() argument
122 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_set_fw_clock_on()
123 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_set_fw_clock_on()
127 rtlpriv->cfg->ops->get_hw_reg(hw, HAL_DEF_WOWLAN, in _rtl8723be_set_fw_clock_on()
155 rtlpriv->cfg->ops->get_hw_reg(hw, HW_VAR_SET_RPWM, in _rtl8723be_set_fw_clock_on()
188 static void _rtl8723be_set_fw_clock_off(struct ieee80211_hw *hw, u8 rpwm_val) in _rtl8723be_set_fw_clock_off() argument
190 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_set_fw_clock_off()
191 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_set_fw_clock_off()
192 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl8723be_set_fw_clock_off()
204 rtlpriv->cfg->ops->get_hw_reg(hw, HW_VAR_RF_STATE, (u8 *)(&rtstate)); in _rtl8723be_set_fw_clock_off()
229 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_SET_RPWM, in _rtl8723be_set_fw_clock_off()
243 static void _rtl8723be_set_fw_ps_rf_on(struct ieee80211_hw *hw) in _rtl8723be_set_fw_ps_rf_on() argument
247 _rtl8723be_set_fw_clock_on(hw, rpwm_val, true); in _rtl8723be_set_fw_ps_rf_on()
250 static void _rtl8723be_fwlps_leave(struct ieee80211_hw *hw) in _rtl8723be_fwlps_leave() argument
252 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_fwlps_leave()
253 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl8723be_fwlps_leave()
254 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_fwlps_leave()
260 _rtl8723be_set_fw_clock_on(hw, rpwm_val, false); in _rtl8723be_fwlps_leave()
262 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_H2C_FW_PWRMODE, in _rtl8723be_fwlps_leave()
264 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_FW_PSMODE_STATUS, in _rtl8723be_fwlps_leave()
268 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_SET_RPWM, in _rtl8723be_fwlps_leave()
270 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_H2C_FW_PWRMODE, in _rtl8723be_fwlps_leave()
272 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_FW_PSMODE_STATUS, in _rtl8723be_fwlps_leave()
278 static void _rtl8723be_fwlps_enter(struct ieee80211_hw *hw) in _rtl8723be_fwlps_enter() argument
280 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_fwlps_enter()
281 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl8723be_fwlps_enter()
282 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_fwlps_enter()
288 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_FW_PSMODE_STATUS, in _rtl8723be_fwlps_enter()
290 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_H2C_FW_PWRMODE, in _rtl8723be_fwlps_enter()
293 _rtl8723be_set_fw_clock_off(hw, rpwm_val); in _rtl8723be_fwlps_enter()
296 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_FW_PSMODE_STATUS, in _rtl8723be_fwlps_enter()
298 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_H2C_FW_PWRMODE, in _rtl8723be_fwlps_enter()
300 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_SET_RPWM, in _rtl8723be_fwlps_enter()
306 void rtl8723be_get_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) in rtl8723be_get_hw_reg() argument
308 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_get_hw_reg()
309 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl8723be_get_hw_reg()
310 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723be_get_hw_reg()
323 rtlpriv->cfg->ops->get_hw_reg(hw, HW_VAR_RF_STATE, in rtl8723be_get_hw_reg()
358 static void _rtl8723be_download_rsvd_page(struct ieee80211_hw *hw) in _rtl8723be_download_rsvd_page() argument
360 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_download_rsvd_page()
369 _rtl8723be_set_bcn_ctrl_reg(hw, 0, BIT(3)); in _rtl8723be_download_rsvd_page()
370 _rtl8723be_set_bcn_ctrl_reg(hw, BIT(4), 0); in _rtl8723be_download_rsvd_page()
381 _rtl8723be_return_beacon_queue_skb(hw); in _rtl8723be_download_rsvd_page()
383 rtl8723be_set_fw_rsvdpagepkt(hw, 0); in _rtl8723be_download_rsvd_page()
398 _rtl8723be_set_bcn_ctrl_reg(hw, BIT(3), 0); in _rtl8723be_download_rsvd_page()
399 _rtl8723be_set_bcn_ctrl_reg(hw, 0, BIT(4)); in _rtl8723be_download_rsvd_page()
408 void rtl8723be_set_hw_reg(struct ieee80211_hw *hw, u8 variable, u8 *val) in rtl8723be_set_hw_reg() argument
410 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_set_hw_reg()
411 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723be_set_hw_reg()
412 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723be_set_hw_reg()
413 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl8723be_set_hw_reg()
414 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl8723be_set_hw_reg()
463 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_AC_PARAM, in rtl8723be_set_hw_reg()
563 rtl8723_dm_init_edca_turbo(hw); in rtl8723be_set_hw_reg()
566 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_ACM_CTRL, in rtl8723be_set_hw_reg()
643 rtl8723be_phy_set_io_cmd(hw, (*(enum io_type *)val)); in rtl8723be_set_hw_reg()
660 rtl8723be_set_fw_pwrmode_cmd(hw, (*(u8 *)val)); in rtl8723be_set_hw_reg()
666 _rtl8723be_set_fw_ps_rf_on(hw); in rtl8723be_set_hw_reg()
672 _rtl8723be_fwlps_enter(hw); in rtl8723be_set_hw_reg()
674 _rtl8723be_fwlps_leave(hw); in rtl8723be_set_hw_reg()
681 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_AID, NULL); in rtl8723be_set_hw_reg()
682 _rtl8723be_download_rsvd_page(hw); in rtl8723be_set_hw_reg()
684 rtl8723be_set_fw_media_status_rpt_cmd(hw, mstatus); in rtl8723be_set_hw_reg()
688 rtl8723be_set_p2p_ps_offload_cmd(hw, (*(u8 *)val)); in rtl8723be_set_hw_reg()
702 _rtl8723be_stop_tx_beacon(hw); in rtl8723be_set_hw_reg()
704 _rtl8723be_set_bcn_ctrl_reg(hw, 0, BIT(3)); in rtl8723be_set_hw_reg()
711 _rtl8723be_set_bcn_ctrl_reg(hw, BIT(3), 0); in rtl8723be_set_hw_reg()
714 _rtl8723be_resume_tx_beacon(hw); in rtl8723be_set_hw_reg()
721 rtl8723be_fill_h2c_cmd(hw, H2C_8723B_KEEP_ALIVE_CTRL, 2, array); in rtl8723be_set_hw_reg()
732 static bool _rtl8723be_llt_write(struct ieee80211_hw *hw, u32 address, u32 data) in _rtl8723be_llt_write() argument
734 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_llt_write()
759 static bool _rtl8723be_llt_table_init(struct ieee80211_hw *hw) in _rtl8723be_llt_table_init() argument
761 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_llt_table_init()
782 status = _rtl8723be_llt_write(hw, i, i + 1); in _rtl8723be_llt_table_init()
787 status = _rtl8723be_llt_write(hw, (txpktbuf_bndy - 1), 0xFF); in _rtl8723be_llt_table_init()
793 status = _rtl8723be_llt_write(hw, i, (i + 1)); in _rtl8723be_llt_table_init()
798 status = _rtl8723be_llt_write(hw, maxPage, txpktbuf_bndy); in _rtl8723be_llt_table_init()
808 static void _rtl8723be_gen_refresh_led_state(struct ieee80211_hw *hw) in _rtl8723be_gen_refresh_led_state() argument
810 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_gen_refresh_led_state()
811 struct rtl_pci_priv *pcipriv = rtl_pcipriv(hw); in _rtl8723be_gen_refresh_led_state()
812 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in _rtl8723be_gen_refresh_led_state()
819 rtl8723be_sw_led_on(hw, pled0); in _rtl8723be_gen_refresh_led_state()
821 rtl8723be_sw_led_on(hw, pled0); in _rtl8723be_gen_refresh_led_state()
823 rtl8723be_sw_led_off(hw, pled0); in _rtl8723be_gen_refresh_led_state()
826 static bool _rtl8723be_init_mac(struct ieee80211_hw *hw) in _rtl8723be_init_mac() argument
828 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_init_mac()
829 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl8723be_init_mac()
879 if (_rtl8723be_llt_table_init(hw) == false) in _rtl8723be_init_mac()
935 rtl_set_bbreg(hw, 0x64, BIT(20), 0x0);/* 0x66[4]=0 */ in _rtl8723be_init_mac()
936 rtl_set_bbreg(hw, 0x64, BIT(24), 0x0);/* 0x66[8]=0 */ in _rtl8723be_init_mac()
937 rtl_set_bbreg(hw, 0x40, BIT(4), 0x0)/* 0x40[4]=0 */; in _rtl8723be_init_mac()
938 rtl_set_bbreg(hw, 0x40, BIT(3), 0x1)/* 0x40[3]=1 */; in _rtl8723be_init_mac()
939 rtl_set_bbreg(hw, 0x4C, BIT(24) | BIT(23), 0x2)/* 0x4C[24:23]=10 */; in _rtl8723be_init_mac()
940 rtl_set_bbreg(hw, 0x944, BIT(1) | BIT(0), 0x3)/* 0x944[1:0]=11 */; in _rtl8723be_init_mac()
941 rtl_set_bbreg(hw, 0x930, MASKBYTE0, 0x77)/* 0x930[7:0]=77 */; in _rtl8723be_init_mac()
942 rtl_set_bbreg(hw, 0x38, BIT(11), 0x1)/* 0x38[11]=1 */; in _rtl8723be_init_mac()
947 _rtl8723be_gen_refresh_led_state(hw); in _rtl8723be_init_mac()
951 static void _rtl8723be_hw_configure(struct ieee80211_hw *hw) in _rtl8723be_hw_configure() argument
953 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_hw_configure()
954 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in _rtl8723be_hw_configure()
1082 static void _rtl8723be_enable_aspm_back_door(struct ieee80211_hw *hw) in _rtl8723be_enable_aspm_back_door() argument
1084 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_enable_aspm_back_door()
1135 void rtl8723be_enable_hw_security_config(struct ieee80211_hw *hw) in rtl8723be_enable_hw_security_config() argument
1137 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_enable_hw_security_config()
1165 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_WPA_CONFIG, &sec_reg_value); in rtl8723be_enable_hw_security_config()
1168 static void _rtl8723be_poweroff_adapter(struct ieee80211_hw *hw) in _rtl8723be_poweroff_adapter() argument
1170 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_poweroff_adapter()
1171 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_poweroff_adapter()
1185 rtl8723be_firmware_selfreset(hw); in _rtl8723be_poweroff_adapter()
1344 int rtl8723be_hw_init(struct ieee80211_hw *hw) in rtl8723be_hw_init() argument
1346 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_hw_init()
1347 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8723be_hw_init()
1348 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723be_hw_init()
1350 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl8723be_hw_init()
1351 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723be_hw_init()
1363 rtlpriv->intf_ops->disable_aspm(hw); in rtl8723be_hw_init()
1379 _rtl8723be_poweroff_adapter(hw); in rtl8723be_hw_init()
1382 rtstatus = _rtl8723be_init_mac(hw); in rtl8723be_hw_init()
1392 err = rtl8723_download_fw(hw, true, FW_8723B_POLLING_TIMEOUT_COUNT); in rtl8723be_hw_init()
1402 rtl8723be_phy_mac_config(hw); in rtl8723be_hw_init()
1412 rtl8723be_phy_bb_config(hw); in rtl8723be_hw_init()
1413 rtl8723be_phy_rf_config(hw); in rtl8723be_hw_init()
1415 rtlphy->rfreg_chnlval[0] = rtl_get_rfreg(hw, (enum radio_path)0, in rtl8723be_hw_init()
1417 rtlphy->rfreg_chnlval[1] = rtl_get_rfreg(hw, (enum radio_path)1, in rtl8723be_hw_init()
1422 _rtl8723be_hw_configure(hw); in rtl8723be_hw_init()
1424 rtl_cam_reset_all_entry(hw); in rtl8723be_hw_init()
1425 rtl8723be_enable_hw_security_config(hw); in rtl8723be_hw_init()
1429 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_ETHER_ADDR, mac->mac_addr); in rtl8723be_hw_init()
1430 _rtl8723be_enable_aspm_back_door(hw); in rtl8723be_hw_init()
1431 rtlpriv->intf_ops->enable_aspm(hw); in rtl8723be_hw_init()
1433 rtl8723be_bt_hw_init(hw); in rtl8723be_hw_init()
1436 rtl8723be_phy_set_rfpath_switch(hw, 1); in rtl8723be_hw_init()
1443 rtl8723be_phy_iq_calibrate(hw, false); in rtl8723be_hw_init()
1446 rtl8723be_dm_check_txpower_tracking(hw); in rtl8723be_hw_init()
1447 rtl8723be_phy_lc_calibrate(hw); in rtl8723be_hw_init()
1461 rtl8723be_dm_init(hw); in rtl8723be_hw_init()
1468 static enum version_8723e _rtl8723be_read_chip_version(struct ieee80211_hw *hw) in _rtl8723be_read_chip_version() argument
1470 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_read_chip_version()
1500 static int _rtl8723be_set_media_status(struct ieee80211_hw *hw, in _rtl8723be_set_media_status() argument
1503 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_set_media_status()
1550 _rtl8723be_stop_tx_beacon(hw); in _rtl8723be_set_media_status()
1551 _rtl8723be_enable_bcn_sub_func(hw); in _rtl8723be_set_media_status()
1553 _rtl8723be_resume_tx_beacon(hw); in _rtl8723be_set_media_status()
1554 _rtl8723be_disable_bcn_sub_func(hw); in _rtl8723be_set_media_status()
1562 rtlpriv->cfg->ops->led_control(hw, ledaction); in _rtl8723be_set_media_status()
1570 void rtl8723be_set_check_bssid(struct ieee80211_hw *hw, bool check_bssid) in rtl8723be_set_check_bssid() argument
1572 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_set_check_bssid()
1573 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723be_set_check_bssid()
1581 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_RCR, in rtl8723be_set_check_bssid()
1583 _rtl8723be_set_bcn_ctrl_reg(hw, 0, BIT(4)); in rtl8723be_set_check_bssid()
1586 _rtl8723be_set_bcn_ctrl_reg(hw, BIT(4), 0); in rtl8723be_set_check_bssid()
1587 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_RCR, in rtl8723be_set_check_bssid()
1593 int rtl8723be_set_network_type(struct ieee80211_hw *hw, in rtl8723be_set_network_type() argument
1596 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_set_network_type()
1598 if (_rtl8723be_set_media_status(hw, type)) in rtl8723be_set_network_type()
1603 rtl8723be_set_check_bssid(hw, true); in rtl8723be_set_network_type()
1605 rtl8723be_set_check_bssid(hw, false); in rtl8723be_set_network_type()
1614 void rtl8723be_set_qos(struct ieee80211_hw *hw, int aci) in rtl8723be_set_qos() argument
1616 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_set_qos()
1618 rtl8723_dm_init_edca_turbo(hw); in rtl8723be_set_qos()
1637 void rtl8723be_enable_interrupt(struct ieee80211_hw *hw) in rtl8723be_enable_interrupt() argument
1639 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_enable_interrupt()
1640 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723be_enable_interrupt()
1650 void rtl8723be_disable_interrupt(struct ieee80211_hw *hw) in rtl8723be_disable_interrupt() argument
1652 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_disable_interrupt()
1653 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723be_disable_interrupt()
1661 void rtl8723be_card_disable(struct ieee80211_hw *hw) in rtl8723be_card_disable() argument
1663 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_card_disable()
1664 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl8723be_card_disable()
1665 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723be_card_disable()
1670 _rtl8723be_set_media_status(hw, opmode); in rtl8723be_card_disable()
1673 rtlpriv->cfg->ops->led_control(hw, LED_CTL_POWER_OFF); in rtl8723be_card_disable()
1675 _rtl8723be_poweroff_adapter(hw); in rtl8723be_card_disable()
1681 void rtl8723be_interrupt_recognized(struct ieee80211_hw *hw, in rtl8723be_interrupt_recognized() argument
1684 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_interrupt_recognized()
1685 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723be_interrupt_recognized()
1695 void rtl8723be_set_beacon_related_registers(struct ieee80211_hw *hw) in rtl8723be_set_beacon_related_registers() argument
1697 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_set_beacon_related_registers()
1698 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723be_set_beacon_related_registers()
1703 rtl8723be_disable_interrupt(hw); in rtl8723be_set_beacon_related_registers()
1710 rtl8723be_enable_interrupt(hw); in rtl8723be_set_beacon_related_registers()
1713 void rtl8723be_set_beacon_interval(struct ieee80211_hw *hw) in rtl8723be_set_beacon_interval() argument
1715 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_set_beacon_interval()
1716 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723be_set_beacon_interval()
1721 rtl8723be_disable_interrupt(hw); in rtl8723be_set_beacon_interval()
1723 rtl8723be_enable_interrupt(hw); in rtl8723be_set_beacon_interval()
1726 void rtl8723be_update_interrupt_mask(struct ieee80211_hw *hw, in rtl8723be_update_interrupt_mask() argument
1729 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_update_interrupt_mask()
1730 struct rtl_pci *rtlpci = rtl_pcidev(rtl_pcipriv(hw)); in rtl8723be_update_interrupt_mask()
1739 rtl8723be_disable_interrupt(hw); in rtl8723be_update_interrupt_mask()
1740 rtl8723be_enable_interrupt(hw); in rtl8723be_update_interrupt_mask()
1756 static void _rtl8723be_read_power_value_fromprom(struct ieee80211_hw *hw, in _rtl8723be_read_power_value_fromprom() argument
1761 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_read_power_value_fromprom()
1955 static void _rtl8723be_read_txpower_info_from_hwpg(struct ieee80211_hw *hw, in _rtl8723be_read_txpower_info_from_hwpg() argument
1959 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_read_txpower_info_from_hwpg()
1960 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl8723be_read_txpower_info_from_hwpg()
1966 _rtl8723be_read_power_value_fromprom(hw, &pw2g, &pw5g, autoload_fail, in _rtl8723be_read_txpower_info_from_hwpg()
2023 static void _rtl8723be_read_adapter_info(struct ieee80211_hw *hw, in _rtl8723be_read_adapter_info() argument
2026 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_read_adapter_info()
2027 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in _rtl8723be_read_adapter_info()
2028 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_read_adapter_info()
2059 rtl_efuse_shadow_map_update(hw); in _rtl8723be_read_adapter_info()
2110 _rtl8723be_read_txpower_info_from_hwpg(hw, rtlefuse->autoload_failflag, in _rtl8723be_read_adapter_info()
2113 rtl8723be_read_bt_coexist_info_from_hwpg(hw, in _rtl8723be_read_adapter_info()
2237 static void _rtl8723be_hal_customized_behavior(struct ieee80211_hw *hw) in _rtl8723be_hal_customized_behavior() argument
2239 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_hal_customized_behavior()
2240 struct rtl_pci_priv *pcipriv = rtl_pcipriv(hw); in _rtl8723be_hal_customized_behavior()
2241 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in _rtl8723be_hal_customized_behavior()
2261 void rtl8723be_read_eeprom_info(struct ieee80211_hw *hw) in rtl8723be_read_eeprom_info() argument
2263 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_read_eeprom_info()
2264 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl8723be_read_eeprom_info()
2266 struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); in rtl8723be_read_eeprom_info()
2269 rtlhal->version = _rtl8723be_read_chip_version(hw); in rtl8723be_read_eeprom_info()
2288 _rtl8723be_read_adapter_info(hw, false); in rtl8723be_read_eeprom_info()
2292 _rtl8723be_hal_customized_behavior(hw); in rtl8723be_read_eeprom_info()
2295 static u8 _rtl8723be_mrate_idx_to_arfr_id(struct ieee80211_hw *hw, in _rtl8723be_mrate_idx_to_arfr_id() argument
2326 static void rtl8723be_update_hal_rate_mask(struct ieee80211_hw *hw, in rtl8723be_update_hal_rate_mask() argument
2330 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_update_hal_rate_mask()
2332 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723be_update_hal_rate_mask()
2442 rate_mask[1] = _rtl8723be_mrate_idx_to_arfr_id(hw, ratr_index) | in rtl8723be_update_hal_rate_mask()
2458 rtl8723be_fill_h2c_cmd(hw, H2C_8723B_RA_MASK, 7, rate_mask); in rtl8723be_update_hal_rate_mask()
2459 _rtl8723be_set_bcn_ctrl_reg(hw, BIT(3), 0); in rtl8723be_update_hal_rate_mask()
2462 void rtl8723be_update_hal_rate_tbl(struct ieee80211_hw *hw, in rtl8723be_update_hal_rate_tbl() argument
2466 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_update_hal_rate_tbl()
2468 rtl8723be_update_hal_rate_mask(hw, sta, rssi_level); in rtl8723be_update_hal_rate_tbl()
2471 void rtl8723be_update_channel_access_setting(struct ieee80211_hw *hw) in rtl8723be_update_channel_access_setting() argument
2473 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_update_channel_access_setting()
2474 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723be_update_channel_access_setting()
2477 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_SLOT_TIME, &mac->slot_time); in rtl8723be_update_channel_access_setting()
2482 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_SIFS, (u8 *)&sifs_timer); in rtl8723be_update_channel_access_setting()
2485 bool rtl8723be_gpio_radio_on_off_checking(struct ieee80211_hw *hw, u8 *valid) in rtl8723be_gpio_radio_on_off_checking() argument
2487 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_gpio_radio_on_off_checking()
2488 struct rtl_ps_ctl *ppsc = rtl_psc(rtl_priv(hw)); in rtl8723be_gpio_radio_on_off_checking()
2555 void rtl8723be_set_key(struct ieee80211_hw *hw, u32 key_index, in rtl8723be_set_key() argument
2559 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_set_key()
2560 struct rtl_mac *mac = rtl_mac(rtl_priv(hw)); in rtl8723be_set_key()
2561 struct rtl_efuse *rtlefuse = rtl_efuse(rtl_priv(hw)); in rtl8723be_set_key()
2584 rtl_cam_mark_invalid(hw, cam_offset + idx); in rtl8723be_set_key()
2585 rtl_cam_empty_entry(hw, cam_offset + idx); in rtl8723be_set_key()
2624 entry_id = rtl_cam_get_free_entry(hw, in rtl8723be_set_key()
2646 rtl_cam_del_entry(hw, p_macaddr); in rtl8723be_set_key()
2647 rtl_cam_delete_one_entry(hw, p_macaddr, entry_id); in rtl8723be_set_key()
2655 rtl_cam_add_one_entry(hw, macaddr, key_index, in rtl8723be_set_key()
2664 rtl_cam_add_one_entry(hw, in rtl8723be_set_key()
2674 rtl_cam_add_one_entry(hw, macaddr, key_index, in rtl8723be_set_key()
2683 void rtl8723be_read_bt_coexist_info_from_hwpg(struct ieee80211_hw *hw, in rtl8723be_read_bt_coexist_info_from_hwpg() argument
2686 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_read_bt_coexist_info_from_hwpg()
2712 void rtl8723be_bt_reg_init(struct ieee80211_hw *hw) in rtl8723be_bt_reg_init() argument
2714 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_bt_reg_init()
2724 void rtl8723be_bt_hw_init(struct ieee80211_hw *hw) in rtl8723be_bt_hw_init() argument
2726 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_bt_hw_init()
2733 void rtl8723be_suspend(struct ieee80211_hw *hw) in rtl8723be_suspend() argument
2737 void rtl8723be_resume(struct ieee80211_hw *hw) in rtl8723be_resume() argument