Lines Matching refs:de_digtable

742 	struct dig_t *de_digtable = &rtlpriv->dm_digtable;  in rtl92d_dm_find_minimum_rssi()  local
748 de_digtable->min_undec_pwdb_for_dm = 0; in rtl92d_dm_find_minimum_rssi()
755 de_digtable->min_undec_pwdb_for_dm = in rtl92d_dm_find_minimum_rssi()
761 de_digtable->min_undec_pwdb_for_dm = in rtl92d_dm_find_minimum_rssi()
765 de_digtable->min_undec_pwdb_for_dm); in rtl92d_dm_find_minimum_rssi()
768 de_digtable->min_undec_pwdb_for_dm = in rtl92d_dm_find_minimum_rssi()
772 de_digtable->min_undec_pwdb_for_dm); in rtl92d_dm_find_minimum_rssi()
776 de_digtable->min_undec_pwdb_for_dm); in rtl92d_dm_find_minimum_rssi()
783 struct dig_t *de_digtable = &rtlpriv->dm_digtable; in rtl92d_dm_cck_packet_detection_thresh() local
786 if (de_digtable->cursta_cstate == DIG_STA_CONNECT) { in rtl92d_dm_cck_packet_detection_thresh()
787 if (de_digtable->pre_cck_pd_state == CCK_PD_STAGE_LOWRSSI) { in rtl92d_dm_cck_packet_detection_thresh()
788 if (de_digtable->min_undec_pwdb_for_dm <= 25) in rtl92d_dm_cck_packet_detection_thresh()
789 de_digtable->cur_cck_pd_state = in rtl92d_dm_cck_packet_detection_thresh()
792 de_digtable->cur_cck_pd_state = in rtl92d_dm_cck_packet_detection_thresh()
795 if (de_digtable->min_undec_pwdb_for_dm <= 20) in rtl92d_dm_cck_packet_detection_thresh()
796 de_digtable->cur_cck_pd_state = in rtl92d_dm_cck_packet_detection_thresh()
799 de_digtable->cur_cck_pd_state = in rtl92d_dm_cck_packet_detection_thresh()
803 de_digtable->cur_cck_pd_state = CCK_PD_STAGE_LOWRSSI; in rtl92d_dm_cck_packet_detection_thresh()
805 if (de_digtable->pre_cck_pd_state != de_digtable->cur_cck_pd_state) { in rtl92d_dm_cck_packet_detection_thresh()
806 if (de_digtable->cur_cck_pd_state == CCK_PD_STAGE_LOWRSSI) { in rtl92d_dm_cck_packet_detection_thresh()
815 de_digtable->pre_cck_pd_state = de_digtable->cur_cck_pd_state; in rtl92d_dm_cck_packet_detection_thresh()
818 de_digtable->cursta_cstate == DIG_STA_CONNECT ? in rtl92d_dm_cck_packet_detection_thresh()
821 de_digtable->cur_cck_pd_state == CCK_PD_STAGE_LOWRSSI ? in rtl92d_dm_cck_packet_detection_thresh()
830 struct dig_t *de_digtable = &rtlpriv->dm_digtable; in rtl92d_dm_write_dig() local
834 de_digtable->cur_igvalue, de_digtable->pre_igvalue, in rtl92d_dm_write_dig()
835 de_digtable->back_val); in rtl92d_dm_write_dig()
836 if (!de_digtable->dig_enable_flag) { in rtl92d_dm_write_dig()
838 de_digtable->pre_igvalue = 0x17; in rtl92d_dm_write_dig()
841 if (de_digtable->pre_igvalue != de_digtable->cur_igvalue) { in rtl92d_dm_write_dig()
843 de_digtable->cur_igvalue); in rtl92d_dm_write_dig()
845 de_digtable->cur_igvalue); in rtl92d_dm_write_dig()
846 de_digtable->pre_igvalue = de_digtable->cur_igvalue; in rtl92d_dm_write_dig()
853 struct dig_t *de_digtable = &rtlpriv->dm_digtable; in rtl92d_early_mode_enabled() local
858 if (de_digtable->last_min_undec_pwdb_for_dm >= 50 && in rtl92d_early_mode_enabled()
859 de_digtable->min_undec_pwdb_for_dm < 50) { in rtl92d_early_mode_enabled()
863 } else if (de_digtable->last_min_undec_pwdb_for_dm <= 55 && in rtl92d_early_mode_enabled()
864 de_digtable->min_undec_pwdb_for_dm > 55) { in rtl92d_early_mode_enabled()
878 struct dig_t *de_digtable = &rtlpriv->dm_digtable; in rtl92d_dm_dig() local
879 u8 value_igi = de_digtable->cur_igvalue; in rtl92d_dm_dig()
885 de_digtable->last_min_undec_pwdb_for_dm = in rtl92d_dm_dig()
886 de_digtable->min_undec_pwdb_for_dm; in rtl92d_dm_dig()
906 de_digtable->cursta_cstate = DIG_STA_CONNECT; in rtl92d_dm_dig()
908 de_digtable->cursta_cstate = DIG_STA_DISCONNECT; in rtl92d_dm_dig()
921 de_digtable->large_fa_hit, de_digtable->forbidden_igi); in rtl92d_dm_dig()
924 de_digtable->recover_cnt, de_digtable->rx_gain_min); in rtl92d_dm_dig()
931 de_digtable->large_fa_hit++; in rtl92d_dm_dig()
932 if (de_digtable->forbidden_igi < de_digtable->cur_igvalue) { in rtl92d_dm_dig()
933 de_digtable->forbidden_igi = de_digtable->cur_igvalue; in rtl92d_dm_dig()
934 de_digtable->large_fa_hit = 1; in rtl92d_dm_dig()
936 if (de_digtable->large_fa_hit >= 3) { in rtl92d_dm_dig()
937 if ((de_digtable->forbidden_igi + 1) > DM_DIG_MAX) in rtl92d_dm_dig()
938 de_digtable->rx_gain_min = DM_DIG_MAX; in rtl92d_dm_dig()
940 de_digtable->rx_gain_min = in rtl92d_dm_dig()
941 (de_digtable->forbidden_igi + 1); in rtl92d_dm_dig()
942 de_digtable->recover_cnt = 3600; /* 3600=2hr */ in rtl92d_dm_dig()
946 if (de_digtable->recover_cnt != 0) { in rtl92d_dm_dig()
947 de_digtable->recover_cnt--; in rtl92d_dm_dig()
949 if (de_digtable->large_fa_hit == 0) { in rtl92d_dm_dig()
950 if ((de_digtable->forbidden_igi - 1) < in rtl92d_dm_dig()
952 de_digtable->forbidden_igi = in rtl92d_dm_dig()
954 de_digtable->rx_gain_min = in rtl92d_dm_dig()
958 de_digtable->forbidden_igi--; in rtl92d_dm_dig()
959 de_digtable->rx_gain_min = in rtl92d_dm_dig()
960 (de_digtable->forbidden_igi + 1); in rtl92d_dm_dig()
962 } else if (de_digtable->large_fa_hit == 3) { in rtl92d_dm_dig()
963 de_digtable->large_fa_hit = 0; in rtl92d_dm_dig()
969 de_digtable->large_fa_hit, de_digtable->forbidden_igi); in rtl92d_dm_dig()
972 de_digtable->recover_cnt, de_digtable->rx_gain_min); in rtl92d_dm_dig()
976 else if (value_igi < de_digtable->rx_gain_min) in rtl92d_dm_dig()
977 value_igi = de_digtable->rx_gain_min; in rtl92d_dm_dig()
978 de_digtable->cur_igvalue = value_igi; in rtl92d_dm_dig()