/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/ |
D | hal_bt_coexist.c | 43 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723_dm_bt_check_wifi_state() local 44 struct rtl_phy *rtlphy = &(rtlpriv->phy); in _rtl8723_dm_bt_check_wifi_state() 46 if (rtlpriv->link_info.busytraffic) { in _rtl8723_dm_bt_check_wifi_state() 47 rtlpriv->btcoexist.cstate &= in _rtl8723_dm_bt_check_wifi_state() 50 if (rtlpriv->link_info.tx_busy_traffic) in _rtl8723_dm_bt_check_wifi_state() 51 rtlpriv->btcoexist.cstate |= in _rtl8723_dm_bt_check_wifi_state() 54 rtlpriv->btcoexist.cstate &= in _rtl8723_dm_bt_check_wifi_state() 57 if (rtlpriv->link_info.rx_busy_traffic) in _rtl8723_dm_bt_check_wifi_state() 58 rtlpriv->btcoexist.cstate |= in _rtl8723_dm_bt_check_wifi_state() 61 rtlpriv->btcoexist.cstate &= in _rtl8723_dm_bt_check_wifi_state() [all …]
|
D | hw.c | 53 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723e_set_bcn_ctrl_reg() local 58 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8) rtlpci->reg_bcn_ctrl_val); in _rtl8723e_set_bcn_ctrl_reg() 63 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723e_stop_tx_beacon() local 66 tmp1byte = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl8723e_stop_tx_beacon() 67 rtl_write_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2, tmp1byte & (~BIT(6))); in _rtl8723e_stop_tx_beacon() 68 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 1, 0x64); in _rtl8723e_stop_tx_beacon() 69 tmp1byte = rtl_read_byte(rtlpriv, REG_TBTT_PROHIBIT + 2); in _rtl8723e_stop_tx_beacon() 71 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 2, tmp1byte); in _rtl8723e_stop_tx_beacon() 76 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723e_resume_tx_beacon() local 79 tmp1byte = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl8723e_resume_tx_beacon() [all …]
|
D | hal_btc.c | 37 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() local 40 if (!rtlpriv->btcoexist.bt_coexistence) in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 44 RT_TRACE(rtlpriv, COMP_BT_COEXIST, DBG_DMESG, in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 46 rtlpriv->btcoexist.cstate = 0; in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 47 rtlpriv->btcoexist.previous_state = 0; in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 48 rtlpriv->btcoexist.cstate_h = 0; in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 49 rtlpriv->btcoexist.previous_state_h = 0; in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps() 56 struct rtl_priv *rtlpriv = rtl_priv(hw); in mgnt_link_status_query() local 60 if (bibss || rtlpriv->mac80211.link_state >= MAC80211_LINKED) in mgnt_link_status_query() 69 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_8723e_bt_wifi_media_status_notify() local [all …]
|
D | dm.c | 152 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723e_dm_initial_gain_min_pwdb() local 153 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl8723e_dm_initial_gain_min_pwdb() 158 if (rtlpriv->dm.entry_min_undec_sm_pwdb != 0) in rtl8723e_dm_initial_gain_min_pwdb() 160 (rtlpriv->dm.entry_min_undec_sm_pwdb > in rtl8723e_dm_initial_gain_min_pwdb() 161 rtlpriv->dm.undec_sm_pwdb) ? in rtl8723e_dm_initial_gain_min_pwdb() 162 rtlpriv->dm.undec_sm_pwdb : in rtl8723e_dm_initial_gain_min_pwdb() 163 rtlpriv->dm.entry_min_undec_sm_pwdb; in rtl8723e_dm_initial_gain_min_pwdb() 165 rssi_val_min = rtlpriv->dm.undec_sm_pwdb; in rtl8723e_dm_initial_gain_min_pwdb() 168 rssi_val_min = rtlpriv->dm.undec_sm_pwdb; in rtl8723e_dm_initial_gain_min_pwdb() 171 rssi_val_min = rtlpriv->dm.entry_min_undec_sm_pwdb; in rtl8723e_dm_initial_gain_min_pwdb() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192se/ |
D | hw.c | 47 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92se_get_hw_reg() local 69 *ptsf_high = rtl_read_dword(rtlpriv, (TSFR + 4)); in rtl92se_get_hw_reg() 70 *ptsf_low = rtl_read_dword(rtlpriv, TSFR); in rtl92se_get_hw_reg() 77 *((bool *)(val)) = rtlpriv->dm.current_mrc_switch; in rtl92se_get_hw_reg() 81 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, in rtl92se_get_hw_reg() 90 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92se_set_hw_reg() local 99 rtl_write_dword(rtlpriv, IDR0, ((u32 *)(val))[0]); in rtl92se_set_hw_reg() 100 rtl_write_word(rtlpriv, IDR4, ((u16 *)(val + 4))[0]); in rtl92se_set_hw_reg() 114 rtl_write_byte(rtlpriv, RRSR, rate_cfg & 0xff); in rtl92se_set_hw_reg() 115 rtl_write_byte(rtlpriv, RRSR + 1, in rtl92se_set_hw_reg() [all …]
|
D | dm.c | 74 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92s_dm_check_edca_turbo() local 87 rtlpriv->dm.current_turbo_edca = false; in _rtl92s_dm_check_edca_turbo() 91 if ((!rtlpriv->dm.is_any_nonbepkts) && in _rtl92s_dm_check_edca_turbo() 92 (!rtlpriv->dm.disable_framebursting)) { in _rtl92s_dm_check_edca_turbo() 93 cur_txok_cnt = rtlpriv->stats.txbytesunicast - last_txok_cnt; in _rtl92s_dm_check_edca_turbo() 94 cur_rxok_cnt = rtlpriv->stats.rxbytesunicast - last_rxok_cnt; in _rtl92s_dm_check_edca_turbo() 96 if (rtlpriv->phy.rf_type == RF_1T2R) { in _rtl92s_dm_check_edca_turbo() 99 if (rtlpriv->dm.is_cur_rdlstate || in _rtl92s_dm_check_edca_turbo() 100 !rtlpriv->dm.current_turbo_edca) { in _rtl92s_dm_check_edca_turbo() 101 rtl_write_dword(rtlpriv, EDCAPARA_BE, in _rtl92s_dm_check_edca_turbo() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192de/ |
D | dm.c | 162 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92d_dm_false_alarm_counter_statistics() local 163 struct false_alarm_statistics *falsealm_cnt = &(rtlpriv->falsealm_cnt); in rtl92d_dm_false_alarm_counter_statistics() 187 if (rtlpriv->rtlhal.current_bandtype != BAND_ON_5G) { in rtl92d_dm_false_alarm_counter_statistics() 215 if (rtlpriv->rtlhal.current_bandtype != BAND_ON_5G) { in rtl92d_dm_false_alarm_counter_statistics() 223 RT_TRACE(rtlpriv, COMP_DIG, DBG_LOUD, in rtl92d_dm_false_alarm_counter_statistics() 227 RT_TRACE(rtlpriv, COMP_DIG, DBG_LOUD, in rtl92d_dm_false_alarm_counter_statistics() 233 RT_TRACE(rtlpriv, COMP_DIG, DBG_LOUD, in rtl92d_dm_false_alarm_counter_statistics() 242 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92d_dm_find_minimum_rssi() local 243 struct dig_t *de_digtable = &rtlpriv->dm_digtable; in rtl92d_dm_find_minimum_rssi() 244 struct rtl_mac *mac = rtl_mac(rtlpriv); in rtl92d_dm_find_minimum_rssi() [all …]
|
D | hw.c | 48 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92de_read_dword_dbi() local 51 rtl_write_word(rtlpriv, REG_DBI_CTRL, (offset & 0xFFC)); in rtl92de_read_dword_dbi() 52 rtl_write_byte(rtlpriv, REG_DBI_FLAG, BIT(1) | direct); in rtl92de_read_dword_dbi() 54 value = rtl_read_dword(rtlpriv, REG_DBI_RDATA); in rtl92de_read_dword_dbi() 61 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92de_write_dword_dbi() local 63 rtl_write_word(rtlpriv, REG_DBI_CTRL, ((offset & 0xFFC) | 0xF000)); in rtl92de_write_dword_dbi() 64 rtl_write_dword(rtlpriv, REG_DBI_WDATA, value); in rtl92de_write_dword_dbi() 65 rtl_write_byte(rtlpriv, REG_DBI_FLAG, BIT(0) | direct); in rtl92de_write_dword_dbi() 72 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92de_set_bcn_ctrl_reg() local 76 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8) rtlpci->reg_bcn_ctrl_val); in _rtl92de_set_bcn_ctrl_reg() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/ |
D | cam.c | 31 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_cam_reset_sec_info() local 33 rtlpriv->sec.use_defaultkey = false; in rtl_cam_reset_sec_info() 34 rtlpriv->sec.pairwise_enc_algorithm = NO_ENCRYPTION; in rtl_cam_reset_sec_info() 35 rtlpriv->sec.group_enc_algorithm = NO_ENCRYPTION; in rtl_cam_reset_sec_info() 36 memset(rtlpriv->sec.key_buf, 0, KEY_BUF_SIZE * MAX_KEY_LEN); in rtl_cam_reset_sec_info() 37 memset(rtlpriv->sec.key_len, 0, KEY_BUF_SIZE); in rtl_cam_reset_sec_info() 38 rtlpriv->sec.pairwise_key = NULL; in rtl_cam_reset_sec_info() 44 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_cam_program_entry() local 50 RT_PRINT_DATA(rtlpriv, COMP_SEC, DBG_DMESG, "Key content :", in rtl_cam_program_entry() 61 rtl_write_dword(rtlpriv, rtlpriv->cfg->maps[WCAMI], in rtl_cam_program_entry() [all …]
|
D | stats.c | 93 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_process_ui_rssi() local 94 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl_process_ui_rssi() 101 rtlpriv->stats.pwdb_all_cnt += pstatus->rx_pwdb_all; in rtl_process_ui_rssi() 102 rtlpriv->stats.rssi_calculate_cnt++; in rtl_process_ui_rssi() 104 if (rtlpriv->stats.ui_rssi.total_num++ >= PHY_RSSI_SLID_WIN_MAX) { in rtl_process_ui_rssi() 105 rtlpriv->stats.ui_rssi.total_num = PHY_RSSI_SLID_WIN_MAX; in rtl_process_ui_rssi() 106 last_rssi = rtlpriv->stats.ui_rssi.elements[ in rtl_process_ui_rssi() 107 rtlpriv->stats.ui_rssi.index]; in rtl_process_ui_rssi() 108 rtlpriv->stats.ui_rssi.total_val -= last_rssi; in rtl_process_ui_rssi() 110 rtlpriv->stats.ui_rssi.total_val += pstatus->signalstrength; in rtl_process_ui_rssi() [all …]
|
D | core.c | 102 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_fw_do_work() local 105 RT_TRACE(rtlpriv, COMP_ERR, DBG_LOUD, in rtl_fw_do_work() 107 complete(&rtlpriv->firmware_loading_complete); in rtl_fw_do_work() 109 if (rtlpriv->cfg->alt_fw_name) { in rtl_fw_do_work() 111 rtlpriv->cfg->alt_fw_name, in rtl_fw_do_work() 112 rtlpriv->io.dev); in rtl_fw_do_work() 114 rtlpriv->cfg->alt_fw_name); in rtl_fw_do_work() 118 pr_err("Firmware %s not available\n", rtlpriv->cfg->fw_name); in rtl_fw_do_work() 119 rtlpriv->max_fw_size = 0; in rtl_fw_do_work() 123 if (firmware->size > rtlpriv->max_fw_size) { in rtl_fw_do_work() [all …]
|
D | ps.c | 34 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_ps_enable_nic() local 40 rtlpriv->intf_ops->reset_trx_ring(hw); in rtl_ps_enable_nic() 43 RT_TRACE(rtlpriv, COMP_ERR, DBG_WARNING, in rtl_ps_enable_nic() 47 if (rtlpriv->cfg->ops->hw_init(hw)) in rtl_ps_enable_nic() 52 rtlpriv->cfg->ops->enable_interrupt(hw); in rtl_ps_enable_nic() 63 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_ps_disable_nic() local 69 rtlpriv->cfg->ops->disable_interrupt(hw); in rtl_ps_disable_nic() 70 tasklet_kill(&rtlpriv->works.irq_tasklet); in rtl_ps_disable_nic() 73 rtlpriv->cfg->ops->hw_disable(hw); in rtl_ps_disable_nic() 83 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_ps_set_rf_state() local [all …]
|
D | pci.c | 82 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl_pci_update_default_setting() local 181 RT_TRACE(rtlpriv, COMP_ERR, DBG_EMERG, in _rtl_pci_update_default_setting() 189 if (rtlpriv->rtlhal.hw_type == HARDWARE_TYPE_RTL8192SE && in _rtl_pci_update_default_setting() 224 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_pci_disable_aspm() local 241 RT_TRACE(rtlpriv, COMP_POWER, DBG_TRACE, in rtl_pci_disable_aspm() 278 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_pci_enable_aspm() local 292 RT_TRACE(rtlpriv, COMP_POWER, DBG_TRACE, in rtl_pci_enable_aspm() 309 RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, in rtl_pci_enable_aspm() 359 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl_pci_check_buddy_priv() local 365 if (!list_empty(&rtlpriv->glb_var->glb_priv_list)) { in rtl_pci_check_buddy_priv() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/ |
D | hw.c | 49 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ee_set_bcn_ctrl_reg() local 54 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8)rtlpci->reg_bcn_ctrl_val); in _rtl92ee_set_bcn_ctrl_reg() 59 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ee_stop_tx_beacon() local 62 tmp = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl92ee_stop_tx_beacon() 63 rtl_write_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2, tmp & (~BIT(6))); in _rtl92ee_stop_tx_beacon() 64 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 1, 0x64); in _rtl92ee_stop_tx_beacon() 65 tmp = rtl_read_byte(rtlpriv, REG_TBTT_PROHIBIT + 2); in _rtl92ee_stop_tx_beacon() 67 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 2, tmp); in _rtl92ee_stop_tx_beacon() 72 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ee_resume_tx_beacon() local 75 tmp = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl92ee_resume_tx_beacon() [all …]
|
D | dm.c | 158 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ee_dm_false_alarm_counter_statistics() local 159 struct false_alarm_statistics *falsealm_cnt = &rtlpriv->falsealm_cnt; in rtl92ee_dm_false_alarm_counter_statistics() 229 RT_TRACE(rtlpriv, COMP_DIG, DBG_TRACE, in rtl92ee_dm_false_alarm_counter_statistics() 235 RT_TRACE(rtlpriv, COMP_DIG, DBG_TRACE, in rtl92ee_dm_false_alarm_counter_statistics() 243 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ee_dm_cck_packet_detection_thresh() local 244 struct dig_t *dm_dig = &rtlpriv->dm_digtable; in rtl92ee_dm_cck_packet_detection_thresh() 247 if (rtlpriv->mac80211.link_state >= MAC80211_LINKED) { in rtl92ee_dm_cck_packet_detection_thresh() 254 if (rtlpriv->falsealm_cnt.cnt_cck_fail > 1000) in rtl92ee_dm_cck_packet_detection_thresh() 260 if (rtlpriv->falsealm_cnt.cnt_cck_fail > 1000) in rtl92ee_dm_cck_packet_detection_thresh() 270 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92ee_dm_dig() local [all …]
|
D | fw.c | 37 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ee_enable_fw_download() local 41 rtl_write_byte(rtlpriv, REG_MCUFWDL, 0x05); in _rtl92ee_enable_fw_download() 43 tmp = rtl_read_byte(rtlpriv, REG_MCUFWDL + 2); in _rtl92ee_enable_fw_download() 44 rtl_write_byte(rtlpriv, REG_MCUFWDL + 2, tmp & 0xf7); in _rtl92ee_enable_fw_download() 46 tmp = rtl_read_byte(rtlpriv, REG_MCUFWDL); in _rtl92ee_enable_fw_download() 47 rtl_write_byte(rtlpriv, REG_MCUFWDL, tmp & 0xfe); in _rtl92ee_enable_fw_download() 54 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ee_fw_block_write() local 65 rtl_write_dword(rtlpriv, (FW_8192C_START_ADDRESS + offset), in _rtl92ee_fw_block_write() 73 rtl_write_byte(rtlpriv, in _rtl92ee_fw_block_write() 83 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ee_fw_page_write() local [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/ |
D | hw.c | 49 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_set_bcn_ctrl_reg() local 54 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8) rtlpci->reg_bcn_ctrl_val); in _rtl88ee_set_bcn_ctrl_reg() 59 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_stop_tx_beacon() local 62 tmp1byte = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl88ee_stop_tx_beacon() 63 rtl_write_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2, tmp1byte & (~BIT(6))); in _rtl88ee_stop_tx_beacon() 64 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 1, 0x64); in _rtl88ee_stop_tx_beacon() 65 tmp1byte = rtl_read_byte(rtlpriv, REG_TBTT_PROHIBIT + 2); in _rtl88ee_stop_tx_beacon() 67 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 2, tmp1byte); in _rtl88ee_stop_tx_beacon() 72 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl88ee_resume_tx_beacon() local 75 tmp1byte = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl88ee_resume_tx_beacon() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8723be/ |
D | hw.c | 51 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_return_beacon_queue_skb() local 56 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags); in _rtl8723be_return_beacon_queue_skb() 62 rtlpriv->cfg->ops->get_desc( in _rtl8723be_return_beacon_queue_skb() 68 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags); in _rtl8723be_return_beacon_queue_skb() 75 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_set_bcn_ctrl_reg() local 80 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8)rtlpci->reg_bcn_ctrl_val); in _rtl8723be_set_bcn_ctrl_reg() 85 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8723be_stop_tx_beacon() local 88 tmp1byte = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl8723be_stop_tx_beacon() 89 rtl_write_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2, tmp1byte & (~BIT(6))); in _rtl8723be_stop_tx_beacon() 90 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 1, 0x64); in _rtl8723be_stop_tx_beacon() [all …]
|
D | dm.c | 182 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_dm_txpower_track_adjust() local 185 u8 ofdm_base = rtlpriv->dm.swing_idx_ofdm_base[RF90_PATH_A]; in rtl8723be_dm_txpower_track_adjust() 186 u8 ofdm_val = rtlpriv->dm.swing_idx_ofdm[RF90_PATH_A]; in rtl8723be_dm_txpower_track_adjust() 217 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_dm_init_rate_adaptive_mask() local 218 struct rate_adaptive *p_ra = &rtlpriv->ra; in rtl8723be_dm_init_rate_adaptive_mask() 223 if (rtlpriv->dm.dm_type == DM_TYPE_BYDRIVER) in rtl8723be_dm_init_rate_adaptive_mask() 224 rtlpriv->dm.useramask = true; in rtl8723be_dm_init_rate_adaptive_mask() 226 rtlpriv->dm.useramask = false; in rtl8723be_dm_init_rate_adaptive_mask() 234 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8723be_dm_init_txpower_tracking() local 236 rtlpriv->dm.txpower_tracking = true; in rtl8723be_dm_init_txpower_tracking() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192c/ |
D | dm_common.c | 167 struct rtl_priv *rtlpriv = rtl_priv(hw); in dm_restorepowerindex() local 171 rtl_write_byte(rtlpriv, power_index_reg[index], in dm_restorepowerindex() 172 rtlpriv->dm.powerindex_backup[index]); in dm_restorepowerindex() 178 struct rtl_priv *rtlpriv = rtl_priv(hw); in dm_writepowerindex() local 182 rtl_write_byte(rtlpriv, power_index_reg[index], value); in dm_writepowerindex() 188 struct rtl_priv *rtlpriv = rtl_priv(hw); in dm_savepowerindex() local 193 tmp = rtl_read_byte(rtlpriv, power_index_reg[index]); in dm_savepowerindex() 194 rtlpriv->dm.powerindex_backup[index] = tmp; in dm_savepowerindex() 201 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_dm_initial_gain_min_pwdb() local 202 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl92c_dm_initial_gain_min_pwdb() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/ |
D | hw.c | 48 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8821ae_return_beacon_queue_skb() local 53 spin_lock_irqsave(&rtlpriv->locks.irq_th_lock, flags); in _rtl8821ae_return_beacon_queue_skb() 59 rtlpriv->cfg->ops->get_desc( in _rtl8821ae_return_beacon_queue_skb() 65 spin_unlock_irqrestore(&rtlpriv->locks.irq_th_lock, flags); in _rtl8821ae_return_beacon_queue_skb() 72 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8821ae_set_bcn_ctrl_reg() local 77 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8)rtlpci->reg_bcn_ctrl_val); in _rtl8821ae_set_bcn_ctrl_reg() 82 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl8821ae_stop_tx_beacon() local 85 tmp1byte = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl8821ae_stop_tx_beacon() 86 rtl_write_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2, tmp1byte & (~BIT(6))); in _rtl8821ae_stop_tx_beacon() 87 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 1, 0x64); in _rtl8821ae_stop_tx_beacon() [all …]
|
D | dm.c | 406 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8821ae_dm_txpower_track_adjust() local 411 if (rtlpriv->dm.swing_idx_ofdm[RF90_PATH_A] <= in rtl8821ae_dm_txpower_track_adjust() 412 rtlpriv->dm.swing_idx_ofdm_base[RF90_PATH_A]) { in rtl8821ae_dm_txpower_track_adjust() 443 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8821ae_dm_clear_txpower_tracking_state() local 444 struct rtl_dm *rtldm = rtl_dm(rtlpriv); in rtl8821ae_dm_clear_txpower_tracking_state() 445 struct rtl_efuse *rtlefuse = rtl_efuse(rtlpriv); in rtl8821ae_dm_clear_txpower_tracking_state() 493 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl8821ae_dm_initialize_txpower_tracking_thermalmeter() local 494 struct rtl_dm *rtldm = rtl_dm(rtlpriv); in rtl8821ae_dm_initialize_txpower_tracking_thermalmeter() 495 struct rtl_efuse *rtlefuse = rtl_efuse(rtlpriv); in rtl8821ae_dm_initialize_txpower_tracking_thermalmeter() 499 rtlpriv->dm.txpower_track_control = true; in rtl8821ae_dm_initialize_txpower_tracking_thermalmeter() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192ce/ |
D | hw.c | 53 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_set_bcn_ctrl_reg() local 58 rtl_write_byte(rtlpriv, REG_BCN_CTRL, (u8)rtlpci->reg_bcn_ctrl_val); in _rtl92ce_set_bcn_ctrl_reg() 63 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_stop_tx_beacon() local 66 tmp1byte = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl92ce_stop_tx_beacon() 67 rtl_write_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2, tmp1byte & (~BIT(6))); in _rtl92ce_stop_tx_beacon() 68 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 1, 0x64); in _rtl92ce_stop_tx_beacon() 69 tmp1byte = rtl_read_byte(rtlpriv, REG_TBTT_PROHIBIT + 2); in _rtl92ce_stop_tx_beacon() 71 rtl_write_byte(rtlpriv, REG_TBTT_PROHIBIT + 2, tmp1byte); in _rtl92ce_stop_tx_beacon() 76 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92ce_resume_tx_beacon() local 79 tmp1byte = rtl_read_byte(rtlpriv, REG_FWHW_TXQ_CTRL + 2); in _rtl92ce_resume_tx_beacon() [all …]
|
/drivers/net/wireless/realtek/rtlwifi/rtl8192cu/ |
D | hw.c | 52 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92cu_phy_param_tab_init() local 53 struct rtl_phy *rtlphy = &(rtlpriv->phy); in _rtl92cu_phy_param_tab_init() 54 struct rtl_efuse *rtlefuse = rtl_efuse(rtlpriv); in _rtl92cu_phy_param_tab_init() 128 struct rtl_priv *rtlpriv = rtl_priv(hw); in _rtl92cu_read_txpower_info_from_hwpg() local 165 RTPRINT(rtlpriv, FINIT, INIT_EEPROM, in _rtl92cu_read_txpower_info_from_hwpg() 172 RTPRINT(rtlpriv, FINIT, INIT_EEPROM, in _rtl92cu_read_txpower_info_from_hwpg() 179 RTPRINT(rtlpriv, FINIT, INIT_EEPROM, in _rtl92cu_read_txpower_info_from_hwpg() 208 RTPRINT(rtlpriv, FINIT, INIT_TXPOWER, in _rtl92cu_read_txpower_info_from_hwpg() 244 RTPRINT(rtlpriv, FINIT, INIT_TXPOWER, in _rtl92cu_read_txpower_info_from_hwpg() 248 RTPRINT(rtlpriv, FINIT, INIT_TXPOWER, in _rtl92cu_read_txpower_info_from_hwpg() [all …]
|
D | mac.c | 56 struct rtl_priv *rtlpriv = rtl_priv(hw); in rtl92c_read_chip_version() local 57 struct rtl_phy *rtlphy = &(rtlpriv->phy); in rtl92c_read_chip_version() 58 struct rtl_hal *rtlhal = rtl_hal(rtlpriv); in rtl92c_read_chip_version() 63 value32 = rtl_read_dword(rtlpriv, REG_SYS_CFG); in rtl92c_read_chip_version() 76 value32 = rtl_read_dword(rtlpriv, REG_HPON_FSM); in rtl92c_read_chip_version() 121 RT_TRACE(rtlpriv, COMP_INIT, DBG_TRACE, in rtl92c_read_chip_version() 129 RT_TRACE(rtlpriv, COMP_INIT, DBG_LOUD, in rtl92c_read_chip_version() 133 rtlpriv->dm.rfpath_rxenable[0] = true; in rtl92c_read_chip_version() 135 rtlpriv->dm.rfpath_rxenable[0] = in rtl92c_read_chip_version() 136 rtlpriv->dm.rfpath_rxenable[1] = true; in rtl92c_read_chip_version() [all …]
|