Lines Matching +full:0 +full:x04020000

25 	falsealm_cnt->cnt_fast_fsync_fail = (ret_value & 0xffff);  in rtl92ee_dm_false_alarm_counter_statistics()
26 falsealm_cnt->cnt_sb_search_fail = ((ret_value & 0xffff0000) >> 16); in rtl92ee_dm_false_alarm_counter_statistics()
29 falsealm_cnt->cnt_ofdm_cca = (ret_value & 0xffff); in rtl92ee_dm_false_alarm_counter_statistics()
30 falsealm_cnt->cnt_parity_fail = ((ret_value & 0xffff0000) >> 16); in rtl92ee_dm_false_alarm_counter_statistics()
33 falsealm_cnt->cnt_rate_illegal = (ret_value & 0xffff); in rtl92ee_dm_false_alarm_counter_statistics()
34 falsealm_cnt->cnt_crc8_fail = ((ret_value & 0xffff0000) >> 16); in rtl92ee_dm_false_alarm_counter_statistics()
37 falsealm_cnt->cnt_mcs_fail = (ret_value & 0xffff); in rtl92ee_dm_false_alarm_counter_statistics()
47 falsealm_cnt->cnt_bw_lsc = (ret_value & 0xffff); in rtl92ee_dm_false_alarm_counter_statistics()
48 falsealm_cnt->cnt_bw_usc = ((ret_value & 0xffff0000) >> 16); in rtl92ee_dm_false_alarm_counter_statistics()
57 falsealm_cnt->cnt_cck_fail += (ret_value & 0xff) << 8; in rtl92ee_dm_false_alarm_counter_statistics()
60 falsealm_cnt->cnt_cck_cca = ((ret_value & 0xff) << 8) | in rtl92ee_dm_false_alarm_counter_statistics()
61 ((ret_value & 0xFF00) >> 8); in rtl92ee_dm_false_alarm_counter_statistics()
76 rtl_set_bbreg(hw, DM_REG_OFDM_FA_RSTC_11N, BIT(31), 0); in rtl92ee_dm_false_alarm_counter_statistics()
78 rtl_set_bbreg(hw, DM_REG_OFDM_FA_RSTD_11N, BIT(27), 0); in rtl92ee_dm_false_alarm_counter_statistics()
80 rtl_set_bbreg(hw, DM_REG_OFDM_FA_HOLDC_11N, BIT(31), 0); in rtl92ee_dm_false_alarm_counter_statistics()
81 rtl_set_bbreg(hw, DM_REG_OFDM_FA_RSTD_11N, BIT(31), 0); in rtl92ee_dm_false_alarm_counter_statistics()
83 rtl_set_bbreg(hw, DM_REG_CCK_FA_RST_11N, BIT(13) | BIT(12), 0); in rtl92ee_dm_false_alarm_counter_statistics()
86 rtl_set_bbreg(hw, DM_REG_CCK_FA_RST_11N, BIT(15) | BIT(14), 0); in rtl92ee_dm_false_alarm_counter_statistics()
109 cur_cck_cca_thresh = 0xcd; in rtl92ee_dm_cck_packet_detection_thresh()
112 cur_cck_cca_thresh = 0x83; in rtl92ee_dm_cck_packet_detection_thresh()
115 cur_cck_cca_thresh = 0x83; in rtl92ee_dm_cck_packet_detection_thresh()
117 cur_cck_cca_thresh = 0x40; in rtl92ee_dm_cck_packet_detection_thresh()
121 cur_cck_cca_thresh = 0x83; in rtl92ee_dm_cck_packet_detection_thresh()
123 cur_cck_cca_thresh = 0x40; in rtl92ee_dm_cck_packet_detection_thresh()
149 dm_dig_max = 0x5a; in rtl92ee_dm_dig()
162 offset = 0; in rtl92ee_dm_dig()
198 if (dm_dig->recover_cnt != 0) { in rtl92ee_dm_dig()
213 dm_dig->large_fa_hit = 0; in rtl92ee_dm_dig()
231 dm_dig->large_fa_hit = 0; in rtl92ee_dm_dig()
289 rtl_set_bbreg(hw, ROFDM0_XAAGCCORE1, 0x7f, current_igi); in rtl92ee_dm_write_dig()
291 rtl_set_bbreg(hw, ROFDM0_XBAGCCORE1, 0x7f, current_igi); in rtl92ee_dm_write_dig()
302 rtlpriv->stats.rx_rssi_percentage[0]); in rtl92ee_rssi_dump_to_register()
310 rtl_write_byte(rtlpriv, RS1_RXEVMDUMP, rtlpriv->stats.rx_evm_dbm[0]); in rtl92ee_rssi_dump_to_register()
314 (u8)(rtlpriv->stats.rx_snr_db[0])); in rtl92ee_rssi_dump_to_register()
319 rtlpriv->stats.rx_cfo_short[0]); in rtl92ee_rssi_dump_to_register()
323 rtl_write_word(rtlpriv, RA_CFOLONGDUMP, rtlpriv->stats.rx_cfo_tail[0]); in rtl92ee_rssi_dump_to_register()
335 (rtlpriv->dm.entry_min_undec_sm_pwdb == 0)) { in rtl92ee_dm_find_minimum_rssi()
336 rtl_dm_dig->min_undec_pwdb_for_dm = 0; in rtl92ee_dm_find_minimum_rssi()
346 "AP Client PWDB = 0x%lx\n", in rtl92ee_dm_find_minimum_rssi()
352 "STA Default Port PWDB = 0x%x\n", in rtl92ee_dm_find_minimum_rssi()
359 "AP Ext Port or disconnect PWDB = 0x%x\n", in rtl92ee_dm_find_minimum_rssi()
374 u8 h2c[4] = { 0 }; in rtl92ee_dm_check_rssi_monitor()
375 long max = 0, min = 0xff; in rtl92ee_dm_check_rssi_monitor()
376 u8 i = 0; in rtl92ee_dm_check_rssi_monitor()
391 h2c[3] = 0; in rtl92ee_dm_check_rssi_monitor()
392 h2c[2] = (u8)(dm->undec_sm_pwdb & 0xFF); in rtl92ee_dm_check_rssi_monitor()
393 h2c[1] = 0x20; in rtl92ee_dm_check_rssi_monitor()
394 h2c[0] = ++i; in rtl92ee_dm_check_rssi_monitor()
400 if (max != 0) { in rtl92ee_dm_check_rssi_monitor()
403 "EntryMaxPWDB = 0x%lx(%ld)\n", max, max); in rtl92ee_dm_check_rssi_monitor()
405 dm->entry_max_undec_sm_pwdb = 0; in rtl92ee_dm_check_rssi_monitor()
408 if (min != 0xff) { in rtl92ee_dm_check_rssi_monitor()
411 "EntryMinPWDB = 0x%lx(%ld)\n", min, min); in rtl92ee_dm_check_rssi_monitor()
413 dm->entry_min_undec_sm_pwdb = 0; in rtl92ee_dm_check_rssi_monitor()
419 h2c[3] = 0; in rtl92ee_dm_check_rssi_monitor()
420 h2c[2] = (u8)(dm->undec_sm_pwdb & 0xFF); in rtl92ee_dm_check_rssi_monitor()
421 h2c[1] = 0x20; in rtl92ee_dm_check_rssi_monitor()
422 h2c[0] = 0; in rtl92ee_dm_check_rssi_monitor()
425 rtl_write_byte(rtlpriv, 0x4fe, dm->undec_sm_pwdb); in rtl92ee_dm_check_rssi_monitor()
437 primarycca->dup_rts_flag = 0; in rtl92ee_dm_init_primary_cca_check()
438 primarycca->intf_flag = 0; in rtl92ee_dm_init_primary_cca_check()
439 primarycca->intf_type = 0; in rtl92ee_dm_init_primary_cca_check()
440 primarycca->monitor_flag = 0; in rtl92ee_dm_init_primary_cca_check()
441 primarycca->ch_offset = 0; in rtl92ee_dm_init_primary_cca_check()
442 primarycca->mf_state = 0; in rtl92ee_dm_init_primary_cca_check()
470 u64 cur_txok_cnt = 0; in rtl92ee_dm_check_edca_turbo()
471 u64 cur_rxok_cnt = 0; in rtl92ee_dm_check_edca_turbo()
472 u32 edca_be_ul = 0x5ea42b; in rtl92ee_dm_check_edca_turbo()
473 u32 edca_be_dl = 0x5ea42b; /*not sure*/ in rtl92ee_dm_check_edca_turbo()
474 u32 edca_be = 0x5ea42b; in rtl92ee_dm_check_edca_turbo()
478 if (rtlpriv->dm.dbginfo.num_non_be_pkt > 0x100) in rtl92ee_dm_check_edca_turbo()
480 rtlpriv->dm.dbginfo.num_non_be_pkt = 0; in rtl92ee_dm_check_edca_turbo()
531 if (reg_c50 > 0x28 && reg_c58 > 0x28) { in rtl92ee_dm_dynamic_edcca()
533 rtl_write_byte(rtlpriv, ROFDM0_ECCATHRESHOLD, 0x03); in rtl92ee_dm_dynamic_edcca()
534 rtl_write_byte(rtlpriv, ROFDM0_ECCATHRESHOLD + 2, 0x00); in rtl92ee_dm_dynamic_edcca()
537 } else if (reg_c50 < 0x25 && reg_c58 < 0x25) { in rtl92ee_dm_dynamic_edcca()
539 rtl_write_byte(rtlpriv, ROFDM0_ECCATHRESHOLD, 0x7f); in rtl92ee_dm_dynamic_edcca()
540 rtl_write_byte(rtlpriv, ROFDM0_ECCATHRESHOLD + 2, 0x7f); in rtl92ee_dm_dynamic_edcca()
594 if (primarycca->pricca_flag == 0) { in rtl92ee_dm_dynamic_primary_cca_check()
617 primarycca->intf_type = 0; in rtl92ee_dm_dynamic_primary_cca_check()
618 primarycca->intf_flag = 0; in rtl92ee_dm_dynamic_primary_cca_check()
621 primarycca->dup_rts_flag = 0; in rtl92ee_dm_dynamic_primary_cca_check()
642 primarycca->intf_type = 0; in rtl92ee_dm_dynamic_primary_cca_check()
643 primarycca->intf_flag = 0; in rtl92ee_dm_dynamic_primary_cca_check()
646 primarycca->dup_rts_flag = 0; in rtl92ee_dm_dynamic_primary_cca_check()
651 if (count_down == 0) { in rtl92ee_dm_dynamic_primary_cca_check()
653 primarycca->pricca_flag = 0; in rtl92ee_dm_dynamic_primary_cca_check()
657 primarycca->dup_rts_flag = 0; in rtl92ee_dm_dynamic_primary_cca_check()
658 primarycca->intf_type = 0; in rtl92ee_dm_dynamic_primary_cca_check()
659 primarycca->intf_flag = 0; in rtl92ee_dm_dynamic_primary_cca_check()
670 int cfo_khz_a , cfo_khz_b , cfo_ave = 0, adjust_xtal = 0; in rtl92ee_dm_dynamic_atc_switch()
691 crystal_cap = rtldm->crystal_cap & 0x3f; in rtl92ee_dm_dynamic_atc_switch()
692 rtl_set_bbreg(hw, REG_MAC_PHY_CTRL, 0xFFF000, in rtl92ee_dm_dynamic_atc_switch()
696 cfo_khz_a = (int)(rtldm->cfo_tail[0] * 3125) / 1280; in rtl92ee_dm_dynamic_atc_switch()
723 cfo_ave <= rtldm->cfo_threshold && rtldm->is_freeze == 0) { in rtl92ee_dm_dynamic_atc_switch()
732 if (cfo_ave > rtldm->cfo_threshold && rtldm->crystal_cap < 0x3f) in rtl92ee_dm_dynamic_atc_switch()
735 rtlpriv->dm.crystal_cap > 0) in rtl92ee_dm_dynamic_atc_switch()
738 if (adjust_xtal != 0) { in rtl92ee_dm_dynamic_atc_switch()
739 rtldm->is_freeze = 0; in rtl92ee_dm_dynamic_atc_switch()
742 if (rtldm->crystal_cap > 0x3f) in rtl92ee_dm_dynamic_atc_switch()
743 rtldm->crystal_cap = 0x3f; in rtl92ee_dm_dynamic_atc_switch()
744 else if (rtldm->crystal_cap < 0) in rtl92ee_dm_dynamic_atc_switch()
745 rtldm->crystal_cap = 0; in rtl92ee_dm_dynamic_atc_switch()
747 crystal_cap = rtldm->crystal_cap & 0x3f; in rtl92ee_dm_dynamic_atc_switch()
748 rtl_set_bbreg(hw, REG_MAC_PHY_CTRL, 0xFFF000, in rtl92ee_dm_dynamic_atc_switch()
785 dm->delta_power_index[path] = 0; in rtl92ee_dm_init_txpower_tracking()
786 dm->delta_power_index_last[path] = 0; in rtl92ee_dm_init_txpower_tracking()
787 dm->power_index_offset[path] = 0; in rtl92ee_dm_init_txpower_tracking()
962 rtl_write_dword(rtlpriv, REG_DARFRC, 0x0); in rtl92ee_dm_dynamic_arfb_select()
964 0x07060501); in rtl92ee_dm_dynamic_arfb_select()
966 rtl_write_dword(rtlpriv, REG_DARFRC, 0x0); in rtl92ee_dm_dynamic_arfb_select()
968 0x07070605); in rtl92ee_dm_dynamic_arfb_select()
970 rtl_write_dword(rtlpriv, REG_DARFRC, 0x0); in rtl92ee_dm_dynamic_arfb_select()
972 0x08080706); in rtl92ee_dm_dynamic_arfb_select()
974 rtl_write_dword(rtlpriv, REG_DARFRC, 0x0); in rtl92ee_dm_dynamic_arfb_select()
976 0x08080707); in rtl92ee_dm_dynamic_arfb_select()
978 rtl_write_dword(rtlpriv, REG_DARFRC, 0x0); in rtl92ee_dm_dynamic_arfb_select()
980 0x09090808); in rtl92ee_dm_dynamic_arfb_select()
982 } else { /* collision_state == 0 */ in rtl92ee_dm_dynamic_arfb_select()
985 0x05010000); in rtl92ee_dm_dynamic_arfb_select()
987 0x09080706); in rtl92ee_dm_dynamic_arfb_select()
990 0x06050000); in rtl92ee_dm_dynamic_arfb_select()
992 0x09080807); in rtl92ee_dm_dynamic_arfb_select()
995 0x07060000); in rtl92ee_dm_dynamic_arfb_select()
997 0x0a090908); in rtl92ee_dm_dynamic_arfb_select()
1000 0x07070000); in rtl92ee_dm_dynamic_arfb_select()
1002 0x0a090808); in rtl92ee_dm_dynamic_arfb_select()
1005 0x08080000); in rtl92ee_dm_dynamic_arfb_select()
1007 0x0b0a0909); in rtl92ee_dm_dynamic_arfb_select()
1014 0x00000000); in rtl92ee_dm_dynamic_arfb_select()
1016 0x05040302); in rtl92ee_dm_dynamic_arfb_select()
1019 0x00000000); in rtl92ee_dm_dynamic_arfb_select()
1021 0x06050302); in rtl92ee_dm_dynamic_arfb_select()
1024 0x00000000); in rtl92ee_dm_dynamic_arfb_select()
1026 0x07060502); in rtl92ee_dm_dynamic_arfb_select()
1029 0x00000000); in rtl92ee_dm_dynamic_arfb_select()
1031 0x06050402); in rtl92ee_dm_dynamic_arfb_select()
1033 } else{ /* collision_state == 0 */ in rtl92ee_dm_dynamic_arfb_select()
1036 0x03020000); in rtl92ee_dm_dynamic_arfb_select()
1038 0x07060504); in rtl92ee_dm_dynamic_arfb_select()
1041 0x03020000); in rtl92ee_dm_dynamic_arfb_select()
1043 0x08070605); in rtl92ee_dm_dynamic_arfb_select()
1046 0x05020000); in rtl92ee_dm_dynamic_arfb_select()
1048 0x09080706); in rtl92ee_dm_dynamic_arfb_select()
1051 0x04020000); in rtl92ee_dm_dynamic_arfb_select()
1053 0x08070605); in rtl92ee_dm_dynamic_arfb_select()