Home
last modified time | relevance | path

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

12

/linux-6.12.1/drivers/net/wireless/realtek/rtw88/
Dmac.c29 value32 = rtw_read32(rtwdev, REG_WMAC_TRXPTCL_CTL); in rtw_set_channel_mac()
47 value32 = rtw_read32(rtwdev, REG_AFE_CTRL1) & ~(BIT_MAC_CLK_SEL); in rtw_set_channel_mac()
71 if (rtw_read32(rtwdev, REG_SYS_CFG1) & BIT_LDO) in rtw_mac_pre_system_cfg()
111 value32 = rtw_read32(rtwdev, REG_PAD_CTRL1); in rtw_mac_pre_system_cfg()
115 value32 = rtw_read32(rtwdev, REG_LED_CFG); in rtw_mac_pre_system_cfg()
119 value32 = rtw_read32(rtwdev, REG_GPIO_MUXCFG); in rtw_mac_pre_system_cfg()
132 value32 = rtw_read32(rtwdev, REG_WLRF1); in rtw_mac_pre_system_cfg()
302 imr = rtw_read32(rtwdev, REG_SDIO_HIMR); in rtw_mac_power_switch()
334 value = rtw_read32(rtwdev, REG_CPU_DMEM_CON); in __rtw_mac_init_system_cfg()
343 tmp = rtw_read32(rtwdev, REG_MCUFW_CTRL); in __rtw_mac_init_system_cfg()
[all …]
Drtw8723x.c394 val32 = rtw_read32(rtwdev, REG_OFDM_FA_TYPE1_11N); in __rtw8723x_false_alarm_statistics()
397 val32 = rtw_read32(rtwdev, REG_OFDM_FA_TYPE2_11N); in __rtw8723x_false_alarm_statistics()
400 val32 = rtw_read32(rtwdev, REG_OFDM_FA_TYPE3_11N); in __rtw8723x_false_alarm_statistics()
403 val32 = rtw_read32(rtwdev, REG_OFDM_FA_TYPE4_11N); in __rtw8723x_false_alarm_statistics()
410 dm_info->cck_err_cnt = rtw_read32(rtwdev, REG_IGI_C_11N); in __rtw8723x_false_alarm_statistics()
411 dm_info->cck_ok_cnt = rtw_read32(rtwdev, REG_IGI_D_11N); in __rtw8723x_false_alarm_statistics()
412 crc32_cnt = rtw_read32(rtwdev, REG_OFDM_CRC32_CNT_11N); in __rtw8723x_false_alarm_statistics()
415 crc32_cnt = rtw_read32(rtwdev, REG_HT_CRC32_CNT_11N); in __rtw8723x_false_alarm_statistics()
421 val32 = rtw_read32(rtwdev, REG_CCK_CCA_CNT_11N); in __rtw8723x_false_alarm_statistics()
450 backup->adda[i] = rtw_read32(rtwdev, in __rtw8723x_iqk_backup_regs()
[all …]
Drtw8703b.c745 if (rtw_read32(rtwdev, REG_PSDRPT) >= thres) in rtw8703b_check_spur_ov_thres()
1118 ret = read_poll_timeout(rtw_read32, regval, regval != 0, 1000, in rtw8703b_iqk_one_shot()
1149 rtw_read32(rtwdev, REG_IQK_RES_RY)); in rtw8703b_iqk_check_tx_failed()
1151 rtw_read32(rtwdev, REG_IQK_RES_TX), in rtw8703b_iqk_check_tx_failed()
1152 rtw_read32(rtwdev, REG_IQK_RES_TY)); in rtw8703b_iqk_check_tx_failed()
1155 rtw_read32(rtwdev, REG_IQK_RDY), in rtw8703b_iqk_check_tx_failed()
1156 rtw_read32(rtwdev, 0xe98)); in rtw8703b_iqk_check_tx_failed()
1176 rtw_read32(rtwdev, REG_IQK_RES_RX), in rtw8703b_iqk_check_rx_failed()
1177 rtw_read32(rtwdev, REG_IQK_RES_RY)); in rtw8703b_iqk_check_rx_failed()
1181 rtw_read32(rtwdev, 0xea0), in rtw8703b_iqk_check_rx_failed()
[all …]
Dhci.h104 static inline u32 rtw_read32(struct rtw_dev *rtwdev, u32 addr) in rtw_read32() function
144 val = rtw_read32(rtwdev, addr); in rtw_write32_set()
168 val = rtw_read32(rtwdev, addr); in rtw_write32_clr()
201 orig = rtw_read32(rtwdev, addr); in rtw_read32_mask()
242 orig = rtw_read32(rtwdev, addr); in rtw_write32_mask()
Drtw8723d.c122 val32 = rtw_read32(rtwdev, REG_TBTT_PROHIBIT); in rtw8723d_phy_set_param()
289 if (rtw_read32(rtwdev, REG_PSDRPT) >= thres) in rtw8723d_check_spur_ov_thres()
483 rtw_read32(rtwdev, REG_IQK_RES_RY)); in rtw8723d_iqk_check_tx_failed()
485 rtw_read32(rtwdev, REG_IQK_RES_TX), in rtw8723d_iqk_check_tx_failed()
486 rtw_read32(rtwdev, REG_IQK_RES_TY)); in rtw8723d_iqk_check_tx_failed()
489 rtw_read32(rtwdev, 0xe90), in rtw8723d_iqk_check_tx_failed()
490 rtw_read32(rtwdev, 0xe98)); in rtw8723d_iqk_check_tx_failed()
512 rtw_read32(rtwdev, REG_IQK_RES_RX), in rtw8723d_iqk_check_rx_failed()
513 rtw_read32(rtwdev, REG_IQK_RES_RY)); in rtw8723d_iqk_check_rx_failed()
517 rtw_read32(rtwdev, 0xea0), in rtw8723d_iqk_check_rx_failed()
[all …]
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.c130 psf_ctl = rtw_read32(rtwdev, REG_BBPSF_CTRL) | in rtw_bf_cfg_sounding()
352 tmp32 = rtw_read32(rtwdev, REG_MU_TX_CTL); in rtw_bf_phy_init()
387 csi_cfg = rtw_read32(rtwdev, REG_BBPSF_CTRL) & ~BIT_MASK_CSI_RATE; in rtw_bf_cfg_csi_rate()
Dsdio.c816 rtw_read32(rtwdev, REG_SDIO_FREE_TXPG); in rtw_sdio_interface_cfg()
818 val = rtw_read32(rtwdev, REG_SDIO_TX_CTRL); in rtw_sdio_interface_cfg()
931 u32 val = rtw_read32(rtwdev, REG_TXDMA_STATUS); in rtw_sdio_tx_err_isr()
1029 rx_len = rtw_read32(rtwdev, REG_SDIO_RX0_REQ_LEN); in rtw_sdio_rx_isr()
1048 hisr = rtw_read32(rtwdev, REG_SDIO_HISR); in rtw_sdio_rx_isr()
1070 hisr = rtw_read32(rtwdev, REG_SDIO_HISR); in rtw_sdio_handle_interrupt()
Drtw8822c.c124 backup[i].val = rtw_read32(rtwdev, addrs[i]); in rtw8822c_dac_backup_reg()
718 temp[0] = rtw_read32(rtwdev, 0x1860); in rtw8822c_dac_cal_backup()
719 temp[1] = rtw_read32(rtwdev, 0x4160); in rtw8822c_dac_cal_backup()
720 temp[2] = rtw_read32(rtwdev, 0x9b4); in rtw8822c_dac_cal_backup()
914 temp[0] = rtw_read32(rtwdev, 0x1860); in rtw8822c_dac_cal_restore()
915 temp[1] = rtw_read32(rtwdev, 0x4160); in rtw8822c_dac_cal_restore()
916 temp[2] = rtw_read32(rtwdev, 0x9b4); in rtw8822c_dac_cal_restore()
1197 reg_backup[i] = rtw_read32(rtwdev, reg[i]); in rtw8822c_txgapk_backup_bb_reg()
1517 val = rtw_read32(rtwdev, REG_STAT_RPT); in rtw8822c_txgapk_read_offset()
1529 val = rtw_read32(rtwdev, REG_STAT_RPT); in rtw8822c_txgapk_read_offset()
[all …]
Drtw8821c.c283 reg = rtw_read32(rtwdev, REG_RFECTL); in rtw8821c_switch_rf_set()
770 cck_enable = rtw_read32(rtwdev, REG_RXPSEL) & BIT(28); in rtw8821c_false_alarm_statistics()
780 crc32_cnt = rtw_read32(rtwdev, REG_CRC_CCK); in rtw8821c_false_alarm_statistics()
784 crc32_cnt = rtw_read32(rtwdev, REG_CRC_OFDM); in rtw8821c_false_alarm_statistics()
788 crc32_cnt = rtw_read32(rtwdev, REG_CRC_HT); in rtw8821c_false_alarm_statistics()
792 crc32_cnt = rtw_read32(rtwdev, REG_CRC_VHT); in rtw8821c_false_alarm_statistics()
796 cca32_cnt = rtw_read32(rtwdev, REG_CCA_OFDM); in rtw8821c_false_alarm_statistics()
800 cca32_cnt = rtw_read32(rtwdev, REG_CCA_CCK); in rtw8821c_false_alarm_statistics()
Ddebug.c185 val = rtw_read32(rtwdev, addr); in rtw_debugfs_get_read_reg()
297 val = rtw_read32(rtwdev, RTW_SEC_READ_REG); in rtw_debugfs_get_dump_cam()
553 rtw_read32(rtwdev, debugfs_priv->cb_data); in rtw_debug_get_mac_page()
558 rtw_read32(rtwdev, (page | n))); in rtw_debug_get_mac_page()
572 rtw_read32(rtwdev, debugfs_priv->cb_data); in rtw_debug_get_bb_page()
577 rtw_read32(rtwdev, (page | n))); in rtw_debug_get_bb_page()
Drtw8723x.h484 backup->lte_path = rtw_read32(rtwdev, REG_LTECOEX_PATH_CONTROL); in rtw8723x_iqk_backup_lte_path_gnt()
487 backup->lte_gnt = rtw_read32(rtwdev, REG_LTECOEX_READ_DATA); in rtw8723x_iqk_backup_lte_path_gnt()
Dutil.c33 *val = rtw_read32(rtwdev, ltecoex->rdata); in ltecoex_read_reg()
Drtw8822b.c1069 cck_enable = rtw_read32(rtwdev, 0x808) & BIT(28); in rtw8822b_false_alarm_statistics()
1078 crc32_cnt = rtw_read32(rtwdev, 0xf04); in rtw8822b_false_alarm_statistics()
1081 crc32_cnt = rtw_read32(rtwdev, 0xf14); in rtw8822b_false_alarm_statistics()
1084 crc32_cnt = rtw_read32(rtwdev, 0xf10); in rtw8822b_false_alarm_statistics()
1087 crc32_cnt = rtw_read32(rtwdev, 0xf0c); in rtw8822b_false_alarm_statistics()
1091 cca32_cnt = rtw_read32(rtwdev, 0xf08); in rtw8822b_false_alarm_statistics()
1095 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()
473 tmp = rtw_read32(rtwdev, REG_BT_ACT_STATISTICS); in rtw_coex_monitor_bt_ctr()
477 tmp = rtw_read32(rtwdev, REG_BT_ACT_STATISTICS_1); in rtw_coex_monitor_bt_ctr()
1052 if (table0 == rtw_read32(rtwdev, REG_BT_COEX_TABLE0) && in rtw_coex_set_table()
1053 table1 == rtw_read32(rtwdev, REG_BT_COEX_TABLE1)) in rtw_coex_set_table()
3912 wl_reg_6c0 = rtw_read32(rtwdev, REG_BT_COEX_TABLE0); in rtw_coex_display_coex_info()
3913 wl_reg_6c4 = rtw_read32(rtwdev, REG_BT_COEX_TABLE1); in rtw_coex_display_coex_info()
3914 wl_reg_6c8 = rtw_read32(rtwdev, REG_BT_COEX_BRK_TABLE); in rtw_coex_display_coex_info()
3915 wl_reg_6cc = rtw_read32(rtwdev, REG_BT_COEX_TABLE_H); in rtw_coex_display_coex_info()
Dpci.c955 bd_idx = rtw_read32(rtwdev, bd_idx_addr); in rtw_pci_tx_isr()
1030 tmp = rtw_read32(rtwdev, RTK_PCI_RXBD_IDX_MPDUQ); in rtw_pci_get_hw_rx_ring_nr()
1125 irq_status[0] = rtw_read32(rtwdev, RTK_PCI_HISR0); in rtw_pci_irq_recognized()
1126 irq_status[1] = rtw_read32(rtwdev, RTK_PCI_HISR1); in rtw_pci_irq_recognized()
1128 irq_status[3] = rtw_read32(rtwdev, RTK_PCI_HISR3); in rtw_pci_irq_recognized()
/linux-6.12.1/drivers/staging/rtl8723bs/hal/
Drtl8723b_hal_init.c192 value32 = rtw_read32(adapter, REG_MCUFWDL); in polling_fwdl_chksum()
223 value32 = rtw_read32(adapter, REG_MCUFWDL); in _FWFreeToGo()
233 value32 = rtw_read32(adapter, REG_MCUFWDL); in _FWFreeToGo()
469 value32 = rtw_read32(padapter, EFUSE_TEST); in hal_EfuseSwitchToBank()
1629 value32 = rtw_read32(padapter, REG_SYS_CFG); in ReadChipVersion8723B()
1638 value32 = rtw_read32(padapter, REG_GPIO_OUTSTS); in ReadChipVersion8723B()
1643 value32 = rtw_read32(padapter, REG_MULTI_FUNC_CTRL); in ReadChipVersion8723B()
1790 value32 = rtw_read32(padapter, REG_TCR); in rtl8723b_SetBeaconRelatedRegisters()
2020 val32 = rtw_read32(padapter, REG_AUTO_LLT); in rtl8723b_InitLLTTable()
2027 val32 = rtw_read32(padapter, REG_AUTO_LLT); in rtl8723b_InitLLTTable()
[all …]
Dsdio_halinit.c102 value32 = rtw_read32(padapter, REG_LEDCFG0); in _InitPowerOn_8723BS()
357 value32 = rtw_read32(padapter, REG_CR); in _InitNetworkType()
406 value32 = rtw_read32(padapter, REG_RRSR); in _InitAdaptiveCtrl()
790 rtw_write32(padapter, REG_FWHW_TXQ_CTRL, rtw_read32(padapter, REG_FWHW_TXQ_CTRL) | BIT(12)); in rtl8723bs_hal_init()
1010 value32 = rtw_read32(padapter, EFUSE_TEST); in _EfuseCellSel()
Drtl8723b_phycfg.c45 OriginalValue = rtw_read32(Adapter, RegAddr); in PHY_QueryBBReg_8723B()
77 OriginalValue = rtw_read32(Adapter, RegAddr); in PHY_SetBBReg_8723B()
Dodm.c640 pDM_SWAT_Table->SWAS_NoLink_BK_Reg92c = rtw_read32(pDM_Odm->Adapter, rDPDT_control); in odm_SwAntDetectInit()
Dsdio_ops.c742 tmp = rtw_read32(adapter, REG_HSIMR); in EnableInterrupt8723BSdio()
Dhal_btcoex.c599 return rtw_read32(padapter, RegAddr); in halbtcoutsrc_Read4Byte()
/linux-6.12.1/drivers/staging/rtl8723bs/core/
Drtw_io.c54 u32 rtw_read32(struct adapter *adapter, u32 addr) in rtw_read32() function
Drtw_wlan_util.c456 if (0 == (rtw_read32(padapter, REG_CAMCMD) & CAM_POLLINIG)) in _ReadCAM()
460 return rtw_read32(padapter, REG_CAMREAD); in _ReadCAM()
/linux-6.12.1/drivers/staging/rtl8723bs/include/
Drtw_io.h116 extern u32 rtw_read32(struct adapter *adapter, u32 addr);

12