Home
last modified time | relevance | path

Searched refs:rtw_read8 (Results 1 – 25 of 29) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/hal/
Dsdio_halinit.c66 …rtw_write8(padapter, REG_GPIO_PIN_CTRL + 3, rtw_read8(padapter, REG_GPIO_PIN_CTRL + 3) & ~BIT(inde… in HalSetOutPutGPIO()
71 …rtw_write8(padapter, REG_GPIO_PIN_CTRL + 2, rtw_read8(padapter, REG_GPIO_PIN_CTRL + 2) | BIT(index… in HalSetOutPutGPIO()
75 …rtw_write8(padapter, REG_GPIO_PIN_CTRL + 1, rtw_read8(padapter, REG_GPIO_PIN_CTRL + 1) | BIT(index… in HalSetOutPutGPIO()
77 …rtw_write8(padapter, REG_GPIO_PIN_CTRL + 1, rtw_read8(padapter, REG_GPIO_PIN_CTRL + 1) & ~BIT(inde… in HalSetOutPutGPIO()
86 …rtw_write8(padapter, REG_GPIO_PIN_CTRL_2 + 3, rtw_read8(padapter, REG_GPIO_PIN_CTRL_2 + 3) & ~BIT(… in HalSetOutPutGPIO()
91 …rtw_write8(padapter, REG_GPIO_PIN_CTRL_2 + 2, rtw_read8(padapter, REG_GPIO_PIN_CTRL_2 + 2) | BIT(i… in HalSetOutPutGPIO()
95 …rtw_write8(padapter, REG_GPIO_PIN_CTRL_2 + 1, rtw_read8(padapter, REG_GPIO_PIN_CTRL_2 + 1) | BIT(i… in HalSetOutPutGPIO()
97 …rtw_write8(padapter, REG_GPIO_PIN_CTRL_2 + 1, rtw_read8(padapter, REG_GPIO_PIN_CTRL_2 + 1) & ~BIT(… in HalSetOutPutGPIO()
115 value8 = rtw_read8(padapter, REG_PAD_CTRL1_8723B + 2); in _InitPowerOn_8723BS()
123 value8 = rtw_read8(padapter, REG_MULTI_FUNC_CTRL + 1); in _InitPowerOn_8723BS()
[all …]
Drtl8723b_hal_init.c22 tmp = rtw_read8(padapter, REG_SYS_FUNC_EN+1); in _FWDownloadEnable()
25 tmp = rtw_read8(padapter, REG_MCUFWDL); in _FWDownloadEnable()
29 tmp = rtw_read8(padapter, REG_MCUFWDL); in _FWDownloadEnable()
40 tmp = rtw_read8(padapter, REG_MCUFWDL+2); in _FWDownloadEnable()
44 tmp = rtw_read8(padapter, REG_MCUFWDL); in _FWDownloadEnable()
145 value8 = (rtw_read8(padapter, REG_MCUFWDL+2) & 0xF8) | u8Page; in _PageWrite()
199 io_rst = rtw_read8(padapter, REG_RSV_CTRL+1); in _8051Reset8723()
203 cpu_rst = rtw_read8(padapter, REG_SYS_FUNC_EN+1); in _8051Reset8723()
209 io_rst = rtw_read8(padapter, REG_RSV_CTRL+1); in _8051Reset8723()
213 cpu_rst = rtw_read8(padapter, REG_SYS_FUNC_EN+1); in _8051Reset8723()
[all …]
DHalPwrSeqCmd.c113 value = rtw_read8(padapter, offset); in HalPwrSeqCmdParsing()
139 value = rtw_read8(padapter, offset); in HalPwrSeqCmdParsing()
Dhal_com.c911 trigger = rtw_read8(adapter, REG_C2HEVT_CLEAR); in c2h_evt_read_88xx()
922 c2h_evt->id = rtw_read8(adapter, REG_C2HEVT_MSG_NORMAL); in c2h_evt_read_88xx()
923 c2h_evt->seq = rtw_read8(adapter, REG_C2HEVT_CMD_SEQ_88XX); in c2h_evt_read_88xx()
924 c2h_evt->plen = rtw_read8(adapter, REG_C2HEVT_CMD_LEN_88XX); in c2h_evt_read_88xx()
945 c2h_evt->payload[i] = rtw_read8(adapter, REG_C2HEVT_MSG_NORMAL + 2 + i); in c2h_evt_read_88xx()
1028 u8 reg_scr = rtw_read8(adapter, REG_SECCFG); in SetHwReg()
1173 pDigTable->CurIGValue = rtw_read8(adapter, 0xc50); in SetHalDefVar()
1556 rtw_write8(adapter, REG_RXERR_RPT+3, rtw_read8(adapter, REG_RXERR_RPT+3)|0xf0); in rtw_hal_check_rxfifo_full()
Drtl8723b_cmd.c30 valid = rtw_read8(padapter, REG_HMETFR) & BIT(msgbox_num); in _is_fw_read_cmd_down()
900 header = rtw_read8(padapter, REG_BCNQ_BDNY); in rtl8723b_set_ap_wow_rsvdpage_cmd()
1259 res = rtw_read8(padapter, REG_PNO_STATUS); in rtl8723b_set_FwRemoteWakeCtrl_Cmd()
1263 res = rtw_read8(padapter, REG_PNO_STATUS); in rtl8723b_set_FwRemoteWakeCtrl_Cmd()
1947 v8 = rtw_read8(padapter, REG_CR+1); in rtl8723b_download_rsvd_page()
1954 val8 = rtw_read8(padapter, REG_BCN_CTRL); in rtl8723b_download_rsvd_page()
2006 val8 = rtw_read8(padapter, REG_BCN_CTRL); in rtl8723b_download_rsvd_page()
2022 v8 = rtw_read8(padapter, REG_CR+1); in rtl8723b_download_rsvd_page()
2252 val8 = rtw_read8(padapter, REG_CR+1); in rtl8723b_download_BTCoex_AP_mode_rsvd_page()
2259 val8 = rtw_read8(padapter, REG_BCN_CTRL); in rtl8723b_download_BTCoex_AP_mode_rsvd_page()
[all …]
Dsdio_ops.c843 rtw_read8(adapter, 0x100), in CheckIPSStatus()
844 rtw_read8(adapter, 0x86) in CheckIPSStatus()
847 if (rtw_read8(adapter, 0x100) == 0xEA) in CheckIPSStatus()
Dhal_btcoex.c668 return rtw_read8(padapter, RegAddr); in halbtcoutsrc_Read1Byte()
721 originalValue = rtw_read8(padapter, regAddr); in halbtcoutsrc_BitMaskWrite1Byte()
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/core/
Drtw_efuse.c229 Bytetemp = rtw_read8(Adapter, EFUSE_CTRL+2); in EFUSE_Read1Byte()
235 Bytetemp = rtw_read8(Adapter, EFUSE_CTRL+3); in EFUSE_Read1Byte()
240 Bytetemp = rtw_read8(Adapter, EFUSE_CTRL+3); in EFUSE_Read1Byte()
242 Bytetemp = rtw_read8(Adapter, EFUSE_CTRL+3); in EFUSE_Read1Byte()
247 return rtw_read8(Adapter, EFUSE_CTRL); in EFUSE_Read1Byte()
281 (rtw_read8(padapter, EFUSE_CTRL+2)&0xFC)); in efuse_OneByteRead()
285 readbyte = rtw_read8(padapter, EFUSE_CTRL+3); in efuse_OneByteRead()
288 while (!(0x80 & rtw_read8(padapter, EFUSE_CTRL+3)) && (tmpidx < 1000)) { in efuse_OneByteRead()
293 *data = rtw_read8(padapter, EFUSE_CTRL); in efuse_OneByteRead()
343 while ((0x80 & rtw_read8(padapter, EFUSE_CTRL+3)) && (tmpidx < 100)) { in efuse_OneByteWrite()
Drtw_eeprom.c43 x = rtw_read8(padapter, EE_9346CR); in shift_out_bits()
79 x = rtw_read8(padapter, EE_9346CR); in shift_in_bits()
91 x = rtw_read8(padapter, EE_9346CR); in shift_in_bits()
109 x = rtw_read8(padapter, EE_9346CR); in standby()
129 x = rtw_read8(padapter, EE_9346CR); in eeprom_clean()
163 x = rtw_read8(padapter, EE_9346CR); in eeprom_read16()
Drtw_wlan_util.c2022 direction = (rtw_read8(adapter, REG_GPIO_PIN_CTRL + 2) & BIT(gpio_num)) >> gpio_num; in rtw_get_gpio()
2026 value = (rtw_read8(adapter, REG_GPIO_PIN_CTRL + 1) & BIT(gpio_num)) >> gpio_num; in rtw_get_gpio()
2028 value = (rtw_read8(adapter, REG_GPIO_PIN_CTRL) & BIT(gpio_num)) >> gpio_num; in rtw_get_gpio()
2054 direction = (rtw_read8(adapter, REG_GPIO_PIN_CTRL + 2) & BIT(gpio_num)) >> gpio_num; in rtw_set_gpio_output_value()
2059 …rtw_write8(adapter, REG_GPIO_PIN_CTRL + 1, rtw_read8(adapter, REG_GPIO_PIN_CTRL + 1) | BIT(gpio_nu… in rtw_set_gpio_output_value()
2061 …rtw_write8(adapter, REG_GPIO_PIN_CTRL + 1, rtw_read8(adapter, REG_GPIO_PIN_CTRL + 1) & ~BIT(gpio_n… in rtw_set_gpio_output_value()
2091 …rtw_write8(adapter, REG_GPIO_PIN_CTRL + 2, rtw_read8(adapter, REG_GPIO_PIN_CTRL + 2) | BIT(gpio_nu… in rtw_config_gpio()
2093 …rtw_write8(adapter, REG_GPIO_PIN_CTRL + 2, rtw_read8(adapter, REG_GPIO_PIN_CTRL + 2) & ~BIT(gpio_n… in rtw_config_gpio()
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtw88/
Dmac.c53 value8 = rtw_read8(rtwdev, REG_CCK_CHECK); in rtw_set_channel_mac()
100 value8 = rtw_read8(rtwdev, REG_SYS_FUNC_EN); in rtw_mac_pre_system_cfg()
104 value8 = rtw_read8(rtwdev, REG_RF_CTRL); in rtw_mac_pre_system_cfg()
121 return read_poll_timeout_atomic(rtw_read8, val, (val & mask) == target, in do_pwr_poll_cmd()
144 value = rtw_read8(rtwdev, REG_SYS_PW_CTRL); in rtw_pwr_cmd_polling()
181 value = rtw_read8(rtwdev, offset); in rtw_sub_pwr_seq_parser()
252 rpwm = rtw_read8(rtwdev, rtwdev->hci.rpwm_addr); in rtw_mac_power_switch()
261 if (rtw_read8(rtwdev, REG_CR) == 0xea) in rtw_mac_power_switch()
264 (rtw_read8(rtwdev, REG_SYS_STATUS1 + 1) & BIT(0))) in rtw_mac_power_switch()
290 value8 = (rtw_read8(rtwdev, REG_CR_EXT + 3) & 0xF0) | 0x0C; in __rtw_mac_init_system_cfg()
[all …]
Dhci.h86 static inline u8 rtw_read8(struct rtw_dev *rtwdev, u32 addr) in rtw_read8() function
120 val = rtw_read8(rtwdev, addr); in rtw_write8_set()
144 val = rtw_read8(rtwdev, addr); in rtw_write8_clr()
222 orig = rtw_read8(rtwdev, addr); in rtw_read8_mask()
251 orig = rtw_read8(rtwdev, addr); in rtw_write8_mask()
Dps.c75 request = rtw_read8(rtwdev, rtwdev->hci.rpwm_addr); in rtw_power_mode_change()
76 confirm = rtw_read8(rtwdev, rtwdev->hci.cpwm_addr); in rtw_power_mode_change()
95 polling = rtw_read8(rtwdev, rtwdev->hci.cpwm_addr); in rtw_power_mode_change()
Dbf.c149 mu_valid = rtw_read8(rtwdev, REG_MU_TX_CTL) & in rtw_bf_cfg_mu_bfee()
155 mu_tbl_sel = rtw_read8(rtwdev, REG_MU_TX_CTL + 1) & 0xF8; in rtw_bf_cfg_mu_bfee()
Defuse.c140 *data = rtw_read8(rtwdev, REG_EFUSE_CTRL); in rtw_read8_physical_efuse()
Dwow.c17 reason = rtw_read8(rtwdev, REG_WOWLAN_WAKE_REASON); in rtw_wow_show_wakeup_reason()
255 rtw_wow->txpause = rtw_read8(rtwdev, REG_TXPAUSE); in rtw_wow_bb_stop()
291 ret = read_poll_timeout(rtw_read8, check, !check, 1000, in rtw_wow_check_fw_status()
Dpci.c412 tmp = rtw_read8(rtwdev, RTK_PCI_CTRL + 3); in rtw_pci_reset_buf_desc()
817 reg_bcn_work = rtw_read8(rtwdev, RTK_PCI_TXBD_BCN_WORK); in rtw_pci_write_data_rsvd_page()
1143 flag = rtw_read8(rtwdev, REG_DBI_FLAG_V1 + 2); in rtw_dbi_write8()
1163 flag = rtw_read8(rtwdev, REG_DBI_FLAG_V1 + 2); in rtw_dbi_read8()
1166 *value = rtw_read8(rtwdev, read_addr); in rtw_dbi_read8()
Dfw.c198 if (rtw_read8(rtwdev, REG_MCU_TST_CFG) == VAL_FW_TRIGGER) in rtw_fw_c2h_cmd_isr()
244 ret = read_poll_timeout_atomic(rtw_read8, box_state, in rtw_fw_send_h2c_command()
1126 val = rtw_read8(rtwdev, REG_CR + 1); in rtw_fw_write_data_rsvd_page()
1131 val = rtw_read8(rtwdev, REG_FWHW_TXQ_CTRL + 2); in rtw_fw_write_data_rsvd_page()
Drtw8821c.c116 val = rtw_read8(rtwdev, REG_SYS_FUNC_EN); in rtw8821c_phy_set_param()
152 rtwdev->dm_info.cck_pd_default = rtw_read8(rtwdev, REG_CSRATIO) & 0x1f; in rtw8821c_phy_set_param()
222 ldo_pwr = rtw_read8(rtwdev, REG_LDO_EFUSE_CTRL + 3); in rtw8821c_cfg_ldo25()
Drtw8723d.c74 val_ctx = rtw_read8(rtwdev, REG_CTX); in rtw8723d_lck()
562 ldo_pwr = rtw_read8(rtwdev, REG_LDO_EFUSE_CTRL + 3); in rtw8723d_cfg_ldo25()
727 backup->mac8[i] = rtw_read8(rtwdev, iqk_mac8_regs[i]); in rtw8723d_iqk_backup_regs()
769 backup->btg_sel = rtw_read8(rtwdev, REG_BTG_SEL); in rtw8723d_iqk_backup_path_ctrl()
Dmain.c1444 id = rtw_read8(rtwdev, REG_C2HEVT); in rtw_dump_hw_feature()
1451 hw_feature[i] = rtw_read8(rtwdev, REG_C2HEVT + 2 + i); in rtw_dump_hw_feature()
Dcoex.c59 rtw_read8(rtwdev, REG_AMPDU_MAX_TIME_V1); in rtw_coex_limited_tx()
316 wlk = !!(rtw_read8(rtwdev, REG_ARFR4) & BIT_WL_RFK); in rtw_coex_check_rfk()
2905 sys_lte = rtw_read8(rtwdev, 0x73); in rtw_coex_display_coex_info()
Drtw8822c.c1279 value8 = rtw_read8(rtwdev, REG_FWHW_TXQ_CTRL); in rtw8822c_mac_init()
2035 ldo_pwr = rtw_read8(rtwdev, REG_ANAPARLDO_POW_MAC); in rtw8822c_cfg_ldo25()
2140 iqk_chk = rtw_read8(rtwdev, REG_RPT_CIP); in rtw8822c_do_iqk()
3016 dpk_info->dpk_txagc[path] = rtw_read8(rtwdev, REG_DPD_AGC); in rtw8822c_dpk_fill_result()
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/include/
Drtw_io.h296 #define rtw_read8(adapter, addr) _rtw_read8((adapter), (addr)) macro
358 rtw_read8(_a, _b)
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/os_dep/
Dioctl_linux.c2261 data32 = rtw_read8(padapter, addr); in rtw_wx_read32()
2690 DBG_871X("rtw_read8(0x%x) = 0x%02x\n", arg, rtw_read8(padapter, arg)); in rtw_dbg_port()
2704 DBG_871X("rtw_write8(0x%x) = 0x%02x\n", arg, rtw_read8(padapter, arg)); in rtw_dbg_port()
3200 DBG_871X("wr(0xc50) = 0x%x\n", rtw_read8(padapter, 0xc50)); in rtw_dbg_port()
3202 DBG_871X("wr(0xc58) = 0x%x\n", rtw_read8(padapter, 0xc58)); in rtw_dbg_port()
3205 DBG_871X("rd(0xc50) = 0x%x\n", rtw_read8(padapter, 0xc50)); in rtw_dbg_port()
3206 DBG_871X("rd(0xc58) = 0x%x\n", rtw_read8(padapter, 0xc58)); in rtw_dbg_port()

12