Home
last modified time | relevance | path

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

12

/Linux-v5.4/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.c137 rtw_write8(pDM_Odm->Adapter, 0xa22, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][0]); in setCCKFilterCoefficient()
138 rtw_write8(pDM_Odm->Adapter, 0xa23, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][1]); in setCCKFilterCoefficient()
139 rtw_write8(pDM_Odm->Adapter, 0xa24, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][2]); in setCCKFilterCoefficient()
140 rtw_write8(pDM_Odm->Adapter, 0xa25, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][3]); in setCCKFilterCoefficient()
141 rtw_write8(pDM_Odm->Adapter, 0xa26, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][4]); in setCCKFilterCoefficient()
142 rtw_write8(pDM_Odm->Adapter, 0xa27, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][5]); in setCCKFilterCoefficient()
143 rtw_write8(pDM_Odm->Adapter, 0xa28, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][6]); in setCCKFilterCoefficient()
144 rtw_write8(pDM_Odm->Adapter, 0xa29, CCKSwingTable_Ch1_Ch13_New[CCKSwingIndex][7]); in setCCKFilterCoefficient()
146 rtw_write8(pDM_Odm->Adapter, 0xa22, CCKSwingTable_Ch14_New[CCKSwingIndex][0]); in setCCKFilterCoefficient()
147 rtw_write8(pDM_Odm->Adapter, 0xa23, CCKSwingTable_Ch14_New[CCKSwingIndex][1]); in setCCKFilterCoefficient()
[all …]
Drtl8723b_cmd.c1941 rtw_write8(padapter, REG_CR+1, v8); in rtl8723b_download_rsvd_page()
1949 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_rsvd_page()
1956 rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, pHalData->RegFwHwTxQCtrl & ~BIT(6)); in rtl8723b_download_rsvd_page()
2001 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_rsvd_page()
2009 rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, pHalData->RegFwHwTxQCtrl | BIT(6)); in rtl8723b_download_rsvd_page()
2016 rtw_write8(padapter, REG_CR+1, v8); in rtl8723b_download_rsvd_page()
2256 rtw_write8(padapter, REG_CR+1, val8); in rtl8723b_download_BTCoex_AP_mode_rsvd_page()
2264 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_BTCoex_AP_mode_rsvd_page()
2272 rtw_write8(padapter, REG_FWHW_TXQ_CTRL+2, pHalData->RegFwHwTxQCtrl); in rtl8723b_download_BTCoex_AP_mode_rsvd_page()
2310 rtw_write8(padapter, REG_BCN_CTRL, val8); in rtl8723b_download_BTCoex_AP_mode_rsvd_page()
[all …]
DHalPwrSeqCmd.c122 rtw_write8(padapter, offset, value); in HalPwrSeqCmdParsing()
Drtl8723b_phycfg.c534 rtw_write8(Adapter, REG_RF_CTRL, RF_EN|RF_RSTB|RF_SDMRSTB); 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()
542 rtw_write8(Adapter, REG_AFE_XTAL_CTRL+1, 0x80); in PHY_BBConfig8723B()
839 rtw_write8(Adapter, REG_DATA_SC_8723B, SubChnlNum); in phy_PostSetBwMode8723B()
Dodm_RegConfig8723B.c136 rtw_write8(pDM_Odm->Adapter, Addr, Data); in odm_ConfigMAC_8723B()
Dhal_btcoex.c747 rtw_write8(padapter, RegAddr, Data); in halbtcoutsrc_Write1Byte()
775 rtw_write8(padapter, regAddr, data1b); in halbtcoutsrc_BitMaskWrite1Byte()
808 rtw_write8(Adapter, SDIO_LOCAL_BASE | RegAddr, Data); in halbtcoutsrc_WriteLocalReg1Byte()
810 rtw_write8(Adapter, RegAddr, Data); in halbtcoutsrc_WriteLocalReg1Byte()
Dhal_com.c894 rtw_write8(adapter, REG_C2HEVT_CLEAR, C2H_EVT_HOST_CLOSE); in c2h_evt_clear()
1041 rtw_write8(adapter, REG_SECCFG, reg_scr); in SetHwReg()
1560 rtw_write8(adapter, REG_RXERR_RPT+3, rtw_read8(adapter, REG_RXERR_RPT+3)|0xf0); in rtw_hal_check_rxfifo_full()
Dsdio_ops.c848 rtw_write8(adapter, REG_C2HEVT_CLEAR, C2H_EVT_HOST_CLOSE); in EnableInterrupt8723BSdio()
Dodm_DIG.c1204 rtw_write8(pDM_Odm->Adapter, ODM_REG(CCK_CCA, pDM_Odm), CurCCK_CCAThres); in ODM_Write_CCK_CCA_Thres()
/Linux-v5.4/drivers/net/wireless/realtek/rtw88/
Dmac.c23 rtw_write8(rtwdev, REG_DATA_SC, in rtw_set_channel_mac()
45 rtw_write8(rtwdev, REG_USTIME_TSF, MAC_CLK_SPEED); in rtw_set_channel_mac()
46 rtw_write8(rtwdev, REG_USTIME_EDCA, MAC_CLK_SPEED); in rtw_set_channel_mac()
52 rtw_write8(rtwdev, REG_CCK_CHECK, value8); in rtw_set_channel_mac()
60 rtw_write8(rtwdev, REG_RSV_CTRL, 0); in rtw_mac_pre_system_cfg()
88 rtw_write8(rtwdev, REG_SYS_FUNC_EN, value8); in rtw_mac_pre_system_cfg()
92 rtw_write8(rtwdev, REG_RF_CTRL, value8); in rtw_mac_pre_system_cfg()
125 rtw_write8(rtwdev, REG_SYS_PW_CTRL, value); in rtw_pwr_cmd_polling()
127 rtw_write8(rtwdev, REG_SYS_PW_CTRL, value); in rtw_pwr_cmd_polling()
161 rtw_write8(rtwdev, offset, value); in rtw_sub_pwr_seq_parser()
[all …]
Drtw8822c.c360 rtw_write8(rtwdev, 0x1bcc, 0x3f); in rtw8822c_dac_bb_setting()
362 rtw_write8(rtwdev, 0x1bcc, 0x3f); in rtw8822c_dac_bb_setting()
503 rtw_write8(rtwdev, 0x1bcc, 0x03f); in rtw8822c_dac_cal_step2()
968 rtw_write8(rtwdev, 0x1bcc, 0x0); in rtw8822c_rf_dac_cal()
970 rtw_write8(rtwdev, 0x1bcc, 0x0); in rtw8822c_rf_dac_cal()
1150 rtw_write8(rtwdev, REG_FWHW_TXQ_CTRL, value8); in rtw8822c_mac_init()
1151 rtw_write8(rtwdev, REG_FWHW_TXQ_CTRL + 1, WLAN_TXQ_RPT_EN); in rtw8822c_mac_init()
1172 rtw_write8(rtwdev, REG_AMPDU_MAX_TIME_V1, WLAN_AMPDU_MAX_TIME); in rtw8822c_mac_init()
1175 rtw_write8(rtwdev, REG_PRECNT_CTRL, (u8)(pre_txcnt & 0xFF)); in rtw8822c_mac_init()
1176 rtw_write8(rtwdev, REG_PRECNT_CTRL + 1, (u8)(pre_txcnt >> 8)); in rtw8822c_mac_init()
[all …]
Dhci.h77 static inline void rtw_write8(struct rtw_dev *rtwdev, u32 addr, u8 val) in rtw_write8() function
97 rtw_write8(rtwdev, addr, val | bit); in rtw_write8_set()
121 rtw_write8(rtwdev, addr, val & ~bit); in rtw_write8_clr()
203 rtw_write8(rtwdev, addr, set); in rtw_write8_mask()
Dfw.c136 rtw_write8(rtwdev, box_reg + idx, h2c[idx]); in rtw_fw_send_h2c_command()
138 rtw_write8(rtwdev, box_ex_reg + idx, h2c[idx + 4]); in rtw_fw_send_h2c_command()
565 rtw_write8(rtwdev, REG_CR + 1, val); in rtw_fw_write_data_rsvd_page()
570 rtw_write8(rtwdev, REG_FWHW_TXQ_CTRL + 2, val); in rtw_fw_write_data_rsvd_page()
587 rtw_write8(rtwdev, REG_FWHW_TXQ_CTRL + 2, bckp[1]); in rtw_fw_write_data_rsvd_page()
588 rtw_write8(rtwdev, REG_CR + 1, bckp[0]); in rtw_fw_write_data_rsvd_page()
745 rtw_write8(rtwdev, REG_RCR, rcr | BIT(3)); in rtw_dump_drv_rsvd_page()
764 rtw_write8(rtwdev, REG_RCR + 2, rcr); in rtw_dump_drv_rsvd_page()
Drtw8822b.c169 rtw_write8(rtwdev, REG_AMPDU_MAX_TIME_V1, WLAN_AMPDU_MAX_TIME); in rtw8822b_mac_init()
177 rtw_write8(rtwdev, REG_FAST_EDCA_VOVI_SETTING, FAST_EDCA_VO_TH); in rtw8822b_mac_init()
178 rtw_write8(rtwdev, REG_FAST_EDCA_VOVI_SETTING + 2, FAST_EDCA_VI_TH); in rtw8822b_mac_init()
179 rtw_write8(rtwdev, REG_FAST_EDCA_BEBK_SETTING, FAST_EDCA_BE_TH); in rtw8822b_mac_init()
180 rtw_write8(rtwdev, REG_FAST_EDCA_BEBK_SETTING + 2, FAST_EDCA_BK_TH); in rtw8822b_mac_init()
184 rtw_write8(rtwdev, REG_SLOT, WLAN_SLOT_TIME); in rtw8822b_mac_init()
185 rtw_write8(rtwdev, REG_PIFS, WLAN_PIFS_TIME); in rtw8822b_mac_init()
195 rtw_write8(rtwdev, REG_DRVERLYINT, WLAN_DRV_EARLY_INT); in rtw8822b_mac_init()
196 rtw_write8(rtwdev, REG_BCNDMATIM, WLAN_BCN_DMA_TIME); in rtw8822b_mac_init()
202 rtw_write8(rtwdev, REG_RX_PKT_LIMIT, WLAN_RXPKT_MAX_SZ_512); in rtw8822b_mac_init()
[all …]
Dutil.c60 rtw_write8(rtwdev, reg, (u8)val); in rtw_restore_reg()
Dpci.c396 rtw_write8(rtwdev, RTK_PCI_CTRL + 3, tmp | 0xf7); in rtw_pci_reset_buf_desc()
667 rtw_write8(rtwdev, RTK_PCI_TXBD_BCN_WORK, reg_bcn_work); in rtw_pci_xmit()
998 rtw_write8(rtwdev, REG_DBI_WDATA_V1 + remainder, data); in rtw_dbi_write8()
1000 rtw_write8(rtwdev, REG_DBI_FLAG_V1 + 2, 0x01); in rtw_dbi_write8()
1022 rtw_write8(rtwdev, REG_PCIE_MIX_CFG, addr & 0x1f); in rtw_mdio_write()
1023 rtw_write8(rtwdev, REG_PCIE_MIX_CFG + 3, page); in rtw_mdio_write()
Dmain.c328 rtw_write8(rtwdev, start + i, addr[i]); in rtw_vif_write_addr()
971 rtw_write8(rtwdev, REG_C2HEVT, C2H_HW_FEATURE_DUMP); in rtw_chip_efuse_enable()
1012 rtw_write8(rtwdev, REG_C2HEVT, 0); in rtw_dump_hw_feature()
Dcoex.c94 rtw_write8(rtwdev, REG_AMPDU_MAX_TIME_V1, 0x20); in rtw_coex_limited_tx()
96 rtw_write8(rtwdev, REG_AMPDU_MAX_TIME_V1, in rtw_coex_limited_tx()
2066 rtw_write8(rtwdev, 0xff1a, 0x0); in rtw_coex_power_on_setting()
Ddebug.c325 rtw_write8(rtwdev, addr, (u8)val); in rtw_debugfs_set_write_reg()
/Linux-v5.4/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.c231 rtw_write8(Adapter, EFUSE_CTRL+1, temp); in EFUSE_Read1Byte()
235 rtw_write8(Adapter, EFUSE_CTRL+2, temp); in EFUSE_Read1Byte()
240 rtw_write8(Adapter, EFUSE_CTRL+3, temp); in EFUSE_Read1Byte()
285 rtw_write8(padapter, EFUSE_CTRL+1, (u8)(addr&0xff)); in efuse_OneByteRead()
286 rtw_write8(padapter, EFUSE_CTRL+2, ((u8)((addr>>8) & 0x03)) | in efuse_OneByteRead()
292 rtw_write8(padapter, EFUSE_CTRL+3, (readbyte & 0x7f)); in efuse_OneByteRead()
Drtw_wlan_util.c2128rtw_write8(adapter, REG_GPIO_PIN_CTRL + 1, rtw_read8(adapter, REG_GPIO_PIN_CTRL + 1) | BIT(gpio_nu… in rtw_set_gpio_output_value()
2130rtw_write8(adapter, REG_GPIO_PIN_CTRL + 1, rtw_read8(adapter, REG_GPIO_PIN_CTRL + 1) & ~BIT(gpio_n… in rtw_set_gpio_output_value()
2160rtw_write8(adapter, REG_GPIO_PIN_CTRL + 2, rtw_read8(adapter, REG_GPIO_PIN_CTRL + 2) | BIT(gpio_nu… in rtw_config_gpio()
2162rtw_write8(adapter, REG_GPIO_PIN_CTRL + 2, rtw_read8(adapter, REG_GPIO_PIN_CTRL + 2) & ~BIT(gpio_n… in rtw_config_gpio()
/Linux-v5.4/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