Home
last modified time | relevance | path

Searched refs:rtw_read32 (Results 1 – 25 of 40) sorted by relevance

12

/drivers/net/wireless/realtek/rtw88/
Dmac.c28 value32 = rtw_read32(rtwdev, REG_WMAC_TRXPTCL_CTL); in rtw_set_channel_mac()
46 value32 = rtw_read32(rtwdev, REG_AFE_CTRL1) & ~(BIT_MAC_CLK_SEL); in rtw_set_channel_mac()
69 if (rtw_read32(rtwdev, REG_SYS_CFG1) & BIT_LDO) in rtw_mac_pre_system_cfg()
87 value32 = rtw_read32(rtwdev, REG_PAD_CTRL1); in rtw_mac_pre_system_cfg()
91 value32 = rtw_read32(rtwdev, REG_LED_CFG); in rtw_mac_pre_system_cfg()
95 value32 = rtw_read32(rtwdev, REG_GPIO_MUXCFG); in rtw_mac_pre_system_cfg()
108 value32 = rtw_read32(rtwdev, REG_WLRF1); in rtw_mac_pre_system_cfg()
287 value = rtw_read32(rtwdev, REG_CPU_DMEM_CON); in __rtw_mac_init_system_cfg()
296 tmp = rtw_read32(rtwdev, REG_MCUFW_CTRL); in __rtw_mac_init_system_cfg()
299 value = rtw_read32(rtwdev, REG_GPIO_MUXCFG) & (~BIT_FSPI_EN); in __rtw_mac_init_system_cfg()
[all …]
Drtw8723d.c173 val32 = rtw_read32(rtwdev, REG_TBTT_PROHIBIT); in rtw8723d_phy_set_param()
383 if (rtw_read32(rtwdev, REG_PSDRPT) >= thres) in rtw8723d_check_spur_ov_thres()
639 val32 = rtw_read32(rtwdev, REG_OFDM_FA_TYPE1_11N); in rtw8723d_false_alarm_statistics()
642 val32 = rtw_read32(rtwdev, REG_OFDM_FA_TYPE2_11N); in rtw8723d_false_alarm_statistics()
645 val32 = rtw_read32(rtwdev, REG_OFDM_FA_TYPE3_11N); in rtw8723d_false_alarm_statistics()
648 val32 = rtw_read32(rtwdev, REG_OFDM_FA_TYPE4_11N); in rtw8723d_false_alarm_statistics()
655 dm_info->cck_err_cnt = rtw_read32(rtwdev, REG_IGI_C_11N); in rtw8723d_false_alarm_statistics()
656 dm_info->cck_ok_cnt = rtw_read32(rtwdev, REG_IGI_D_11N); in rtw8723d_false_alarm_statistics()
657 crc32_cnt = rtw_read32(rtwdev, REG_OFDM_CRC32_CNT_11N); in rtw8723d_false_alarm_statistics()
660 crc32_cnt = rtw_read32(rtwdev, REG_HT_CRC32_CNT_11N); in rtw8723d_false_alarm_statistics()
[all …]
Dhci.h97 static inline u32 rtw_read32(struct rtw_dev *rtwdev, u32 addr) in rtw_read32() function
137 val = rtw_read32(rtwdev, addr); in rtw_write32_set()
161 val = rtw_read32(rtwdev, addr); in rtw_write32_clr()
197 orig = rtw_read32(rtwdev, addr); in rtw_read32_mask()
238 orig = rtw_read32(rtwdev, addr); in rtw_write32_mask()
Defuse.c102 efuse_ctl = rtw_read32(rtwdev, REG_EFUSE_CTRL); in rtw_dump_physical_efuse_map()
112 efuse_ctl = rtw_read32(rtwdev, REG_EFUSE_CTRL); in rtw_dump_physical_efuse_map()
133 ret = read_poll_timeout(rtw_read32, efuse_ctl, efuse_ctl & BIT_EF_FLAG, in rtw_read8_physical_efuse()
Dbf.c129 psf_ctl = rtw_read32(rtwdev, REG_BBPSF_CTRL) | in rtw_bf_cfg_sounding()
347 tmp32 = rtw_read32(rtwdev, REG_MU_TX_CTL); in rtw_bf_phy_init()
382 csi_cfg = rtw_read32(rtwdev, REG_BBPSF_CTRL) & ~BIT_MASK_CSI_RATE; in rtw_bf_cfg_csi_rate()
Drtw8821c.c245 reg = rtw_read32(rtwdev, REG_RFECTL); in rtw8821c_switch_rf_set()
664 cck_enable = rtw_read32(rtwdev, REG_RXPSEL) & BIT(28); in rtw8821c_false_alarm_statistics()
674 crc32_cnt = rtw_read32(rtwdev, REG_CRC_CCK); in rtw8821c_false_alarm_statistics()
678 crc32_cnt = rtw_read32(rtwdev, REG_CRC_OFDM); in rtw8821c_false_alarm_statistics()
682 crc32_cnt = rtw_read32(rtwdev, REG_CRC_HT); in rtw8821c_false_alarm_statistics()
686 crc32_cnt = rtw_read32(rtwdev, REG_CRC_VHT); in rtw8821c_false_alarm_statistics()
690 cca32_cnt = rtw_read32(rtwdev, REG_CCA_OFDM); in rtw8821c_false_alarm_statistics()
694 cca32_cnt = rtw_read32(rtwdev, REG_CCA_CCK); in rtw8821c_false_alarm_statistics()
Ddebug.c128 val = rtw_read32(rtwdev, addr); in rtw_debugfs_get_read_reg()
219 val = rtw_read32(rtwdev, RTW_SEC_READ_REG); in rtw_debugfs_get_dump_cam()
447 rtw_read32(rtwdev, debugfs_priv->cb_data); in rtw_debug_get_mac_page()
452 rtw_read32(rtwdev, (page | n))); in rtw_debug_get_mac_page()
466 rtw_read32(rtwdev, debugfs_priv->cb_data); in rtw_debug_get_bb_page()
471 rtw_read32(rtwdev, (page | n))); in rtw_debug_get_bb_page()
Drtw8822c.c105 backup[i].val = rtw_read32(rtwdev, addrs[i]); in rtw8822c_dac_backup_reg()
699 temp[0] = rtw_read32(rtwdev, 0x1860); in rtw8822c_dac_cal_backup()
700 temp[1] = rtw_read32(rtwdev, 0x4160); in rtw8822c_dac_cal_backup()
701 temp[2] = rtw_read32(rtwdev, 0x9b4); in rtw8822c_dac_cal_backup()
895 temp[0] = rtw_read32(rtwdev, 0x1860); in rtw8822c_dac_cal_restore()
896 temp[1] = rtw_read32(rtwdev, 0x4160); in rtw8822c_dac_cal_restore()
897 temp[2] = rtw_read32(rtwdev, 0x9b4); in rtw8822c_dac_cal_restore()
1178 reg_backup[i] = rtw_read32(rtwdev, reg[i]); in rtw8822c_txgapk_backup_bb_reg()
1498 val = rtw_read32(rtwdev, REG_STAT_RPT); in rtw8822c_txgapk_read_offset()
1510 val = rtw_read32(rtwdev, REG_STAT_RPT); in rtw8822c_txgapk_read_offset()
[all …]
Dutil.c33 *val = rtw_read32(rtwdev, ltecoex->rdata); in ltecoex_read_reg()
Drtw8822b.c1047 cck_enable = rtw_read32(rtwdev, 0x808) & BIT(28); in rtw8822b_false_alarm_statistics()
1056 crc32_cnt = rtw_read32(rtwdev, 0xf04); in rtw8822b_false_alarm_statistics()
1059 crc32_cnt = rtw_read32(rtwdev, 0xf14); in rtw8822b_false_alarm_statistics()
1062 crc32_cnt = rtw_read32(rtwdev, 0xf10); in rtw8822b_false_alarm_statistics()
1065 crc32_cnt = rtw_read32(rtwdev, 0xf0c); in rtw8822b_false_alarm_statistics()
1069 cca32_cnt = rtw_read32(rtwdev, 0xf08); in rtw8822b_false_alarm_statistics()
1073 cca32_cnt = rtw_read32(rtwdev, 0xfcc); in rtw8822b_false_alarm_statistics()
Dcoex.c53 coex_stat->darfrc = rtw_read32(rtwdev, REG_DARFRC); in rtw_coex_limited_tx()
54 coex_stat->darfrch = rtw_read32(rtwdev, REG_DARFRCH); in rtw_coex_limited_tx()
1005 if (table0 == rtw_read32(rtwdev, REG_BT_COEX_TABLE0) && in rtw_coex_set_table()
1006 table1 == rtw_read32(rtwdev, REG_BT_COEX_TABLE1)) in rtw_coex_set_table()
3666 wl_reg_6c0 = rtw_read32(rtwdev, REG_BT_COEX_TABLE0); in rtw_coex_display_coex_info()
3667 wl_reg_6c4 = rtw_read32(rtwdev, REG_BT_COEX_TABLE1); in rtw_coex_display_coex_info()
3668 wl_reg_6c8 = rtw_read32(rtwdev, REG_BT_COEX_BRK_TABLE); in rtw_coex_display_coex_info()
3669 wl_reg_6cc = rtw_read32(rtwdev, REG_BT_COEX_TABLE_H); in rtw_coex_display_coex_info()
3672 bt_hi_pri = rtw_read32(rtwdev, REG_BT_ACT_STATISTICS); in rtw_coex_display_coex_info()
3673 bt_lo_pri = rtw_read32(rtwdev, REG_BT_ACT_STATISTICS_1); in rtw_coex_display_coex_info()
/drivers/staging/r8188eu/hal/
Drtl8188e_sreset.c23 txdma_status = rtw_read32(padapter, REG_TXDMA_STATUS); in rtl8188e_sreset_xmit_status_check()
52 rx_dma_status = rtw_read32(padapter, REG_RXDMA_STATUS); in rtl8188e_sreset_linked_status_check()
Dusb_halinit.c327 value32 = rtw_read32(Adapter, REG_CR); in _InitNetworkType()
371 value32 = rtw_read32(Adapter, REG_RRSR); in _InitAdaptiveCtrl()
471 value32 = rtw_read32(Adapter, REG_TDECTRL); in usb_AggSettingTxUpdate()
639 rtw_write32(Adapter, REG_LEDCFG0, rtw_read32(Adapter, REG_LEDCFG0) | BIT(23)); in _InitAntenna_Selection()
939 rtw_write32(Adapter, REG_FWHW_TXQ_CTRL, rtw_read32(Adapter, REG_FWHW_TXQ_CTRL) | BIT(12)); in rtl8188eu_hal_init()
1454 rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR) | RCR_CBSSID_DATA | RCR_CBSSID_BCN); in SetHwReg8188EU()
1458 val32 = rtw_read32(Adapter, REG_RCR); in SetHwReg8188EU()
1479 u32 v = rtw_read32(Adapter, REG_RCR); in SetHwReg8188EU()
1504 rtw_write32(Adapter, REG_RCR, rtw_read32(Adapter, REG_RCR) | RCR_CBSSID_BCN); in SetHwReg8188EU()
1507 u32 v = rtw_read32(Adapter, REG_RCR); in SetHwReg8188EU()
[all …]
Drtl8188e_hal_init.c228 lo32 = cpu_to_le32(rtw_read32(adapter, REG_PKTBUF_DBG_DATA_L)); in efuse_read_phymap_from_txpktbuf()
229 hi32 = cpu_to_le32(rtw_read32(adapter, REG_PKTBUF_DBG_DATA_H)); in efuse_read_phymap_from_txpktbuf()
354 rstatus = (reg_140 = rtw_read32(Adapter, REG_PKTBUF_DBG_CTRL) & BIT(24)); in rtw_IOL_cmd_tx_pkt_buf_dump()
356 fifo_data = rtw_read32(Adapter, REG_PKTBUF_DBG_DATA_L); in rtw_IOL_cmd_tx_pkt_buf_dump()
359 fifo_data = rtw_read32(Adapter, REG_PKTBUF_DBG_DATA_H); in rtw_IOL_cmd_tx_pkt_buf_dump()
510 value32 = rtw_read32(padapter, REG_MCUFWDL); in _FWFreeToGo()
521 value32 = rtw_read32(padapter, REG_MCUFWDL); in _FWFreeToGo()
531 value32 = rtw_read32(padapter, REG_MCUFWDL); in _FWFreeToGo()
1700 value32 = rtw_read32(padapter, REG_SYS_CFG); in ReadChipVersion8188E()
1874 value = rtw_read32(padapter, LLTReg); in _LLTWrite()
Dodm_interface.c22 return rtw_read32(Adapter, RegAddr); in ODM_Read4Byte()
/drivers/staging/rtl8723bs/hal/
Drtl8723b_hal_init.c193 value32 = rtw_read32(adapter, REG_MCUFWDL); in polling_fwdl_chksum()
224 value32 = rtw_read32(adapter, REG_MCUFWDL); in _FWFreeToGo()
234 value32 = rtw_read32(adapter, REG_MCUFWDL); in _FWFreeToGo()
470 value32 = rtw_read32(padapter, EFUSE_TEST); in hal_EfuseSwitchToBank()
1640 value32 = rtw_read32(padapter, REG_SYS_CFG); in ReadChipVersion8723B()
1649 value32 = rtw_read32(padapter, REG_GPIO_OUTSTS); in ReadChipVersion8723B()
1654 value32 = rtw_read32(padapter, REG_MULTI_FUNC_CTRL); in ReadChipVersion8723B()
1801 value32 = rtw_read32(padapter, REG_TCR); in rtl8723b_SetBeaconRelatedRegisters()
2031 val32 = rtw_read32(padapter, REG_AUTO_LLT); in rtl8723b_InitLLTTable()
2038 val32 = rtw_read32(padapter, REG_AUTO_LLT); in rtl8723b_InitLLTTable()
[all …]
Dsdio_halinit.c103 value32 = rtw_read32(padapter, REG_LEDCFG0); in _InitPowerOn_8723BS()
358 value32 = rtw_read32(padapter, REG_CR); in _InitNetworkType()
407 value32 = rtw_read32(padapter, REG_RRSR); in _InitAdaptiveCtrl()
791 rtw_write32(padapter, REG_FWHW_TXQ_CTRL, rtw_read32(padapter, REG_FWHW_TXQ_CTRL) | BIT(12)); in rtl8723bs_hal_init()
1011 value32 = rtw_read32(padapter, EFUSE_TEST); in _EfuseCellSel()
/drivers/staging/r8188eu/core/
Drtw_debug.c92 …age + len, count - len, "rtw_read32(0x%x)=0x%x\n", proc_get_read_addr, rtw_read32(padapter, proc_g… in proc_get_read_reg()
314 len += snprintf(page + len, count - len, " 0x%08x ", rtw_read32(padapter, i)); in proc_get_mac_reg_dump1()
337 len += snprintf(page + len, count - len, " 0x%08x ", rtw_read32(padapter, i)); in proc_get_mac_reg_dump2()
360 len += snprintf(page + len, count - len, " 0x%08x ", rtw_read32(padapter, i)); in proc_get_mac_reg_dump3()
382 len += snprintf(page + len, count - len, " 0x%08x ", rtw_read32(padapter, i)); in proc_get_bb_reg_dump1()
403 len += snprintf(page + len, count - len, " 0x%08x ", rtw_read32(padapter, i)); in proc_get_bb_reg_dump2()
424 len += snprintf(page + len, count - len, " 0x%08x ", rtw_read32(padapter, i)); in proc_get_bb_reg_dump3()
Drtw_sreset.c38 val32 = rtw_read32(padapter, REG_TXDMA_STATUS); in sreset_get_wifi_status()
Drtw_efuse.c171 value32 = rtw_read32(Adapter, EFUSE_CTRL); in ReadEFuseByte()
173 value32 = rtw_read32(Adapter, EFUSE_CTRL); in ReadEFuseByte()
182 value32 = rtw_read32(Adapter, EFUSE_CTRL); in ReadEFuseByte()
Drtw_mp.c764 count = rtw_read32(pAdapter, REG_RXERR_RPT) & RXERR_COUNTER_MASK; in GetPhyRxPktCounts()
798 psd_val = rtw_read32(pAdapter, 0x808); in rtw_GetPSDData()
808 psd_val = rtw_read32(pAdapter, 0x8B4); in rtw_GetPSDData()
/drivers/staging/rtl8723bs/core/
Drtw_debug.c20 reg[i] = rtw_read32(adapter, offset + i); in dump_4_regs()
Drtw_io.c55 u32 rtw_read32(struct adapter *adapter, u32 addr) in rtw_read32() function
/drivers/staging/r8188eu/os_dep/
Dioctl_linux.c2172 RegRWStruct->value = rtw_read32(padapter, RegRWStruct->offset); in rtw_dbg_mode_hdl()
3719 u32 v = rtw_read32(padapter, REG_RCR); in rtw_cta_test_start()
3724 u32 v = rtw_read32(padapter, REG_RCR); in rtw_cta_test_start()
3798 pr_info(" 0x%08x ", rtw_read32(padapter, i)); in mac_reg_dump()
3805 pr_info(" 0x%08x ", rtw_read32(padapter, i)); in mac_reg_dump()
3819 pr_info(" 0x%08x ", rtw_read32(padapter, i)); in bb_reg_dump()
3888 DBG_88E("rtw_read32(0x%x) = 0x%08x\n", arg, rtw_read32(padapter, arg)); in rtw_dbg_port()
3904 DBG_88E("rtw_write32(0x%x) = 0x%08x\n", arg, rtw_read32(padapter, arg)); in rtw_dbg_port()
4057 final = rtw_read32(padapter, reg); in rtw_dbg_port()
4336 DBG_88E("dbg(0x210) = 0x%x\n", rtw_read32(padapter, 0x210)); in rtw_dbg_port()
[all …]
/drivers/staging/r8188eu/include/
Drtw_io.h272 #define rtw_read32(adapter, addr) _rtw_read32((adapter), (addr)) macro
365 rtw_read32(_a,_b)

12