Home
last modified time | relevance | path

Searched refs:coex_dm (Results 1 – 10 of 10) sorted by relevance

/drivers/net/wireless/realtek/rtlwifi/btcoexist/
Dhalbtc8723b2ant.c21 static struct coex_dm_8723b_2ant *coex_dm = &glcoex_dm_8723b_2ant; variable
378 coex_dm->switch_thres_offset; in btc8723b2ant_is_wifi_status_changed()
673 coex_dm->cur_dec_bt_pwr_lvl = dec_bt_pwr_lvl; in btc8723b2ant_dec_bt_pwr()
678 coex_dm->pre_dec_bt_pwr_lvl, in btc8723b2ant_dec_bt_pwr()
679 coex_dm->cur_dec_bt_pwr_lvl); in btc8723b2ant_dec_bt_pwr()
681 if (coex_dm->pre_dec_bt_pwr_lvl == coex_dm->cur_dec_bt_pwr_lvl) in btc8723b2ant_dec_bt_pwr()
684 btc8723b2ant_set_fw_dec_bt_pwr(btcoexist, coex_dm->cur_dec_bt_pwr_lvl); in btc8723b2ant_dec_bt_pwr()
686 coex_dm->pre_dec_bt_pwr_lvl = coex_dm->cur_dec_bt_pwr_lvl; in btc8723b2ant_dec_bt_pwr()
707 coex_dm->cur_bt_auto_report = enable_auto_report; in btc8723b2ant_bt_auto_report()
710 if (coex_dm->pre_bt_auto_report == coex_dm->cur_bt_auto_report) in btc8723b2ant_bt_auto_report()
[all …]
Dhalbtc8821a2ant.c23 static struct coex_dm_8821a_2ant *coex_dm = &glcoex_dm_8821a_2ant; variable
659 coex_dm->cur_dec_bt_pwr_lvl = dec_bt_pwr_lvl; in btc8821a2ant_dec_bt_pwr()
664 coex_dm->pre_dec_bt_pwr_lvl, in btc8821a2ant_dec_bt_pwr()
665 coex_dm->cur_dec_bt_pwr_lvl); in btc8821a2ant_dec_bt_pwr()
667 if (coex_dm->pre_dec_bt_pwr_lvl == coex_dm->cur_dec_bt_pwr_lvl) in btc8821a2ant_dec_bt_pwr()
670 btc8821a2ant_set_fw_dec_bt_pwr(btcoexist, coex_dm->cur_dec_bt_pwr_lvl); in btc8821a2ant_dec_bt_pwr()
672 coex_dm->pre_dec_bt_pwr_lvl = coex_dm->cur_dec_bt_pwr_lvl; in btc8821a2ant_dec_bt_pwr()
683 coex_dm->cur_fw_dac_swing_lvl = fw_dac_swing_lvl; in btc8821a2ant_fw_dac_swing_lvl()
688 coex_dm->pre_fw_dac_swing_lvl, in btc8821a2ant_fw_dac_swing_lvl()
689 coex_dm->cur_fw_dac_swing_lvl); in btc8821a2ant_fw_dac_swing_lvl()
[all …]
Dhalbtc8192e2ant.c12 static struct coex_dm_8192e_2ant *coex_dm = &glcoex_dm_8192e_2ant; variable
244 coex_dm->cur_ra_mask = dis_rate_mask; in btc8192e2ant_update_ra_mask()
246 if (force_exec || (coex_dm->pre_ra_mask != coex_dm->cur_ra_mask)) in btc8192e2ant_update_ra_mask()
248 &coex_dm->cur_ra_mask); in btc8192e2ant_update_ra_mask()
249 coex_dm->pre_ra_mask = coex_dm->cur_ra_mask; in btc8192e2ant_update_ra_mask()
257 coex_dm->cur_arfr_type = type; in btc8192e2ant_auto_rate_fallback_retry()
259 if (force_exec || (coex_dm->pre_arfr_type != coex_dm->cur_arfr_type)) { in btc8192e2ant_auto_rate_fallback_retry()
260 switch (coex_dm->cur_arfr_type) { in btc8192e2ant_auto_rate_fallback_retry()
263 coex_dm->backup_arfr_cnt1); in btc8192e2ant_auto_rate_fallback_retry()
265 coex_dm->backup_arfr_cnt2); in btc8192e2ant_auto_rate_fallback_retry()
[all …]
Dhalbtc8723b1ant.c22 static struct coex_dm_8723b_1ant *coex_dm = &glcoex_dm_8723b_1ant; variable
45 coex_dm->curra_mask = dis_rate_mask; in halbtc8723b1ant_updatera_mask()
47 if (force_exec || (coex_dm->prera_mask != coex_dm->curra_mask)) in halbtc8723b1ant_updatera_mask()
49 &coex_dm->curra_mask); in halbtc8723b1ant_updatera_mask()
51 coex_dm->prera_mask = coex_dm->curra_mask; in halbtc8723b1ant_updatera_mask()
59 coex_dm->cur_arfr_type = type; in btc8723b1ant_auto_rate_fb_retry()
61 if (force_exec || (coex_dm->pre_arfr_type != coex_dm->cur_arfr_type)) { in btc8723b1ant_auto_rate_fb_retry()
62 switch (coex_dm->cur_arfr_type) { in btc8723b1ant_auto_rate_fb_retry()
65 coex_dm->backup_arfr_cnt1); in btc8723b1ant_auto_rate_fb_retry()
67 coex_dm->backup_arfr_cnt2); in btc8723b1ant_auto_rate_fb_retry()
[all …]
Dhalbtc8821a1ant.c22 static struct coex_dm_8821a_1ant *coex_dm = &glcoex_dm_8821a_1ant; variable
225 coex_dm->cur_ra_mask = dis_rate_mask; in btc8821a1ant_update_ra_mask()
228 (coex_dm->pre_ra_mask != coex_dm->cur_ra_mask)) { in btc8821a1ant_update_ra_mask()
230 &coex_dm->cur_ra_mask); in btc8821a1ant_update_ra_mask()
232 coex_dm->pre_ra_mask = coex_dm->cur_ra_mask; in btc8821a1ant_update_ra_mask()
240 coex_dm->cur_arfr_type = type; in btc8821a1ant_auto_rate_fb_retry()
243 (coex_dm->pre_arfr_type != coex_dm->cur_arfr_type)) { in btc8821a1ant_auto_rate_fb_retry()
244 switch (coex_dm->cur_arfr_type) { in btc8821a1ant_auto_rate_fb_retry()
247 coex_dm->backup_arfr_cnt1); in btc8821a1ant_auto_rate_fb_retry()
249 coex_dm->backup_arfr_cnt2); in btc8821a1ant_auto_rate_fb_retry()
[all …]
/drivers/net/wireless/realtek/rtw88/
Dcoex.c100 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_limited_wl() local
104 if (!coex->under_5g && coex_dm->bt_status != COEX_BTSTATUS_NCON_IDLE) { in rtw_coex_limited_wl()
115 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_freerun_check() local
131 if (COEX_RSSI_HIGH(coex_dm->wl_rssi_state[1]) && in rtw_coex_freerun_check()
132 COEX_RSSI_HIGH(coex_dm->bt_rssi_state[0])) in rtw_coex_freerun_check()
136 bt_rssi = coex_dm->bt_rssi_state[0]; in rtw_coex_freerun_check()
138 bt_rssi = coex_dm->bt_rssi_state[1]; in rtw_coex_freerun_check()
140 if (COEX_RSSI_HIGH(coex_dm->wl_rssi_state[3]) && in rtw_coex_freerun_check()
210 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_wl_ccklock_detect() local
218 if (coex_dm->bt_status == COEX_BTSTATUS_INQ_PAGE || in rtw_coex_wl_ccklock_detect()
[all …]
Drtw8822b.c1147 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw8822b_coex_cfg_ant_switch() local
1152 if (((ctrl_type << 8) + pos_type) == coex_dm->cur_switch_status) in rtw8822b_coex_cfg_ant_switch()
1155 coex_dm->cur_switch_status = (ctrl_type << 8) + pos_type; in rtw8822b_coex_cfg_ant_switch()
1291 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw8822b_coex_cfg_wl_tx_power() local
1296 if (wl_pwr == coex_dm->cur_wl_pwr_lvl) in rtw8822b_coex_cfg_wl_tx_power()
1299 coex_dm->cur_wl_pwr_lvl = wl_pwr; in rtw8822b_coex_cfg_wl_tx_power()
1301 if (coex_dm->cur_wl_pwr_lvl >= ARRAY_SIZE(wl_tx_power)) in rtw8822b_coex_cfg_wl_tx_power()
1302 coex_dm->cur_wl_pwr_lvl = ARRAY_SIZE(wl_tx_power) - 1; in rtw8822b_coex_cfg_wl_tx_power()
1304 pwr = wl_tx_power[coex_dm->cur_wl_pwr_lvl]; in rtw8822b_coex_cfg_wl_tx_power()
1313 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw8822b_coex_cfg_wl_rx_gain() local
[all …]
Drtw8723d.c1603 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw8723d_coex_cfg_wl_tx_power() local
1607 if (wl_pwr == coex_dm->cur_wl_pwr_lvl) in rtw8723d_coex_cfg_wl_tx_power()
1610 coex_dm->cur_wl_pwr_lvl = wl_pwr; in rtw8723d_coex_cfg_wl_tx_power()
1612 if (coex_dm->cur_wl_pwr_lvl >= ARRAY_SIZE(wl_tx_power)) in rtw8723d_coex_cfg_wl_tx_power()
1613 coex_dm->cur_wl_pwr_lvl = ARRAY_SIZE(wl_tx_power) - 1; in rtw8723d_coex_cfg_wl_tx_power()
1615 pwr = wl_tx_power[coex_dm->cur_wl_pwr_lvl]; in rtw8723d_coex_cfg_wl_tx_power()
1623 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw8723d_coex_cfg_wl_rx_gain() local
1642 if (low_gain == coex_dm->cur_wl_rx_low_gain_en) in rtw8723d_coex_cfg_wl_rx_gain()
1645 coex_dm->cur_wl_rx_low_gain_en = low_gain; in rtw8723d_coex_cfg_wl_rx_gain()
1647 if (coex_dm->cur_wl_rx_low_gain_en) { in rtw8723d_coex_cfg_wl_rx_gain()
Drtw8821c.c779 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw8821c_coex_cfg_ant_switch() local
785 if (switch_status == coex_dm->cur_switch_status) in rtw8821c_coex_cfg_ant_switch()
797 coex_dm->cur_switch_status = switch_status; in rtw8821c_coex_cfg_ant_switch()
930 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw8821c_coex_cfg_wl_tx_power() local
937 if (wl_pwr == coex_dm->cur_wl_pwr_lvl) in rtw8821c_coex_cfg_wl_tx_power()
940 coex_dm->cur_wl_pwr_lvl = wl_pwr; in rtw8821c_coex_cfg_wl_tx_power()
Drtw8822c.c3083 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw8822c_coex_cfg_wl_tx_power() local
3085 if (wl_pwr == coex_dm->cur_wl_pwr_lvl) in rtw8822c_coex_cfg_wl_tx_power()
3088 coex_dm->cur_wl_pwr_lvl = wl_pwr; in rtw8822c_coex_cfg_wl_tx_power()
3094 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw8822c_coex_cfg_wl_rx_gain() local
3096 if (low_gain == coex_dm->cur_wl_rx_low_gain_en) in rtw8822c_coex_cfg_wl_rx_gain()
3099 coex_dm->cur_wl_rx_low_gain_en = low_gain; in rtw8822c_coex_cfg_wl_rx_gain()
3101 if (coex_dm->cur_wl_rx_low_gain_en) { in rtw8822c_coex_cfg_wl_rx_gain()