/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | hw.c | 814 unsigned char bytetmp; in _rtl8723be_init_mac() local 820 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO + 1) & (~BIT(7)); in _rtl8723be_init_mac() 821 rtl_write_byte(rtlpriv, REG_APS_FSMCO + 1, bytetmp); in _rtl8723be_init_mac() 835 bytetmp = rtl_read_byte(rtlpriv, REG_MULTI_FUNC_CTRL); in _rtl8723be_init_mac() 836 rtl_write_byte(rtlpriv, REG_MULTI_FUNC_CTRL, bytetmp | BIT(3)); in _rtl8723be_init_mac() 838 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO) | BIT(4); in _rtl8723be_init_mac() 839 rtl_write_byte(rtlpriv, REG_APS_FSMCO, bytetmp); in _rtl8723be_init_mac() 841 bytetmp = rtl_read_byte(rtlpriv, REG_CR); in _rtl8723be_init_mac() 842 bytetmp = 0xff; in _rtl8723be_init_mac() 843 rtl_write_byte(rtlpriv, REG_CR, bytetmp); in _rtl8723be_init_mac() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | hw.c | 825 u8 bytetmp; in _rtl88ee_init_mac() local 829 bytetmp = rtl_read_byte(rtlpriv, REG_XCK_OUT_CTRL) & (~BIT(0)); in _rtl88ee_init_mac() 830 rtl_write_byte(rtlpriv, REG_XCK_OUT_CTRL, bytetmp); in _rtl88ee_init_mac() 832 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO + 1) & (~BIT(7)); in _rtl88ee_init_mac() 833 rtl_write_byte(rtlpriv, REG_APS_FSMCO + 1, bytetmp); in _rtl88ee_init_mac() 845 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO) | BIT(4); in _rtl88ee_init_mac() 846 rtl_write_byte(rtlpriv, REG_APS_FSMCO, bytetmp); in _rtl88ee_init_mac() 848 bytetmp = rtl_read_byte(rtlpriv, REG_PCIE_CTRL_REG+2); in _rtl88ee_init_mac() 849 rtl_write_byte(rtlpriv, REG_PCIE_CTRL_REG+2, bytetmp|BIT(2)); in _rtl88ee_init_mac() 851 bytetmp = rtl_read_byte(rtlpriv, REG_WATCH_DOG+1); in _rtl88ee_init_mac() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
D | hw.c | 736 u8 bytetmp; in _rtl92ee_init_mac() local 746 bytetmp = rtl_read_byte(rtlpriv, 0x16); in _rtl92ee_init_mac() 747 rtl_write_byte(rtlpriv, 0x16, bytetmp | BIT(4) | BIT(6)); in _rtl92ee_init_mac() 751 bytetmp = rtl_read_byte(rtlpriv, REG_AFE_CTRL2); in _rtl92ee_init_mac() 752 bytetmp &= 0xfb; in _rtl92ee_init_mac() 753 rtl_write_byte(rtlpriv, REG_AFE_CTRL2, bytetmp); in _rtl92ee_init_mac() 762 bytetmp = rtl_read_byte(rtlpriv, REG_AFE_CTRL2); in _rtl92ee_init_mac() 763 bytetmp &= 0xbf; in _rtl92ee_init_mac() 764 rtl_write_byte(rtlpriv, REG_AFE_CTRL2, bytetmp); in _rtl92ee_init_mac() 780 bytetmp = rtl_read_byte(rtlpriv, REG_CR); in _rtl92ee_init_mac() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
D | hw.c | 661 unsigned char bytetmp; in _rtl92ce_init_mac() local 683 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO + 1) | BIT(0); in _rtl92ce_init_mac() 686 rtl_write_byte(rtlpriv, REG_APS_FSMCO + 1, bytetmp); in _rtl92ce_init_mac() 689 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO + 1); in _rtl92ce_init_mac() 694 rtl_read_dword(rtlpriv, 0xEC), bytetmp); in _rtl92ce_init_mac() 696 while ((bytetmp & BIT(0)) && retry < 1000) { in _rtl92ce_init_mac() 699 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO + 1); in _rtl92ce_init_mac() 701 rtl_read_dword(rtlpriv, 0xEC), bytetmp); in _rtl92ce_init_mac() 711 bytetmp = rtl_read_byte(rtlpriv, REG_AFE_XTAL_CTRL+2) & 0xfd; in _rtl92ce_init_mac() 712 rtl_write_byte(rtlpriv, REG_AFE_XTAL_CTRL+2, bytetmp); in _rtl92ce_init_mac() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | hw.c | 901 u8 bytetmp = 0; in _rtl8821ae_init_mac() local 908 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO + 1) & (~BIT(7)); in _rtl8821ae_init_mac() 909 rtl_write_byte(rtlpriv, REG_APS_FSMCO + 1, bytetmp); in _rtl8821ae_init_mac() 931 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO) | BIT(4); in _rtl8821ae_init_mac() 932 rtl_write_byte(rtlpriv, REG_APS_FSMCO, bytetmp); in _rtl8821ae_init_mac() 934 bytetmp = rtl_read_byte(rtlpriv, REG_CR); in _rtl8821ae_init_mac() 935 bytetmp = 0xff; in _rtl8821ae_init_mac() 936 rtl_write_byte(rtlpriv, REG_CR, bytetmp); in _rtl8821ae_init_mac() 939 bytetmp = 0xff; in _rtl8821ae_init_mac() 940 rtl_write_byte(rtlpriv, REG_HWSEQ_CTRL, bytetmp); in _rtl8821ae_init_mac() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
D | hw.c | 664 unsigned char bytetmp; in _rtl8712e_init_mac() local 671 bytetmp = rtl_read_byte(rtlpriv, REG_CR); in _rtl8712e_init_mac() 672 if (bytetmp == 0xFF) in _rtl8712e_init_mac() 682 bytetmp = rtl_read_byte(rtlpriv, REG_PCIE_CTRL_REG+2); in _rtl8712e_init_mac() 683 rtl_write_byte(rtlpriv, REG_PCIE_CTRL_REG+2, bytetmp | BIT(4)); in _rtl8712e_init_mac() 686 bytetmp = rtl_read_byte(rtlpriv, 0x369); in _rtl8712e_init_mac() 687 rtl_write_byte(rtlpriv, 0x369, bytetmp | BIT(7)); in _rtl8712e_init_mac() 761 bytetmp = rtl_read_byte(rtlpriv, REG_APSD_CTRL); in _rtl8712e_init_mac() 762 rtl_write_byte(rtlpriv, REG_APSD_CTRL, bytetmp & ~BIT(6)); in _rtl8712e_init_mac() 765 bytetmp = rtl_read_byte(rtlpriv, REG_APSD_CTRL); in _rtl8712e_init_mac() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | hw.c | 614 unsigned char bytetmp; in _rtl92de_init_mac() local 642 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO + 1) | BIT(0); in _rtl92de_init_mac() 644 rtl_write_byte(rtlpriv, REG_APS_FSMCO + 1, bytetmp); in _rtl92de_init_mac() 648 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO + 1); in _rtl92de_init_mac() 651 while ((bytetmp & BIT(0)) && retry < 1000) { in _rtl92de_init_mac() 653 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO + 1); in _rtl92de_init_mac() 754 bytetmp = rtl_read_byte(rtlpriv, REG_APSD_CTRL); in _rtl92de_init_mac() 755 rtl_write_byte(rtlpriv, REG_APSD_CTRL, bytetmp & ~BIT(6)); in _rtl92de_init_mac() 758 bytetmp = rtl_read_byte(rtlpriv, REG_APSD_CTRL); in _rtl92de_init_mac() 759 } while ((retry < 200) && !(bytetmp & BIT(7))); in _rtl92de_init_mac()
|