Lines Matching refs:dm_digtable

261 	struct dig_t *rtl_dm_dig = &rtlpriv->dm_digtable;  in rtl8723be_dm_find_minimum_rssi()
300 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl8723be_dm_check_rssi_monitor() local
351 dm_digtable->rssi_val_min = in rtl8723be_dm_check_rssi_monitor()
352 rtlpriv->dm_digtable.min_undec_pwdb_for_dm; in rtl8723be_dm_check_rssi_monitor()
358 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl8723be_dm_write_dig() local
360 if (dm_digtable->stop_dig) in rtl8723be_dm_write_dig()
363 if (dm_digtable->cur_igvalue != current_igi) { in rtl8723be_dm_write_dig()
369 dm_digtable->pre_igvalue = dm_digtable->cur_igvalue; in rtl8723be_dm_write_dig()
370 dm_digtable->cur_igvalue = current_igi; in rtl8723be_dm_write_dig()
376 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl8723be_dm_dig() local
381 u8 current_igi = dm_digtable->cur_igvalue; in rtl8723be_dm_dig()
388 dig_min_0 = dm_digtable->dig_min_0; in rtl8723be_dm_dig()
390 !dm_digtable->media_connect_0; in rtl8723be_dm_dig()
392 (dm_digtable->media_connect_0); in rtl8723be_dm_dig()
399 if ((dm_digtable->rssi_val_min + 10) > dm_dig_max) in rtl8723be_dm_dig()
400 dm_digtable->rx_gain_max = dm_dig_max; in rtl8723be_dm_dig()
401 else if ((dm_digtable->rssi_val_min + 10) < dm_dig_min) in rtl8723be_dm_dig()
402 dm_digtable->rx_gain_max = dm_dig_min; in rtl8723be_dm_dig()
404 dm_digtable->rx_gain_max = in rtl8723be_dm_dig()
405 dm_digtable->rssi_val_min + 10; in rtl8723be_dm_dig()
409 if (dm_digtable->rssi_val_min - offset < dm_dig_min) in rtl8723be_dm_dig()
411 else if (dm_digtable->rssi_val_min - offset > in rtl8723be_dm_dig()
416 dm_digtable->rssi_val_min - offset; in rtl8723be_dm_dig()
422 dm_digtable->rx_gain_max = dm_dig_max; in rtl8723be_dm_dig()
428 if (dm_digtable->large_fa_hit != 3) in rtl8723be_dm_dig()
429 dm_digtable->large_fa_hit++; in rtl8723be_dm_dig()
430 if (dm_digtable->forbidden_igi < current_igi) { in rtl8723be_dm_dig()
431 dm_digtable->forbidden_igi = current_igi; in rtl8723be_dm_dig()
432 dm_digtable->large_fa_hit = 1; in rtl8723be_dm_dig()
435 if (dm_digtable->large_fa_hit >= 3) { in rtl8723be_dm_dig()
436 if ((dm_digtable->forbidden_igi + 1) > in rtl8723be_dm_dig()
437 dm_digtable->rx_gain_max) in rtl8723be_dm_dig()
438 dm_digtable->rx_gain_min = in rtl8723be_dm_dig()
439 dm_digtable->rx_gain_max; in rtl8723be_dm_dig()
441 dm_digtable->rx_gain_min = in rtl8723be_dm_dig()
442 dm_digtable->forbidden_igi + 1; in rtl8723be_dm_dig()
443 dm_digtable->recover_cnt = 3600; in rtl8723be_dm_dig()
446 if (dm_digtable->recover_cnt != 0) { in rtl8723be_dm_dig()
447 dm_digtable->recover_cnt--; in rtl8723be_dm_dig()
449 if (dm_digtable->large_fa_hit < 3) { in rtl8723be_dm_dig()
450 if ((dm_digtable->forbidden_igi - 1) < in rtl8723be_dm_dig()
452 dm_digtable->forbidden_igi = in rtl8723be_dm_dig()
454 dm_digtable->rx_gain_min = in rtl8723be_dm_dig()
457 dm_digtable->forbidden_igi--; in rtl8723be_dm_dig()
458 dm_digtable->rx_gain_min = in rtl8723be_dm_dig()
459 dm_digtable->forbidden_igi + 1; in rtl8723be_dm_dig()
462 dm_digtable->large_fa_hit = 0; in rtl8723be_dm_dig()
466 if (dm_digtable->rx_gain_min > dm_digtable->rx_gain_max) in rtl8723be_dm_dig()
467 dm_digtable->rx_gain_min = dm_digtable->rx_gain_max; in rtl8723be_dm_dig()
471 if (dm_digtable->rssi_val_min <= dig_maxofmin) in rtl8723be_dm_dig()
472 current_igi = dm_digtable->rssi_val_min; in rtl8723be_dm_dig()
476 dm_digtable->large_fa_hit = 0; in rtl8723be_dm_dig()
487 current_igi = dm_digtable->rx_gain_min; in rtl8723be_dm_dig()
498 if (current_igi > dm_digtable->rx_gain_max) in rtl8723be_dm_dig()
499 current_igi = dm_digtable->rx_gain_max; in rtl8723be_dm_dig()
500 else if (current_igi < dm_digtable->rx_gain_min) in rtl8723be_dm_dig()
501 current_igi = dm_digtable->rx_gain_min; in rtl8723be_dm_dig()
504 dm_digtable->media_connect_0 = in rtl8723be_dm_dig()
506 dm_digtable->dig_min_0 = dig_min_0; in rtl8723be_dm_dig()
1049 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl8723be_dm_cck_packet_detection_thresh() local
1053 if (dm_digtable->rssi_val_min > 25) { in rtl8723be_dm_cck_packet_detection_thresh()
1055 } else if ((dm_digtable->rssi_val_min <= 25) && in rtl8723be_dm_cck_packet_detection_thresh()
1056 (dm_digtable->rssi_val_min > 10)) { in rtl8723be_dm_cck_packet_detection_thresh()
1071 if (dm_digtable->cur_cck_cca_thres != cur_cck_cca_thresh) in rtl8723be_dm_cck_packet_detection_thresh()
1074 dm_digtable->pre_cck_cca_thres = dm_digtable->cur_cck_cca_thres; in rtl8723be_dm_cck_packet_detection_thresh()
1075 dm_digtable->cur_cck_cca_thres = cur_cck_cca_thresh; in rtl8723be_dm_cck_packet_detection_thresh()
1077 "CCK cca thresh hold =%x\n", dm_digtable->cur_cck_cca_thres); in rtl8723be_dm_cck_packet_detection_thresh()