Lines Matching refs:dm_digtable

176 	struct dig_t *dm_digtable = &rtlpriv->dm_digtable;  in rtl92c_dm_initial_gain_min_pwdb()  local
179 if ((dm_digtable->curmultista_cstate == DIG_MULTISTA_CONNECT) && in rtl92c_dm_initial_gain_min_pwdb()
180 (dm_digtable->cursta_cstate == DIG_STA_CONNECT)) { in rtl92c_dm_initial_gain_min_pwdb()
189 } else if (dm_digtable->cursta_cstate == DIG_STA_CONNECT || in rtl92c_dm_initial_gain_min_pwdb()
190 dm_digtable->cursta_cstate == DIG_STA_BEFORE_CONNECT) { in rtl92c_dm_initial_gain_min_pwdb()
192 } else if (dm_digtable->curmultista_cstate == DIG_MULTISTA_CONNECT) { in rtl92c_dm_initial_gain_min_pwdb()
260 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl92c_dm_ctrl_initgain_by_fa() local
261 u8 value_igi = dm_digtable->cur_igvalue; in rtl92c_dm_ctrl_initgain_by_fa()
280 dm_digtable->cur_igvalue = value_igi; in rtl92c_dm_ctrl_initgain_by_fa()
287 struct dig_t *digtable = &rtlpriv->dm_digtable; in rtl92c_dm_ctrl_initgain_by_rssi()
370 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl92c_dm_initial_gain_multi_sta() local
379 dm_digtable->cursta_cstate == DIG_STA_DISCONNECT) { in rtl92c_dm_initial_gain_multi_sta()
381 dm_digtable->dig_ext_port_stage = DIG_EXT_PORT_STAGE_MAX; in rtl92c_dm_initial_gain_multi_sta()
385 dm_digtable->dig_ext_port_stage = DIG_EXT_PORT_STAGE_0; in rtl92c_dm_initial_gain_multi_sta()
386 dm_digtable->cur_igvalue = 0x20; in rtl92c_dm_initial_gain_multi_sta()
390 if (dm_digtable->curmultista_cstate == DIG_MULTISTA_CONNECT) { in rtl92c_dm_initial_gain_multi_sta()
391 if ((rssi_strength < dm_digtable->rssi_lowthresh) && in rtl92c_dm_initial_gain_multi_sta()
392 (dm_digtable->dig_ext_port_stage != DIG_EXT_PORT_STAGE_1)) { in rtl92c_dm_initial_gain_multi_sta()
394 if (dm_digtable->dig_ext_port_stage == in rtl92c_dm_initial_gain_multi_sta()
396 dm_digtable->cur_igvalue = 0x20; in rtl92c_dm_initial_gain_multi_sta()
400 dm_digtable->dig_ext_port_stage = DIG_EXT_PORT_STAGE_1; in rtl92c_dm_initial_gain_multi_sta()
401 } else if (rssi_strength > dm_digtable->rssi_highthresh) { in rtl92c_dm_initial_gain_multi_sta()
402 dm_digtable->dig_ext_port_stage = DIG_EXT_PORT_STAGE_2; in rtl92c_dm_initial_gain_multi_sta()
405 } else if (dm_digtable->dig_ext_port_stage != DIG_EXT_PORT_STAGE_0) { in rtl92c_dm_initial_gain_multi_sta()
406 dm_digtable->dig_ext_port_stage = DIG_EXT_PORT_STAGE_0; in rtl92c_dm_initial_gain_multi_sta()
407 dm_digtable->cur_igvalue = 0x20; in rtl92c_dm_initial_gain_multi_sta()
413 dm_digtable->curmultista_cstate, in rtl92c_dm_initial_gain_multi_sta()
414 dm_digtable->dig_ext_port_stage); in rtl92c_dm_initial_gain_multi_sta()
420 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl92c_dm_initial_gain_sta() local
424 dm_digtable->presta_cstate, dm_digtable->cursta_cstate); in rtl92c_dm_initial_gain_sta()
425 if (dm_digtable->presta_cstate == dm_digtable->cursta_cstate || in rtl92c_dm_initial_gain_sta()
426 dm_digtable->cursta_cstate == DIG_STA_BEFORE_CONNECT || in rtl92c_dm_initial_gain_sta()
427 dm_digtable->cursta_cstate == DIG_STA_CONNECT) { in rtl92c_dm_initial_gain_sta()
428 if (dm_digtable->cursta_cstate != DIG_STA_DISCONNECT) { in rtl92c_dm_initial_gain_sta()
429 dm_digtable->rssi_val_min = in rtl92c_dm_initial_gain_sta()
431 if (dm_digtable->rssi_val_min > 100) in rtl92c_dm_initial_gain_sta()
432 dm_digtable->rssi_val_min = 100; in rtl92c_dm_initial_gain_sta()
436 dm_digtable->rssi_val_min = 0; in rtl92c_dm_initial_gain_sta()
437 dm_digtable->dig_ext_port_stage = DIG_EXT_PORT_STAGE_MAX; in rtl92c_dm_initial_gain_sta()
438 dm_digtable->back_val = DM_DIG_BACKOFF_DEFAULT; in rtl92c_dm_initial_gain_sta()
439 dm_digtable->cur_igvalue = 0x20; in rtl92c_dm_initial_gain_sta()
440 dm_digtable->pre_igvalue = 0; in rtl92c_dm_initial_gain_sta()
448 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl92c_dm_cck_packet_detection_thresh() local
450 if (dm_digtable->cursta_cstate == DIG_STA_CONNECT) { in rtl92c_dm_cck_packet_detection_thresh()
451 dm_digtable->rssi_val_min = rtl92c_dm_initial_gain_min_pwdb(hw); in rtl92c_dm_cck_packet_detection_thresh()
452 if (dm_digtable->rssi_val_min > 100) in rtl92c_dm_cck_packet_detection_thresh()
453 dm_digtable->rssi_val_min = 100; in rtl92c_dm_cck_packet_detection_thresh()
455 if (dm_digtable->pre_cck_pd_state == CCK_PD_STAGE_LOWRSSI) { in rtl92c_dm_cck_packet_detection_thresh()
456 if (dm_digtable->rssi_val_min <= 25) in rtl92c_dm_cck_packet_detection_thresh()
457 dm_digtable->cur_cck_pd_state = in rtl92c_dm_cck_packet_detection_thresh()
460 dm_digtable->cur_cck_pd_state = in rtl92c_dm_cck_packet_detection_thresh()
463 if (dm_digtable->rssi_val_min <= 20) in rtl92c_dm_cck_packet_detection_thresh()
464 dm_digtable->cur_cck_pd_state = in rtl92c_dm_cck_packet_detection_thresh()
467 dm_digtable->cur_cck_pd_state = in rtl92c_dm_cck_packet_detection_thresh()
471 dm_digtable->cur_cck_pd_state = CCK_PD_STAGE_MAX; in rtl92c_dm_cck_packet_detection_thresh()
474 if (dm_digtable->pre_cck_pd_state != dm_digtable->cur_cck_pd_state) { in rtl92c_dm_cck_packet_detection_thresh()
475 if ((dm_digtable->cur_cck_pd_state == CCK_PD_STAGE_LOWRSSI) || in rtl92c_dm_cck_packet_detection_thresh()
476 (dm_digtable->cur_cck_pd_state == CCK_PD_STAGE_MAX)) in rtl92c_dm_cck_packet_detection_thresh()
481 dm_digtable->pre_cck_pd_state = dm_digtable->cur_cck_pd_state; in rtl92c_dm_cck_packet_detection_thresh()
488 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl92c_dm_ctrl_initgain_by_twoport() local
495 dm_digtable->cursta_cstate = DIG_STA_CONNECT; in rtl92c_dm_ctrl_initgain_by_twoport()
497 dm_digtable->cursta_cstate = DIG_STA_DISCONNECT; in rtl92c_dm_ctrl_initgain_by_twoport()
499 dm_digtable->curmultista_cstate = DIG_MULTISTA_DISCONNECT; in rtl92c_dm_ctrl_initgain_by_twoport()
505 dm_digtable->presta_cstate = dm_digtable->cursta_cstate; in rtl92c_dm_ctrl_initgain_by_twoport()
538 struct dig_t *dm_digtable = &rtlpriv->dm_digtable; in rtl92c_dm_write_dig() local
542 dm_digtable->cur_igvalue, dm_digtable->pre_igvalue, in rtl92c_dm_write_dig()
543 dm_digtable->back_val); in rtl92c_dm_write_dig()
546 !dm_digtable->dig_enable_flag) { in rtl92c_dm_write_dig()
547 dm_digtable->pre_igvalue = 0x17; in rtl92c_dm_write_dig()
550 dm_digtable->cur_igvalue -= 1; in rtl92c_dm_write_dig()
551 if (dm_digtable->cur_igvalue < DM_DIG_MIN) in rtl92c_dm_write_dig()
552 dm_digtable->cur_igvalue = DM_DIG_MIN; in rtl92c_dm_write_dig()
554 if (dm_digtable->pre_igvalue != dm_digtable->cur_igvalue) { in rtl92c_dm_write_dig()
556 dm_digtable->cur_igvalue); in rtl92c_dm_write_dig()
558 dm_digtable->cur_igvalue); in rtl92c_dm_write_dig()
560 dm_digtable->pre_igvalue = dm_digtable->cur_igvalue; in rtl92c_dm_write_dig()
564 dm_digtable->cur_igvalue, dm_digtable->pre_igvalue, in rtl92c_dm_write_dig()
565 dm_digtable->rssi_val_min, dm_digtable->back_val, in rtl92c_dm_write_dig()
566 dm_digtable->rx_gain_max, dm_digtable->rx_gain_min, in rtl92c_dm_write_dig()
567 dm_digtable->large_fa_hit, dm_digtable->forbidden_igi); in rtl92c_dm_write_dig()