Lines Matching refs:btcoexist

46 	struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv);  in rtl_btc_display_bt_coex_info()  local
48 if (!btcoexist) { in rtl_btc_display_bt_coex_info()
53 exhalbtc_display_bt_coex_info(btcoexist, m); in rtl_btc_display_bt_coex_info()
58 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_record_pwr_mode() local
61 if (!btcoexist) in rtl_btc_record_pwr_mode()
64 safe_len = sizeof(btcoexist->pwr_mode_val); in rtl_btc_record_pwr_mode()
69 memcpy(btcoexist->pwr_mode_val, buf, safe_len); in rtl_btc_record_pwr_mode()
74 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_get_lps_val() local
76 if (!btcoexist) in rtl_btc_get_lps_val()
79 return btcoexist->bt_info.lps_val; in rtl_btc_get_lps_val()
84 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_get_rpwm_val() local
86 if (!btcoexist) in rtl_btc_get_rpwm_val()
89 return btcoexist->bt_info.rpwm_val; in rtl_btc_get_rpwm_val()
94 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_is_bt_ctrl_lps() local
96 if (!btcoexist) in rtl_btc_is_bt_ctrl_lps()
99 return btcoexist->bt_info.bt_ctrl_lps; in rtl_btc_is_bt_ctrl_lps()
104 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_is_bt_lps_on() local
106 if (!btcoexist) in rtl_btc_is_bt_lps_on()
109 return btcoexist->bt_info.bt_lps_on; in rtl_btc_is_bt_lps_on()
115 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_get_ampdu_cfg() local
117 if (!btcoexist) { in rtl_btc_get_ampdu_cfg()
124 *reject_agg = btcoexist->bt_info.reject_agg_pkt; in rtl_btc_get_ampdu_cfg()
126 *ctrl_agg_size = btcoexist->bt_info.bt_ctrl_agg_buf_size; in rtl_btc_get_ampdu_cfg()
128 *agg_size = btcoexist->bt_info.agg_buf_size; in rtl_btc_get_ampdu_cfg()
134 rtlpriv->btcoexist.wifi_only_context = in rtl_btc_alloc_variable()
137 rtlpriv->btcoexist.btc_context = in rtl_btc_alloc_variable()
143 kfree(rtlpriv->btcoexist.btc_context); in rtl_btc_free_variable()
144 rtlpriv->btcoexist.btc_context = NULL; in rtl_btc_free_variable()
146 kfree(rtlpriv->btcoexist.wifi_only_context); in rtl_btc_free_variable()
147 rtlpriv->btcoexist.wifi_only_context = NULL; in rtl_btc_free_variable()
179 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_power_on_setting() local
181 if (!btcoexist) in rtl_btc_power_on_setting()
184 exhalbtc_power_on_setting(btcoexist); in rtl_btc_power_on_setting()
189 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_init_hw_config() local
197 if (!btcoexist) in rtl_btc_init_hw_config()
200 exhalbtc_init_hw_config(btcoexist, !bt_exist); in rtl_btc_init_hw_config()
201 exhalbtc_init_coex_dm(btcoexist); in rtl_btc_init_hw_config()
216 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_ips_notify() local
218 if (!btcoexist) in rtl_btc_ips_notify()
221 exhalbtc_ips_notify(btcoexist, type); in rtl_btc_ips_notify()
227 exhalbtc_scan_notify(btcoexist, 1); in rtl_btc_ips_notify()
228 exhalbtc_scan_notify(btcoexist, 0); in rtl_btc_ips_notify()
234 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_lps_notify() local
236 if (!btcoexist) in rtl_btc_lps_notify()
239 exhalbtc_lps_notify(btcoexist, type); in rtl_btc_lps_notify()
244 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_scan_notify() local
246 if (!btcoexist) in rtl_btc_scan_notify()
249 exhalbtc_scan_notify(btcoexist, scantype); in rtl_btc_scan_notify()
266 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_connect_notify() local
268 if (!btcoexist) in rtl_btc_connect_notify()
271 exhalbtc_connect_notify(btcoexist, action); in rtl_btc_connect_notify()
277 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_mediastatus_notify() local
279 if (!btcoexist) in rtl_btc_mediastatus_notify()
282 exhalbtc_mediastatus_notify(btcoexist, mstatus); in rtl_btc_mediastatus_notify()
287 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_periodical() local
289 if (!btcoexist) in rtl_btc_periodical()
293 exhalbtc_periodical(btcoexist); in rtl_btc_periodical()
298 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_halt_notify() local
300 if (!btcoexist) in rtl_btc_halt_notify()
303 exhalbtc_halt_notify(btcoexist); in rtl_btc_halt_notify()
308 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_btinfo_notify() local
310 if (!btcoexist) in rtl_btc_btinfo_notify()
313 exhalbtc_bt_info_notify(btcoexist, tmp_buf, length); in rtl_btc_btinfo_notify()
318 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_btmpinfo_notify() local
324 if (!btcoexist) in rtl_btc_btmpinfo_notify()
344 btcoexist->bt_info.bt_real_fw_ver = bt_real_fw_ver; in rtl_btc_btmpinfo_notify()
345 btcoexist->bt_info.bt_fw_ver = bt_fw_ver; in rtl_btc_btmpinfo_notify()
348 btcoexist->bt_info.afh_map_l = le32_to_cpu(*(__le32 *)data); in rtl_btc_btmpinfo_notify()
351 btcoexist->bt_info.afh_map_m = le32_to_cpu(*(__le32 *)data); in rtl_btc_btmpinfo_notify()
354 btcoexist->bt_info.afh_map_h = le16_to_cpu(*(__le16 *)data); in rtl_btc_btmpinfo_notify()
357 btcoexist->bt_info.bt_supported_feature = tmp_buf[3] | in rtl_btc_btmpinfo_notify()
361 btcoexist->bt_info.bt_supported_version = tmp_buf[3] | in rtl_btc_btmpinfo_notify()
365 btcoexist->bt_info.bt_ant_det_val = tmp_buf[3]; in rtl_btc_btmpinfo_notify()
368 btcoexist->bt_info.bt_ble_scan_para = tmp_buf[3] | in rtl_btc_btmpinfo_notify()
374 btcoexist->bt_info.bt_ble_scan_type = tmp_buf[3]; in rtl_btc_btmpinfo_notify()
377 btcoexist->bt_info.bt_device_info = in rtl_btc_btmpinfo_notify()
381 btcoexist->bt_info.bt_forb_slot_val = in rtl_btc_btmpinfo_notify()
389 complete(&btcoexist->bt_mp_comp); in rtl_btc_btmpinfo_notify()
394 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_is_limited_dig() local
396 if (!btcoexist) in rtl_btc_is_limited_dig()
399 return btcoexist->bt_info.limited_dig; in rtl_btc_is_limited_dig()
431 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_is_bt_disabled() local
433 if (!btcoexist) in rtl_btc_is_bt_disabled()
437 if (btcoexist->bt_info.bt_disabled) in rtl_btc_is_bt_disabled()
445 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_special_packet_notify() local
447 if (!btcoexist) in rtl_btc_special_packet_notify()
450 return exhalbtc_special_packet_notify(btcoexist, pkt_type); in rtl_btc_special_packet_notify()
456 struct btc_coexist *btcoexist = rtl_btc_coexist(rtlpriv); in rtl_btc_switch_band_notify() local
459 if (!btcoexist) in rtl_btc_switch_band_notify()
476 exhalbtc_switch_band_notify(btcoexist, type); in rtl_btc_switch_band_notify()
514 return rtlpriv->btcoexist.btc_info.btcoexist; in rtl_get_hwpg_bt_exist()