Lines Matching refs:coex_dm
100 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()
230 COEX_RSSI_HIGH(coex_dm->wl_rssi_state[3]) && in rtw_coex_wl_ccklock_detect()
231 (coex_dm->bt_status == COEX_BTSTATUS_ACL_BUSY || in rtw_coex_wl_ccklock_detect()
232 coex_dm->bt_status == COEX_BTSTATUS_ACL_SCO_BUSY || in rtw_coex_wl_ccklock_detect()
233 coex_dm->bt_status == COEX_BTSTATUS_SCO_BUSY)) { in rtw_coex_wl_ccklock_detect()
495 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_monitor_bt_enable() local
511 coex_dm->cur_bt_lna_lvl = 0; in rtw_coex_monitor_bt_enable()
530 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_update_wl_link_info() local
567 rssi_state = coex_dm->wl_rssi_state[i]; in rtw_coex_update_wl_link_info()
572 coex_dm->wl_rssi_state[i] = rssi_state; in rtw_coex_update_wl_link_info()
712 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_update_bt_link_info() local
720 rssi_state = coex_dm->bt_rssi_state[i]; in rtw_coex_update_bt_link_info()
725 coex_dm->bt_rssi_state[i] = rssi_state; in rtw_coex_update_bt_link_info()
783 coex_dm->bt_status = COEX_BTSTATUS_INQ_PAGE; in rtw_coex_update_bt_link_info()
785 coex_dm->bt_status = COEX_BTSTATUS_NCON_IDLE; in rtw_coex_update_bt_link_info()
788 coex_dm->bt_status = COEX_BTSTATUS_CON_IDLE; in rtw_coex_update_bt_link_info()
792 coex_dm->bt_status = COEX_BTSTATUS_ACL_SCO_BUSY; in rtw_coex_update_bt_link_info()
794 coex_dm->bt_status = COEX_BTSTATUS_SCO_BUSY; in rtw_coex_update_bt_link_info()
796 coex_dm->bt_status = COEX_BTSTATUS_ACL_BUSY; in rtw_coex_update_bt_link_info()
798 coex_dm->bt_status = COEX_BTSTATUS_MAX; in rtw_coex_update_bt_link_info()
804 rtw_coex_get_bt_status_string(coex_dm->bt_status)); in rtw_coex_update_bt_link_info()
811 struct rtw_coex_dm *coex_dm = &rtwdev->coex.dm; in rtw_coex_update_wl_ch_info() local
847 coex_dm->wl_ch_info[0] = link; in rtw_coex_update_wl_ch_info()
848 coex_dm->wl_ch_info[1] = center_chan; in rtw_coex_update_wl_ch_info()
849 coex_dm->wl_ch_info[2] = bw; in rtw_coex_update_wl_ch_info()
860 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_set_bt_tx_power() local
862 if (bt_pwr_dec_lvl == coex_dm->cur_bt_pwr_lvl) in rtw_coex_set_bt_tx_power()
865 coex_dm->cur_bt_pwr_lvl = bt_pwr_dec_lvl; in rtw_coex_set_bt_tx_power()
873 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_set_bt_rx_gain() local
875 if (bt_lna_lvl == coex_dm->cur_bt_lna_lvl) in rtw_coex_set_bt_rx_gain()
878 coex_dm->cur_bt_lna_lvl = bt_lna_lvl; in rtw_coex_set_bt_rx_gain()
1049 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_set_table() local
1052 if (!force && coex_dm->reason != COEX_RSN_LPS) { in rtw_coex_set_table()
1070 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_table() local
1074 coex_dm->cur_table = type; in rtw_coex_table()
1140 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_set_tdma() local
1177 coex_dm->ps_tdma_para[0] = byte1; in rtw_coex_set_tdma()
1178 coex_dm->ps_tdma_para[1] = byte2; in rtw_coex_set_tdma()
1179 coex_dm->ps_tdma_para[2] = byte3; in rtw_coex_set_tdma()
1180 coex_dm->ps_tdma_para[3] = byte4; in rtw_coex_set_tdma()
1181 coex_dm->ps_tdma_para[4] = byte5; in rtw_coex_set_tdma()
1198 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_tdma() local
1214 if (!force && turn_on == coex_dm->cur_ps_tdma_on && in rtw_coex_tdma()
1215 type == coex_dm->cur_ps_tdma) { in rtw_coex_tdma()
1218 (coex_dm->cur_ps_tdma_on ? "on" : "off"), in rtw_coex_tdma()
1219 coex_dm->cur_ps_tdma); in rtw_coex_tdma()
1233 coex_dm->cur_ps_tdma_on = turn_on; in rtw_coex_tdma()
1234 coex_dm->cur_ps_tdma = type; in rtw_coex_tdma()
1265 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_set_ant_path() local
1269 if (!force && coex_dm->cur_ant_pos_type == phase) in rtw_coex_set_ant_path()
1272 coex_dm->cur_ant_pos_type = phase; in rtw_coex_set_ant_path()
1555 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_action_freerun() local
1574 if (COEX_RSSI_HIGH(coex_dm->wl_rssi_state[0])) in rtw_coex_action_freerun()
1576 else if (COEX_RSSI_HIGH(coex_dm->wl_rssi_state[1])) in rtw_coex_action_freerun()
1578 else if (COEX_RSSI_HIGH(coex_dm->wl_rssi_state[2])) in rtw_coex_action_freerun()
1690 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_action_bt_idle() local
1699 coex_dm->bt_status == COEX_BTSTATUS_NCON_IDLE) { in rtw_coex_action_bt_idle()
1701 COEX_RSSI_HIGH(coex_dm->wl_rssi_state[3]) && in rtw_coex_action_bt_idle()
1723 } else if (coex_dm->bt_status == COEX_BTSTATUS_NCON_IDLE) { in rtw_coex_action_bt_idle()
1740 coex_dm->bt_status == COEX_BTSTATUS_NCON_IDLE) { in rtw_coex_action_bt_idle()
1860 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_action_bt_game_hid() local
1881 if (COEX_RSSI_HIGH(coex_dm->wl_rssi_state[1])) in rtw_coex_action_bt_game_hid()
2021 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_action_bt_a2dp() local
2048 if (COEX_RSSI_HIGH(coex_dm->wl_rssi_state[1])) in rtw_coex_action_bt_a2dp()
2139 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_action_bt_a2dp_hid() local
2177 if (COEX_RSSI_HIGH(coex_dm->wl_rssi_state[1])) in rtw_coex_action_bt_a2dp_hid()
2533 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_run_coex() local
2542 coex_dm->reason = reason; in rtw_coex_run_coex()
2570 if (coex->freeze && coex_dm->reason == COEX_RSN_BTINFO && in rtw_coex_run_coex()
2625 if ((coex_dm->bt_status == COEX_BTSTATUS_NCON_IDLE || in rtw_coex_run_coex()
2626 coex_dm->bt_status == COEX_BTSTATUS_CON_IDLE) && in rtw_coex_run_coex()
2649 if (coex_dm->reason == COEX_RSN_2GMEDIA) in rtw_coex_run_coex()
2666 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_init_coex_var() local
2669 memset(coex_dm, 0, sizeof(*coex_dm)); in rtw_coex_init_coex_var()
2678 for (i = 0; i < ARRAY_SIZE(coex_dm->bt_rssi_state); i++) in rtw_coex_init_coex_var()
2679 coex_dm->bt_rssi_state[i] = COEX_RSSI_STATE_LOW; in rtw_coex_init_coex_var()
2681 for (i = 0; i < ARRAY_SIZE(coex_dm->wl_rssi_state); i++) in rtw_coex_init_coex_var()
2682 coex_dm->wl_rssi_state[i] = COEX_RSSI_STATE_LOW; in rtw_coex_init_coex_var()
3008 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_bt_info_notify() local
3051 coex_dm->fw_tdma_para[i - 1] = buf[i]; in rtw_coex_bt_info_notify()
3917 struct rtw_coex_dm *coex_dm = &coex->dm; in rtw_coex_display_coex_info() local
3922 u8 reason = coex_dm->reason; in rtw_coex_display_coex_info()
3987 coex_dm->ignore_wl_act); in rtw_coex_display_coex_info()
3995 coex_dm->wl_ch_info[0], coex_dm->wl_ch_info[1], in rtw_coex_display_coex_info()
3996 coex_dm->wl_ch_info[2], hal->current_channel); in rtw_coex_display_coex_info()
4004 coex_dm->bt_status == COEX_BTSTATUS_NCON_IDLE ? "non-conn" : in rtw_coex_display_coex_info()
4005 coex_dm->bt_status == COEX_BTSTATUS_CON_IDLE ? "conn-idle" : "busy", in rtw_coex_display_coex_info()
4074 coex_dm->fw_tdma_para, in rtw_coex_display_coex_info()
4076 &coex_dm->fw_tdma_para[0])); in rtw_coex_display_coex_info()
4083 coex_dm->ps_tdma_para, coex_dm->cur_ps_tdma); in rtw_coex_display_coex_info()
4092 coex_dm->cur_table, in rtw_coex_display_coex_info()
4102 coex_dm->wl_ch_info); in rtw_coex_display_coex_info()
4120 coex_dm->cur_wl_pwr_lvl, in rtw_coex_display_coex_info()
4121 coex_dm->cur_bt_pwr_lvl, in rtw_coex_display_coex_info()
4122 coex_dm->cur_wl_rx_low_gain_en ? "On" : "Off", in rtw_coex_display_coex_info()
4123 coex_dm->cur_bt_lna_lvl); in rtw_coex_display_coex_info()