Home
last modified time | relevance | path

Searched refs:rtw_write8 (Results 1 – 25 of 32) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/hal/
Dsdio_halinit.c32 rtw_write8(padapter, REG_RSV_CTRL, 0x0); in CardEnable()
66rtw_write8(padapter, REG_GPIO_PIN_CTRL + 3, rtw_read8(padapter, REG_GPIO_PIN_CTRL + 3) & ~BIT(inde… in HalSetOutPutGPIO()
71rtw_write8(padapter, REG_GPIO_PIN_CTRL + 2, rtw_read8(padapter, REG_GPIO_PIN_CTRL + 2) | BIT(index… in HalSetOutPutGPIO()
75rtw_write8(padapter, REG_GPIO_PIN_CTRL + 1, rtw_read8(padapter, REG_GPIO_PIN_CTRL + 1) | BIT(index… in HalSetOutPutGPIO()
77rtw_write8(padapter, REG_GPIO_PIN_CTRL + 1, rtw_read8(padapter, REG_GPIO_PIN_CTRL + 1) & ~BIT(inde… in HalSetOutPutGPIO()
86rtw_write8(padapter, REG_GPIO_PIN_CTRL_2 + 3, rtw_read8(padapter, REG_GPIO_PIN_CTRL_2 + 3) & ~BIT(… in HalSetOutPutGPIO()
91rtw_write8(padapter, REG_GPIO_PIN_CTRL_2 + 2, rtw_read8(padapter, REG_GPIO_PIN_CTRL_2 + 2) | BIT(i… in HalSetOutPutGPIO()
95rtw_write8(padapter, REG_GPIO_PIN_CTRL_2 + 1, rtw_read8(padapter, REG_GPIO_PIN_CTRL_2 + 1) | BIT(i… in HalSetOutPutGPIO()
97rtw_write8(padapter, REG_GPIO_PIN_CTRL_2 + 1, rtw_read8(padapter, REG_GPIO_PIN_CTRL_2 + 1) & ~BIT(… in HalSetOutPutGPIO()
117 rtw_write8(padapter, REG_PAD_CTRL1_8723B + 2, value8); in _InitPowerOn_8723BS()
[all …]
Drtl8723b_hal_init.c23 rtw_write8(padapter, REG_SYS_FUNC_EN+1, tmp|0x04); in _FWDownloadEnable()
26 rtw_write8(padapter, REG_MCUFWDL, tmp|0x01); in _FWDownloadEnable()
32 rtw_write8(padapter, REG_MCUFWDL, tmp|0x01); in _FWDownloadEnable()
41 rtw_write8(padapter, REG_MCUFWDL+2, tmp&0xf7); in _FWDownloadEnable()
45 rtw_write8(padapter, REG_MCUFWDL, tmp&0xfe); in _FWDownloadEnable()
123 ret = rtw_write8(padapter, (FW_8723B_START_ADDRESS + offset + i), *(bufferPtr + offset + i)); in _BlockWrite()
146 rtw_write8(padapter, REG_MCUFWDL+2, value8); in _PageWrite()
201 rtw_write8(padapter, REG_RSV_CTRL+1, io_rst); in _8051Reset8723()
205 rtw_write8(padapter, REG_SYS_FUNC_EN+1, cpu_rst); in _8051Reset8723()
211 rtw_write8(padapter, REG_RSV_CTRL+1, io_rst); in _8051Reset8723()
[all …]
DHalPhyRf_8723B.c141 rtw_write8(pDM_Odm->Adapter, 0xa22, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][0]); in setCCKFilterCoefficient()
142 rtw_write8(pDM_Odm->Adapter, 0xa23, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][1]); in setCCKFilterCoefficient()
143 rtw_write8(pDM_Odm->Adapter, 0xa24, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][2]); in setCCKFilterCoefficient()
144 rtw_write8(pDM_Odm->Adapter, 0xa25, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][3]); in setCCKFilterCoefficient()
145 rtw_write8(pDM_Odm->Adapter, 0xa26, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][4]); in setCCKFilterCoefficient()
146 rtw_write8(pDM_Odm->Adapter, 0xa27, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][5]); in setCCKFilterCoefficient()
147 rtw_write8(pDM_Odm->Adapter, 0xa28, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][6]); in setCCKFilterCoefficient()
148 rtw_write8(pDM_Odm->Adapter, 0xa29, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][7]); in setCCKFilterCoefficient()
150 rtw_write8(pDM_Odm->Adapter, 0xa22, CCKSwingTable_Ch14_New[CCKSwingIndex][0]); in setCCKFilterCoefficient()
151 rtw_write8(pDM_Odm->Adapter, 0xa23, CCKSwingTable_Ch14_New[CCKSwingIndex][1]); in setCCKFilterCoefficient()
[all …]
Drtl8723b_cmd.c1949 rtw_write8(padapter, REG_CR+1, v8); in rtl8723b_download_rsvd_page()
1957 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_rsvd_page()
1964 rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, pHalData->RegFwHwTxQCtrl & ~BIT(6)); in rtl8723b_download_rsvd_page()
2009 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_rsvd_page()
2017 rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, pHalData->RegFwHwTxQCtrl | BIT(6)); in rtl8723b_download_rsvd_page()
2024 rtw_write8(padapter, REG_CR+1, v8); in rtl8723b_download_rsvd_page()
2254 rtw_write8(padapter, REG_CR+1, val8); in rtl8723b_download_BTCoex_AP_mode_rsvd_page()
2262 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_BTCoex_AP_mode_rsvd_page()
2270 rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, pHalData->RegFwHwTxQCtrl); in rtl8723b_download_BTCoex_AP_mode_rsvd_page()
2308 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_BTCoex_AP_mode_rsvd_page()
[all …]
Drtl8723b_phycfg.c475 rtw_write8(Adapter, REG_RF_CTRL, RF_EN|RF_RSTB|RF_SDMRSTB); in PHY_BBConfig8723B()
481 rtw_write8(Adapter, REG_SYS_FUNC_EN, FEN_PPLL|FEN_PCIEA|FEN_DIO_PCIE|FEN_BB_GLB_RSTn|FEN_BBRSTB); in PHY_BBConfig8723B()
483 rtw_write8(Adapter, REG_AFE_XTAL_CTRL+1, 0x80); in PHY_BBConfig8723B()
780 rtw_write8(Adapter, REG_DATA_SC_8723B, SubChnlNum); in phy_PostSetBwMode8723B()
DHalPwrSeqCmd.c122 rtw_write8(padapter, offset, value); in HalPwrSeqCmdParsing()
Dodm_RegConfig8723B.c136 rtw_write8(pDM_Odm->Adapter, Addr, Data); in odm_ConfigMAC_8723B()
Dhal_btcoex.c704 rtw_write8(padapter, RegAddr, Data); in halbtcoutsrc_Write1Byte()
732 rtw_write8(padapter, regAddr, data1b); in halbtcoutsrc_BitMaskWrite1Byte()
765 rtw_write8(Adapter, SDIO_LOCAL_BASE | RegAddr, Data); in halbtcoutsrc_WriteLocalReg1Byte()
767 rtw_write8(Adapter, RegAddr, Data); in halbtcoutsrc_WriteLocalReg1Byte()
Dhal_com.c893 rtw_write8(adapter, REG_C2HEVT_CLEAR, C2H_EVT_HOST_CLOSE); in c2h_evt_clear()
1037 rtw_write8(adapter, REG_SECCFG, reg_scr); in SetHwReg()
1556 rtw_write8(adapter, REG_RXERR_RPT+3, rtw_read8(adapter, REG_RXERR_RPT+3)|0xf0); in rtw_hal_check_rxfifo_full()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/
Dmac.c25 rtw_write8(rtwdev, REG_DATA_SC, in rtw_set_channel_mac()
50 rtw_write8(rtwdev, REG_USTIME_TSF, MAC_CLK_SPEED); in rtw_set_channel_mac()
51 rtw_write8(rtwdev, REG_USTIME_EDCA, MAC_CLK_SPEED); in rtw_set_channel_mac()
57 rtw_write8(rtwdev, REG_CCK_CHECK, value8); in rtw_set_channel_mac()
66 rtw_write8(rtwdev, REG_RSV_CTRL, 0); in rtw_mac_pre_system_cfg()
70 rtw_write8(rtwdev, REG_LDO_SWR_CTRL, LDO_SEL); in rtw_mac_pre_system_cfg()
72 rtw_write8(rtwdev, REG_LDO_SWR_CTRL, SPS_SEL); in rtw_mac_pre_system_cfg()
102 rtw_write8(rtwdev, REG_SYS_FUNC_EN, value8); in rtw_mac_pre_system_cfg()
106 rtw_write8(rtwdev, REG_RF_CTRL, value8); in rtw_mac_pre_system_cfg()
146 rtw_write8(rtwdev, REG_SYS_PW_CTRL, value & ~BIT_PFM_WOWL); in rtw_pwr_cmd_polling()
[all …]
Dbf.c114 rtw_write8(rtwdev, REG_ASSOCIATED_BFMER0_INFO + i, addr[i]); in rtw_bf_init_bfer_entry_mu()
133 rtw_write8(rtwdev, REG_SND_PTCL_CTRL, RTW_SND_CTRL_SOUNDING); in rtw_bf_cfg_sounding()
134 rtw_write8(rtwdev, REG_SND_PTCL_CTRL + 3, 0x26); in rtw_bf_cfg_sounding()
152 rtw_write8(rtwdev, REG_MU_TX_CTL, in rtw_bf_cfg_mu_bfee()
157 rtw_write8(rtwdev, REG_MU_TX_CTL + 1, mu_tbl_sel); in rtw_bf_cfg_mu_bfee()
163 rtw_write8(rtwdev, REG_MU_TX_CTL + 1, mu_tbl_sel | 1); in rtw_bf_cfg_mu_bfee()
175 rtw_write8(rtwdev, REG_MU_TX_CTL, 0); in rtw_bf_del_bfer_entry_mu()
180 rtw_write8(rtwdev, REG_SND_PTCL_CTRL, 0); in rtw_bf_del_sounding()
207 rtw_write8(rtwdev, REG_SND_PTCL_CTRL, RTW_SND_CTRL_SOUNDING); in rtw_bf_enable_bfee_su()
211 rtw_write8(rtwdev, addr_bfer_info + i, bfee->mac_addr[i]); in rtw_bf_enable_bfee_su()
[all …]
Drtw8821c.c118 rtw_write8(rtwdev, REG_SYS_FUNC_EN, val); in rtw8821c_phy_set_param()
122 rtw_write8(rtwdev, REG_SYS_FUNC_EN, val); in rtw8821c_phy_set_param()
124 rtw_write8(rtwdev, REG_SYS_FUNC_EN, val); in rtw8821c_phy_set_param()
126 rtw_write8(rtwdev, REG_SYS_FUNC_EN, val); in rtw8821c_phy_set_param()
128 rtw_write8(rtwdev, REG_RF_CTRL, in rtw8821c_phy_set_param()
131 rtw_write8(rtwdev, REG_WLRF1 + 3, in rtw8821c_phy_set_param()
165 rtw_write8(rtwdev, REG_AMPDU_MAX_TIME_V1, WLAN_AMPDU_MAX_TIME); in rtw8821c_mac_init()
168 rtw_write8(rtwdev, REG_PRECNT_CTRL, (u8)(pre_txcnt & 0xFF)); in rtw8821c_mac_init()
169 rtw_write8(rtwdev, REG_PRECNT_CTRL + 1, (u8)(pre_txcnt >> 8)); in rtw8821c_mac_init()
176 rtw_write8(rtwdev, REG_FAST_EDCA_VOVI_SETTING, FAST_EDCA_VO_TH); in rtw8821c_mac_init()
[all …]
Drtw8723d.c76 rtw_write8(rtwdev, REG_CTX, val_ctx & ~BIT_MASK_CTX_TYPE); in rtw8723d_lck()
78 rtw_write8(rtwdev, REG_TXPAUSE, 0xFF); in rtw8723d_lck()
91 rtw_write8(rtwdev, REG_CTX, val_ctx); in rtw8723d_lck()
93 rtw_write8(rtwdev, REG_TXPAUSE, 0x00); in rtw8723d_lck()
146 rtw_write8(rtwdev, REG_AFE_CTRL1 + 1, 0x80); in rtw8723d_phy_set_param()
166 rtw_write8(rtwdev, REG_SLOT, WLAN_SLOT_TIME); in rtw8723d_phy_set_param()
167 rtw_write8(rtwdev, REG_FWHW_TXQ_CTRL + 1, WLAN_TXQ_RPT_EN); in rtw8723d_phy_set_param()
170 rtw_write8(rtwdev, REG_ATIMWND, 0x2); in rtw8723d_phy_set_param()
171 rtw_write8(rtwdev, REG_BCN_CTRL, in rtw8723d_phy_set_param()
176 rtw_write8(rtwdev, REG_TBTT_PROHIBIT, val32); in rtw8723d_phy_set_param()
[all …]
Dhci.h101 static inline void rtw_write8(struct rtw_dev *rtwdev, u32 addr, u8 val) in rtw_write8() function
121 rtw_write8(rtwdev, addr, val | bit); in rtw_write8_set()
145 rtw_write8(rtwdev, addr, val & ~bit); in rtw_write8_clr()
253 rtw_write8(rtwdev, addr, set); in rtw_write8_mask()
Drtw8822c.c359 rtw_write8(rtwdev, 0x1bcc, 0x3f); in rtw8822c_dac_bb_setting()
361 rtw_write8(rtwdev, 0x1bcc, 0x3f); in rtw8822c_dac_bb_setting()
502 rtw_write8(rtwdev, 0x1bcc, 0x03f); in rtw8822c_dac_cal_step2()
967 rtw_write8(rtwdev, 0x1bcc, 0x0); in rtw8822c_rf_dac_cal()
969 rtw_write8(rtwdev, 0x1bcc, 0x0); in rtw8822c_rf_dac_cal()
1281 rtw_write8(rtwdev, REG_FWHW_TXQ_CTRL, value8); in rtw8822c_mac_init()
1282 rtw_write8(rtwdev, REG_FWHW_TXQ_CTRL + 1, WLAN_TXQ_RPT_EN); in rtw8822c_mac_init()
1303 rtw_write8(rtwdev, REG_AMPDU_MAX_TIME_V1, WLAN_AMPDU_MAX_TIME); in rtw8822c_mac_init()
1306 rtw_write8(rtwdev, REG_PRECNT_CTRL, (u8)(pre_txcnt & 0xFF)); in rtw8822c_mac_init()
1307 rtw_write8(rtwdev, REG_PRECNT_CTRL + 1, (u8)(pre_txcnt >> 8)); in rtw8822c_mac_init()
[all …]
Drtw8822b.c226 rtw_write8(rtwdev, REG_AMPDU_MAX_TIME_V1, WLAN_AMPDU_MAX_TIME); in rtw8822b_mac_init()
234 rtw_write8(rtwdev, REG_FAST_EDCA_VOVI_SETTING, FAST_EDCA_VO_TH); in rtw8822b_mac_init()
235 rtw_write8(rtwdev, REG_FAST_EDCA_VOVI_SETTING + 2, FAST_EDCA_VI_TH); in rtw8822b_mac_init()
236 rtw_write8(rtwdev, REG_FAST_EDCA_BEBK_SETTING, FAST_EDCA_BE_TH); in rtw8822b_mac_init()
237 rtw_write8(rtwdev, REG_FAST_EDCA_BEBK_SETTING + 2, FAST_EDCA_BK_TH); in rtw8822b_mac_init()
241 rtw_write8(rtwdev, REG_SLOT, WLAN_SLOT_TIME); in rtw8822b_mac_init()
242 rtw_write8(rtwdev, REG_PIFS, WLAN_PIFS_TIME); in rtw8822b_mac_init()
252 rtw_write8(rtwdev, REG_DRVERLYINT, WLAN_DRV_EARLY_INT); in rtw8822b_mac_init()
253 rtw_write8(rtwdev, REG_BCNDMATIM, WLAN_BCN_DMA_TIME); in rtw8822b_mac_init()
259 rtw_write8(rtwdev, REG_RX_PKT_LIMIT, WLAN_RXPKT_MAX_SZ_512); in rtw8822b_mac_init()
[all …]
Dwow.c256 rtw_write8(rtwdev, REG_TXPAUSE, 0xff); in rtw_wow_bb_stop()
265 rtw_write8(rtwdev, REG_TXPAUSE, rtw_wow->txpause); in rtw_wow_bb_start()
416 rtw_write8(rtwdev, REG_RSV_CTRL, BIT_WLOCK_1C_B6); in rtw_wow_avoid_reset_mac()
417 rtw_write8(rtwdev, REG_RSV_CTRL, in rtw_wow_avoid_reset_mac()
Dutil.c67 rtw_write8(rtwdev, reg, (u8)val); in rtw_restore_reg()
Dpci.c413 rtw_write8(rtwdev, RTK_PCI_CTRL + 3, tmp | 0xf7); in rtw_pci_reset_buf_desc()
819 rtw_write8(rtwdev, RTK_PCI_TXBD_BCN_WORK, reg_bcn_work); in rtw_pci_write_data_rsvd_page()
1138 rtw_write8(rtwdev, REG_DBI_WDATA_V1 + remainder, data); in rtw_dbi_write8()
1140 rtw_write8(rtwdev, REG_DBI_FLAG_V1 + 2, BIT_DBI_WFLAG >> 16); in rtw_dbi_write8()
1160 rtw_write8(rtwdev, REG_DBI_FLAG_V1 + 2, BIT_DBI_RFLAG >> 16); in rtw_dbi_read8()
1187 rtw_write8(rtwdev, REG_PCIE_MIX_CFG, addr & BITS_MDIO_ADDR_MASK); in rtw_mdio_write()
1188 rtw_write8(rtwdev, REG_PCIE_MIX_CFG + 3, page); in rtw_mdio_write()
Dfw.c254 rtw_write8(rtwdev, box_reg + idx, h2c[idx]); in rtw_fw_send_h2c_command()
256 rtw_write8(rtwdev, box_ex_reg + idx, h2c[idx + 4]); in rtw_fw_send_h2c_command()
1129 rtw_write8(rtwdev, REG_CR + 1, val); in rtw_fw_write_data_rsvd_page()
1134 rtw_write8(rtwdev, REG_FWHW_TXQ_CTRL + 2, val); in rtw_fw_write_data_rsvd_page()
1159 rtw_write8(rtwdev, REG_FWHW_TXQ_CTRL + 2, bckp[1]); in rtw_fw_write_data_rsvd_page()
1160 rtw_write8(rtwdev, REG_CR + 1, bckp[0]); in rtw_fw_write_data_rsvd_page()
Dps.c88 rtw_write8(rtwdev, rtwdev->hci.rpwm_addr, request); in rtw_power_mode_change()
Dmain.c365 rtw_write8(rtwdev, REG_MCU_TST_CFG, 0); in rtw_fw_dump_crash_log()
432 rtw_write8(rtwdev, REG_HRCV_MSG, 1); in rtw_fw_recovery_work()
627 rtw_write8(rtwdev, start + i, addr[i]); in rtw_vif_write_addr()
1412 rtw_write8(rtwdev, REG_C2HEVT, C2H_HW_FEATURE_DUMP); in rtw_chip_efuse_enable()
1453 rtw_write8(rtwdev, REG_C2HEVT, 0); in rtw_dump_hw_feature()
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/core/
Drtw_eeprom.c17 rtw_write8(padapter, EE_9346CR, (u8)*x); in up_clk()
28 rtw_write8(padapter, EE_9346CR, (u8)*x); in down_clk()
55 rtw_write8(padapter, EE_9346CR, (u8)x); in shift_out_bits()
66 rtw_write8(padapter, EE_9346CR, (u8)x); in shift_out_bits()
112 rtw_write8(padapter, EE_9346CR, x); in standby()
116 rtw_write8(padapter, EE_9346CR, x); in standby()
135 rtw_write8(padapter, EE_9346CR, (u8)x); in eeprom_clean()
172 rtw_write8(padapter, EE_9346CR, (unsigned char)x); in eeprom_read16()
Drtw_efuse.c228 rtw_write8(Adapter, EFUSE_CTRL+1, temp); in EFUSE_Read1Byte()
232 rtw_write8(Adapter, EFUSE_CTRL+2, temp); in EFUSE_Read1Byte()
237 rtw_write8(Adapter, EFUSE_CTRL+3, temp); in EFUSE_Read1Byte()
279 rtw_write8(padapter, EFUSE_CTRL+1, (u8)(addr&0xff)); in efuse_OneByteRead()
280 rtw_write8(padapter, EFUSE_CTRL+2, ((u8)((addr>>8) & 0x03)) | in efuse_OneByteRead()
286 rtw_write8(padapter, EFUSE_CTRL+3, (readbyte & 0x7f)); in efuse_OneByteRead()
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/include/
Drtw_io.h300 #define rtw_write8(adapter, addr, val) _rtw_write8((adapter), (addr), (val)) macro
351 rtw_write8(_a, _b, _c)

12