dm_dig            326 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	struct dig_t *dm_dig = &rtlpriv->dm_digtable;
dm_dig            329 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	if ((dm_dig->curmultista_cstate == DIG_MULTISTA_CONNECT) &&
dm_dig            330 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	    (dm_dig->cur_sta_cstate == DIG_STA_CONNECT)) {
dm_dig            339 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	} else if (dm_dig->cur_sta_cstate == DIG_STA_CONNECT ||
dm_dig            340 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 		   dm_dig->cur_sta_cstate == DIG_STA_BEFORE_CONNECT) {
dm_dig            342 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	} else if (dm_dig->curmultista_cstate ==
dm_dig            433 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	struct dig_t *dm_dig = &rtlpriv->dm_digtable;
dm_dig            436 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	if (dm_dig->cur_sta_cstate == DIG_STA_CONNECT) {
dm_dig            437 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 		dm_dig->rssi_val_min = rtl88e_dm_initial_gain_min_pwdb(hw);
dm_dig            438 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 		if (dm_dig->rssi_val_min > 25) {
dm_dig            440 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 		} else if ((dm_dig->rssi_val_min <= 25) &&
dm_dig            441 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 			   (dm_dig->rssi_val_min > 10)) {
dm_dig            457 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	if (dm_dig->cur_cck_cca_thres != cur_cck_cca_thresh)
dm_dig            460 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	dm_dig->cur_cck_cca_thres = cur_cck_cca_thresh;
dm_dig            461 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	dm_dig->pre_cck_cca_thres = dm_dig->cur_cck_cca_thres;
dm_dig            463 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 		 "CCK cca thresh hold =%x\n", dm_dig->cur_cck_cca_thres);
dm_dig            471 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	struct dig_t *dm_dig = &rtlpriv->dm_digtable;
dm_dig            475 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	u8 current_igi = dm_dig->cur_igvalue;
dm_dig            479 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	if (dm_dig->dig_enable_flag == false)
dm_dig            485 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 		dm_dig->cur_sta_cstate = DIG_STA_CONNECT;
dm_dig            487 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 		dm_dig->cur_sta_cstate = DIG_STA_DISCONNECT;
dm_dig            490 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 		dm_dig->cur_sta_cstate = DIG_STA_DISCONNECT;
dm_dig            495 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	dig_dynamic_min = dm_dig->dig_min_0;
dm_dig            497 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 			 !dm_dig->media_connect_0;
dm_dig            499 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	dm_dig->rssi_val_min =
dm_dig            503 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 		if ((dm_dig->rssi_val_min + 20) > dm_dig_max)
dm_dig            504 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 			dm_dig->rx_gain_max = dm_dig_max;
dm_dig            505 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 		else if ((dm_dig->rssi_val_min + 20) < dm_dig_min)
dm_dig            506 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 			dm_dig->rx_gain_max = dm_dig_min;
dm_dig            508 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 			dm_dig->rx_gain_max = dm_dig->rssi_val_min + 20;
dm_dig            511 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 			dig_dynamic_min  = dm_dig->antdiv_rssi_max;
dm_dig            513 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 			if (dm_dig->rssi_val_min < dm_dig_min)
dm_dig            515 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 			else if (dm_dig->rssi_val_min < dig_maxofmin)
dm_dig            518 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 				dig_dynamic_min = dm_dig->rssi_val_min;
dm_dig            521 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 		dm_dig->rx_gain_max = dm_dig_max;
dm_dig            527 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 		dm_dig->large_fa_hit++;
dm_dig            528 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 		if (dm_dig->forbidden_igi < current_igi) {
dm_dig            529 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 			dm_dig->forbidden_igi = current_igi;
dm_dig            530 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 			dm_dig->large_fa_hit = 1;
dm_dig            533 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 		if (dm_dig->large_fa_hit >= 3) {
dm_dig            534 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 			if ((dm_dig->forbidden_igi + 1) >
dm_dig            535 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 				dm_dig->rx_gain_max)
dm_dig            536 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 				dm_dig->rx_gain_min =
dm_dig            537 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 					dm_dig->rx_gain_max;
dm_dig            539 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 				dm_dig->rx_gain_min =
dm_dig            540 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 					dm_dig->forbidden_igi + 1;
dm_dig            541 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 			dm_dig->recover_cnt = 3600;
dm_dig            544 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 		if (dm_dig->recover_cnt != 0) {
dm_dig            545 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 			dm_dig->recover_cnt--;
dm_dig            547 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 			if (dm_dig->large_fa_hit == 0) {
dm_dig            548 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 				if ((dm_dig->forbidden_igi - 1) <
dm_dig            550 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 					dm_dig->forbidden_igi = dig_dynamic_min;
dm_dig            551 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 					dm_dig->rx_gain_min = dig_dynamic_min;
dm_dig            553 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 					dm_dig->forbidden_igi--;
dm_dig            554 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 					dm_dig->rx_gain_min =
dm_dig            555 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 						dm_dig->forbidden_igi + 1;
dm_dig            557 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 			} else if (dm_dig->large_fa_hit == 3) {
dm_dig            558 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 				dm_dig->large_fa_hit = 0;
dm_dig            563 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	if (dm_dig->cur_sta_cstate == DIG_STA_CONNECT) {
dm_dig            565 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 			current_igi = dm_dig->rssi_val_min;
dm_dig            591 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	dm_dig->cur_igvalue = current_igi;
dm_dig            593 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	dm_dig->media_connect_0 =
dm_dig            595 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	dm_dig->dig_min_0 = dig_dynamic_min;
dm_dig            691 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	struct dig_t *dm_dig = &rtlpriv->dm_digtable;
dm_dig            695 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 		 dm_dig->cur_igvalue, dm_dig->pre_igvalue,
dm_dig            696 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 		 dm_dig->back_val);
dm_dig            698 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	if (dm_dig->cur_igvalue > 0x3f)
dm_dig            699 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 		dm_dig->cur_igvalue = 0x3f;
dm_dig            700 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	if (dm_dig->pre_igvalue != dm_dig->cur_igvalue) {
dm_dig            702 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 			      dm_dig->cur_igvalue);
dm_dig            704 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 		dm_dig->pre_igvalue = dm_dig->cur_igvalue;
dm_dig           1458 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	struct dig_t *dm_dig = &rtlpriv->dm_digtable;
dm_dig           1552 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	dm_dig->antdiv_rssi_max = ant_div_max_rssi;
dm_dig           1553 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c 	dm_dig->rssi_max = max_rssi;
dm_dig            222 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	struct dig_t *dm_dig = &rtlpriv->dm_digtable;
dm_dig            226 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 		if (dm_dig->rssi_val_min > 25) {
dm_dig            228 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 		} else if ((dm_dig->rssi_val_min <= 25) &&
dm_dig            229 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			   (dm_dig->rssi_val_min > 10)) {
dm_dig            250 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	struct dig_t *dm_dig = &rtlpriv->dm_digtable;
dm_dig            254 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	u8 current_igi = dm_dig->cur_igvalue;
dm_dig            261 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	dig_min_0 = dm_dig->dig_min_0;
dm_dig            263 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			!dm_dig->media_connect_0;
dm_dig            265 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			   dm_dig->media_connect_0;
dm_dig            272 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 		if ((dm_dig->rssi_val_min + 10) > dm_dig_max)
dm_dig            273 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			dm_dig->rx_gain_max = dm_dig_max;
dm_dig            274 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 		else if ((dm_dig->rssi_val_min + 10) < dm_dig_min)
dm_dig            275 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			dm_dig->rx_gain_max = dm_dig_min;
dm_dig            277 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			dm_dig->rx_gain_max = dm_dig->rssi_val_min + 10;
dm_dig            281 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			if (dm_dig->rssi_val_min - offset < dm_dig_min)
dm_dig            283 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			else if (dm_dig->rssi_val_min - offset >
dm_dig            287 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 				dig_min_0 = dm_dig->rssi_val_min - offset;
dm_dig            293 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 		dm_dig->rx_gain_max = dm_dig_max;
dm_dig            299 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 		if (dm_dig->large_fa_hit != 3)
dm_dig            300 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			dm_dig->large_fa_hit++;
dm_dig            301 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 		if (dm_dig->forbidden_igi < current_igi) {
dm_dig            302 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			dm_dig->forbidden_igi = current_igi;
dm_dig            303 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			dm_dig->large_fa_hit = 1;
dm_dig            306 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 		if (dm_dig->large_fa_hit >= 3) {
dm_dig            307 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			if (dm_dig->forbidden_igi + 1 > dm_dig->rx_gain_max)
dm_dig            308 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 				dm_dig->rx_gain_min =
dm_dig            309 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 						dm_dig->rx_gain_max;
dm_dig            311 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 				dm_dig->rx_gain_min =
dm_dig            312 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 						dm_dig->forbidden_igi + 1;
dm_dig            313 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			dm_dig->recover_cnt = 3600;
dm_dig            316 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 		if (dm_dig->recover_cnt != 0) {
dm_dig            317 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			dm_dig->recover_cnt--;
dm_dig            319 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			if (dm_dig->large_fa_hit < 3) {
dm_dig            320 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 				if ((dm_dig->forbidden_igi - 1) <
dm_dig            322 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 					dm_dig->forbidden_igi = dig_min_0;
dm_dig            323 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 					dm_dig->rx_gain_min =
dm_dig            326 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 					dm_dig->forbidden_igi--;
dm_dig            327 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 					dm_dig->rx_gain_min =
dm_dig            328 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 						dm_dig->forbidden_igi + 1;
dm_dig            331 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 				dm_dig->large_fa_hit = 0;
dm_dig            337 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 		dm_dig->rx_gain_min = dm_dig_min;
dm_dig            339 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	if (dm_dig->rx_gain_min > dm_dig->rx_gain_max)
dm_dig            340 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 		dm_dig->rx_gain_min = dm_dig->rx_gain_max;
dm_dig            344 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			if (dm_dig->rssi_val_min <= dig_maxofmin)
dm_dig            345 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 				current_igi = dm_dig->rssi_val_min;
dm_dig            349 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			dm_dig->large_fa_hit = 0;
dm_dig            360 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 				current_igi = dm_dig->rx_gain_min;
dm_dig            364 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 			current_igi = dm_dig->rx_gain_min;
dm_dig            375 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	if (current_igi > dm_dig->rx_gain_max)
dm_dig            376 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 		current_igi = dm_dig->rx_gain_max;
dm_dig            377 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	if (current_igi < dm_dig->rx_gain_min)
dm_dig            378 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 		current_igi = dm_dig->rx_gain_min;
dm_dig            381 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	dm_dig->media_connect_0 = ((mac->link_state >= MAC80211_LINKED) ?
dm_dig            383 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	dm_dig->dig_min_0 = dig_min_0;
dm_dig            389 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	struct dig_t *dm_dig = &rtlpriv->dm_digtable;
dm_dig            391 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	if (dm_dig->cur_cck_cca_thres != cur_thres)
dm_dig            394 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	dm_dig->pre_cck_cca_thres = dm_dig->cur_cck_cca_thres;
dm_dig            395 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	dm_dig->cur_cck_cca_thres = cur_thres;
dm_dig            401 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	struct dig_t *dm_dig = &rtlpriv->dm_digtable;
dm_dig            403 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	if (dm_dig->stop_dig)
dm_dig            406 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	if (dm_dig->cur_igvalue != current_igi) {
dm_dig            411 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	dm_dig->pre_igvalue = dm_dig->cur_igvalue;
dm_dig            412 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	dm_dig->cur_igvalue = current_igi;
dm_dig            488 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	struct dig_t *dm_dig = &rtlpriv->dm_digtable;
dm_dig            547 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/dm.c 	dm_dig->rssi_val_min = rtlpriv->dm_digtable.min_undec_pwdb_for_dm;
dm_dig           3001 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 	struct dig_t *dm_dig = &rtlpriv->dm_digtable;
dm_dig           3015 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 		rtlphy->initgain_backup.xaagccore1 = dm_dig->cur_igvalue;
dm_dig           3017 drivers/net/wireless/realtek/rtlwifi/rtl8192ee/phy.c 		rtlphy->initgain_backup.cca = dm_dig->cur_cck_cca_thres;