Home
last modified time | relevance | path

Searched refs:rtw_write16 (Results 1 – 25 of 27) sorted by relevance

12

/linux-6.12.1/drivers/net/wireless/realtek/rtw88/
Dbf.c116 rtw_write16(rtwdev, REG_ASSOCIATED_BFMER0_INFO + 6, param->paid); in rtw_bf_init_bfer_entry_mu()
117 rtw_write16(rtwdev, REG_TX_CSI_RPT_PARAM_BW20, param->csi_para); in rtw_bf_init_bfer_entry_mu()
121 rtw_write16(rtwdev, REG_WMAC_MU_BF_CTL, mu_bf_ctl); in rtw_bf_init_bfer_entry_mu()
176 rtw_write16(rtwdev, REG_WMAC_MU_BF_CTL, 0); in rtw_bf_del_bfer_entry_mu()
221 rtw_write16(rtwdev, addr_csi_rpt, csi_param); in rtw_bf_enable_bfee_su()
285 rtw_write16(rtwdev, REG_ASSOCIATED_BFMER0_INFO + 4, 0); in rtw_bf_remove_bfee_su()
286 rtw_write16(rtwdev, REG_TX_CSI_RPT_PARAM_BW20, 0); in rtw_bf_remove_bfee_su()
290 rtw_write16(rtwdev, REG_ASSOCIATED_BFMER1_INFO + 4, 0); in rtw_bf_remove_bfee_su()
291 rtw_write16(rtwdev, REG_TX_CSI_RPT_PARAM_BW20 + 2, 0); in rtw_bf_remove_bfee_su()
370 rtw_write16(rtwdev, REG_WMAC_MU_BF_CTL, 0); in rtw_bf_phy_init()
[all …]
Dmac.c363 rtw_write16(rtwdev, REG_CR, 0x2ff); in __rtw_mac_init_system_cfg_legacy()
493 rtw_write16(rtwdev, REG_FIFOPAGE_INFO_1, 0x200); in download_firmware_reg_backup()
716 rtw_write16(rtwdev, REG_MCUFW_CTRL, val); in start_download_firmware()
771 rtw_write16(rtwdev, REG_MCUFW_CTRL, fw_ctrl); in download_firmware_end_flow()
1113 rtw_write16(rtwdev, REG_TXDMA_PQ_MAP, txdma_pq_map); in txdma_queue_mapping()
1190 rtw_write16(rtwdev, REG_FIFOPAGE_INFO_1, pg_tbl->hq_num); in __priority_queue_cfg()
1191 rtw_write16(rtwdev, REG_FIFOPAGE_INFO_2, pg_tbl->lq_num); in __priority_queue_cfg()
1192 rtw_write16(rtwdev, REG_FIFOPAGE_INFO_3, pg_tbl->nq_num); in __priority_queue_cfg()
1193 rtw_write16(rtwdev, REG_FIFOPAGE_INFO_4, pg_tbl->exq_num); in __priority_queue_cfg()
1194 rtw_write16(rtwdev, REG_FIFOPAGE_INFO_5, pubq_num); in __priority_queue_cfg()
[all …]
Dsec.c135 rtw_write16(rtwdev, REG_CR, ctrl_reg); in rtw_sec_enable_sec_engine()
144 rtw_write16(rtwdev, RTW_SEC_CONFIG, sec_config); in rtw_sec_enable_sec_engine()
Dpci.c412 rtw_write16(rtwdev, RTK_PCI_TXBD_NUM_H2CQ, len & TRX_BD_IDX_MASK); in rtw_pci_reset_buf_desc()
420 rtw_write16(rtwdev, RTK_PCI_TXBD_NUM_BKQ, len & TRX_BD_IDX_MASK); in rtw_pci_reset_buf_desc()
427 rtw_write16(rtwdev, RTK_PCI_TXBD_NUM_BEQ, len & TRX_BD_IDX_MASK); in rtw_pci_reset_buf_desc()
434 rtw_write16(rtwdev, RTK_PCI_TXBD_NUM_VOQ, len & TRX_BD_IDX_MASK); in rtw_pci_reset_buf_desc()
441 rtw_write16(rtwdev, RTK_PCI_TXBD_NUM_VIQ, len & TRX_BD_IDX_MASK); in rtw_pci_reset_buf_desc()
448 rtw_write16(rtwdev, RTK_PCI_TXBD_NUM_MGMTQ, len & TRX_BD_IDX_MASK); in rtw_pci_reset_buf_desc()
455 rtw_write16(rtwdev, RTK_PCI_TXBD_NUM_HI0Q, len & TRX_BD_IDX_MASK); in rtw_pci_reset_buf_desc()
462 rtw_write16(rtwdev, RTK_PCI_RXBD_NUM_MPDUQ, len & TRX_BD_IDX_MASK); in rtw_pci_reset_buf_desc()
784 rtw_write16(rtwdev, bd_idx, ring->r.wp & TRX_BD_IDX_MASK); in rtw_pci_tx_kick_off_queue()
1113 rtw_write16(rtwdev, RTK_PCI_RXBD_IDX_MPDUQ, ring->r.rp); in rtw_pci_rx_napi()
[all …]
Dhci.h114 static inline void rtw_write16(struct rtw_dev *rtwdev, u32 addr, u16 val) in rtw_write16() function
137 rtw_write16(rtwdev, addr, val | bit); in rtw_write16_set()
161 rtw_write16(rtwdev, addr, val & ~bit); in rtw_write16_clr()
Drtw8723d.c117 rtw_write16(rtwdev, REG_RETRY_LIMIT, WLAN_RL_VAL); in rtw8723d_phy_set_param()
128 rtw_write16(rtwdev, REG_NAV_PROT_LEN, WLAN_NAV_PROT_LEN); in rtw8723d_phy_set_param()
129 rtw_write16(rtwdev, REG_MAC_SPEC_SIFS, WLAN_SPEC_SIFS); in rtw8723d_phy_set_param()
130 rtw_write16(rtwdev, REG_SIFS, WLAN_SPEC_SIFS); in rtw8723d_phy_set_param()
131 rtw_write16(rtwdev, REG_SIFS + 2, WLAN_SPEC_SIFS); in rtw8723d_phy_set_param()
1122 rtw_write16(rtwdev, REG_BB_SEL_BTG, 0x80); in rtw8723d_coex_cfg_rfe_type()
1124 rtw_write16(rtwdev, REG_BB_SEL_BTG, 0x200); in rtw8723d_coex_cfg_rfe_type()
1127 rtw_write16(rtwdev, REG_BB_SEL_BTG, 0x280); in rtw8723d_coex_cfg_rfe_type()
1129 rtw_write16(rtwdev, REG_BB_SEL_BTG, 0x0); in rtw8723d_coex_cfg_rfe_type()
Dutil.c70 rtw_write16(rtwdev, reg, (u16)val); in rtw_restore_reg()
Drtw8703b.c674 rtw_write16(rtwdev, REG_SPEC_SIFS, WLAN_SPEC_SIFS); in rtw8703b_phy_set_param()
675 rtw_write16(rtwdev, REG_MAC_SPEC_SIFS, WLAN_SPEC_SIFS); in rtw8703b_phy_set_param()
676 rtw_write16(rtwdev, REG_SIFS, WLAN_SPEC_SIFS); /* CCK */ in rtw8703b_phy_set_param()
677 rtw_write16(rtwdev, REG_SIFS + 2, WLAN_SPEC_SIFS); /* OFDM */ in rtw8703b_phy_set_param()
714 rtw_write16(rtwdev, REG_RETRY_LIMIT, WLAN_RL_VAL); in rtw8703b_phy_set_param()
716 rtw_write16(rtwdev, REG_ATIMWND, 0x2); in rtw8703b_phy_set_param()
Drtw8723x.c300 rtw_write16(rtwdev, REG_RXFLTMAP0, WLAN_RX_FILTER0); in __rtw8723x_mac_init()
301 rtw_write16(rtwdev, REG_RXFLTMAP1, WLAN_RX_FILTER1); in __rtw8723x_mac_init()
302 rtw_write16(rtwdev, REG_RXFLTMAP2, WLAN_RX_FILTER2); in __rtw8723x_mac_init()
Drtw8821c.c222 rtw_write16(rtwdev, REG_BAR_MODE_CTRL + 2, in rtw8821c_mac_init()
232 rtw_write16(rtwdev, REG_TXPAUSE, 0); in rtw8821c_mac_init()
236 rtw_write16(rtwdev, REG_EDCA_VO_PARAM + 2, WLAN_VO_TXOP_LIMIT); in rtw8821c_mac_init()
237 rtw_write16(rtwdev, REG_EDCA_VI_PARAM + 2, WLAN_VI_TXOP_LIMIT); in rtw8821c_mac_init()
239 rtw_write16(rtwdev, REG_RXTSF_OFFSET_CCK, WLAN_RX_TSF_CFG); in rtw8821c_mac_init()
252 rtw_write16(rtwdev, REG_RXFLTMAP2, WLAN_RX_FILTER2); in rtw8821c_mac_init()
Drtw8822b.c252 rtw_write16(rtwdev, REG_BAR_MODE_CTRL + 2, in rtw8822b_mac_init()
260 rtw_write16(rtwdev, REG_TXPAUSE, 0x0000); in rtw8822b_mac_init()
264 rtw_write16(rtwdev, REG_EDCA_VO_PARAM + 2, WLAN_VO_TXOP_LIMIT); in rtw8822b_mac_init()
265 rtw_write16(rtwdev, REG_EDCA_VI_PARAM + 2, WLAN_VI_TXOP_LIMIT); in rtw8822b_mac_init()
267 rtw_write16(rtwdev, REG_RXTSF_OFFSET_CCK, WLAN_RX_TSF_CFG); in rtw8822b_mac_init()
277 rtw_write16(rtwdev, REG_RXFLTMAP2, WLAN_RX_FILTER2); in rtw8822b_mac_init()
Drtw8822c.c2017 rtw_write16(rtwdev, REG_SPEC_SIFS, WLAN_SIFS_DUR_TUNE); in rtw8822c_mac_init()
2019 rtw_write16(rtwdev, REG_RESP_SIFS_CCK, in rtw8822c_mac_init()
2021 rtw_write16(rtwdev, REG_RESP_SIFS_OFDM, in rtw8822c_mac_init()
2045 rtw_write16(rtwdev, REG_BAR_MODE_CTRL + 2, in rtw8822c_mac_init()
2074 rtw_write16(rtwdev, REG_TXPAUSE, 0x0000); in rtw8822c_mac_init()
2077 rtw_write16(rtwdev, REG_RXTSF_OFFSET_CCK, WLAN_RX_TSF_CFG); in rtw8822c_mac_init()
2093 rtw_write16(rtwdev, REG_EIFS, WLAN_EIFS_DUR_TUNE); in rtw8822c_mac_init()
2097 rtw_write16(rtwdev, REG_RXFLTMAP2, WLAN_RX_FILTER2); in rtw8822c_mac_init()
2110 rtw_write16(rtwdev, REG_RXPSF_CTRL + 2, value16); in rtw8822c_mac_init()
2116 rtw_write16(rtwdev, REG_RXPSF_CTRL, value16); in rtw8822c_mac_init()
[all …]
Dfw.c1463 rtw_write16(rtwdev, REG_FIFOPAGE_CTRL_2, pg_addr); in rtw_fw_write_data_rsvd_page()
1499 rtw_write16(rtwdev, REG_FIFOPAGE_CTRL_2, in rtw_fw_write_data_rsvd_page()
1788 rtw_write16(rtwdev, REG_PKTBUF_DBG_CTRL, start_pg | ctl); in rtw_fw_read_fifo_page()
1803 rtw_write16(rtwdev, REG_PKTBUF_DBG_CTRL, ctl); in rtw_fw_read_fifo_page()
Dcoex.c76 rtw_write16(rtwdev, REG_RETRY_LIMIT, 0x0808); in rtw_coex_limited_tx()
85 rtw_write16(rtwdev, REG_RETRY_LIMIT, coex_stat->retry_limit); in rtw_coex_limited_tx()
396 rtw_write16(rtwdev, REG_WIFI_BT_INFO, val); in rtw_coex_write_scbd()
2753 rtw_write16(rtwdev, REG_WIFI_BT_INFO, BIT_BT_INT_EN); in rtw_coex_power_off_setting()
Dusb.c787 rtw_write16(rtwdev, REG_RXDMA_AGG_PG_TH, val16); in rtw_usb_dynamic_rx_agg_v1()
/linux-6.12.1/drivers/staging/rtl8723bs/hal/
Dsdio_halinit.c70 rtw_write16(padapter, REG_APS_FSMCO, value16); in _InitPowerOn_8723BS()
89 rtw_write16(padapter, REG_CR, value16); in _InitPowerOn_8723BS()
100 rtw_write16(padapter, REG_PWR_DATA, value16); in _InitPowerOn_8723BS()
127 rtw_write16(padapter, 0x218, HQ_threshold); in _init_available_page_threshold()
128 rtw_write16(padapter, 0x21A, NQ_threshold); in _init_available_page_threshold()
129 rtw_write16(padapter, 0x21C, LQ_threshold); in _init_available_page_threshold()
209 rtw_write16(Adapter, REG_TRXDMA_CTRL, value16); in _InitNormalChipRegPriority()
336 rtw_write16(padapter, (REG_TRXFF_BNDY + 2), rxff_bndy); in _InitPageBoundary()
387 rtw_write16(padapter, REG_RXFLTMAP2, value16); in _InitWMACSetting()
393 rtw_write16(padapter, REG_RXFLTMAP1, value16); in _InitWMACSetting()
[all …]
Drtl8723b_hal_init.c686 rtw_write16(padapter, REG_SYS_FUNC_EN, tmpV16); in Hal_EfusePowerSwitch()
693 rtw_write16(padapter, REG_SYS_CLKR, tmpV16); in Hal_EfusePowerSwitch()
1674 rtw_write16(padapter, REG_BCN_CTRL, val16); in rtl8723b_InitBeaconParameters()
1677 rtw_write16(padapter, REG_TBTT_PROHIBIT, 0x6404);/* ms */ in rtl8723b_InitBeaconParameters()
1686 rtw_write16(padapter, REG_BCNTCFG, 0x660F); in rtl8723b_InitBeaconParameters()
1776 rtw_write16(padapter, REG_ATIMWND, 2); in rtl8723b_SetBeaconRelatedRegisters()
1781 rtw_write16(padapter, REG_BCN_INTERVAL, pmlmeinfo->bcn_interval); in rtl8723b_SetBeaconRelatedRegisters()
2855 rtw_write16(padapter, REG_RXFLTMAP2, 0xFFFF); in hw_var_set_opmode()
2857 rtw_write16(padapter, REG_RXFLTMAP1, 0x0400); in hw_var_set_opmode()
2864 rtw_write16(padapter, REG_BCNTCFG, 0x00); in hw_var_set_opmode()
[all …]
Drtl8723b_phycfg.c393 rtw_write16(Adapter, REG_SYS_FUNC_EN, (u16)(RegVal|BIT13|BIT0|BIT1)); in PHY_BBConfig8723B()
591 rtw_write16(Adapter, REG_TRXPTCL_CTL_8723B, (RegRfMod_BW & 0xFE7F)); /* BIT 7 = 0, BIT 8 = 0 */ in phy_SetRegBW_8723B()
596 rtw_write16(Adapter, REG_TRXPTCL_CTL_8723B, (u2tmp & 0xFEFF)); /* BIT 7 = 1, BIT 8 = 0 */ in phy_SetRegBW_8723B()
Dodm_DIG.c15rtw_write16(pDM_Odm->Adapter, ODM_REG_NHM_TIMER_11N+2, 0x2710); /* 0x894[31:16]= 0x2710 Time durat… in odm_NHMCounterStatisticsInit()
17rtw_write16(pDM_Odm->Adapter, ODM_REG_NHM_TH9_TH10_11N+2, 0xffff); /* 0x890[31:16]= 0xffff th_9, t… in odm_NHMCounterStatisticsInit()
Drtl8723b_cmd.c646 rtw_write16(padapter, REG_BCN_PSR_RPT, (0xC000|pmlmeinfo->aid)); in rtl8723b_download_rsvd_page()
913 rtw_write16(padapter, REG_BCN_PSR_RPT, (0xC000|pmlmeinfo->aid)); in rtl8723b_download_BTCoex_AP_mode_rsvd_page()
Dhal_com.c596 rtw_write16(adapter, REG_SECCFG, reg_scr|SCR_CHK_KEYID|SCR_RxDecEnable|SCR_TxEncEnable); in SetHwReg()
Dhal_btcoex.c651 rtw_write16(padapter, RegAddr, Data); in halbtcoutsrc_Write2Byte()
/linux-6.12.1/drivers/staging/rtl8723bs/core/
Drtw_efuse.c251 rtw_write16(padapter, 0x34, rtw_read16(padapter, 0x34) & (~BIT11)); in efuse_OneByteRead()
296 rtw_write16(padapter, 0x34, rtw_read16(padapter, 0x34) | (BIT11)); in efuse_OneByteWrite()
Drtw_io.c81 int rtw_write16(struct adapter *adapter, u32 addr, u16 val) in rtw_write16() function
/linux-6.12.1/drivers/staging/rtl8723bs/include/
Drtw_io.h119 extern int rtw_write16(struct adapter *adapter, u32 addr, u16 val);

12