Lines Matching refs:dm_digtable
426 struct dig_t *rtl_dm_dig = &rtlpriv->dm_digtable; in rtl8821ae_dm_find_minimum_rssi()
499 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl8821ae_dm_check_rssi_monitor() local
584 dm_digtable->rssi_val_min = rtlpriv->dm_digtable.min_undec_pwdb_for_dm; in rtl8821ae_dm_check_rssi_monitor()
590 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl8821ae_dm_write_cck_cca_thres() local
592 if (dm_digtable->cur_cck_cca_thres != current_cca) in rtl8821ae_dm_write_cck_cca_thres()
595 dm_digtable->pre_cck_cca_thres = dm_digtable->cur_cck_cca_thres; in rtl8821ae_dm_write_cck_cca_thres()
596 dm_digtable->cur_cck_cca_thres = current_cca; in rtl8821ae_dm_write_cck_cca_thres()
602 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl8821ae_dm_write_dig() local
604 if (dm_digtable->stop_dig) in rtl8821ae_dm_write_dig()
607 if (dm_digtable->cur_igvalue != current_igi) { in rtl8821ae_dm_write_dig()
614 dm_digtable->cur_igvalue = current_igi; in rtl8821ae_dm_write_dig()
620 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl8821ae_dm_dig() local
627 u8 current_igi = dm_digtable->cur_igvalue; in rtl8821ae_dm_dig()
638 dig_min_0 = dm_digtable->dig_min_0; in rtl8821ae_dm_dig()
640 (!dm_digtable->media_connect_0); in rtl8821ae_dm_dig()
642 (dm_digtable->media_connect_0); in rtl8821ae_dm_dig()
661 if ((dm_digtable->rssi_val_min + offset) > dm_dig_max) in rtl8821ae_dm_dig()
662 dm_digtable->rx_gain_max = dm_dig_max; in rtl8821ae_dm_dig()
663 else if ((dm_digtable->rssi_val_min + offset) < dm_dig_min) in rtl8821ae_dm_dig()
664 dm_digtable->rx_gain_max = dm_dig_min; in rtl8821ae_dm_dig()
666 dm_digtable->rx_gain_max = in rtl8821ae_dm_dig()
667 dm_digtable->rssi_val_min + offset; in rtl8821ae_dm_dig()
671 dm_digtable->rssi_val_min, in rtl8821ae_dm_dig()
672 dm_digtable->rx_gain_max); in rtl8821ae_dm_dig()
676 if (dm_digtable->rssi_val_min - offset < dm_dig_min) in rtl8821ae_dm_dig()
678 else if (dm_digtable->rssi_val_min - in rtl8821ae_dm_dig()
683 dm_digtable->rssi_val_min - offset; in rtl8821ae_dm_dig()
692 dm_digtable->rx_gain_max = dm_dig_max; in rtl8821ae_dm_dig()
701 if (dm_digtable->large_fa_hit != 3) in rtl8821ae_dm_dig()
702 dm_digtable->large_fa_hit++; in rtl8821ae_dm_dig()
703 if (dm_digtable->forbidden_igi < current_igi) { in rtl8821ae_dm_dig()
704 dm_digtable->forbidden_igi = current_igi; in rtl8821ae_dm_dig()
705 dm_digtable->large_fa_hit = 1; in rtl8821ae_dm_dig()
708 if (dm_digtable->large_fa_hit >= 3) { in rtl8821ae_dm_dig()
709 if ((dm_digtable->forbidden_igi + 1) > in rtl8821ae_dm_dig()
710 dm_digtable->rx_gain_max) in rtl8821ae_dm_dig()
711 dm_digtable->rx_gain_min = in rtl8821ae_dm_dig()
712 dm_digtable->rx_gain_max; in rtl8821ae_dm_dig()
714 dm_digtable->rx_gain_min = in rtl8821ae_dm_dig()
715 (dm_digtable->forbidden_igi + 1); in rtl8821ae_dm_dig()
716 dm_digtable->recover_cnt = 3600; in rtl8821ae_dm_dig()
720 if (dm_digtable->recover_cnt != 0) { in rtl8821ae_dm_dig()
721 dm_digtable->recover_cnt--; in rtl8821ae_dm_dig()
723 if (dm_digtable->large_fa_hit < 3) { in rtl8821ae_dm_dig()
724 if ((dm_digtable->forbidden_igi - 1) < in rtl8821ae_dm_dig()
726 dm_digtable->forbidden_igi = in rtl8821ae_dm_dig()
728 dm_digtable->rx_gain_min = in rtl8821ae_dm_dig()
733 dm_digtable->forbidden_igi--; in rtl8821ae_dm_dig()
734 dm_digtable->rx_gain_min = in rtl8821ae_dm_dig()
735 (dm_digtable->forbidden_igi + 1); in rtl8821ae_dm_dig()
740 dm_digtable->large_fa_hit = 0; in rtl8821ae_dm_dig()
746 dm_digtable->large_fa_hit); in rtl8821ae_dm_dig()
749 dm_digtable->rx_gain_min = dm_dig_min; in rtl8821ae_dm_dig()
751 if (dm_digtable->rx_gain_min > dm_digtable->rx_gain_max) in rtl8821ae_dm_dig()
752 dm_digtable->rx_gain_min = dm_digtable->rx_gain_max; in rtl8821ae_dm_dig()
759 if (dm_digtable->rssi_val_min <= dig_max_of_min) in rtl8821ae_dm_dig()
760 current_igi = dm_digtable->rssi_val_min; in rtl8821ae_dm_dig()
775 current_igi = dm_digtable->rx_gain_min; in rtl8821ae_dm_dig()
784 current_igi = dm_digtable->rx_gain_min; in rtl8821ae_dm_dig()
808 if (current_igi > dm_digtable->rx_gain_max) in rtl8821ae_dm_dig()
809 current_igi = dm_digtable->rx_gain_max; in rtl8821ae_dm_dig()
810 if (current_igi < dm_digtable->rx_gain_min) in rtl8821ae_dm_dig()
811 current_igi = dm_digtable->rx_gain_min; in rtl8821ae_dm_dig()
815 dm_digtable->rx_gain_max, dm_digtable->rx_gain_min); in rtl8821ae_dm_dig()
822 dm_digtable->media_connect_0 = in rtl8821ae_dm_dig()
824 dm_digtable->dig_min_0 = dig_min_0; in rtl8821ae_dm_dig()
2416 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl8821ae_dm_refresh_basic_rate_mask() local
2424 else if (dm_digtable->rssi_val_min < 25) in rtl8821ae_dm_refresh_basic_rate_mask()
2426 else if (dm_digtable->rssi_val_min > 30) in rtl8821ae_dm_refresh_basic_rate_mask()
2578 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl8821ae_dm_cck_packet_detection_thresh() local
2582 if (dm_digtable->rssi_val_min > 25) { in rtl8821ae_dm_cck_packet_detection_thresh()
2584 } else if ((dm_digtable->rssi_val_min <= 25) && in rtl8821ae_dm_cck_packet_detection_thresh()
2585 (dm_digtable->rssi_val_min > 10)) { in rtl8821ae_dm_cck_packet_detection_thresh()
2600 if (dm_digtable->cur_cck_cca_thres != cur_cck_cca_thresh) in rtl8821ae_dm_cck_packet_detection_thresh()
2604 dm_digtable->pre_cck_cca_thres = dm_digtable->cur_cck_cca_thres; in rtl8821ae_dm_cck_packet_detection_thresh()
2605 dm_digtable->cur_cck_cca_thres = cur_cck_cca_thresh; in rtl8821ae_dm_cck_packet_detection_thresh()
2607 "CCK cca thresh hold =%x\n", dm_digtable->cur_cck_cca_thres); in rtl8821ae_dm_cck_packet_detection_thresh()