Home
last modified time | relevance | path

Searched refs:REG_SYS_FUNC_EN (Results 1 – 25 of 58) sorted by relevance

123

/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8723com/
Dfw_common.c17 tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in rtl8723_enable_fw_download()
18 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, in rtl8723_enable_fw_download()
77 u1b_tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in rtl8723ae_firmware_selfreset()
84 u1b_tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in rtl8723ae_firmware_selfreset()
87 u1b_tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in rtl8723ae_firmware_selfreset()
88 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, in rtl8723ae_firmware_selfreset()
102 u1b_tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in rtl8723be_firmware_selfreset()
103 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, (u1b_tmp & (~BIT(2)))); in rtl8723be_firmware_selfreset()
109 u1b_tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in rtl8723be_firmware_selfreset()
110 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, (u1b_tmp | BIT(2))); in rtl8723be_firmware_selfreset()
Dfw_common.h7 #define REG_SYS_FUNC_EN 0x0002 macro
/Linux-v5.4/drivers/staging/rtl8188eu/hal/
Dfw.c101 u1b_tmp = usb_read8(adapt, REG_SYS_FUNC_EN + 1); in rtl88e_firmware_selfreset()
102 usb_write8(adapt, REG_SYS_FUNC_EN + 1, (u1b_tmp & (~BIT(2)))); in rtl88e_firmware_selfreset()
103 usb_write8(adapt, REG_SYS_FUNC_EN + 1, (u1b_tmp | BIT(2))); in rtl88e_firmware_selfreset()
Dbb_cfg.c663 regval = usb_read16(adapt, REG_SYS_FUNC_EN); in rtl88eu_phy_bb_config()
664 usb_write16(adapt, REG_SYS_FUNC_EN, in rtl88eu_phy_bb_config()
669 usb_write8(adapt, REG_SYS_FUNC_EN, FEN_USBA | in rtl88eu_phy_bb_config()
Drtl8188e_hal_init.c95 u1bTmp = usb_read8(padapter, REG_SYS_FUNC_EN+1); in _8051Reset88E()
96 usb_write8(padapter, REG_SYS_FUNC_EN+1, u1bTmp&(~BIT(2))); in _8051Reset88E()
97 usb_write8(padapter, REG_SYS_FUNC_EN+1, u1bTmp|(BIT(2))); in _8051Reset88E()
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8192se/
Dhw.c541 tmpu1b = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in _rtl92se_macconfig_before_fwdownload()
543 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, tmpu1b); in _rtl92se_macconfig_before_fwdownload()
545 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, tmpu1b | BIT(0)); in _rtl92se_macconfig_before_fwdownload()
567 tmpu1b = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in _rtl92se_macconfig_before_fwdownload()
569 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, tmpu1b); in _rtl92se_macconfig_before_fwdownload()
610 tmpu2b = rtl_read_word(rtlpriv, REG_SYS_FUNC_EN); in _rtl92se_macconfig_before_fwdownload()
611 rtl_write_word(rtlpriv, REG_SYS_FUNC_EN, (tmpu2b | BIT(13))); in _rtl92se_macconfig_before_fwdownload()
642 tmpu2b = rtl_read_word(rtlpriv, REG_SYS_FUNC_EN); in _rtl92se_macconfig_before_fwdownload()
643 rtl_write_word(rtlpriv, REG_SYS_FUNC_EN, (tmpu2b | BIT(11))); in _rtl92se_macconfig_before_fwdownload()
645 tmpu1b = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in _rtl92se_macconfig_before_fwdownload()
[all …]
Dfw.c35 tmpu2b = rtl_read_word(rtlpriv, REG_SYS_FUNC_EN); in _rtl92s_firmware_enable_cpu()
36 rtl_write_word(rtlpriv, REG_SYS_FUNC_EN, (tmpu2b | FEN_CPUEN)); in _rtl92s_firmware_enable_cpu()
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/
Dphy.c77 regval = rtl_read_word(rtlpriv, REG_SYS_FUNC_EN); in rtl92c_phy_bb_config()
78 rtl_write_word(rtlpriv, REG_SYS_FUNC_EN, in rtl92c_phy_bb_config()
83 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, in rtl92c_phy_bb_config()
418 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE2); in _rtl92ce_phy_set_rf_sleep()
419 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE3); in _rtl92ce_phy_set_rf_sleep()
425 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE2); in _rtl92ce_phy_set_rf_sleep()
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/
Dfw.c19 tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in _rtl88e_enable_fw_download()
20 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, tmp | 0x04); in _rtl88e_enable_fw_download()
359 u1b_tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN+1); in rtl88e_firmware_selfreset()
360 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN+1, (u1b_tmp & (~BIT(2)))); in rtl88e_firmware_selfreset()
361 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN+1, (u1b_tmp | BIT(2))); in rtl88e_firmware_selfreset()
Dphy.c241 regval = rtl_read_word(rtlpriv, REG_SYS_FUNC_EN); in rtl88e_phy_bb_config()
242 rtl_write_word(rtlpriv, REG_SYS_FUNC_EN, in rtl88e_phy_bb_config()
246 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, in rtl88e_phy_bb_config()
2161 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE3); in rtl88ee_phy_set_rf_on()
2163 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE2); in rtl88ee_phy_set_rf_on()
2164 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE3); in rtl88ee_phy_set_rf_on()
2174 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE2); in _rtl88ee_phy_set_rf_sleep()
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8192de/
Dfw.c25 tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in _rtl92d_enable_fw_download()
26 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, tmp | 0x04); in _rtl92d_enable_fw_download()
98 u1b_tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in rtl92d_firmware_selfreset()
104 u1b_tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in rtl92d_firmware_selfreset()
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/
Dfw.c383 u1b_tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in rtl92ee_firmware_selfreset()
384 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, (u1b_tmp & (~BIT(2)))); in rtl92ee_firmware_selfreset()
391 u1b_tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in rtl92ee_firmware_selfreset()
392 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, (u1b_tmp | BIT(2))); in rtl92ee_firmware_selfreset()
Dphy.c232 regval = rtl_read_word(rtlpriv, REG_SYS_FUNC_EN); in rtl92ee_phy_bb_config()
233 rtl_write_word(rtlpriv, REG_SYS_FUNC_EN, in rtl92ee_phy_bb_config()
237 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, in rtl92ee_phy_bb_config()
3036 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE3); in rtl92ee_phy_set_rf_on()
3038 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE2); in rtl92ee_phy_set_rf_on()
3039 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE3); in rtl92ee_phy_set_rf_on()
3050 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE2); in _rtl92ee_phy_set_rf_sleep()
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8192c/
Dfw_common.c31 tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in _rtl92c_enable_fw_download()
32 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, in _rtl92c_enable_fw_download()
411 u1b_tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in rtl92c_firmware_selfreset()
420 u1b_tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in rtl92c_firmware_selfreset()
Dphy_common.c1599 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE3); in rtl92ce_phy_set_rf_on()
1601 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE2); in rtl92ce_phy_set_rf_on()
1602 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE3); in rtl92ce_phy_set_rf_on()
1626 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE2); in _rtl92c_phy_set_rf_sleep()
1627 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE3); in _rtl92c_phy_set_rf_sleep()
1633 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE2); in _rtl92c_phy_set_rf_sleep()
/Linux-v5.4/drivers/net/wireless/realtek/rtw88/
Dmac.c86 value8 = rtw_read8(rtwdev, REG_SYS_FUNC_EN); in rtw_mac_pre_system_cfg()
88 rtw_write8(rtwdev, REG_SYS_FUNC_EN, value8); in rtw_mac_pre_system_cfg()
264 rtw_write8(rtwdev, REG_SYS_FUNC_EN + 1, sys_func_en); in rtw_mac_init_system_cfg()
342 rtw_write8_set(rtwdev, REG_SYS_FUNC_EN + 1, BIT_FEN_CPUEN); in wlan_cpu_enable()
345 rtw_write8_clr(rtwdev, REG_SYS_FUNC_EN + 1, BIT_FEN_CPUEN); in wlan_cpu_enable()
717 rtw_write8_set(rtwdev, REG_SYS_FUNC_EN + 1, BIT_FEN_CPUEN); in rtw_download_firmware()
/Linux-v5.4/drivers/staging/rtl8723bs/hal/
Dsdio_halinit.c779 reg_val = rtw_read8(padapter, REG_SYS_FUNC_EN); in rtl8723bs_hal_init()
781 rtw_write8(padapter, REG_SYS_FUNC_EN, reg_val); in rtl8723bs_hal_init()
787 reg_val = rtw_read8(padapter, REG_SYS_FUNC_EN + 1); in rtl8723bs_hal_init()
789 rtw_write8(padapter, REG_SYS_FUNC_EN + 1, reg_val); in rtl8723bs_hal_init()
790 reg_val = rtw_read8(padapter, REG_SYS_FUNC_EN + 1); in rtl8723bs_hal_init()
792 rtw_write8(padapter, REG_SYS_FUNC_EN + 1, reg_val); in rtl8723bs_hal_init()
1044 u1bTmp = rtw_read8(padapter, REG_SYS_FUNC_EN + 1); in CardDisableRTL8723BSdio()
1046 rtw_write8(padapter, REG_SYS_FUNC_EN + 1, u1bTmp); in CardDisableRTL8723BSdio()
Drtl8723b_phycfg.c529 RegVal = rtw_read16(Adapter, REG_SYS_FUNC_EN); in PHY_BBConfig8723B()
530 rtw_write16(Adapter, REG_SYS_FUNC_EN, (u16)(RegVal|BIT13|BIT0|BIT1)); in PHY_BBConfig8723B()
540 rtw_write8(Adapter, REG_SYS_FUNC_EN, FEN_PPLL|FEN_PCIEA|FEN_DIO_PCIE|FEN_BB_GLB_RSTn|FEN_BBRSTB); in PHY_BBConfig8723B()
Drtl8723b_hal_init.c22 tmp = rtw_read8(padapter, REG_SYS_FUNC_EN+1); in _FWDownloadEnable()
23 rtw_write8(padapter, REG_SYS_FUNC_EN+1, tmp|0x04); in _FWDownloadEnable()
203 cpu_rst = rtw_read8(padapter, REG_SYS_FUNC_EN+1); in _8051Reset8723()
205 rtw_write8(padapter, REG_SYS_FUNC_EN+1, cpu_rst); in _8051Reset8723()
213 cpu_rst = rtw_read8(padapter, REG_SYS_FUNC_EN+1); in _8051Reset8723()
215 rtw_write8(padapter, REG_SYS_FUNC_EN+1, cpu_rst); in _8051Reset8723()
329 u1bTmp = rtw_read8(padapter, REG_SYS_FUNC_EN+1); in rtl8723b_FirmwareSelfReset()
335 u1bTmp = rtw_read8(padapter, REG_SYS_FUNC_EN+1); in rtl8723b_FirmwareSelfReset()
342 u1bTmp = rtw_read8(padapter, REG_SYS_FUNC_EN+1); in rtl8723b_FirmwareSelfReset()
343 rtw_write8(padapter, REG_SYS_FUNC_EN+1, u1bTmp&(~BIT2)); in rtl8723b_FirmwareSelfReset()
[all …]
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/
Dhw.c1026 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, value8);/*0x16*/ in disable_rfafeandresetbb()
1028 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, value8); /*0x14*/ in disable_rfafeandresetbb()
1046 valu16 = rtl_read_word(rtlpriv, REG_SYS_FUNC_EN); in _resetdigitalprocedure1()
1047 rtl_write_word(rtlpriv, REG_SYS_FUNC_EN, (valu16 & in _resetdigitalprocedure1()
1049 valu16 = rtl_read_word(rtlpriv, REG_SYS_FUNC_EN)&0x0FFF; in _resetdigitalprocedure1()
1050 rtl_write_word(rtlpriv, REG_SYS_FUNC_EN, (valu16 | in _resetdigitalprocedure1()
1052 valu16 = rtl_read_word(rtlpriv, REG_SYS_FUNC_EN); in _resetdigitalprocedure1()
1053 rtl_write_word(rtlpriv, REG_SYS_FUNC_EN, (valu16 | in _resetdigitalprocedure1()
1066 REG_SYS_FUNC_EN))) { in _resetdigitalprocedure1()
1073 REG_SYS_FUNC_EN + 1, in _resetdigitalprocedure1()
[all …]
Dphy.c99 regval = rtl_read_word(rtlpriv, REG_SYS_FUNC_EN); in rtl92cu_phy_bb_config()
100 rtl_write_word(rtlpriv, REG_SYS_FUNC_EN, regval | BIT(13) | in rtl92cu_phy_bb_config()
105 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, FEN_USBA | FEN_USBD | in rtl92cu_phy_bb_config()
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Dphy.c158 tmpu1b = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN); in rtl8723e_phy_bb_config()
159 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, in rtl8723e_phy_bb_config()
1528 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE3); in rtl8723e_phy_set_rf_on()
1530 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE2); in rtl8723e_phy_set_rf_on()
1531 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE3); in rtl8723e_phy_set_rf_on()
1554 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE2); in _rtl8723e_phy_set_rf_sleep()
1555 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE3); in _rtl8723e_phy_set_rf_sleep()
1561 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE2); in _rtl8723e_phy_set_rf_sleep()
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/
Dfw.c446 u1b_tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN+1); in rtl8821ae_firmware_selfreset()
447 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN+1, (u1b_tmp & (~BIT(2)))); in rtl8821ae_firmware_selfreset()
458 u1b_tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN+1); in rtl8821ae_firmware_selfreset()
459 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN+1, (u1b_tmp | BIT(2))); in rtl8821ae_firmware_selfreset()
Dhw.c1285 tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in _rtl8821ae_reset_pcie_interface_dma()
1287 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, tmp); in _rtl8821ae_reset_pcie_interface_dma()
1290 tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN + 1); in _rtl8821ae_reset_pcie_interface_dma()
1292 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN + 1, tmp); in _rtl8821ae_reset_pcie_interface_dma()
1549 tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN); in _rtl8821ae_dynamic_rqpn()
1551 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, tmp); in _rtl8821ae_dynamic_rqpn()
1583 tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN); in _rtl8821ae_dynamic_rqpn()
1584 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, (tmp | BIT(0))); in _rtl8821ae_dynamic_rqpn()
1815 u1b_tmp = rtl_read_byte(rtlpriv, REG_SYS_FUNC_EN+1); in _rtl8821ae_poweroff_adapter()
1816 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN+1, (u1b_tmp & (~BIT(2)))); in _rtl8821ae_poweroff_adapter()
/Linux-v5.4/drivers/net/wireless/realtek/rtlwifi/rtl8723be/
Dphy.c106 regval = rtl_read_word(rtlpriv, REG_SYS_FUNC_EN); in rtl8723be_phy_bb_config()
107 rtl_write_word(rtlpriv, REG_SYS_FUNC_EN, in rtl8723be_phy_bb_config()
111 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, in rtl8723be_phy_bb_config()
2496 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE3); in rtl8723be_phy_set_rf_on()
2497 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE2); in rtl8723be_phy_set_rf_on()
2498 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE3); in rtl8723be_phy_set_rf_on()
2508 rtl_write_byte(rtlpriv, REG_SYS_FUNC_EN, 0xE2); in _rtl8723be_phy_set_rf_sleep()

123