/linux-5.19.10/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
D | hal_bt_coexist.c | 21 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723_dm_bt_check_wifi_state() local 22 struct rtl_phy *rtlphy = &(rtlpriv->phy); in _rtl8723_dm_bt_check_wifi_state() 24 if (rtlpriv->link_info.busytraffic) { in _rtl8723_dm_bt_check_wifi_state() 25 rtlpriv->btcoexist.cstate &= in _rtl8723_dm_bt_check_wifi_state() 28 if (rtlpriv->link_info.tx_busy_traffic) in _rtl8723_dm_bt_check_wifi_state() 29 rtlpriv->btcoexist.cstate |= in _rtl8723_dm_bt_check_wifi_state() 32 rtlpriv->btcoexist.cstate &= in _rtl8723_dm_bt_check_wifi_state() 35 if (rtlpriv->link_info.rx_busy_traffic) in _rtl8723_dm_bt_check_wifi_state() 36 rtlpriv->btcoexist.cstate |= in _rtl8723_dm_bt_check_wifi_state() 39 rtlpriv->btcoexist.cstate &= in _rtl8723_dm_bt_check_wifi_state() [all …]
|
D | hw.c | 31 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723e_set_bcn_ctrl_reg() local 36 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8) rtlpci->reg_bcn_ctrl_val); in _rtl8723e_set_bcn_ctrl_reg() 41 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723e_stop_tx_beacon() local 44 tmp1byte = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl8723e_stop_tx_beacon() 45 rtl_write_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2, tmp1byte & (~BIT(6))); in _rtl8723e_stop_tx_beacon() 46 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 1, 0x64); in _rtl8723e_stop_tx_beacon() 47 tmp1byte = rtl_read_byte(rtlpriv, REG_TBTT_PROHIBIT + 2); in _rtl8723e_stop_tx_beacon() 49 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 2, tmp1byte); in _rtl8723e_stop_tx_beacon() 54 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723e_resume_tx_beacon() local 57 tmp1byte = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl8723e_resume_tx_beacon() [all …]
|
D | dm.c | 18 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723e_dm_initial_gain_min_pwdb() local 19 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl8723e_dm_initial_gain_min_pwdb() 20 struct rtl_mac *mac = rtl_mac(rtlpriv); in rtl8723e_dm_initial_gain_min_pwdb() 25 rtlpriv->link_info.bcn_rx_inperiod == 0) in rtl8723e_dm_initial_gain_min_pwdb() 30 if (rtlpriv->dm.entry_min_undec_sm_pwdb != 0) in rtl8723e_dm_initial_gain_min_pwdb() 32 (rtlpriv->dm.entry_min_undec_sm_pwdb > in rtl8723e_dm_initial_gain_min_pwdb() 33 rtlpriv->dm.undec_sm_pwdb) ? in rtl8723e_dm_initial_gain_min_pwdb() 34 rtlpriv->dm.undec_sm_pwdb : in rtl8723e_dm_initial_gain_min_pwdb() 35 rtlpriv->dm.entry_min_undec_sm_pwdb; in rtl8723e_dm_initial_gain_min_pwdb() 37 rssi_val_min = rtlpriv->dm.undec_sm_pwdb; in rtl8723e_dm_initial_gain_min_pwdb() [all …]
|
D | hal_btc.c | 16 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() local 19 if (!rtlpriv->btcoexist.bt_coexistence) in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 23 rtl_dbg(rtlpriv, COMP_BT_COEXIST, DBG_DMESG, in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 25 rtlpriv->btcoexist.cstate = 0; in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 26 rtlpriv->btcoexist.previous_state = 0; in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 27 rtlpriv->btcoexist.cstate_h = 0; in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 28 rtlpriv->btcoexist.previous_state_h = 0; in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 35 struct rtl_priv *rtlpriv = rtl_priv(hw); in mgnt_link_status_query() local 39 if (bibss || rtlpriv->mac80211.link_state >= MAC80211_LINKED) in mgnt_link_status_query() 48 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_8723e_bt_wifi_media_status_notify() local [all …]
|
/linux-5.19.10/drivers/net/wireless/realtek/rtlwifi/rtl8192c/ |
D | dm_common.c | 141 struct rtl_priv *rtlpriv = rtl_priv(hw); in dm_restorepowerindex() local 145 rtl_write_byte(rtlpriv, power_index_reg[index], in dm_restorepowerindex() 146 rtlpriv->dm.powerindex_backup[index]); in dm_restorepowerindex() 152 struct rtl_priv *rtlpriv = rtl_priv(hw); in dm_writepowerindex() local 156 rtl_write_byte(rtlpriv, power_index_reg[index], value); in dm_writepowerindex() 162 struct rtl_priv *rtlpriv = rtl_priv(hw); in dm_savepowerindex() local 167 tmp = rtl_read_byte(rtlpriv, power_index_reg[index]); in dm_savepowerindex() 168 rtlpriv->dm.powerindex_backup[index] = tmp; in dm_savepowerindex() 175 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_dm_initial_gain_min_pwdb() local 176 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl92c_dm_initial_gain_min_pwdb() [all …]
|
/linux-5.19.10/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | dm.c | 136 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92d_dm_false_alarm_counter_statistics() local 137 struct false_alarm_statistics *falsealm_cnt = &(rtlpriv->falsealm_cnt); in rtl92d_dm_false_alarm_counter_statistics() 161 if (rtlpriv->rtlhal.current_bandtype != BAND_ON_5G) { in rtl92d_dm_false_alarm_counter_statistics() 189 if (rtlpriv->rtlhal.current_bandtype != BAND_ON_5G) { in rtl92d_dm_false_alarm_counter_statistics() 197 rtl_dbg(rtlpriv, COMP_DIG, DBG_LOUD, in rtl92d_dm_false_alarm_counter_statistics() 201 rtl_dbg(rtlpriv, COMP_DIG, DBG_LOUD, in rtl92d_dm_false_alarm_counter_statistics() 207 rtl_dbg(rtlpriv, COMP_DIG, DBG_LOUD, in rtl92d_dm_false_alarm_counter_statistics() 216 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92d_dm_find_minimum_rssi() local 217 struct dig_t *de_digtable = &rtlpriv->dm_digtable; in rtl92d_dm_find_minimum_rssi() 218 struct rtl_mac *mac = rtl_mac(rtlpriv); in rtl92d_dm_find_minimum_rssi() [all …]
|
D | hw.c | 22 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92de_read_dword_dbi() local 25 rtl_write_word(rtlpriv, REG_DBI_CTRL, (offset & 0xFFC)); in rtl92de_read_dword_dbi() 26 rtl_write_byte(rtlpriv, REG_DBI_FLAG, BIT(1) | direct); in rtl92de_read_dword_dbi() 28 value = rtl_read_dword(rtlpriv, REG_DBI_RDATA); in rtl92de_read_dword_dbi() 35 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92de_write_dword_dbi() local 37 rtl_write_word(rtlpriv, REG_DBI_CTRL, ((offset & 0xFFC) | 0xF000)); in rtl92de_write_dword_dbi() 38 rtl_write_dword(rtlpriv, REG_DBI_WDATA, value); in rtl92de_write_dword_dbi() 39 rtl_write_byte(rtlpriv, REG_DBI_FLAG, BIT(0) | direct); in rtl92de_write_dword_dbi() 46 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92de_set_bcn_ctrl_reg() local 50 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8) rtlpci->reg_bcn_ctrl_val); in _rtl92de_set_bcn_ctrl_reg() [all …]
|
/linux-5.19.10/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
D | hw.c | 27 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_set_bcn_ctrl_reg() local 32 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8)rtlpci->reg_bcn_ctrl_val); in _rtl92ce_set_bcn_ctrl_reg() 37 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_stop_tx_beacon() local 40 tmp1byte = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl92ce_stop_tx_beacon() 41 rtl_write_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2, tmp1byte & (~BIT(6))); in _rtl92ce_stop_tx_beacon() 42 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 1, 0x64); in _rtl92ce_stop_tx_beacon() 43 tmp1byte = rtl_read_byte(rtlpriv, REG_TBTT_PROHIBIT + 2); in _rtl92ce_stop_tx_beacon() 45 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 2, tmp1byte); in _rtl92ce_stop_tx_beacon() 50 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_resume_tx_beacon() local 53 tmp1byte = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl92ce_resume_tx_beacon() [all …]
|
/linux-5.19.10/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | hw.c | 27 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_set_bcn_ctrl_reg() local 32 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8) rtlpci->reg_bcn_ctrl_val); in _rtl88ee_set_bcn_ctrl_reg() 37 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_stop_tx_beacon() local 40 tmp1byte = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl88ee_stop_tx_beacon() 41 rtl_write_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2, tmp1byte & (~BIT(6))); in _rtl88ee_stop_tx_beacon() 42 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 1, 0x64); in _rtl88ee_stop_tx_beacon() 43 tmp1byte = rtl_read_byte(rtlpriv, REG_TBTT_PROHIBIT + 2); in _rtl88ee_stop_tx_beacon() 45 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 2, tmp1byte); in _rtl88ee_stop_tx_beacon() 50 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_resume_tx_beacon() local 53 tmp1byte = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl88ee_resume_tx_beacon() [all …]
|
/linux-5.19.10/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
D | hw.c | 21 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92se_get_hw_reg() local 43 *ptsf_high = rtl_read_dword(rtlpriv, (TSFR + 4)); in rtl92se_get_hw_reg() 44 *ptsf_low = rtl_read_dword(rtlpriv, TSFR); in rtl92se_get_hw_reg() 51 *((bool *)(val)) = rtlpriv->dm.current_mrc_switch; in rtl92se_get_hw_reg() 64 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92se_set_hw_reg() local 73 rtl_write_dword(rtlpriv, IDR0, ((u32 *)(val))[0]); in rtl92se_set_hw_reg() 74 rtl_write_word(rtlpriv, IDR4, ((u16 *)(val + 4))[0]); in rtl92se_set_hw_reg() 88 rtl_write_byte(rtlpriv, RRSR, rate_cfg & 0xff); in rtl92se_set_hw_reg() 89 rtl_write_byte(rtlpriv, RRSR + 1, in rtl92se_set_hw_reg() 96 rtl_write_byte(rtlpriv, INIRTSMCS_SEL, rate_index); in rtl92se_set_hw_reg() [all …]
|
D | dm.c | 48 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92s_dm_check_edca_turbo() local 61 rtlpriv->dm.current_turbo_edca = false; in _rtl92s_dm_check_edca_turbo() 65 if ((!rtlpriv->dm.is_any_nonbepkts) && in _rtl92s_dm_check_edca_turbo() 66 (!rtlpriv->dm.disable_framebursting)) { in _rtl92s_dm_check_edca_turbo() 67 cur_txok_cnt = rtlpriv->stats.txbytesunicast - last_txok_cnt; in _rtl92s_dm_check_edca_turbo() 68 cur_rxok_cnt = rtlpriv->stats.rxbytesunicast - last_rxok_cnt; in _rtl92s_dm_check_edca_turbo() 70 if (rtlpriv->phy.rf_type == RF_1T2R) { in _rtl92s_dm_check_edca_turbo() 73 if (rtlpriv->dm.is_cur_rdlstate || in _rtl92s_dm_check_edca_turbo() 74 !rtlpriv->dm.current_turbo_edca) { in _rtl92s_dm_check_edca_turbo() 75 rtl_write_dword(rtlpriv, EDCAPARA_BE, in _rtl92s_dm_check_edca_turbo() [all …]
|
/linux-5.19.10/drivers/net/wireless/realtek/rtlwifi/ |
D | cam.c | 10 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_cam_reset_sec_info() local 12 rtlpriv->sec.use_defaultkey = false; in rtl_cam_reset_sec_info() 13 rtlpriv->sec.pairwise_enc_algorithm = NO_ENCRYPTION; in rtl_cam_reset_sec_info() 14 rtlpriv->sec.group_enc_algorithm = NO_ENCRYPTION; in rtl_cam_reset_sec_info() 15 memset(rtlpriv->sec.key_buf, 0, KEY_BUF_SIZE * MAX_KEY_LEN); in rtl_cam_reset_sec_info() 16 memset(rtlpriv->sec.key_len, 0, KEY_BUF_SIZE); in rtl_cam_reset_sec_info() 17 rtlpriv->sec.pairwise_key = NULL; in rtl_cam_reset_sec_info() 23 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_cam_program_entry() local 29 RT_PRINT_DATA(rtlpriv, COMP_SEC, DBG_DMESG, "Key content :", in rtl_cam_program_entry() 41 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[WCAMI], in rtl_cam_program_entry() [all …]
|
D | stats.c | 72 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_process_ui_rssi() local 73 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl_process_ui_rssi() 80 rtlpriv->stats.pwdb_all_cnt += pstatus->rx_pwdb_all; in rtl_process_ui_rssi() 81 rtlpriv->stats.rssi_calculate_cnt++; in rtl_process_ui_rssi() 83 if (rtlpriv->stats.ui_rssi.total_num++ >= PHY_RSSI_SLID_WIN_MAX) { in rtl_process_ui_rssi() 84 rtlpriv->stats.ui_rssi.total_num = PHY_RSSI_SLID_WIN_MAX; in rtl_process_ui_rssi() 85 last_rssi = rtlpriv->stats.ui_rssi.elements[ in rtl_process_ui_rssi() 86 rtlpriv->stats.ui_rssi.index]; in rtl_process_ui_rssi() 87 rtlpriv->stats.ui_rssi.total_val -= last_rssi; in rtl_process_ui_rssi() 89 rtlpriv->stats.ui_rssi.total_val += pstatus->signalstrength; in rtl_process_ui_rssi() [all …]
|
D | core.c | 76 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_fw_do_work() local 79 rtl_dbg(rtlpriv, COMP_ERR, DBG_LOUD, in rtl_fw_do_work() 82 if (rtlpriv->cfg->alt_fw_name) { in rtl_fw_do_work() 84 rtlpriv->cfg->alt_fw_name, in rtl_fw_do_work() 85 rtlpriv->io.dev); in rtl_fw_do_work() 87 rtlpriv->cfg->alt_fw_name); in rtl_fw_do_work() 92 rtlpriv->max_fw_size = 0; in rtl_fw_do_work() 96 if (firmware->size > rtlpriv->max_fw_size) { in rtl_fw_do_work() 102 memcpy(rtlpriv->rtlhal.pfirmware, firmware->data, in rtl_fw_do_work() 104 rtlpriv->rtlhal.fwsize = firmware->size; in rtl_fw_do_work() [all …]
|
D | ps.c | 12 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_ps_enable_nic() local 19 rtlpriv->intf_ops->reset_trx_ring(hw); in rtl_ps_enable_nic() 22 rtl_dbg(rtlpriv, COMP_ERR, DBG_WARNING, in rtl_ps_enable_nic() 26 if (rtlpriv->cfg->ops->hw_init(hw)) in rtl_ps_enable_nic() 28 rtlpriv->cfg->ops->set_hw_reg(hw, HW_VAR_RETRY_LIMIT, in rtl_ps_enable_nic() 32 rtlpriv->cfg->ops->switch_channel(hw); in rtl_ps_enable_nic() 33 rtlpriv->cfg->ops->set_channel_access(hw); in rtl_ps_enable_nic() 34 rtlpriv->cfg->ops->set_bw_mode(hw, in rtl_ps_enable_nic() 38 rtlpriv->cfg->ops->enable_interrupt(hw); in rtl_ps_enable_nic() 41 rtl_watch_dog_timer_callback(&rtlpriv->works.watchdog_timer); in rtl_ps_enable_nic() [all …]
|
/linux-5.19.10/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
D | hw.c | 27 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ee_set_bcn_ctrl_reg() local 32 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8)rtlpci->reg_bcn_ctrl_val); in _rtl92ee_set_bcn_ctrl_reg() 37 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ee_stop_tx_beacon() local 40 tmp = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl92ee_stop_tx_beacon() 41 rtl_write_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2, tmp & (~BIT(6))); in _rtl92ee_stop_tx_beacon() 42 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 1, 0x64); in _rtl92ee_stop_tx_beacon() 43 tmp = rtl_read_byte(rtlpriv, REG_TBTT_PROHIBIT + 2); in _rtl92ee_stop_tx_beacon() 45 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 2, tmp); in _rtl92ee_stop_tx_beacon() 50 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ee_resume_tx_beacon() local 53 tmp = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl92ee_resume_tx_beacon() [all …]
|
D | dm.c | 18 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ee_dm_false_alarm_counter_statistics() local 19 struct false_alarm_statistics *falsealm_cnt = &rtlpriv->falsealm_cnt; in rtl92ee_dm_false_alarm_counter_statistics() 89 rtl_dbg(rtlpriv, COMP_DIG, DBG_TRACE, in rtl92ee_dm_false_alarm_counter_statistics() 95 rtl_dbg(rtlpriv, COMP_DIG, DBG_TRACE, in rtl92ee_dm_false_alarm_counter_statistics() 103 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ee_dm_cck_packet_detection_thresh() local 104 struct dig_t *dm_dig = &rtlpriv->dm_digtable; in rtl92ee_dm_cck_packet_detection_thresh() 107 if (rtlpriv->mac80211.link_state >= MAC80211_LINKED) { in rtl92ee_dm_cck_packet_detection_thresh() 114 if (rtlpriv->falsealm_cnt.cnt_cck_fail > 1000) in rtl92ee_dm_cck_packet_detection_thresh() 120 if (rtlpriv->falsealm_cnt.cnt_cck_fail > 1000) in rtl92ee_dm_cck_packet_detection_thresh() 130 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ee_dm_dig() local [all …]
|
/linux-5.19.10/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | hw.c | 30 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_return_beacon_queue_skb() local 35 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags); in _rtl8723be_return_beacon_queue_skb() 41 rtlpriv->cfg->ops->get_desc(hw, (u8 *)entry, in _rtl8723be_return_beacon_queue_skb() 47 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags); in _rtl8723be_return_beacon_queue_skb() 54 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_set_bcn_ctrl_reg() local 59 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8)rtlpci->reg_bcn_ctrl_val); in _rtl8723be_set_bcn_ctrl_reg() 64 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_stop_tx_beacon() local 67 tmp1byte = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl8723be_stop_tx_beacon() 68 rtl_write_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2, tmp1byte & (~BIT(6))); in _rtl8723be_stop_tx_beacon() 69 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 1, 0x64); in _rtl8723be_stop_tx_beacon() [all …]
|
D | dm.c | 160 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_dm_txpower_track_adjust() local 163 u8 ofdm_base = rtlpriv->dm.swing_idx_ofdm_base[RF90_PATH_A]; in rtl8723be_dm_txpower_track_adjust() 164 u8 ofdm_val = rtlpriv->dm.swing_idx_ofdm[RF90_PATH_A]; in rtl8723be_dm_txpower_track_adjust() 195 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_dm_init_rate_adaptive_mask() local 196 struct rate_adaptive *p_ra = &rtlpriv->ra; in rtl8723be_dm_init_rate_adaptive_mask() 201 if (rtlpriv->dm.dm_type == DM_TYPE_BYDRIVER) in rtl8723be_dm_init_rate_adaptive_mask() 202 rtlpriv->dm.useramask = true; in rtl8723be_dm_init_rate_adaptive_mask() 204 rtlpriv->dm.useramask = false; in rtl8723be_dm_init_rate_adaptive_mask() 212 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_dm_init_txpower_tracking() local 214 rtlpriv->dm.txpower_tracking = true; in rtl8723be_dm_init_txpower_tracking() [all …]
|
/linux-5.19.10/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | hw.c | 26 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8821ae_return_beacon_queue_skb() local 31 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags); in _rtl8821ae_return_beacon_queue_skb() 37 rtlpriv->cfg->ops->get_desc(hw, (u8 *)entry, in _rtl8821ae_return_beacon_queue_skb() 43 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags); in _rtl8821ae_return_beacon_queue_skb() 50 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8821ae_set_bcn_ctrl_reg() local 55 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8)rtlpci->reg_bcn_ctrl_val); in _rtl8821ae_set_bcn_ctrl_reg() 60 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8821ae_stop_tx_beacon() local 63 tmp1byte = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl8821ae_stop_tx_beacon() 64 rtl_write_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2, tmp1byte & (~BIT(6))); in _rtl8821ae_stop_tx_beacon() 65 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 1, 0x64); in _rtl8821ae_stop_tx_beacon() [all …]
|
D | dm.c | 232 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8821ae_dm_txpower_track_adjust() local 237 if (rtlpriv->dm.swing_idx_ofdm[RF90_PATH_A] <= in rtl8821ae_dm_txpower_track_adjust() 238 rtlpriv->dm.swing_idx_ofdm_base[RF90_PATH_A]) { in rtl8821ae_dm_txpower_track_adjust() 269 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8821ae_dm_clear_txpower_tracking_state() local 270 struct rtl_dm *rtldm = rtl_dm(rtlpriv); in rtl8821ae_dm_clear_txpower_tracking_state() 271 struct rtl_efuse *rtlefuse = rtl_efuse(rtlpriv); in rtl8821ae_dm_clear_txpower_tracking_state() 319 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8821ae_dm_initialize_txpower_tracking_thermalmeter() local 320 struct rtl_dm *rtldm = rtl_dm(rtlpriv); in rtl8821ae_dm_initialize_txpower_tracking_thermalmeter() 321 struct rtl_efuse *rtlefuse = rtl_efuse(rtlpriv); in rtl8821ae_dm_initialize_txpower_tracking_thermalmeter() 325 rtlpriv->dm.txpower_track_control = true; in rtl8821ae_dm_initialize_txpower_tracking_thermalmeter() [all …]
|
/linux-5.19.10/drivers/net/wireless/realtek/rtlwifi/btcoexist/ |
D | rtl_btc.h | 9 void rtl_btc_init_variables(struct rtl_priv *rtlpriv); 10 void rtl_btc_init_variables_wifi_only(struct rtl_priv *rtlpriv); 11 void rtl_btc_deinit_variables(struct rtl_priv *rtlpriv); 12 void rtl_btc_init_hal_vars(struct rtl_priv *rtlpriv); 13 void rtl_btc_power_on_setting(struct rtl_priv *rtlpriv); 14 void rtl_btc_init_hw_config(struct rtl_priv *rtlpriv); 15 void rtl_btc_init_hw_config_wifi_only(struct rtl_priv *rtlpriv); 16 void rtl_btc_ips_notify(struct rtl_priv *rtlpriv, u8 type); 17 void rtl_btc_lps_notify(struct rtl_priv *rtlpriv, u8 type); 18 void rtl_btc_scan_notify(struct rtl_priv *rtlpriv, u8 scantype); [all …]
|
D | rtl_btc.c | 44 void rtl_btc_display_bt_coex_info(struct rtl_priv *rtlpriv, struct seq_file *m) in rtl_btc_display_bt_coex_info() argument 46 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_display_bt_coex_info() 56 void rtl_btc_record_pwr_mode(struct rtl_priv *rtlpriv, u8 *buf, u8 len) in rtl_btc_record_pwr_mode() argument 58 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_record_pwr_mode() 72 u8 rtl_btc_get_lps_val(struct rtl_priv *rtlpriv) in rtl_btc_get_lps_val() argument 74 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_get_lps_val() 82 u8 rtl_btc_get_rpwm_val(struct rtl_priv *rtlpriv) in rtl_btc_get_rpwm_val() argument 84 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_get_rpwm_val() 92 bool rtl_btc_is_bt_ctrl_lps(struct rtl_priv *rtlpriv) in rtl_btc_is_bt_ctrl_lps() argument 94 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_is_bt_ctrl_lps() [all …]
|
/linux-5.19.10/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
D | mac.c | 29 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_read_chip_version() local 30 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92c_read_chip_version() 31 struct rtl_hal *rtlhal = rtl_hal(rtlpriv); in rtl92c_read_chip_version() 36 value32 = rtl_read_dword(rtlpriv, REG_SYS_CFG); in rtl92c_read_chip_version() 49 value32 = rtl_read_dword(rtlpriv, REG_HPON_FSM); in rtl92c_read_chip_version() 94 rtl_dbg(rtlpriv, COMP_INIT, DBG_TRACE, in rtl92c_read_chip_version() 102 rtl_dbg(rtlpriv, COMP_INIT, DBG_LOUD, in rtl92c_read_chip_version() 106 rtlpriv->dm.rfpath_rxenable[0] = true; in rtl92c_read_chip_version() 108 rtlpriv->dm.rfpath_rxenable[0] = in rtl92c_read_chip_version() 109 rtlpriv->dm.rfpath_rxenable[1] = true; in rtl92c_read_chip_version() [all …]
|
D | dm.c | 13 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92cu_dm_dynamic_txpower() local 14 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92cu_dm_dynamic_txpower() 18 if (!rtlpriv->dm.dynamic_txpower_enable) in rtl92cu_dm_dynamic_txpower() 21 if (rtlpriv->dm.dm_flag & HAL_DM_HIPWR_DISABLE) { in rtl92cu_dm_dynamic_txpower() 22 rtlpriv->dm.dynamic_txhighpower_lvl = TXHIGHPWRLEVEL_NORMAL; in rtl92cu_dm_dynamic_txpower() 27 (rtlpriv->dm.entry_min_undec_sm_pwdb == 0)) { in rtl92cu_dm_dynamic_txpower() 28 rtl_dbg(rtlpriv, COMP_POWER, DBG_TRACE, in rtl92cu_dm_dynamic_txpower() 31 rtlpriv->dm.dynamic_txhighpower_lvl = TXHIGHPWRLEVEL_NORMAL; in rtl92cu_dm_dynamic_txpower() 33 rtlpriv->dm.last_dtp_lvl = TXHIGHPWRLEVEL_NORMAL; in rtl92cu_dm_dynamic_txpower() 39 undec_sm_pwdb = rtlpriv->dm.entry_min_undec_sm_pwdb; in rtl92cu_dm_dynamic_txpower() [all …]
|