| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/hal/btc/ |
| H A D | halbtc8822c.c | 255 void halbtc8822c_cfg_init(struct btc_coexist *btc) in halbtc8822c_cfg_init() argument 260 btc->btc_write_1byte_bitmask(btc, 0x550, 0x8, 0x1); in halbtc8822c_cfg_init() 264 btc->btc_write_1byte(btc, 0x790, 0x5); in halbtc8822c_cfg_init() 267 btc->btc_write_1byte(btc, 0x778, 0x1); in halbtc8822c_cfg_init() 270 btc->btc_write_1byte_bitmask(btc, 0x40, 0x20, 0x1); in halbtc8822c_cfg_init() 271 btc->btc_write_1byte_bitmask(btc, 0x41, 0x02, 0x1); in halbtc8822c_cfg_init() 274 btc->btc_write_1byte_bitmask(btc, 0x4c6, BIT(4), 0x1); in halbtc8822c_cfg_init() 275 btc->btc_write_1byte_bitmask(btc, 0x4c6, BIT(5), 0x0); in halbtc8822c_cfg_init() 277 btc->btc_write_1byte_bitmask(btc, 0x763, BIT(4), 0x1); in halbtc8822c_cfg_init() 280 btc->btc_write_1byte_bitmask(btc, 0x4fc, 0x3, 0x0); in halbtc8822c_cfg_init() [all …]
|
| H A D | halbtccommon.c | 25 rtw_btc_rssi_state(struct btc_coexist *btc, u8 pre_state, in rtw_btc_rssi_state() argument 28 const struct btc_chip_para *chip_para = btc->chip_para; in rtw_btc_rssi_state() 48 rtw_btc_limited_tx(struct btc_coexist *btc, boolean force_exec, in rtw_btc_limited_tx() argument 51 struct btc_coex_sta *coex_sta = &btc->coex_sta; in rtw_btc_limited_tx() 52 struct btc_wifi_link_info_ext *link_info_ext = &btc->wifi_link_info_ext; in rtw_btc_limited_tx() 53 const struct btc_chip_para *chip_para = btc->chip_para; in rtw_btc_limited_tx() 66 coex_sta->wl_arfb1 = btc->btc_read_4byte(btc, REG_DARFRC); in rtw_btc_limited_tx() 67 coex_sta->wl_arfb2 = btc->btc_read_4byte(btc, REG_DARFRCH); in rtw_btc_limited_tx() 69 coex_sta->wl_txlimit = btc->btc_read_2byte(btc, in rtw_btc_limited_tx() 75 btc->btc_read_1byte(btc, REG_AMPDU_MAX_TIME_V1); in rtw_btc_limited_tx() [all …]
|
| H A D | halbtccommon.h | 21 void rtw_btc_ex_power_on_setting(struct btc_coexist *btc); 22 void rtw_btc_ex_pre_load_firmware(struct btc_coexist *btc); 23 void rtw_btc_ex_init_hw_config(struct btc_coexist *btc, boolean wifi_only); 24 void rtw_btc_ex_init_coex_dm(struct btc_coexist *btc); 25 void rtw_btc_ex_ips_notify(struct btc_coexist *btc, u8 type); 26 void rtw_btc_ex_lps_notify(struct btc_coexist *btc, u8 type); 27 void rtw_btc_ex_scan_notify(struct btc_coexist *btc, u8 type); 28 void rtw_btc_ex_scan_notify_without_bt(struct btc_coexist *btc, u8 type); 29 void rtw_btc_ex_switchband_notify(struct btc_coexist *btc, u8 type); 30 void rtw_btc_ex_switchband_notify_without_bt(struct btc_coexist *btc, u8 type); [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822bs/hal/btc/ |
| H A D | halbtc8822b2ant.c | 35 static u8 halbtc8822b2ant_bt_rssi_state(struct btc_coexist *btc, in halbtc8822b2ant_bt_rssi_state() argument 39 struct coex_sta_8822b_2ant *coex_sta = &btc->coex_sta_8822b_2ant; in halbtc8822b2ant_bt_rssi_state() 97 static u8 halbtc8822b2ant_wifi_rssi_state(struct btc_coexist *btc, in halbtc8822b2ant_wifi_rssi_state() argument 105 btc->btc_get(btc, BTC_GET_S4_WIFI_RSSI, &wifi_rssi); in halbtc8822b2ant_wifi_rssi_state() 160 halbtc8822b2ant_limited_tx(struct btc_coexist *btc, boolean force_exec, in halbtc8822b2ant_limited_tx() argument 163 struct coex_sta_8822b_2ant *coex_sta = &btc->coex_sta_8822b_2ant; in halbtc8822b2ant_limited_tx() 165 &btc->wifi_link_info_8822b_2ant; in halbtc8822b2ant_limited_tx() 170 coex_sta->wl_0x430_backup = btc->btc_read_4byte(btc, 0x430); in halbtc8822b2ant_limited_tx() 171 coex_sta->wl_0x434_backup = btc->btc_read_4byte(btc, 0x434); in halbtc8822b2ant_limited_tx() 172 coex_sta->wl_0x42a_backup = btc->btc_read_2byte(btc, 0x42a); in halbtc8822b2ant_limited_tx() [all …]
|
| H A D | halbtc8822b1ant.c | 37 u8 halbtc8822b1ant_bt_rssi_state(struct btc_coexist *btc, 41 struct coex_sta_8822b_1ant *coex_sta = &btc->coex_sta_8822b_1ant; 99 static u8 halbtc8822b1ant_wifi_rssi_state(struct btc_coexist *btc, in halbtc8822b1ant_wifi_rssi_state() argument 106 btc->btc_get(btc, BTC_GET_S4_WIFI_RSSI, &wifi_rssi); in halbtc8822b1ant_wifi_rssi_state() 161 halbtc8822b1ant_limited_tx(struct btc_coexist *btc, boolean force_exec, in halbtc8822b1ant_limited_tx() argument 164 struct coex_sta_8822b_1ant *coex_sta = &btc->coex_sta_8822b_1ant; in halbtc8822b1ant_limited_tx() 166 &btc->wifi_link_info_8822b_1ant; in halbtc8822b1ant_limited_tx() 171 coex_sta->wl_0x430_backup = btc->btc_read_4byte(btc, 0x430); in halbtc8822b1ant_limited_tx() 172 coex_sta->wl_0x434_backup = btc->btc_read_4byte(btc, 0x434); in halbtc8822b1ant_limited_tx() 173 coex_sta->wl_0x42a_backup = btc->btc_read_2byte(btc, 0x42a); in halbtc8822b1ant_limited_tx() [all …]
|
| H A D | halbtc8822b1ant.h | 430 void ex_halbtc8822b1ant_power_on_setting(struct btc_coexist *btc); 431 void ex_halbtc8822b1ant_pre_load_firmware(struct btc_coexist *btc); 432 void ex_halbtc8822b1ant_init_hw_config(struct btc_coexist *btc, 434 void ex_halbtc8822b1ant_init_coex_dm(struct btc_coexist *btc); 435 void ex_halbtc8822b1ant_ips_notify(struct btc_coexist *btc, u8 type); 436 void ex_halbtc8822b1ant_lps_notify(struct btc_coexist *btc, u8 type); 437 void ex_halbtc8822b1ant_scan_notify(struct btc_coexist *btc, u8 type); 438 void ex_halbtc8822b1ant_scan_notify_without_bt(struct btc_coexist *btc, 440 void ex_halbtc8822b1ant_switchband_notify(struct btc_coexist *btc, 442 void ex_halbtc8822b1ant_switchband_notify_without_bt(struct btc_coexist *btc, [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/hal/btc/ |
| H A D | halbtc8821c2ant.c | 35 u8 halbtc8821c2ant_bt_rssi_state(struct btc_coexist *btc, in halbtc8821c2ant_bt_rssi_state() argument 39 struct coex_sta_8821c_2ant *coex_sta = &btc->coex_sta_8821c_2ant; in halbtc8821c2ant_bt_rssi_state() 97 u8 halbtc8821c2ant_wifi_rssi_state(struct btc_coexist *btc, in halbtc8821c2ant_wifi_rssi_state() argument 105 btc->btc_get(btc, BTC_GET_S4_WIFI_RSSI, &wifi_rssi); in halbtc8821c2ant_wifi_rssi_state() 159 halbtc8821c2ant_limited_tx(struct btc_coexist *btc, boolean force_exec, in halbtc8821c2ant_limited_tx() argument 162 struct coex_sta_8821c_2ant *coex_sta = &btc->coex_sta_8821c_2ant; in halbtc8821c2ant_limited_tx() 164 &btc->wifi_link_info_8821c_2ant; in halbtc8821c2ant_limited_tx() 169 coex_sta->wl_0x430_backup = btc->btc_read_4byte(btc, 0x430); in halbtc8821c2ant_limited_tx() 170 coex_sta->wl_0x434_backup = btc->btc_read_4byte(btc, 0x434); in halbtc8821c2ant_limited_tx() 171 coex_sta->wl_0x42a_backup = btc->btc_read_2byte(btc, 0x42a); in halbtc8821c2ant_limited_tx() [all …]
|
| H A D | halbtc8821c1ant.c | 35 u8 halbtc8821c1ant_bt_rssi_state(struct btc_coexist *btc, u8 level_num, 38 struct coex_sta_8821c_1ant *coex_sta = &btc->coex_sta_8821c_1ant; 102 u8 halbtc8821c1ant_wifi_rssi_state(struct btc_coexist *btc, u8 index, 106 struct coex_sta_8821c_1ant *coex_sta = &btc->coex_sta_8821c_1ant; 110 btc->btc_get(btc, BTC_GET_S4_WIFI_RSSI, &wifi_rssi); 171 halbtc8821c1ant_limited_tx(struct btc_coexist *btc, boolean force_exec, in halbtc8821c1ant_limited_tx() argument 174 struct coex_sta_8821c_1ant *coex_sta = &btc->coex_sta_8821c_1ant; in halbtc8821c1ant_limited_tx() 176 &btc->wifi_link_info_8821c_1ant; in halbtc8821c1ant_limited_tx() 181 coex_sta->wl_0x430_backup = btc->btc_read_4byte(btc, 0x430); in halbtc8821c1ant_limited_tx() 182 coex_sta->wl_0x434_backup = btc->btc_read_4byte(btc, 0x434); in halbtc8821c1ant_limited_tx() [all …]
|
| H A D | halbtc8821c1ant.h | 438 void ex_halbtc8821c1ant_power_on_setting(struct btc_coexist *btc); 439 void ex_halbtc8821c1ant_pre_load_firmware(struct btc_coexist *btc); 440 void ex_halbtc8821c1ant_init_hw_config(struct btc_coexist *btc, 442 void ex_halbtc8821c1ant_init_coex_dm(struct btc_coexist *btc); 443 void ex_halbtc8821c1ant_ips_notify(struct btc_coexist *btc, 445 void ex_halbtc8821c1ant_lps_notify(struct btc_coexist *btc, 447 void ex_halbtc8821c1ant_scan_notify(struct btc_coexist *btc, 449 void ex_halbtc8821c1ant_switchband_notify(struct btc_coexist *btc, 451 void ex_halbtc8821c1ant_connect_notify(struct btc_coexist *btc, 453 void ex_halbtc8821c1ant_media_status_notify(struct btc_coexist *btc, [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/btc/ |
| H A D | halbtc8821c2ant.c | 36 u8 halbtc8821c2ant_bt_rssi_state(struct btc_coexist *btc, in halbtc8821c2ant_bt_rssi_state() argument 40 struct coex_sta_8821c_2ant *coex_sta = &btc->coex_sta_8821c_2ant; in halbtc8821c2ant_bt_rssi_state() 98 u8 halbtc8821c2ant_wifi_rssi_state(struct btc_coexist *btc, in halbtc8821c2ant_wifi_rssi_state() argument 106 btc->btc_get(btc, BTC_GET_S4_WIFI_RSSI, &wifi_rssi); in halbtc8821c2ant_wifi_rssi_state() 160 halbtc8821c2ant_limited_tx(struct btc_coexist *btc, boolean force_exec, in halbtc8821c2ant_limited_tx() argument 163 struct coex_sta_8821c_2ant *coex_sta = &btc->coex_sta_8821c_2ant; in halbtc8821c2ant_limited_tx() 165 &btc->wifi_link_info_8821c_2ant; in halbtc8821c2ant_limited_tx() 170 coex_sta->wl_0x430_backup = btc->btc_read_4byte(btc, 0x430); in halbtc8821c2ant_limited_tx() 171 coex_sta->wl_0x434_backup = btc->btc_read_4byte(btc, 0x434); in halbtc8821c2ant_limited_tx() 172 coex_sta->wl_0x42a_backup = btc->btc_read_2byte(btc, 0x42a); in halbtc8821c2ant_limited_tx() [all …]
|
| H A D | halbtc8821c1ant.c | 36 u8 halbtc8821c1ant_bt_rssi_state(struct btc_coexist *btc, u8 level_num, 39 struct coex_sta_8821c_1ant *coex_sta = &btc->coex_sta_8821c_1ant; 103 u8 halbtc8821c1ant_wifi_rssi_state(struct btc_coexist *btc, u8 index, 107 struct coex_sta_8821c_1ant *coex_sta = &btc->coex_sta_8821c_1ant; 111 btc->btc_get(btc, BTC_GET_S4_WIFI_RSSI, &wifi_rssi); 172 halbtc8821c1ant_limited_tx(struct btc_coexist *btc, boolean force_exec, in halbtc8821c1ant_limited_tx() argument 175 struct coex_sta_8821c_1ant *coex_sta = &btc->coex_sta_8821c_1ant; in halbtc8821c1ant_limited_tx() 177 &btc->wifi_link_info_8821c_1ant; in halbtc8821c1ant_limited_tx() 182 coex_sta->wl_0x430_backup = btc->btc_read_4byte(btc, 0x430); in halbtc8821c1ant_limited_tx() 183 coex_sta->wl_0x434_backup = btc->btc_read_4byte(btc, 0x434); in halbtc8821c1ant_limited_tx() [all …]
|
| H A D | halbtc8821c1ant.h | 439 void ex_halbtc8821c1ant_power_on_setting(struct btc_coexist *btc); 440 void ex_halbtc8821c1ant_pre_load_firmware(struct btc_coexist *btc); 441 void ex_halbtc8821c1ant_init_hw_config(struct btc_coexist *btc, 443 void ex_halbtc8821c1ant_init_coex_dm(struct btc_coexist *btc); 444 void ex_halbtc8821c1ant_ips_notify(struct btc_coexist *btc, 446 void ex_halbtc8821c1ant_lps_notify(struct btc_coexist *btc, 448 void ex_halbtc8821c1ant_scan_notify(struct btc_coexist *btc, 450 void ex_halbtc8821c1ant_switchband_notify(struct btc_coexist *btc, 452 void ex_halbtc8821c1ant_connect_notify(struct btc_coexist *btc, 454 void ex_halbtc8821c1ant_media_status_notify(struct btc_coexist *btc, [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/btc/ |
| H A D | halbtc_action.c | 25 #define _set_cx_ctrl(btc, val) rtw_hal_mac_set_coex_ctrl(btc->hal, val) argument 85 void _set_bt_ignore_wlan_act(struct btc_t *btc, u8 enable) in _set_bt_ignore_wlan_act() argument 93 hal_btc_fw_set_bt(btc, SET_BT_IGNORE_WLAN_ACT, 1, &buf); in _set_bt_ignore_wlan_act() 96 void _set_wl_tx_power(struct btc_t *btc, u32 level) in _set_wl_tx_power() argument 98 struct btc_wl_info *wl = &btc->cx.wl; in _set_wl_tx_power() 104 btc->dm.rf_trx_para.wl_tx_power = level; in _set_wl_tx_power() 109 btc->chip->ops->wl_tx_power(btc, level); in _set_wl_tx_power() 112 void _set_wl_rx_gain(struct btc_t *btc, u32 level) in _set_wl_rx_gain() argument 114 struct btc_wl_info *wl = &btc->cx.wl; in _set_wl_rx_gain() 120 btc->dm.rf_trx_para.wl_rx_gain = level; in _set_wl_rx_gain() [all …]
|
| H A D | hal_btc.c | 53 btc->cx.wl.dbcc_info.real_band[phy_idx] =\ 54 (btc->cx.wl.scan_info.phy_map & BIT(phy_idx) ?\ 55 btc->cx.wl.dbcc_info.scan_band[phy_idx] :\ 56 btc->cx.wl.dbcc_info.op_band[phy_idx]) 63 static void _set_btc_timer(struct btc_t *btc, u16 tmr_id, u32 ms) in _set_btc_timer() argument 68 btmr = &btc->timer[tmr_id]; in _set_btc_timer() 69 _os_set_timer(halcom_to_drvpriv(btc->hal), &btmr->tmr, ms); in _set_btc_timer() 73 static void _btmr_stop(struct btc_t *btc) in _btmr_stop() argument 81 btc->tmr_stop = true; in _btmr_stop() 84 btmr = &btc->timer[i]; in _btmr_stop() [all …]
|
| H A D | halbtc_fw.c | 23 void _chk_btc_err(struct btc_t *btc, u8 type, u32 cnt) in _chk_btc_err() argument 25 struct btc_cx *cx = &btc->cx; in _chk_btc_err() 26 struct btc_dm *dm = &btc->dm; in _chk_btc_err() 36 if (dm->cnt_dm[BTC_DCNT_RPT] == cnt && btc->fwinfo.rpt_en_map) in _chk_btc_err() 127 _update_bt_scbd(btc, false); in _chk_btc_err() 154 static void _update_bt_report(struct btc_t *btc, u8 rpt_type, u8* pfinfo) in _update_bt_report() argument 156 struct rtw_hal_com_t *h = btc->hal; in _update_bt_report() 157 struct btc_bt_info *bt = &btc->cx.bt; in _update_bt_report() 190 static u32 _chk_btc_report(struct btc_t *btc, struct btf_fwinfo *pfwinfo, in _chk_btc_report() argument 193 struct btc_dm *dm = &btc->dm; in _chk_btc_report() [all …]
|
| H A D | halbtc_action.h | 239 void _action_wl_25g_mcc(struct btc_t *btc); 240 void _action_wl_2g_ap(struct btc_t *btc); 241 void _action_wl_2g_go(struct btc_t *btc); 242 void _action_wl_2g_gc(struct btc_t *btc); 243 void _action_wl_2g_nan(struct btc_t *btc); 244 void _action_wl_2g_scc(struct btc_t *btc); 245 void _action_wl_2g_sta(struct btc_t *btc); 246 void _action_wl_scan(struct btc_t *btc); 247 void _action_wl_2g_mcc(struct btc_t *btc); 248 void _action_wl_5g(struct btc_t *btc); [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/btc/ |
| H A D | halbtc_action.c | 25 #define _set_cx_ctrl(btc, val) rtw_hal_mac_set_coex_ctrl(btc->hal, val) argument 85 void _set_bt_ignore_wlan_act(struct btc_t *btc, u8 enable) in _set_bt_ignore_wlan_act() argument 93 hal_btc_fw_set_bt(btc, SET_BT_IGNORE_WLAN_ACT, 1, &buf); in _set_bt_ignore_wlan_act() 96 void _set_wl_tx_power(struct btc_t *btc, u32 level) in _set_wl_tx_power() argument 98 struct btc_wl_info *wl = &btc->cx.wl; in _set_wl_tx_power() 104 btc->dm.rf_trx_para.wl_tx_power = level; in _set_wl_tx_power() 109 btc->chip->ops->wl_tx_power(btc, level); in _set_wl_tx_power() 112 void _set_wl_rx_gain(struct btc_t *btc, u32 level) in _set_wl_rx_gain() argument 114 struct btc_wl_info *wl = &btc->cx.wl; in _set_wl_rx_gain() 120 btc->dm.rf_trx_para.wl_rx_gain = level; in _set_wl_rx_gain() [all …]
|
| H A D | hal_btc.c | 53 btc->cx.wl.dbcc_info.real_band[phy_idx] =\ 54 (btc->cx.wl.scan_info.phy_map & BIT(phy_idx) ?\ 55 btc->cx.wl.dbcc_info.scan_band[phy_idx] :\ 56 btc->cx.wl.dbcc_info.op_band[phy_idx]) 63 static void _set_btc_timer(struct btc_t *btc, u16 tmr_id, u32 ms) in _set_btc_timer() argument 68 btmr = &btc->timer[tmr_id]; in _set_btc_timer() 69 _os_set_timer(halcom_to_drvpriv(btc->hal), &btmr->tmr, ms); in _set_btc_timer() 73 static void _btmr_stop(struct btc_t *btc) in _btmr_stop() argument 81 btc->tmr_stop = true; in _btmr_stop() 84 btmr = &btc->timer[i]; in _btmr_stop() [all …]
|
| H A D | halbtc_fw.c | 23 void _chk_btc_err(struct btc_t *btc, u8 type, u32 cnt) in _chk_btc_err() argument 25 struct btc_cx *cx = &btc->cx; in _chk_btc_err() 26 struct btc_dm *dm = &btc->dm; in _chk_btc_err() 36 if (dm->cnt_dm[BTC_DCNT_RPT] == cnt && btc->fwinfo.rpt_en_map) in _chk_btc_err() 127 _update_bt_scbd(btc, false); in _chk_btc_err() 154 static void _update_bt_report(struct btc_t *btc, u8 rpt_type, u8* pfinfo) in _update_bt_report() argument 156 struct rtw_hal_com_t *h = btc->hal; in _update_bt_report() 157 struct btc_bt_info *bt = &btc->cx.bt; in _update_bt_report() 190 static u32 _chk_btc_report(struct btc_t *btc, struct btf_fwinfo *pfwinfo, in _chk_btc_report() argument 193 struct btc_dm *dm = &btc->dm; in _chk_btc_report() [all …]
|
| H A D | halbtc_action.h | 239 void _action_wl_25g_mcc(struct btc_t *btc); 240 void _action_wl_2g_ap(struct btc_t *btc); 241 void _action_wl_2g_go(struct btc_t *btc); 242 void _action_wl_2g_gc(struct btc_t *btc); 243 void _action_wl_2g_nan(struct btc_t *btc); 244 void _action_wl_2g_scc(struct btc_t *btc); 245 void _action_wl_2g_sta(struct btc_t *btc); 246 void _action_wl_scan(struct btc_t *btc); 247 void _action_wl_2g_mcc(struct btc_t *btc); 248 void _action_wl_5g(struct btc_t *btc); [all …]
|
| H A D | halbtc_dbg_cmd.c | 89 static void _cmd_rb(struct btc_t *btc, u32 *used, char input[][MAX_ARGV], in _cmd_rb() argument 103 btc->dbg.rb_done = false; in _cmd_rb() 104 btc->dbg.rb_val = 0xffffffff; in _cmd_rb() 105 _read_bt_reg(btc, (u8)(type), (u16)addr); in _cmd_rb() 107 if (!btc->dbg.rb_done) in _cmd_rb() 108 hal_mdelay(btc->hal, 10); in _cmd_rb() 114 if (!btc->dbg.rb_done) { in _cmd_rb() 119 " rb %d(0x%x), val = 0x%x !! \n", type, addr, btc->dbg.rb_val); in _cmd_rb() 129 static void _show_cx_info(struct btc_t *btc, u32 *used, char input[][MAX_ARGV], in _show_cx_info() argument 132 struct btc_dm *dm = &btc->dm; in _show_cx_info() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/btc/btc_8852b/ |
| H A D | btc_8852b.c | 118 void _8852b_rfe_type(struct btc_t *btc) in _8852b_rfe_type() argument 120 struct rtw_phl_com_t *p = btc->phl; in _8852b_rfe_type() 121 struct rtw_hal_com_t *h = btc->hal; in _8852b_rfe_type() 122 struct btc_module *module = &btc->mdinfo; in _8852b_rfe_type() 151 void _8852b_wl_tx_power(struct btc_t *btc, u32 level) in _8852b_wl_tx_power() argument 202 rtw_hal_rf_wl_tx_power_control(btc->hal, pwr_val); in _8852b_wl_tx_power() 205 void _8852b_set_wl_lna2(struct btc_t *btc, u8 level) in _8852b_set_wl_lna2() argument 215 _write_wl_rf_reg(btc, RF_PATH_B, 0xef, bMASKRF, 0x1000); in _8852b_set_wl_lna2() 216 _write_wl_rf_reg(btc, RF_PATH_B, 0x33, bMASKRF, 0x3); in _8852b_set_wl_lna2() 217 _write_wl_rf_reg(btc, RF_PATH_B, 0x3f, bMASKRF, 0x17); in _8852b_set_wl_lna2() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/btc/btc_8852b/ |
| H A D | btc_8852b.c | 118 void _8852b_rfe_type(struct btc_t *btc) in _8852b_rfe_type() argument 120 struct rtw_phl_com_t *p = btc->phl; in _8852b_rfe_type() 121 struct rtw_hal_com_t *h = btc->hal; in _8852b_rfe_type() 122 struct btc_module *module = &btc->mdinfo; in _8852b_rfe_type() 151 void _8852b_wl_tx_power(struct btc_t *btc, u32 level) in _8852b_wl_tx_power() argument 202 rtw_hal_rf_wl_tx_power_control(btc->hal, pwr_val); in _8852b_wl_tx_power() 205 void _8852b_set_wl_lna2(struct btc_t *btc, u8 level) in _8852b_set_wl_lna2() argument 215 _write_wl_rf_reg(btc, RF_PATH_B, 0xef, bMASKRF, 0x1000); in _8852b_set_wl_lna2() 216 _write_wl_rf_reg(btc, RF_PATH_B, 0x33, bMASKRF, 0x3); in _8852b_set_wl_lna2() 217 _write_wl_rf_reg(btc, RF_PATH_B, 0x3f, bMASKRF, 0x17); in _8852b_set_wl_lna2() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/ |
| H A D | hal_api_btc.c | 167 struct btc_t *btc = NULL; in rtw_hal_btc_init() local 173 btc = _os_mem_alloc(drv_priv, sizeof(struct btc_t)); in rtw_hal_btc_init() 174 if (!btc) { in rtw_hal_btc_init() 180 btc->phl = phl_com; in rtw_hal_btc_init() 181 btc->hal = hal_info->hal_com; in rtw_hal_btc_init() 183 if (!hal_btc_init(btc)) { in rtw_hal_btc_init() 195 hal_info->btc = btc; in rtw_hal_btc_init() 203 if (btc) { in rtw_hal_btc_init() 204 _os_mem_free(drv_priv, (void *)btc, sizeof(struct btc_t)); in rtw_hal_btc_init() 205 hal_info->btc = NULL; in rtw_hal_btc_init() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/ |
| H A D | hal_api_btc.c | 166 struct btc_t *btc = NULL; in rtw_hal_btc_init() local 172 btc = _os_mem_alloc(drv_priv, sizeof(struct btc_t)); in rtw_hal_btc_init() 173 if (!btc) { in rtw_hal_btc_init() 179 btc->phl = phl_com; in rtw_hal_btc_init() 180 btc->hal = hal_info->hal_com; in rtw_hal_btc_init() 182 if (!hal_btc_init(btc)) { in rtw_hal_btc_init() 194 hal_info->btc = btc; in rtw_hal_btc_init() 202 if (btc) { in rtw_hal_btc_init() 203 _os_mem_free(drv_priv, (void *)btc, sizeof(struct btc_t)); in rtw_hal_btc_init() 204 hal_info->btc = NULL; in rtw_hal_btc_init() [all …]
|