/linux-6.6.21/drivers/staging/rtl8723bs/hal/ |
D | sdio_halinit.c | 30 rtw_write8(padapter, REG_RSV_CTRL, 0x0); in CardEnable() 63 rtw_write8(padapter, REG_GPIO_INTM + 1, value8); in _InitPowerOn_8723BS() 66 rtw_write8(padapter, REG_GPIO_IO_SEL_2 + 1, value8); in _InitPowerOn_8723BS() 77 rtw_write8(padapter, REG_CR, 0x00); in _InitPowerOn_8723BS() 109 rtw_write8(padapter, REG_PAD_CTRL1_8723B, value8); in _InitPowerOn_8723BS() 158 rtw_write8(padapter, REG_RQPN_NPQ, value8); in _InitQueueReservedPage() 183 rtw_write8(padapter, REG_TXPKTBUF_BCNQ_BDNY_8723B, txpktbuf_bndy); in _InitTxBufferBoundary() 184 rtw_write8(padapter, REG_TXPKTBUF_MGQ_BDNY_8723B, txpktbuf_bndy); in _InitTxBufferBoundary() 185 rtw_write8(padapter, REG_TXPKTBUF_WMAC_LBK_BF_HD_8723B, txpktbuf_bndy); in _InitTxBufferBoundary() 186 rtw_write8(padapter, REG_TRXFF_BNDY, txpktbuf_bndy); in _InitTxBufferBoundary() [all …]
|
D | rtl8723b_hal_init.c | 22 rtw_write8(padapter, REG_SYS_FUNC_EN+1, tmp|0x04); in _FWDownloadEnable() 25 rtw_write8(padapter, REG_MCUFWDL, tmp|0x01); in _FWDownloadEnable() 31 rtw_write8(padapter, REG_MCUFWDL, tmp|0x01); in _FWDownloadEnable() 37 rtw_write8(padapter, REG_MCUFWDL+2, tmp&0xf7); in _FWDownloadEnable() 41 rtw_write8(padapter, REG_MCUFWDL, tmp&0xfe); in _FWDownloadEnable() 86 ret = rtw_write8(padapter, (FW_8723B_START_ADDRESS + offset + i), *(bufferPtr + offset + i)); in _BlockWrite() 109 rtw_write8(padapter, REG_MCUFWDL+2, value8); in _PageWrite() 162 rtw_write8(padapter, REG_RSV_CTRL+1, io_rst); in _8051Reset8723() 166 rtw_write8(padapter, REG_SYS_FUNC_EN+1, cpu_rst); in _8051Reset8723() 172 rtw_write8(padapter, REG_RSV_CTRL+1, io_rst); in _8051Reset8723() [all …]
|
D | rtl8723b_cmd.c | 652 rtw_write8(padapter, REG_CR+1, v8); in rtl8723b_download_rsvd_page() 660 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_rsvd_page() 667 rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, pHalData->RegFwHwTxQCtrl & ~BIT(6)); in rtl8723b_download_rsvd_page() 700 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_rsvd_page() 708 rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, pHalData->RegFwHwTxQCtrl | BIT(6)); in rtl8723b_download_rsvd_page() 715 rtw_write8(padapter, REG_CR+1, v8); in rtl8723b_download_rsvd_page() 919 rtw_write8(padapter, REG_CR+1, val8); in rtl8723b_download_BTCoex_AP_mode_rsvd_page() 927 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_BTCoex_AP_mode_rsvd_page() 935 rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, pHalData->RegFwHwTxQCtrl); in rtl8723b_download_BTCoex_AP_mode_rsvd_page() 964 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_BTCoex_AP_mode_rsvd_page() [all …]
|
D | HalPhyRf_8723B.c | 126 rtw_write8(pDM_Odm->Adapter, 0xa22, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][0]); in setCCKFilterCoefficient() 127 rtw_write8(pDM_Odm->Adapter, 0xa23, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][1]); in setCCKFilterCoefficient() 128 rtw_write8(pDM_Odm->Adapter, 0xa24, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][2]); in setCCKFilterCoefficient() 129 rtw_write8(pDM_Odm->Adapter, 0xa25, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][3]); in setCCKFilterCoefficient() 130 rtw_write8(pDM_Odm->Adapter, 0xa26, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][4]); in setCCKFilterCoefficient() 131 rtw_write8(pDM_Odm->Adapter, 0xa27, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][5]); in setCCKFilterCoefficient() 132 rtw_write8(pDM_Odm->Adapter, 0xa28, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][6]); in setCCKFilterCoefficient() 133 rtw_write8(pDM_Odm->Adapter, 0xa29, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][7]); in setCCKFilterCoefficient() 135 rtw_write8(pDM_Odm->Adapter, 0xa22, CCKSwingTable_Ch14_New[CCKSwingIndex][0]); in setCCKFilterCoefficient() 136 rtw_write8(pDM_Odm->Adapter, 0xa23, CCKSwingTable_Ch14_New[CCKSwingIndex][1]); in setCCKFilterCoefficient() [all …]
|
D | rtl8723b_phycfg.c | 398 rtw_write8(Adapter, REG_RF_CTRL, RF_EN|RF_RSTB|RF_SDMRSTB); in PHY_BBConfig8723B() 404 rtw_write8(Adapter, REG_SYS_FUNC_EN, FEN_PPLL|FEN_PCIEA|FEN_DIO_PCIE|FEN_BB_GLB_RSTn|FEN_BBRSTB); in PHY_BBConfig8723B() 406 rtw_write8(Adapter, REG_AFE_XTAL_CTRL+1, 0x80); in PHY_BBConfig8723B() 631 rtw_write8(Adapter, REG_DATA_SC_8723B, SubChnlNum); in phy_PostSetBwMode8723B()
|
D | HalPwrSeqCmd.c | 96 rtw_write8(padapter, offset, value); in HalPwrSeqCmdParsing()
|
D | odm_RegConfig8723B.c | 103 rtw_write8(pDM_Odm->Adapter, Addr, Data); in odm_ConfigMAC_8723B()
|
D | hal_btcoex.c | 612 rtw_write8(padapter, RegAddr, Data); in halbtcoutsrc_Write1Byte() 640 rtw_write8(padapter, regAddr, data1b); in halbtcoutsrc_BitMaskWrite1Byte() 673 rtw_write8(Adapter, SDIO_LOCAL_BASE | RegAddr, Data); in halbtcoutsrc_WriteLocalReg1Byte() 675 rtw_write8(Adapter, RegAddr, Data); in halbtcoutsrc_WriteLocalReg1Byte()
|
D | hal_com.c | 492 rtw_write8(adapter, REG_C2HEVT_CLEAR, C2H_EVT_HOST_CLOSE); in c2h_evt_clear() 612 rtw_write8(adapter, REG_SECCFG, reg_scr); in SetHwReg() 888 rtw_write8(adapter, REG_RXERR_RPT+3, rtw_read8(adapter, REG_RXERR_RPT+3)|0xf0); in rtw_hal_check_rxfifo_full()
|
/linux-6.6.21/drivers/net/wireless/realtek/rtw88/ |
D | mac.c | 26 rtw_write8(rtwdev, REG_DATA_SC, in rtw_set_channel_mac() 51 rtw_write8(rtwdev, REG_USTIME_TSF, MAC_CLK_SPEED); in rtw_set_channel_mac() 52 rtw_write8(rtwdev, REG_USTIME_EDCA, MAC_CLK_SPEED); in rtw_set_channel_mac() 58 rtw_write8(rtwdev, REG_CCK_CHECK, value8); in rtw_set_channel_mac() 68 rtw_write8(rtwdev, REG_RSV_CTRL, 0); in rtw_mac_pre_system_cfg() 72 rtw_write8(rtwdev, REG_LDO_SWR_CTRL, LDO_SEL); in rtw_mac_pre_system_cfg() 74 rtw_write8(rtwdev, REG_LDO_SWR_CTRL, SPS_SEL); in rtw_mac_pre_system_cfg() 126 rtw_write8(rtwdev, REG_SYS_FUNC_EN, value8); in rtw_mac_pre_system_cfg() 130 rtw_write8(rtwdev, REG_RF_CTRL, value8); in rtw_mac_pre_system_cfg() 170 rtw_write8(rtwdev, REG_SYS_PW_CTRL, value & ~BIT_PFM_WOWL); in rtw_pwr_cmd_polling() [all …]
|
D | bf.c | 115 rtw_write8(rtwdev, REG_ASSOCIATED_BFMER0_INFO + i, addr[i]); in rtw_bf_init_bfer_entry_mu() 136 rtw_write8(rtwdev, REG_SND_PTCL_CTRL + 3, 0x26); in rtw_bf_cfg_sounding() 154 rtw_write8(rtwdev, REG_MU_TX_CTL, in rtw_bf_cfg_mu_bfee() 159 rtw_write8(rtwdev, REG_MU_TX_CTL + 1, mu_tbl_sel); in rtw_bf_cfg_mu_bfee() 165 rtw_write8(rtwdev, REG_MU_TX_CTL + 1, mu_tbl_sel | 1); in rtw_bf_cfg_mu_bfee() 177 rtw_write8(rtwdev, REG_MU_TX_CTL, 0); in rtw_bf_del_bfer_entry_mu() 214 rtw_write8(rtwdev, addr_bfer_info + i, bfee->mac_addr[i]); in rtw_bf_enable_bfee_su() 224 rtw_write8(rtwdev, REG_SND_PTCL_CTRL + 3, RTW_NDP_RX_STANDBY_TIME); in rtw_bf_enable_bfee_su() 367 rtw_write8(rtwdev, REG_WMAC_MU_BF_OPTION, tmp8); in rtw_bf_phy_init() 374 rtw_write8(rtwdev, REG_NDPA_OPT_CTRL, ndpa_rate); in rtw_bf_phy_init()
|
D | rtw8821c.c | 166 rtw_write8(rtwdev, REG_SYS_FUNC_EN, val); in rtw8821c_phy_set_param() 170 rtw_write8(rtwdev, REG_SYS_FUNC_EN, val); in rtw8821c_phy_set_param() 172 rtw_write8(rtwdev, REG_SYS_FUNC_EN, val); in rtw8821c_phy_set_param() 174 rtw_write8(rtwdev, REG_SYS_FUNC_EN, val); in rtw8821c_phy_set_param() 176 rtw_write8(rtwdev, REG_RF_CTRL, in rtw8821c_phy_set_param() 179 rtw_write8(rtwdev, REG_WLRF1 + 3, in rtw8821c_phy_set_param() 213 rtw_write8(rtwdev, REG_AMPDU_MAX_TIME_V1, WLAN_AMPDU_MAX_TIME); in rtw8821c_mac_init() 216 rtw_write8(rtwdev, REG_PRECNT_CTRL, (u8)(pre_txcnt & 0xFF)); in rtw8821c_mac_init() 217 rtw_write8(rtwdev, REG_PRECNT_CTRL + 1, (u8)(pre_txcnt >> 8)); in rtw8821c_mac_init() 224 rtw_write8(rtwdev, REG_FAST_EDCA_VOVI_SETTING, FAST_EDCA_VO_TH); in rtw8821c_mac_init() [all …]
|
D | rtw8723d.c | 76 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 …]
|
D | hci.h | 102 static inline void rtw_write8(struct rtw_dev *rtwdev, u32 addr, u8 val) in rtw_write8() function 122 rtw_write8(rtwdev, addr, val | bit); in rtw_write8_set() 146 rtw_write8(rtwdev, addr, val & ~bit); in rtw_write8_clr() 251 rtw_write8(rtwdev, addr, set); in rtw_write8_mask()
|
D | rtw8822c.c | 386 rtw_write8(rtwdev, 0x1bcc, 0x3f); in rtw8822c_dac_bb_setting() 388 rtw_write8(rtwdev, 0x1bcc, 0x3f); in rtw8822c_dac_bb_setting() 529 rtw_write8(rtwdev, 0x1bcc, 0x03f); in rtw8822c_dac_cal_step2() 994 rtw_write8(rtwdev, 0x1bcc, 0x0); in rtw8822c_rf_dac_cal() 996 rtw_write8(rtwdev, 0x1bcc, 0x0); in rtw8822c_rf_dac_cal() 1236 rtw_write8(rtwdev, REG_TXPAUSE, BIT_AC_QUEUE); in rtw8822c_txgapk_tx_pause() 2013 rtw_write8(rtwdev, REG_FWHW_TXQ_CTRL, value8); in rtw8822c_mac_init() 2014 rtw_write8(rtwdev, REG_FWHW_TXQ_CTRL + 1, WLAN_TXQ_RPT_EN); in rtw8822c_mac_init() 2035 rtw_write8(rtwdev, REG_AMPDU_MAX_TIME_V1, WLAN_AMPDU_MAX_TIME); in rtw8822c_mac_init() 2038 rtw_write8(rtwdev, REG_PRECNT_CTRL, (u8)(pre_txcnt & 0xFF)); in rtw8822c_mac_init() [all …]
|
D | rtw8822b.c | 245 rtw_write8(rtwdev, REG_AMPDU_MAX_TIME_V1, WLAN_AMPDU_MAX_TIME); in rtw8822b_mac_init() 253 rtw_write8(rtwdev, REG_FAST_EDCA_VOVI_SETTING, FAST_EDCA_VO_TH); in rtw8822b_mac_init() 254 rtw_write8(rtwdev, REG_FAST_EDCA_VOVI_SETTING + 2, FAST_EDCA_VI_TH); in rtw8822b_mac_init() 255 rtw_write8(rtwdev, REG_FAST_EDCA_BEBK_SETTING, FAST_EDCA_BE_TH); in rtw8822b_mac_init() 256 rtw_write8(rtwdev, REG_FAST_EDCA_BEBK_SETTING + 2, FAST_EDCA_BK_TH); in rtw8822b_mac_init() 260 rtw_write8(rtwdev, REG_SLOT, WLAN_SLOT_TIME); in rtw8822b_mac_init() 261 rtw_write8(rtwdev, REG_PIFS, WLAN_PIFS_TIME); in rtw8822b_mac_init() 271 rtw_write8(rtwdev, REG_DRVERLYINT, WLAN_DRV_EARLY_INT); in rtw8822b_mac_init() 272 rtw_write8(rtwdev, REG_BCNDMATIM, WLAN_BCN_DMA_TIME); in rtw8822b_mac_init() 278 rtw_write8(rtwdev, REG_RX_PKT_LIMIT, WLAN_RXPKT_MAX_SZ_512); in rtw8822b_mac_init() [all …]
|
D | wow.c | 284 rtw_write8(rtwdev, REG_TXPAUSE, 0xff); in rtw_wow_bb_stop() 293 rtw_write8(rtwdev, REG_TXPAUSE, rtw_wow->txpause); in rtw_wow_bb_start() 445 rtw_write8(rtwdev, REG_RSV_CTRL, BIT_WLOCK_1C_B6); in rtw_wow_avoid_reset_mac() 446 rtw_write8(rtwdev, REG_RSV_CTRL, in rtw_wow_avoid_reset_mac()
|
D | pci.c | 402 rtw_write8(rtwdev, RTK_PCI_CTRL + 3, tmp | 0xf7); in rtw_pci_reset_buf_desc() 888 rtw_write8(rtwdev, RTK_PCI_TXBD_BCN_WORK, reg_bcn_work); in rtw_pci_write_data_rsvd_page() 1242 rtw_write8(rtwdev, REG_DBI_WDATA_V1 + remainder, data); in rtw_dbi_write8() 1244 rtw_write8(rtwdev, REG_DBI_FLAG_V1 + 2, BIT_DBI_WFLAG >> 16); in rtw_dbi_write8() 1264 rtw_write8(rtwdev, REG_DBI_FLAG_V1 + 2, BIT_DBI_RFLAG >> 16); in rtw_dbi_read8() 1291 rtw_write8(rtwdev, REG_PCIE_MIX_CFG, addr & BITS_MDIO_ADDR_MASK); in rtw_mdio_write() 1292 rtw_write8(rtwdev, REG_PCIE_MIX_CFG + 3, page); in rtw_mdio_write()
|
D | util.c | 67 rtw_write8(rtwdev, reg, (u8)val); in rtw_restore_reg()
|
D | main.c | 641 rtw_write8(rtwdev, REG_MCU_TST_CFG, 0); in __fw_recovery_work() 716 rtw_write8(rtwdev, REG_DTIM_COUNTER_ROOT, dtim_period - 1); in rtw_set_dtim_period() 910 rtw_write8(rtwdev, start + i, addr[i]); in rtw_vif_write_addr() 1888 rtw_write8(rtwdev, REG_C2HEVT, C2H_HW_FEATURE_DUMP); in rtw_chip_efuse_enable() 1929 rtw_write8(rtwdev, REG_C2HEVT, 0); in rtw_dump_hw_feature() 2310 rtw_write8(rtwdev, reg1->addr + i, v2); in rtw_swap_reg_nbytes() 2311 rtw_write8(rtwdev, reg2->addr + i, v1); in rtw_swap_reg_nbytes()
|
D | ps.c | 90 rtw_write8(rtwdev, rtwdev->hci.rpwm_addr, request); in rtw_power_mode_change()
|
D | fw.c | 1389 rtw_write8(rtwdev, REG_CR + 1, val); in rtw_fw_write_data_rsvd_page() 1394 rtw_write8(rtwdev, REG_FWHW_TXQ_CTRL + 2, val); in rtw_fw_write_data_rsvd_page() 1419 rtw_write8(rtwdev, REG_FWHW_TXQ_CTRL + 2, bckp[1]); in rtw_fw_write_data_rsvd_page() 1420 rtw_write8(rtwdev, REG_CR + 1, bckp[0]); in rtw_fw_write_data_rsvd_page()
|
/linux-6.6.21/drivers/staging/rtl8723bs/core/ |
D | rtw_efuse.c | 209 rtw_write8(Adapter, EFUSE_CTRL+1, temp); in EFUSE_Read1Byte() 213 rtw_write8(Adapter, EFUSE_CTRL+2, temp); in EFUSE_Read1Byte() 218 rtw_write8(Adapter, EFUSE_CTRL+3, temp); in EFUSE_Read1Byte() 256 rtw_write8(padapter, EFUSE_CTRL+1, (u8)(addr&0xff)); in efuse_OneByteRead() 257 rtw_write8(padapter, EFUSE_CTRL+2, ((u8)((addr>>8) & 0x03)) | in efuse_OneByteRead() 263 rtw_write8(padapter, EFUSE_CTRL+3, (readbyte & 0x7f)); in efuse_OneByteRead()
|
D | rtw_io.c | 68 int rtw_write8(struct adapter *adapter, u32 addr, u8 val) in rtw_write8() function
|
/linux-6.6.21/drivers/staging/rtl8723bs/include/ |
D | rtw_io.h | 175 extern int rtw_write8(struct adapter *adapter, u32 addr, u8 val);
|