/linux-6.12.1/drivers/staging/rtl8723bs/hal/ |
D | sdio_halinit.c | 29 rtw_write8(padapter, REG_RSV_CTRL, 0x0); in CardEnable() 62 rtw_write8(padapter, REG_GPIO_INTM + 1, value8); in _InitPowerOn_8723BS() 65 rtw_write8(padapter, REG_GPIO_IO_SEL_2 + 1, value8); in _InitPowerOn_8723BS() 76 rtw_write8(padapter, REG_CR, 0x00); in _InitPowerOn_8723BS() 108 rtw_write8(padapter, REG_PAD_CTRL1_8723B, value8); in _InitPowerOn_8723BS() 157 rtw_write8(padapter, REG_RQPN_NPQ, value8); in _InitQueueReservedPage() 182 rtw_write8(padapter, REG_TXPKTBUF_BCNQ_BDNY_8723B, txpktbuf_bndy); in _InitTxBufferBoundary() 183 rtw_write8(padapter, REG_TXPKTBUF_MGQ_BDNY_8723B, txpktbuf_bndy); in _InitTxBufferBoundary() 184 rtw_write8(padapter, REG_TXPKTBUF_WMAC_LBK_BF_HD_8723B, txpktbuf_bndy); in _InitTxBufferBoundary() 185 rtw_write8(padapter, REG_TRXFF_BNDY, txpktbuf_bndy); in _InitTxBufferBoundary() [all …]
|
D | rtl8723b_hal_init.c | 21 rtw_write8(padapter, REG_SYS_FUNC_EN+1, tmp|0x04); in _FWDownloadEnable() 24 rtw_write8(padapter, REG_MCUFWDL, tmp|0x01); in _FWDownloadEnable() 30 rtw_write8(padapter, REG_MCUFWDL, tmp|0x01); in _FWDownloadEnable() 36 rtw_write8(padapter, REG_MCUFWDL+2, tmp&0xf7); in _FWDownloadEnable() 40 rtw_write8(padapter, REG_MCUFWDL, tmp&0xfe); in _FWDownloadEnable() 85 ret = rtw_write8(padapter, (FW_8723B_START_ADDRESS + offset + i), *(bufferPtr + offset + i)); in _BlockWrite() 108 rtw_write8(padapter, REG_MCUFWDL+2, value8); in _PageWrite() 161 rtw_write8(padapter, REG_RSV_CTRL+1, io_rst); in _8051Reset8723() 165 rtw_write8(padapter, REG_SYS_FUNC_EN+1, cpu_rst); in _8051Reset8723() 171 rtw_write8(padapter, REG_RSV_CTRL+1, io_rst); in _8051Reset8723() [all …]
|
D | HalPhyRf_8723B.c | 125 rtw_write8(pDM_Odm->Adapter, 0xa22, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][0]); in setCCKFilterCoefficient() 126 rtw_write8(pDM_Odm->Adapter, 0xa23, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][1]); in setCCKFilterCoefficient() 127 rtw_write8(pDM_Odm->Adapter, 0xa24, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][2]); in setCCKFilterCoefficient() 128 rtw_write8(pDM_Odm->Adapter, 0xa25, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][3]); in setCCKFilterCoefficient() 129 rtw_write8(pDM_Odm->Adapter, 0xa26, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][4]); in setCCKFilterCoefficient() 130 rtw_write8(pDM_Odm->Adapter, 0xa27, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][5]); in setCCKFilterCoefficient() 131 rtw_write8(pDM_Odm->Adapter, 0xa28, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][6]); in setCCKFilterCoefficient() 132 rtw_write8(pDM_Odm->Adapter, 0xa29, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][7]); in setCCKFilterCoefficient() 134 rtw_write8(pDM_Odm->Adapter, 0xa22, CCKSwingTable_Ch14_New[CCKSwingIndex][0]); in setCCKFilterCoefficient() 135 rtw_write8(pDM_Odm->Adapter, 0xa23, CCKSwingTable_Ch14_New[CCKSwingIndex][1]); in setCCKFilterCoefficient() [all …]
|
D | rtl8723b_cmd.c | 651 rtw_write8(padapter, REG_CR+1, v8); in rtl8723b_download_rsvd_page() 659 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_rsvd_page() 666 rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, pHalData->RegFwHwTxQCtrl & ~BIT(6)); in rtl8723b_download_rsvd_page() 699 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_rsvd_page() 707 rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, pHalData->RegFwHwTxQCtrl | BIT(6)); in rtl8723b_download_rsvd_page() 714 rtw_write8(padapter, REG_CR+1, v8); in rtl8723b_download_rsvd_page() 918 rtw_write8(padapter, REG_CR+1, val8); in rtl8723b_download_BTCoex_AP_mode_rsvd_page() 926 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_BTCoex_AP_mode_rsvd_page() 934 rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, pHalData->RegFwHwTxQCtrl); in rtl8723b_download_BTCoex_AP_mode_rsvd_page() 963 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_BTCoex_AP_mode_rsvd_page() [all …]
|
D | rtl8723b_phycfg.c | 397 rtw_write8(Adapter, REG_RF_CTRL, RF_EN|RF_RSTB|RF_SDMRSTB); in PHY_BBConfig8723B() 403 rtw_write8(Adapter, REG_SYS_FUNC_EN, FEN_PPLL|FEN_PCIEA|FEN_DIO_PCIE|FEN_BB_GLB_RSTn|FEN_BBRSTB); in PHY_BBConfig8723B() 405 rtw_write8(Adapter, REG_AFE_XTAL_CTRL+1, 0x80); in PHY_BBConfig8723B() 630 rtw_write8(Adapter, REG_DATA_SC_8723B, SubChnlNum); in phy_PostSetBwMode8723B()
|
D | HalPwrSeqCmd.c | 95 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 | 611 rtw_write8(padapter, RegAddr, Data); in halbtcoutsrc_Write1Byte() 639 rtw_write8(padapter, regAddr, data1b); in halbtcoutsrc_BitMaskWrite1Byte() 672 rtw_write8(Adapter, SDIO_LOCAL_BASE | RegAddr, Data); in halbtcoutsrc_WriteLocalReg1Byte() 674 rtw_write8(Adapter, RegAddr, Data); in halbtcoutsrc_WriteLocalReg1Byte()
|
D | hal_com.c | 491 rtw_write8(adapter, REG_C2HEVT_CLEAR, C2H_EVT_HOST_CLOSE); in c2h_evt_clear() 611 rtw_write8(adapter, REG_SECCFG, reg_scr); in SetHwReg() 887 rtw_write8(adapter, REG_RXERR_RPT+3, rtw_read8(adapter, REG_RXERR_RPT+3)|0xf0); in rtw_hal_check_rxfifo_full()
|
/linux-6.12.1/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 | rtw8723x.c | 46 rtw_write8(rtwdev, REG_CTX, val_ctx & ~BIT_MASK_CTX_TYPE); in __rtw8723x_lck() 48 rtw_write8(rtwdev, REG_TXPAUSE, 0xFF); in __rtw8723x_lck() 61 rtw_write8(rtwdev, REG_CTX, val_ctx); in __rtw8723x_lck() 63 rtw_write8(rtwdev, REG_TXPAUSE, 0x00); in __rtw8723x_lck() 297 rtw_write8(rtwdev, REG_FWHW_TXQ_CTRL + 1, WLAN_TXQ_RPT_EN); in __rtw8723x_mac_init() 308 rtw_write8(rtwdev, REG_MISC_CTRL, BIT_DIS_SECOND_CCA); in __rtw8723x_mac_init() 309 rtw_write8(rtwdev, REG_2ND_CCA_CTRL, 0); in __rtw8723x_mac_init() 325 rtw_write8(rtwdev, REG_LDO_EFUSE_CTRL + 3, ldo_pwr); in __rtw8723x_cfg_ldo25() 368 rtw_write8(rtwdev, REG_EFUSE_ACCESS, EFUSE_ACCESS_ON); in __rtw8723x_efuse_grant() 373 rtw_write8(rtwdev, REG_EFUSE_ACCESS, EFUSE_ACCESS_OFF); in __rtw8723x_efuse_grant() [all …]
|
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 | hci.h | 109 static inline void rtw_write8(struct rtw_dev *rtwdev, u32 addr, u8 val) in rtw_write8() function 129 rtw_write8(rtwdev, addr, val | bit); in rtw_write8_set() 153 rtw_write8(rtwdev, addr, val & ~bit); in rtw_write8_clr() 258 rtw_write8(rtwdev, addr, set); in rtw_write8_mask()
|
D | rtw8703b.c | 656 rtw_write8(rtwdev, REG_AFE_CTRL1 + 1, 0x80); in rtw8703b_phy_set_param() 685 rtw_write8(rtwdev, REG_ACKTO, 0x40); in rtw8703b_phy_set_param() 690 rtw_write8(rtwdev, REG_RXDMA_MODE, in rtw8703b_phy_set_param() 696 rtw_write8(rtwdev, REG_BCN_CTRL, in rtw8703b_phy_set_param() 698 rtw_write8(rtwdev, REG_TBTT_PROHIBIT, TBTT_PROHIBIT_SETUP_TIME); in rtw8703b_phy_set_param() 699 rtw_write8(rtwdev, REG_TBTT_PROHIBIT + 1, in rtw8703b_phy_set_param() 701 rtw_write8(rtwdev, REG_TBTT_PROHIBIT + 2, in rtw8703b_phy_set_param() 707 rtw_write8(rtwdev, REG_RX_PKT_LIMIT, WLAN_RX_PKT_LIMIT); in rtw8703b_phy_set_param() 708 rtw_write8(rtwdev, REG_MAX_AGGR_NUM, WLAN_MAX_AGG_NR); in rtw8703b_phy_set_param() 709 rtw_write8(rtwdev, REG_PIFS, WLAN_PIFS_VAL); in rtw8703b_phy_set_param() [all …]
|
D | rtw8822c.c | 387 rtw_write8(rtwdev, 0x1bcc, 0x3f); in rtw8822c_dac_bb_setting() 389 rtw_write8(rtwdev, 0x1bcc, 0x3f); in rtw8822c_dac_bb_setting() 530 rtw_write8(rtwdev, 0x1bcc, 0x03f); in rtw8822c_dac_cal_step2() 995 rtw_write8(rtwdev, 0x1bcc, 0x0); in rtw8822c_rf_dac_cal() 997 rtw_write8(rtwdev, 0x1bcc, 0x0); in rtw8822c_rf_dac_cal() 1237 rtw_write8(rtwdev, REG_TXPAUSE, BIT_AC_QUEUE); in rtw8822c_txgapk_tx_pause() 2014 rtw_write8(rtwdev, REG_FWHW_TXQ_CTRL, value8); in rtw8822c_mac_init() 2015 rtw_write8(rtwdev, REG_FWHW_TXQ_CTRL + 1, WLAN_TXQ_RPT_EN); in rtw8822c_mac_init() 2036 rtw_write8(rtwdev, REG_AMPDU_MAX_TIME_V1, WLAN_AMPDU_MAX_TIME); in rtw8822c_mac_init() 2039 rtw_write8(rtwdev, REG_PRECNT_CTRL, (u8)(pre_txcnt & 0xFF)); in rtw8822c_mac_init() [all …]
|
D | rtw8822b.c | 246 rtw_write8(rtwdev, REG_AMPDU_MAX_TIME_V1, WLAN_AMPDU_MAX_TIME); in rtw8822b_mac_init() 254 rtw_write8(rtwdev, REG_FAST_EDCA_VOVI_SETTING, FAST_EDCA_VO_TH); in rtw8822b_mac_init() 255 rtw_write8(rtwdev, REG_FAST_EDCA_VOVI_SETTING + 2, FAST_EDCA_VI_TH); in rtw8822b_mac_init() 256 rtw_write8(rtwdev, REG_FAST_EDCA_BEBK_SETTING, FAST_EDCA_BE_TH); in rtw8822b_mac_init() 257 rtw_write8(rtwdev, REG_FAST_EDCA_BEBK_SETTING + 2, FAST_EDCA_BK_TH); in rtw8822b_mac_init() 261 rtw_write8(rtwdev, REG_SLOT, WLAN_SLOT_TIME); in rtw8822b_mac_init() 262 rtw_write8(rtwdev, REG_PIFS, WLAN_PIFS_TIME); in rtw8822b_mac_init() 272 rtw_write8(rtwdev, REG_DRVERLYINT, WLAN_DRV_EARLY_INT); in rtw8822b_mac_init() 273 rtw_write8(rtwdev, REG_BCNDMATIM, WLAN_BCN_DMA_TIME); in rtw8822b_mac_init() 279 rtw_write8(rtwdev, REG_RX_PKT_LIMIT, WLAN_RXPKT_MAX_SZ_512); in rtw8822b_mac_init() [all …]
|
D | rtw8723d.c | 95 rtw_write8(rtwdev, REG_AFE_CTRL1 + 1, 0x80); in rtw8723d_phy_set_param() 115 rtw_write8(rtwdev, REG_SLOT, WLAN_SLOT_TIME); in rtw8723d_phy_set_param() 116 rtw_write8(rtwdev, REG_FWHW_TXQ_CTRL + 1, WLAN_TXQ_RPT_EN); in rtw8723d_phy_set_param() 119 rtw_write8(rtwdev, REG_ATIMWND, 0x2); in rtw8723d_phy_set_param() 120 rtw_write8(rtwdev, REG_BCN_CTRL, in rtw8723d_phy_set_param() 125 rtw_write8(rtwdev, REG_TBTT_PROHIBIT, val32); in rtw8723d_phy_set_param() 126 rtw_write8(rtwdev, REG_PIFS, WLAN_PIFS_VAL); in rtw8723d_phy_set_param() 127 rtw_write8(rtwdev, REG_AGGR_BREAK_TIME, WLAN_AGG_BRK_TIME); in rtw8723d_phy_set_param() 132 rtw_write8(rtwdev, REG_SINGLE_AMPDU_CTRL, BIT_EN_SINGLE_APMDU); in rtw8723d_phy_set_param() 133 rtw_write8(rtwdev, REG_RX_PKT_LIMIT, WLAN_RX_PKT_LIMIT); in rtw8723d_phy_set_param() [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() 889 rtw_write8(rtwdev, RTK_PCI_TXBD_BCN_WORK, reg_bcn_work); in rtw_pci_write_data_rsvd_page() 1244 rtw_write8(rtwdev, REG_DBI_WDATA_V1 + remainder, data); in rtw_dbi_write8() 1246 rtw_write8(rtwdev, REG_DBI_FLAG_V1 + 2, BIT_DBI_WFLAG >> 16); in rtw_dbi_write8() 1266 rtw_write8(rtwdev, REG_DBI_FLAG_V1 + 2, BIT_DBI_RFLAG >> 16); in rtw_dbi_read8() 1293 rtw_write8(rtwdev, REG_PCIE_MIX_CFG, addr & BITS_MDIO_ADDR_MASK); in rtw_mdio_write() 1294 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 | 640 rtw_write8(rtwdev, REG_MCU_TST_CFG, 0); in __fw_recovery_work() 715 rtw_write8(rtwdev, REG_DTIM_COUNTER_ROOT, dtim_period - 1); in rtw_set_dtim_period() 909 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() 2316 rtw_write8(rtwdev, reg1->addr + i, v2); in rtw_swap_reg_nbytes() 2317 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()
|
/linux-6.12.1/drivers/staging/rtl8723bs/core/ |
D | rtw_efuse.c | 208 rtw_write8(Adapter, EFUSE_CTRL + 1, temp); in EFUSE_Read1Byte() 212 rtw_write8(Adapter, EFUSE_CTRL + 2, temp); in EFUSE_Read1Byte() 217 rtw_write8(Adapter, EFUSE_CTRL + 3, temp); in EFUSE_Read1Byte() 255 rtw_write8(padapter, EFUSE_CTRL + 1, (u8)(addr & 0xff)); in efuse_OneByteRead() 256 rtw_write8(padapter, EFUSE_CTRL + 2, ((u8)((addr >> 8) & 0x03)) | in efuse_OneByteRead() 262 rtw_write8(padapter, EFUSE_CTRL + 3, (readbyte & 0x7f)); in efuse_OneByteRead()
|
D | rtw_io.c | 67 int rtw_write8(struct adapter *adapter, u32 addr, u8 val) in rtw_write8() function
|