pfat_table 1229 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct fast_ant_training *pfat_table = &rtldm->fat_table; pfat_table 1232 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if (pfat_table->rx_idle_ant != ant) { pfat_table 1237 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c (pfat_table->rx_idle_ant == CG_TRX_HW_ANTDIV) ? pfat_table 1240 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c (pfat_table->rx_idle_ant == CG_TRX_HW_ANTDIV) ? pfat_table 1244 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c (pfat_table->rx_idle_ant == CG_TRX_HW_ANTDIV) ? pfat_table 1247 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c (pfat_table->rx_idle_ant == CG_TRX_HW_ANTDIV) ? pfat_table 1268 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->rx_idle_ant = ant; pfat_table 1278 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct fast_ant_training *pfat_table = &rtldm->fat_table; pfat_table 1286 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->antsel_a[mac_id] = target_ant & BIT(0); pfat_table 1287 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->antsel_b[mac_id] = (target_ant & BIT(1)) >> 1; pfat_table 1288 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->antsel_c[mac_id] = (target_ant & BIT(2)) >> 2; pfat_table 1292 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->antsel_c[mac_id], pfat_table 1293 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->antsel_b[mac_id], pfat_table 1294 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->antsel_a[mac_id]); pfat_table 1346 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct fast_ant_training *pfat_table = &rtldm->fat_table; pfat_table 1351 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->bssid[i] = 0; pfat_table 1352 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->ant_sum[i] = 0; pfat_table 1353 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->ant_cnt[i] = 0; pfat_table 1354 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->ant_ave[i] = 0; pfat_table 1356 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->train_idx = 0; pfat_table 1357 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->fat_state = FAT_NORMAL_STATE; pfat_table 1413 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct fast_ant_training *pfat_table = &rtldm->fat_table; pfat_table 1418 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c set_tx_desc_antsel_a(pdesc32, pfat_table->antsel_a[mac_id]); pfat_table 1419 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c set_tx_desc_antsel_b(pdesc32, pfat_table->antsel_b[mac_id]); pfat_table 1420 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c set_tx_desc_antsel_c(pdesc32, pfat_table->antsel_c[mac_id]); pfat_table 1430 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct fast_ant_training *pfat_table = &rtldm->fat_table; pfat_table 1434 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->main_ant_sum[mac_id] += rx_pwdb_all; pfat_table 1435 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->main_ant_cnt[mac_id]++; pfat_table 1437 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->aux_ant_sum[mac_id] += rx_pwdb_all; pfat_table 1438 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->aux_ant_cnt[mac_id]++; pfat_table 1442 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->main_ant_sum[mac_id] += rx_pwdb_all; pfat_table 1443 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->main_ant_cnt[mac_id]++; pfat_table 1445 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->aux_ant_sum[mac_id] += rx_pwdb_all; pfat_table 1446 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->aux_ant_cnt[mac_id]++; pfat_table 1457 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct fast_ant_training *pfat_table = &rtldm->fat_table; pfat_table 1466 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c main_rssi = (pfat_table->main_ant_cnt[i] != 0) ? pfat_table 1467 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c (pfat_table->main_ant_sum[i] / pfat_table->main_ant_cnt[i]) : 0; pfat_table 1468 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c aux_rssi = (pfat_table->aux_ant_cnt[i] != 0) ? pfat_table 1469 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c (pfat_table->aux_ant_sum[i] / pfat_table->aux_ant_cnt[i]) : 0; pfat_table 1471 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->rx_idle_ant : ((main_rssi >= aux_rssi) ? pfat_table 1475 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->main_ant_sum[i], pfat_table 1476 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->main_ant_cnt[i]); pfat_table 1479 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->aux_ant_sum[i], pfat_table->aux_ant_cnt[i]); pfat_table 1488 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if ((pfat_table->rx_idle_ant == MAIN_ANT) && (main_rssi == 0)) pfat_table 1490 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c else if ((pfat_table->rx_idle_ant == AUX_ANT) && (aux_rssi == 0)) pfat_table 1506 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c main_rssi = (pfat_table->main_ant_cnt[i] != 0) ? pfat_table 1507 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c (pfat_table->main_ant_sum[i] / pfat_table 1508 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->main_ant_cnt[i]) : 0; pfat_table 1509 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c aux_rssi = (pfat_table->aux_ant_cnt[i] != 0) ? pfat_table 1510 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c (pfat_table->aux_ant_sum[i] / pfat_table 1511 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->aux_ant_cnt[i]) : 0; pfat_table 1513 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->rx_idle_ant : ((main_rssi >= pfat_table 1524 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if ((pfat_table->rx_idle_ant == MAIN_ANT) && pfat_table 1527 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c else if ((pfat_table->rx_idle_ant == AUX_ANT) && pfat_table 1544 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->main_ant_sum[i] = 0; pfat_table 1545 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->aux_ant_sum[i] = 0; pfat_table 1546 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->main_ant_cnt[i] = 0; pfat_table 1547 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->aux_ant_cnt[i] = 0; pfat_table 1562 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct fast_ant_training *pfat_table = &rtldm->fat_table; pfat_table 1567 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if ((pfat_table->train_idx + 1) == ASSOCIATE_ENTRY_NUM) pfat_table 1568 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->train_idx = 0; pfat_table 1570 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->train_idx++; pfat_table 1572 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if (pfat_table->train_idx == 0) { pfat_table 1593 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if (j != pfat_table->train_idx) pfat_table 1613 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if (j == pfat_table->train_idx) pfat_table 1624 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct fast_ant_training *pfat_table = &rtldm->fat_table; pfat_table 1629 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if (pfat_table->fat_state == FAT_TRAINING_STATE) { pfat_table 1631 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if (pfat_table->ant_cnt[i] == 0) { pfat_table 1632 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->ant_ave[i] = 0; pfat_table 1634 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->ant_ave[i] = pfat_table 1635 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->ant_sum[i] / pfat_table 1636 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->ant_cnt[i]; pfat_table 1640 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if (pfat_table->ant_ave[i] > max_rssi) { pfat_table 1641 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c max_rssi = pfat_table->ant_ave[i]; pfat_table 1658 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->antsel_a[pfat_table->train_idx] = pfat_table 1660 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->antsel_b[pfat_table->train_idx] = pfat_table 1662 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->antsel_c[pfat_table->train_idx] = pfat_table 1670 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->ant_sum[i] = 0; pfat_table 1671 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->ant_cnt[i] = 0; pfat_table 1674 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->fat_state = FAT_NORMAL_STATE; pfat_table 1678 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if (pfat_table->fat_state == FAT_NORMAL_STATE) { pfat_table 1681 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->fat_state = FAT_TRAINING_STATE; pfat_table 1705 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c struct fast_ant_training *pfat_table = &rtldm->fat_table; pfat_table 1709 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if (pfat_table->becomelinked) { pfat_table 1718 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->becomelinked = pfat_table 1724 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c if (!pfat_table->becomelinked) { pfat_table 1733 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/dm.c pfat_table->becomelinked = pfat_table 244 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c struct fast_ant_training *pfat_table = &rtldm->fat_table; pfat_table 247 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c if (pfat_table->fat_state == FAT_TRAINING_STATE) { pfat_table 250 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c (pfat_table->antsel_rx_keep_2 << 2) | pfat_table 251 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c (pfat_table->antsel_rx_keep_1 << 1) | pfat_table 252 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c pfat_table->antsel_rx_keep_0; pfat_table 253 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c pfat_table->ant_sum[antsel_tr_mux] += pfat_table 255 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c pfat_table->ant_cnt[antsel_tr_mux]++; pfat_table 261 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c antsel_tr_mux = (pfat_table->antsel_rx_keep_2 << 2) | pfat_table 262 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c (pfat_table->antsel_rx_keep_1 << 1) | pfat_table 263 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.c pfat_table->antsel_rx_keep_0; pfat_table 2957 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c struct fast_ant_training *pfat_table = &rtldm->fat_table; pfat_table 2964 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/dm.c set_tx_desc_tx_ant(pdesc32, pfat_table->antsel_a[mac_id]);