/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | hw.c | 833 unsigned char bytetmp; in _rtl8723be_init_mac() local 839 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO + 1) & (~BIT(7)); in _rtl8723be_init_mac() 840 rtl_write_byte(rtlpriv, REG_APS_FSMCO + 1, bytetmp); in _rtl8723be_init_mac() 854 bytetmp = rtl_read_byte(rtlpriv, REG_MULTI_FUNC_CTRL); in _rtl8723be_init_mac() 855 rtl_write_byte(rtlpriv, REG_MULTI_FUNC_CTRL, bytetmp | BIT(3)); in _rtl8723be_init_mac() 857 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO) | BIT(4); in _rtl8723be_init_mac() 858 rtl_write_byte(rtlpriv, REG_APS_FSMCO, bytetmp); in _rtl8723be_init_mac() 860 bytetmp = rtl_read_byte(rtlpriv, REG_CR); in _rtl8723be_init_mac() 861 bytetmp = 0xff; in _rtl8723be_init_mac() 862 rtl_write_byte(rtlpriv, REG_CR, bytetmp); in _rtl8723be_init_mac() [all …]
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | hw.c | 844 u8 bytetmp; in _rtl88ee_init_mac() local 848 bytetmp = rtl_read_byte(rtlpriv, REG_XCK_OUT_CTRL) & (~BIT(0)); in _rtl88ee_init_mac() 849 rtl_write_byte(rtlpriv, REG_XCK_OUT_CTRL, bytetmp); in _rtl88ee_init_mac() 851 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO + 1) & (~BIT(7)); in _rtl88ee_init_mac() 852 rtl_write_byte(rtlpriv, REG_APS_FSMCO + 1, bytetmp); in _rtl88ee_init_mac() 864 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO) | BIT(4); in _rtl88ee_init_mac() 865 rtl_write_byte(rtlpriv, REG_APS_FSMCO, bytetmp); in _rtl88ee_init_mac() 867 bytetmp = rtl_read_byte(rtlpriv, REG_PCIE_CTRL_REG+2); in _rtl88ee_init_mac() 868 rtl_write_byte(rtlpriv, REG_PCIE_CTRL_REG+2, bytetmp|BIT(2)); in _rtl88ee_init_mac() 870 bytetmp = rtl_read_byte(rtlpriv, REG_WATCH_DOG+1); in _rtl88ee_init_mac() [all …]
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
D | hw.c | 758 u8 bytetmp; in _rtl92ee_init_mac() local 768 bytetmp = rtl_read_byte(rtlpriv, 0x16); in _rtl92ee_init_mac() 769 rtl_write_byte(rtlpriv, 0x16, bytetmp | BIT(4) | BIT(6)); in _rtl92ee_init_mac() 773 bytetmp = rtl_read_byte(rtlpriv, REG_AFE_CTRL2); in _rtl92ee_init_mac() 774 bytetmp &= 0xfb; in _rtl92ee_init_mac() 775 rtl_write_byte(rtlpriv, REG_AFE_CTRL2, bytetmp); in _rtl92ee_init_mac() 784 bytetmp = rtl_read_byte(rtlpriv, REG_AFE_CTRL2); in _rtl92ee_init_mac() 785 bytetmp &= 0xbf; in _rtl92ee_init_mac() 786 rtl_write_byte(rtlpriv, REG_AFE_CTRL2, bytetmp); in _rtl92ee_init_mac() 802 bytetmp = rtl_read_byte(rtlpriv, REG_CR); in _rtl92ee_init_mac() [all …]
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
D | hw.c | 679 unsigned char bytetmp; in _rtl92ce_init_mac() local 700 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO + 1) | BIT(0); in _rtl92ce_init_mac() 703 rtl_write_byte(rtlpriv, REG_APS_FSMCO + 1, bytetmp); in _rtl92ce_init_mac() 706 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO + 1); in _rtl92ce_init_mac() 711 rtl_read_dword(rtlpriv, 0xEC), bytetmp); in _rtl92ce_init_mac() 713 while ((bytetmp & BIT(0)) && retry < 1000) { in _rtl92ce_init_mac() 716 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO + 1); in _rtl92ce_init_mac() 718 rtl_read_dword(rtlpriv, 0xEC), bytetmp); in _rtl92ce_init_mac() 728 bytetmp = rtl_read_byte(rtlpriv, REG_AFE_XTAL_CTRL+2) & 0xfd; in _rtl92ce_init_mac() 729 rtl_write_byte(rtlpriv, REG_AFE_XTAL_CTRL+2, bytetmp); in _rtl92ce_init_mac() [all …]
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | hw.c | 920 u8 bytetmp = 0; in _rtl8821ae_init_mac() local 927 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO + 1) & (~BIT(7)); in _rtl8821ae_init_mac() 928 rtl_write_byte(rtlpriv, REG_APS_FSMCO + 1, bytetmp); in _rtl8821ae_init_mac() 950 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO) | BIT(4); in _rtl8821ae_init_mac() 951 rtl_write_byte(rtlpriv, REG_APS_FSMCO, bytetmp); in _rtl8821ae_init_mac() 953 bytetmp = rtl_read_byte(rtlpriv, REG_CR); in _rtl8821ae_init_mac() 954 bytetmp = 0xff; in _rtl8821ae_init_mac() 955 rtl_write_byte(rtlpriv, REG_CR, bytetmp); in _rtl8821ae_init_mac() 958 bytetmp = 0xff; in _rtl8821ae_init_mac() 959 rtl_write_byte(rtlpriv, REG_HWSEQ_CTRL, bytetmp); in _rtl8821ae_init_mac() [all …]
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
D | hw.c | 686 unsigned char bytetmp; in _rtl8712e_init_mac() local 693 bytetmp = rtl_read_byte(rtlpriv, REG_CR); in _rtl8712e_init_mac() 694 if (bytetmp == 0xFF) in _rtl8712e_init_mac() 704 bytetmp = rtl_read_byte(rtlpriv, REG_PCIE_CTRL_REG+2); in _rtl8712e_init_mac() 705 rtl_write_byte(rtlpriv, REG_PCIE_CTRL_REG+2, bytetmp | BIT(4)); in _rtl8712e_init_mac() 708 bytetmp = rtl_read_byte(rtlpriv, 0x369); in _rtl8712e_init_mac() 709 rtl_write_byte(rtlpriv, 0x369, bytetmp | BIT(7)); in _rtl8712e_init_mac() 783 bytetmp = rtl_read_byte(rtlpriv, REG_APSD_CTRL); in _rtl8712e_init_mac() 784 rtl_write_byte(rtlpriv, REG_APSD_CTRL, bytetmp & ~BIT(6)); in _rtl8712e_init_mac() 787 bytetmp = rtl_read_byte(rtlpriv, REG_APSD_CTRL); in _rtl8712e_init_mac() [all …]
|
/Linux-v4.19/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | hw.c | 636 unsigned char bytetmp; in _rtl92de_init_mac() local 664 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO + 1) | BIT(0); in _rtl92de_init_mac() 666 rtl_write_byte(rtlpriv, REG_APS_FSMCO + 1, bytetmp); in _rtl92de_init_mac() 670 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO + 1); in _rtl92de_init_mac() 673 while ((bytetmp & BIT(0)) && retry < 1000) { in _rtl92de_init_mac() 675 bytetmp = rtl_read_byte(rtlpriv, REG_APS_FSMCO + 1); in _rtl92de_init_mac() 776 bytetmp = rtl_read_byte(rtlpriv, REG_APSD_CTRL); in _rtl92de_init_mac() 777 rtl_write_byte(rtlpriv, REG_APSD_CTRL, bytetmp & ~BIT(6)); in _rtl92de_init_mac() 780 bytetmp = rtl_read_byte(rtlpriv, REG_APSD_CTRL); in _rtl92de_init_mac() 781 } while ((retry < 200) && !(bytetmp & BIT(7))); in _rtl92de_init_mac()
|
/Linux-v4.19/drivers/staging/rtlwifi/rtl8822be/ |
D | hw.c | 662 u8 bytetmp; in _rtl8822be_init_trxbd() local 732 bytetmp = rtl_read_byte(rtlpriv, REG_PCIE_CTRL_8822B + 3); in _rtl8822be_init_trxbd() 733 rtl_write_byte(rtlpriv, REG_PCIE_CTRL_8822B + 3, bytetmp | 0xF7); in _rtl8822be_init_trxbd()
|