Home
last modified time | relevance | path

Searched refs:rf_reg (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/net/wireless/realtek/rtw89/
H A Drtw8922a_rfk.c44 u32 rf_reg[RF_PATH_NUM_8922A][2]; in rtw8922a_ctl_band_ch_bw() local
51 rf_reg[RF_PATH_A][0] = rtw89_read_rf(rtwdev, RF_PATH_A, rf_addr[0], RFREG_MASK); in rtw8922a_ctl_band_ch_bw()
52 rf_reg[RF_PATH_A][1] = rtw89_read_rf(rtwdev, RF_PATH_A, rf_addr[1], RFREG_MASK); in rtw8922a_ctl_band_ch_bw()
53 rf_reg[RF_PATH_B][0] = rtw89_read_rf(rtwdev, RF_PATH_B, rf_addr[0], RFREG_MASK); in rtw8922a_ctl_band_ch_bw()
54 rf_reg[RF_PATH_B][1] = rtw89_read_rf(rtwdev, RF_PATH_B, rf_addr[1], RFREG_MASK); in rtw8922a_ctl_band_ch_bw()
70 if (rf_reg[path][i] == INV_RF_DATA) { in rtw8922a_ctl_band_ch_bw()
76 rf_reg[path][i] &= ~(RR_CFGCH_BAND1 | RR_CFGCH_BW | in rtw8922a_ctl_band_ch_bw()
78 rf_reg[path][i] |= u32_encode_bits(central_ch, RR_CFGCH_CH); in rtw8922a_ctl_band_ch_bw()
90 rf_reg[path][i] |= in rtw8922a_ctl_band_ch_bw()
95 rf_reg[path][i] |= in rtw8922a_ctl_band_ch_bw()
[all …]
H A Drtw8851b_rfk.c1644 static void _dpk_bkup_rf(struct rtw89_dev *rtwdev, const u32 *rf_reg, in _dpk_bkup_rf() argument
1650 rf_bkup[path][i] = rtw89_read_rf(rtwdev, path, rf_reg[i], RFREG_MASK); in _dpk_bkup_rf()
1653 path, rf_reg[i], rf_bkup[path][i]); in _dpk_bkup_rf()
1672 static void _dpk_reload_rf(struct rtw89_dev *rtwdev, const u32 *rf_reg, in _dpk_reload_rf() argument
1678 rtw89_write_rf(rtwdev, path, rf_reg[i], RFREG_MASK, rf_bkup[path][i]); in _dpk_reload_rf()
1682 rf_reg[i], rf_bkup[path][i]); in _dpk_reload_rf()
/linux/drivers/net/wireless/marvell/mwifiex/
H A Dsta_cmd.c1167 struct host_cmd_ds_rf_reg_access *rf_reg; in mwifiex_cmd_reg_access() local
1169 cmd->size = cpu_to_le16(sizeof(*rf_reg) + S_DS_GEN); in mwifiex_cmd_reg_access()
1170 rf_reg = &cmd->params.rf_reg; in mwifiex_cmd_reg_access()
1171 rf_reg->action = cpu_to_le16(cmd_action); in mwifiex_cmd_reg_access()
1172 rf_reg->offset = cpu_to_le16((u16) reg_rw->offset); in mwifiex_cmd_reg_access()
1173 rf_reg->value = (u8) reg_rw->value; in mwifiex_cmd_reg_access()
1192 cau_reg = &cmd->params.rf_reg; in mwifiex_cmd_reg_access()
H A Dsta_cmdresp.c814 r.rf = &resp->params.rf_reg; in mwifiex_ret_reg_access()
824 r.rf = &resp->params.rf_reg; in mwifiex_ret_reg_access()
H A Dfw.h2411 struct host_cmd_ds_rf_reg_access rf_reg; member
/linux/drivers/net/wireless/mediatek/mt76/mt7925/
H A Dmcu.c82 } __packed rf_reg; in mt7925_mcu_regval() member
89 req.rf_reg.tag = cpu_to_le16(UNI_CMD_ACCESS_RF_REG_BASIC); in mt7925_mcu_regval()
90 req.rf_reg.len = cpu_to_le16(sizeof(req.rf_reg)); in mt7925_mcu_regval()
91 req.rf_reg.ant = cpu_to_le16(u32_get_bits(regidx, MT_RF_REG_ANT)); in mt7925_mcu_regval()
92 req.rf_reg.idx = cpu_to_le32(regidx); in mt7925_mcu_regval()
93 req.rf_reg.data = set ? cpu_to_le32(*val) : 0; in mt7925_mcu_regval()
113 *val = le32_to_cpu(res->rf_reg.data); in mt7925_mcu_regval()
/linux/drivers/net/wireless/realtek/rtw88/
H A Drtw8822c.c3209 u32 *rf_reg, in rtw8822c_dpk_backup_rf_registers() argument
3216 rf_reg[i], RFREG_MASK); in rtw8822c_dpk_backup_rf_registers()
3218 rf_reg[i], RFREG_MASK); in rtw8822c_dpk_backup_rf_registers()
3223 u32 *rf_reg, in rtw8822c_dpk_reload_rf_registers() argument
3229 rtw_write_rf(rtwdev, RF_PATH_A, rf_reg[i], RFREG_MASK, in rtw8822c_dpk_reload_rf_registers()
3231 rtw_write_rf(rtwdev, RF_PATH_B, rf_reg[i], RFREG_MASK, in rtw8822c_dpk_reload_rf_registers()
4144 u32 rf_reg[DPK_RF_REG_NUM] = { in rtw8822c_do_dpk() local
4161 rtw8822c_dpk_backup_rf_registers(rtwdev, rf_reg, rf_reg_backup); in rtw8822c_do_dpk()
4171 rtw8822c_dpk_reload_rf_registers(rtwdev, rf_reg, rf_reg_backup); in rtw8822c_do_dpk()
H A Drtw8822b.c1071 u32 rf_reg, iqk_fail_mask; in rtw8822b_do_iqk() local
1078 rf_reg = rtw_read_rf(rtwdev, RF_PATH_A, RF_DTXLOK, RFREG_MASK); in rtw8822b_do_iqk()
1079 if (rf_reg == 0xabcde) in rtw8822b_do_iqk()
/linux/drivers/tty/serial/
H A Dmsm_serial.c1449 unsigned int rf_reg = msm_port->is_uartdm ? UARTDM_RF : MSM_UART_RF; in msm_poll_get_char_single() local
1454 return msm_read(port, rf_reg) & 0xff; in msm_poll_get_char_single()