/linux-6.12.1/drivers/net/wireless/realtek/rtw88/ |
D | rtw8703b.c | 679 rtw_write32(rtwdev, REG_EDCA_VO_PARAM, 0x002FA226); in rtw8703b_phy_set_param() 680 rtw_write32(rtwdev, REG_EDCA_VI_PARAM, 0x005EA324); in rtw8703b_phy_set_param() 681 rtw_write32(rtwdev, REG_EDCA_BE_PARAM, 0x005EA42B); in rtw8703b_phy_set_param() 682 rtw_write32(rtwdev, REG_EDCA_BK_PARAM, 0x0000A44F); in rtw8703b_phy_set_param() 715 rtw_write32(rtwdev, REG_BAR_MODE_CTRL, WLAN_BAR_VAL); in rtw8703b_phy_set_param() 740 rtw_write32(rtwdev, REG_ANALOG_P4, DIS_3WIRE); in rtw8703b_check_spur_ov_thres() 741 rtw_write32(rtwdev, REG_PSDFN, freq); in rtw8703b_check_spur_ov_thres() 742 rtw_write32(rtwdev, REG_PSDFN, START_PSD | freq); in rtw8703b_check_spur_ov_thres() 748 rtw_write32(rtwdev, REG_PSDFN, freq); in rtw8703b_check_spur_ov_thres() 749 rtw_write32(rtwdev, REG_ANALOG_P4, EN_3WIRE); in rtw8703b_check_spur_ov_thres() [all …]
|
D | rtw8723d.c | 118 rtw_write32(rtwdev, REG_BAR_MODE_CTRL, WLAN_BAR_VAL); in rtw8723d_phy_set_param() 138 rtw_write32(rtwdev, REG_LTR_IDLE_LATENCY, WLAN_LTR_IDLE_LAT); in rtw8723d_phy_set_param() 139 rtw_write32(rtwdev, REG_LTR_ACTIVE_LATENCY, WLAN_LTR_ACT_LAT); in rtw8723d_phy_set_param() 140 rtw_write32(rtwdev, REG_LTR_CTRL_BASIC, WLAN_LTR_CTRL1); in rtw8723d_phy_set_param() 141 rtw_write32(rtwdev, REG_LTR_CTRL_BASIC + 4, WLAN_LTR_CTRL2); in rtw8723d_phy_set_param() 284 rtw_write32(rtwdev, REG_ANALOG_P4, DIS_3WIRE); in rtw8723d_check_spur_ov_thres() 285 rtw_write32(rtwdev, REG_PSDFN, freq); in rtw8723d_check_spur_ov_thres() 286 rtw_write32(rtwdev, REG_PSDFN, START_PSD | freq); in rtw8723d_check_spur_ov_thres() 292 rtw_write32(rtwdev, REG_PSDFN, freq); in rtw8723d_check_spur_ov_thres() 293 rtw_write32(rtwdev, REG_ANALOG_P4, EN_3WIRE); in rtw8723d_check_spur_ov_thres() [all …]
|
D | bf.c | 141 rtw_write32(rtwdev, REG_BBPSF_CTRL, psf_ctl | BIT(12)); in rtw_bf_cfg_sounding() 143 rtw_write32(rtwdev, REG_BBPSF_CTRL, psf_ctl & ~BIT(12)); in rtw_bf_cfg_sounding() 160 rtw_write32(rtwdev, REG_MU_STA_GID_VLD, param->given_gid_tab[0]); in rtw_bf_cfg_mu_bfee() 161 rtw_write32(rtwdev, REG_MU_STA_USER_POS_INFO, param->given_user_pos[0]); in rtw_bf_cfg_mu_bfee() 162 rtw_write32(rtwdev, REG_MU_STA_USER_POS_INFO + 4, in rtw_bf_cfg_mu_bfee() 166 rtw_write32(rtwdev, REG_MU_STA_GID_VLD, param->given_gid_tab[1]); in rtw_bf_cfg_mu_bfee() 167 rtw_write32(rtwdev, REG_MU_STA_USER_POS_INFO, param->given_user_pos[2]); in rtw_bf_cfg_mu_bfee() 168 rtw_write32(rtwdev, REG_MU_STA_USER_POS_INFO + 4, in rtw_bf_cfg_mu_bfee() 174 rtw_write32(rtwdev, REG_ASSOCIATED_BFMER0_INFO, 0); in rtw_bf_del_bfer_entry_mu() 175 rtw_write32(rtwdev, REG_ASSOCIATED_BFMER0_INFO + 4, 0); in rtw_bf_del_bfer_entry_mu() [all …]
|
D | rtw8822c.c | 383 rtw_write32(rtwdev, 0x1d70, 0x7e7e7e7e); in rtw8822c_dac_bb_setting() 386 rtw_write32(rtwdev, 0x1b00, 0x00000008); in rtw8822c_dac_bb_setting() 388 rtw_write32(rtwdev, 0x1b00, 0x0000000a); in rtw8822c_dac_bb_setting() 421 rtw_write32(rtwdev, base_addr + 0x30, 0x30db8041); in rtw8822c_dac_cal_adc() 422 rtw_write32(rtwdev, base_addr + 0x60, 0xf0040ff0); in rtw8822c_dac_cal_adc() 423 rtw_write32(rtwdev, base_addr + 0x0c, 0xdff00220); in rtw8822c_dac_cal_adc() 424 rtw_write32(rtwdev, base_addr + 0x10, 0x02dd08c4); in rtw8822c_dac_cal_adc() 425 rtw_write32(rtwdev, base_addr + 0x0c, 0x10000260); in rtw8822c_dac_cal_adc() 430 rtw_write32(rtwdev, 0x1c3c, path_sel + 0x8003); in rtw8822c_dac_cal_adc() 431 rtw_write32(rtwdev, 0x1c24, 0x00010002); in rtw8822c_dac_cal_adc() [all …]
|
D | mac.c | 42 rtw_write32(rtwdev, REG_WMAC_TRXPTCL_CTL, value32); in rtw_set_channel_mac() 49 rtw_write32(rtwdev, REG_AFE_CTRL1, value32); in rtw_set_channel_mac() 113 rtw_write32(rtwdev, REG_PAD_CTRL1, value32); in rtw_mac_pre_system_cfg() 117 rtw_write32(rtwdev, REG_LED_CFG, value32); in rtw_mac_pre_system_cfg() 121 rtw_write32(rtwdev, REG_GPIO_MUXCFG, value32); in rtw_mac_pre_system_cfg() 134 rtw_write32(rtwdev, REG_WLRF1, value32); in rtw_mac_pre_system_cfg() 303 rtw_write32(rtwdev, REG_SDIO_HIMR, 0); in rtw_mac_power_switch() 320 rtw_write32(rtwdev, REG_SDIO_HIMR, imr); in rtw_mac_power_switch() 336 rtw_write32(rtwdev, REG_CPU_DMEM_CON, value); in __rtw_mac_init_system_cfg() 345 rtw_write32(rtwdev, REG_MCUFW_CTRL, tmp & (~BIT_BOOT_FSPI_EN)); in __rtw_mac_init_system_cfg() [all …]
|
D | sec.c | 77 rtw_write32(rtwdev, RTW_SEC_WRITE_REG, content); in rtw_sec_write_cam() 78 rtw_write32(rtwdev, RTW_SEC_CMD_REG, command); in rtw_sec_write_cam() 99 rtw_write32(rtwdev, RTW_SEC_WRITE_REG, 0); in rtw_sec_clear_cam() 100 rtw_write32(rtwdev, RTW_SEC_CMD_REG, command); in rtw_sec_clear_cam()
|
D | util.c | 32 rtw_write32(rtwdev, ltecoex->ctrl, 0x800F0000 | offset); in ltecoex_read_reg() 46 rtw_write32(rtwdev, ltecoex->wdata, value); in ltecoex_reg_write() 47 rtw_write32(rtwdev, ltecoex->ctrl, 0xC00F0000 | offset); in ltecoex_reg_write() 73 rtw_write32(rtwdev, reg, (u32)val); in rtw_restore_reg()
|
D | rtw8723x.h | 485 rtw_write32(rtwdev, REG_LTECOEX_CTRL, 0x800f0038); in rtw8723x_iqk_backup_lte_path_gnt() 496 rtw_write32(rtwdev, REG_LTECOEX_WRITE_DATA, write_data); in rtw8723x_iqk_config_lte_path_gnt() 497 rtw_write32(rtwdev, REG_LTECOEX_CTRL, 0xc0020038); in rtw8723x_iqk_config_lte_path_gnt() 506 rtw_write32(rtwdev, REG_LTECOEX_WRITE_DATA, bak->lte_gnt); in rtw8723x_iqk_restore_lte_path_gnt() 507 rtw_write32(rtwdev, REG_LTECOEX_CTRL, 0xc00f0038); in rtw8723x_iqk_restore_lte_path_gnt() 508 rtw_write32(rtwdev, REG_LTECOEX_PATH_CONTROL, bak->lte_path); in rtw8723x_iqk_restore_lte_path_gnt() 515 rtw_write32(rtwdev, rtw8723x_common.iqk_adda_regs[i], value); in rtw8723x_iqk_path_adda_on()
|
D | rtw8723x.c | 298 rtw_write32(rtwdev, REG_TCR, BIT_TCR_CFG); in __rtw8723x_mac_init() 303 rtw_write32(rtwdev, REG_RCR, WLAN_RCR_CFG); in __rtw8723x_mac_init() 305 rtw_write32(rtwdev, REG_INT_MIG, 0); in __rtw8723x_mac_init() 306 rtw_write32(rtwdev, REG_MCUTST_1, 0x0); in __rtw8723x_mac_init() 477 rtw_write32(rtwdev, rtw8723x_common.iqk_adda_regs[i], in __rtw8723x_iqk_restore_regs() 484 rtw_write32(rtwdev, rtw8723x_common.iqk_mac32_regs[i], in __rtw8723x_iqk_restore_regs() 488 rtw_write32(rtwdev, rtw8723x_common.iqk_bb_regs[i], in __rtw8723x_iqk_restore_regs() 497 rtw_write32(rtwdev, REG_TXIQK_TONE_A_11N, 0x01008c00); in __rtw8723x_iqk_restore_regs() 498 rtw_write32(rtwdev, REG_RXIQK_TONE_A_11N, 0x01008c00); in __rtw8723x_iqk_restore_regs()
|
D | pci.c | 405 rtw_write32(rtwdev, RTK_PCI_TXBD_DESA_BCNQ, dma); in rtw_pci_reset_buf_desc() 413 rtw_write32(rtwdev, RTK_PCI_TXBD_DESA_H2CQ, dma); in rtw_pci_reset_buf_desc() 421 rtw_write32(rtwdev, RTK_PCI_TXBD_DESA_BKQ, dma); in rtw_pci_reset_buf_desc() 428 rtw_write32(rtwdev, RTK_PCI_TXBD_DESA_BEQ, dma); in rtw_pci_reset_buf_desc() 435 rtw_write32(rtwdev, RTK_PCI_TXBD_DESA_VOQ, dma); in rtw_pci_reset_buf_desc() 442 rtw_write32(rtwdev, RTK_PCI_TXBD_DESA_VIQ, dma); in rtw_pci_reset_buf_desc() 449 rtw_write32(rtwdev, RTK_PCI_TXBD_DESA_MGMTQ, dma); in rtw_pci_reset_buf_desc() 456 rtw_write32(rtwdev, RTK_PCI_TXBD_DESA_HI0Q, dma); in rtw_pci_reset_buf_desc() 463 rtw_write32(rtwdev, RTK_PCI_RXBD_DESA_MPDUQ, dma); in rtw_pci_reset_buf_desc() 466 rtw_write32(rtwdev, RTK_PCI_TXBD_RWPTR_CLR, 0xffffffff); in rtw_pci_reset_buf_desc() [all …]
|
D | hci.h | 119 static inline void rtw_write32(struct rtw_dev *rtwdev, u32 addr, u32 val) in rtw_write32() function 145 rtw_write32(rtwdev, addr, val | bit); in rtw_write32_set() 169 rtw_write32(rtwdev, addr, val & ~bit); in rtw_write32_clr() 244 rtw_write32(rtwdev, addr, set); in rtw_write32_mask()
|
D | rtw8821c.c | 155 rtw_write32(rtwdev, 0x1C94, 0xAFFFAFFF); in rtw8821c_phy_bf_init() 221 rtw_write32(rtwdev, REG_PROT_MODE_CTRL, value32); in rtw8821c_mac_init() 235 rtw_write32(rtwdev, REG_SIFS, WLAN_SIFS_CFG); in rtw8821c_mac_init() 238 rtw_write32(rtwdev, REG_RD_NAV_NXT, WLAN_NAV_CFG); in rtw8821c_mac_init() 245 rtw_write32(rtwdev, REG_TBTT_PROHIBIT, WLAN_TBTT_TIME); in rtw8821c_mac_init() 251 rtw_write32(rtwdev, REG_RXFLTMAP0, WLAN_RX_FILTER0); in rtw8821c_mac_init() 253 rtw_write32(rtwdev, REG_RCR, WLAN_RCR_CFG); in rtw8821c_mac_init() 261 rtw_write32(rtwdev, REG_WMAC_OPTION_FUNCTION + 8, WLAN_MAC_OPT_FUNC2); in rtw8821c_mac_init() 307 rtw_write32(rtwdev, REG_RFECTL, reg); in rtw8821c_switch_rf_set() 739 rtw_write32(rtwdev, offset_txagc[path] + rate_idx, in rtw8821c_set_tx_power_index_by_rate()
|
D | rtw8822b.c | 149 rtw_write32(rtwdev, 0x1C94, 0xAFFFAFFF); in rtw8822b_phy_bf_init() 251 rtw_write32(rtwdev, REG_PROT_MODE_CTRL, value32); in rtw8822b_mac_init() 263 rtw_write32(rtwdev, REG_SIFS, WLAN_SIFS_CFG); in rtw8822b_mac_init() 266 rtw_write32(rtwdev, REG_RD_NAV_NXT, WLAN_NAV_CFG); in rtw8822b_mac_init() 271 rtw_write32(rtwdev, REG_TBTT_PROHIBIT, WLAN_TBTT_TIME); in rtw8822b_mac_init() 276 rtw_write32(rtwdev, REG_RXFLTMAP0, WLAN_RX_FILTER0); in rtw8822b_mac_init() 278 rtw_write32(rtwdev, REG_RCR, WLAN_RCR_CFG); in rtw8822b_mac_init() 282 rtw_write32(rtwdev, REG_WMAC_OPTION_FUNCTION + 8, WLAN_MAC_OPT_FUNC2); in rtw8822b_mac_init() 994 rtw_write32(rtwdev, offset_txagc[path] + rate_idx, in rtw8822b_set_tx_power_index_by_rate() 1368 rtw_write32(rtwdev, REG_RX_GAIN_EN, wl_rx_low_gain_on[i]); in rtw8822b_coex_cfg_wl_rx_gain() [all …]
|
D | sdio.c | 704 rtw_write32(rtwdev, REG_SDIO_HIMR, rtwsdio->irq_mask); in rtw_sdio_enable_interrupt() 709 rtw_write32(rtwdev, REG_SDIO_HIMR, 0x0); in rtw_sdio_disable_interrupt() 820 rtw_write32(rtwdev, REG_SDIO_TX_CTRL, val); in rtw_sdio_interface_cfg() 933 rtw_write32(rtwdev, REG_TXDMA_STATUS, val); in rtw_sdio_tx_err_isr() 1079 rtw_write32(rtwdev, REG_SDIO_HISR, hisr); in rtw_sdio_handle_interrupt()
|
D | wow.c | 68 rtw_write32(rtwdev, REG_WKFMCAM_RWD, wdata); in rtw_wow_pattern_write_cam() 69 rtw_write32(rtwdev, REG_WKFMCAM_CMD, BIT_WKFCAM_POLLING_V1 | in rtw_wow_pattern_write_cam() 245 rtw_write32(rtwdev, REG_WKFMCAM_CMD, BIT_WKFCAM_POLLING_V1 | in rtw_wow_pattern_clear_cam()
|
D | efuse.c | 107 rtw_write32(rtwdev, REG_EFUSE_CTRL, efuse_ctl & (~BIT_EF_FLAG)); in rtw_dump_physical_efuse_map()
|
D | phy.c | 601 rtw_write32(rtwdev, REG_RRSR, dm_info->rrsr_val_init & dm_info->rrsr_mask_min); in rtw_phy_rrsr_update() 946 rtw_write32(rtwdev, rf_sipi_addr->hssi_2, val32); in rtw_phy_read_rf_sipi() 950 rtw_write32(rtwdev, rf_sipi_addr_a->hssi_2, val32 & ~LSSI_READ_EDGE_MASK); in rtw_phy_read_rf_sipi() 951 rtw_write32(rtwdev, rf_sipi_addr_a->hssi_2, val32 | LSSI_READ_EDGE_MASK); in rtw_phy_read_rf_sipi() 998 rtw_write32(rtwdev, sipi_addr[rf_path], data_and_addr); in rtw_phy_write_rf_reg_sipi() 1705 rtw_write32(rtwdev, addr, data); in rtw_phy_cfg_agc() 1725 rtw_write32(rtwdev, addr, data); in rtw_phy_cfg_bb()
|
D | fw.c | 429 rtw_write32(rtwdev, box_ex_reg, h2c->w1); in rtw_fw_send_h2c_command_register() 430 rtw_write32(rtwdev, box_reg, h2c->w0); in rtw_fw_send_h2c_command_register() 484 rtw_write32(rtwdev, box_ex_reg, le32_to_cpu(h2c_cmd->msg_ext)); in rtw_fw_send_h2c_command() 485 rtw_write32(rtwdev, box_reg, le32_to_cpu(h2c_cmd->msg)); in rtw_fw_send_h2c_command() 2231 rtw_write32(rtwdev, REG_RCR, rtwdev->hal.rcr); in rtw_hw_scan_start() 2249 rtw_write32(rtwdev, REG_RCR, rtwdev->hal.rcr); in rtw_hw_scan_complete()
|
/linux-6.12.1/drivers/staging/rtl8723bs/hal/ |
D | sdio_halinit.c | 104 rtw_write32(padapter, REG_LEDCFG0, value32); in _InitPowerOn_8723BS() 161 rtw_write32(padapter, REG_RQPN, value32); in _InitQueueReservedPage() 363 rtw_write32(padapter, REG_CR, value32); in _InitNetworkType() 379 rtw_write32(padapter, REG_RCR, pHalData->ReceiveConfig); in _InitWMACSetting() 382 rtw_write32(padapter, REG_MAR, 0xFFFFFFFF); /* Offset 0x0620-0x0623 */ in _InitWMACSetting() 383 rtw_write32(padapter, REG_MAR + 4, 0xFFFFFFFF); /* Offset 0x0624-0x0627 */ in _InitWMACSetting() 409 rtw_write32(padapter, REG_RRSR, value32); in _InitAdaptiveCtrl() 436 rtw_write32(padapter, REG_EDCA_BE_PARAM, 0x005EA42B); in _InitEDCA() 437 rtw_write32(padapter, REG_EDCA_BK_PARAM, 0x0000A44F); in _InitEDCA() 438 rtw_write32(padapter, REG_EDCA_VI_PARAM, 0x005EA324); in _InitEDCA() [all …]
|
D | rtl8723b_hal_init.c | 63 …ret = rtw_write32(padapter, (FW_8723B_START_ADDRESS + i * blockSize_p1), *((u32 *)(bufferPtr + i *… in _BlockWrite() 226 rtw_write32(adapter, REG_MCUFWDL, value32); in _FWFreeToGo() 489 rtw_write32(padapter, EFUSE_TEST, value32); in hal_EfuseSwitchToBank() 1709 rtw_write32(Adapter, REG_ARFR0_8723B, 0x00000010); in _InitBurstPktLen_8723BS() 1711 rtw_write32(Adapter, REG_ARFR0_8723B+4, 0xfffff000); in _InitBurstPktLen_8723BS() 1713 rtw_write32(Adapter, REG_ARFR0_8723B+4, 0x3e0ff000); in _InitBurstPktLen_8723BS() 1716 rtw_write32(Adapter, REG_ARFR1_8723B, 0x00000010); in _InitBurstPktLen_8723BS() 1717 rtw_write32(Adapter, REG_ARFR1_8723B+4, 0x003ff000); in _InitBurstPktLen_8723BS() 1792 rtw_write32(padapter, REG_TCR, value32); in rtl8723b_SetBeaconRelatedRegisters() 1795 rtw_write32(padapter, REG_TCR, value32); in rtl8723b_SetBeaconRelatedRegisters() [all …]
|
D | odm_EdcaTurboCheck.c | 145 rtw_write32(Adapter, REG_EDCA_BE_PARAM, edca_param); in odm_EdcaTurboCheckCE() 154 rtw_write32(Adapter, REG_EDCA_BE_PARAM, pHalData->AcParam_BE); in odm_EdcaTurboCheckCE()
|
D | rtl8723b_phycfg.c | 82 rtw_write32(Adapter, RegAddr, Data); in PHY_SetBBReg_8723B() 395 rtw_write32(Adapter, 0x948, 0x280); /* Others use Antenna S1 */ in PHY_BBConfig8723B()
|
D | odm_DIG.c | 19 …rtw_write32(pDM_Odm->Adapter, ODM_REG_NHM_TH3_TO_TH0_11N, 0xffffff52); /* 0x898 = 0xffffff52 th_3… in odm_NHMCounterStatisticsInit() 20 …rtw_write32(pDM_Odm->Adapter, ODM_REG_NHM_TH7_TO_TH4_11N, 0xffffffff); /* 0x89c = 0xffffffff th_7… in odm_NHMCounterStatisticsInit()
|
/linux-6.12.1/drivers/staging/rtl8723bs/core/ |
D | rtw_io.c | 94 int rtw_write32(struct adapter *adapter, u32 addr, u32 val) in rtw_write32() function
|
/linux-6.12.1/drivers/staging/rtl8723bs/include/ |
D | rtw_io.h | 120 extern int rtw_write32(struct adapter *adapter, u32 addr, u32 val);
|