• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/ath/ath_hal/ar5212/

Lines Matching refs:aniState

226 	struct ar5212AniState *aniState = ahp->ah_curani;
233 if (aniState != AH_NULL)
234 params = aniState->params;
258 if (level > aniState->noiseImmunityLevel)
260 else if (level < aniState->noiseImmunityLevel)
262 aniState->noiseImmunityLevel = level;
296 aniState->ofdmWeakSigDetectOff = !on;
309 aniState->cckWeakSigThreshold = high;
323 if (level > aniState->firstepLevel)
325 else if (level < aniState->firstepLevel)
327 aniState->firstepLevel = level;
341 if (level > aniState->spurImmunityLevel)
343 else if (level < aniState->spurImmunityLevel)
345 aniState->spurImmunityLevel = level;
395 struct ar5212AniState *aniState;
403 aniState = ahp->ah_curani;
404 params = aniState->params;
406 if (aniState->noiseImmunityLevel+1 <= params->maxNoiseImmunityLevel) {
408 aniState->noiseImmunityLevel + 1);
410 aniState->noiseImmunityLevel + 1);
414 if (aniState->spurImmunityLevel+1 <= params->maxSpurImmunityLevel) {
416 aniState->spurImmunityLevel + 1);
418 aniState->spurImmunityLevel + 1);
429 if (!aniState->ofdmWeakSigDetectOff) {
443 if (aniState->firstepLevel+1 <= params->maxFirstepLevel) {
446 aniState->firstepLevel+1);
448 aniState->firstepLevel + 1);
456 if (aniState->ofdmWeakSigDetectOff) {
463 if (aniState->firstepLevel+1 <= params->maxFirstepLevel) {
466 aniState->firstepLevel+1);
468 aniState->firstepLevel + 1);
478 if (!aniState->ofdmWeakSigDetectOff) {
486 if (aniState->firstepLevel > 0) {
490 aniState->firstepLevel);
505 struct ar5212AniState *aniState;
514 aniState = ahp->ah_curani;
515 params = aniState->params;
516 if (aniState->noiseImmunityLevel+1 <= params->maxNoiseImmunityLevel) {
518 aniState->noiseImmunityLevel + 1);
520 aniState->noiseImmunityLevel + 1);
531 if (aniState->firstepLevel+1 <= params->maxFirstepLevel) {
534 aniState->firstepLevel+1);
536 aniState->firstepLevel + 1);
546 if (aniState->firstepLevel > 0) {
550 aniState->firstepLevel);
560 ar5212AniRestart(struct ath_hal *ah, struct ar5212AniState *aniState)
564 aniState->listenTime = 0;
566 const struct ar5212AniParams *params = aniState->params;
579 aniState->ofdmPhyErrCount = 0;
580 aniState->cckPhyErrCount = 0;
594 struct ar5212AniState *aniState = &ahp->ah_ani[chan->ic_devdata];
598 OS_MEMZERO(aniState, sizeof(*aniState));
600 aniState->params = &ahp->ah_aniParams24;
602 aniState->params = &ahp->ah_aniParams5;
606 ahp->ah_curani = aniState;
650 aniState->noiseImmunityLevel);
652 aniState->spurImmunityLevel);
654 !aniState->ofdmWeakSigDetectOff);
656 aniState->cckWeakSigThreshold);
658 aniState->firstepLevel);
672 ar5212AniRestart(ah, aniState);
724 struct ar5212AniState *aniState = ahp->ah_curani;
725 const struct ar5212AniParams *params = aniState->params;
730 ofdmPhyErrCnt - aniState->ofdmPhyErrCount;
731 aniState->ofdmPhyErrCount = ofdmPhyErrCnt;
735 cckPhyErrCnt - aniState->cckPhyErrCount;
736 aniState->cckPhyErrCount = cckPhyErrCnt;
744 if (aniState->ofdmPhyErrCount > params->ofdmTrigHigh)
746 if (aniState->cckPhyErrCount > params->cckTrigHigh)
749 ar5212AniRestart(ah, aniState);
757 struct ar5212AniState *aniState;
762 aniState = ahp->ah_curani;
763 params = aniState->params;
765 aniState->ofdmPhyErrCount++;
767 if (aniState->ofdmPhyErrCount > params->ofdmTrigHigh) {
769 ar5212AniRestart(ah, aniState);
772 aniState->cckPhyErrCount++;
774 if (aniState->cckPhyErrCount > params->cckTrigHigh) {
776 ar5212AniRestart(ah, aniState);
785 struct ar5212AniState *aniState;
790 aniState = ahp->ah_curani;
791 params = aniState->params;
805 if (aniState->ofdmWeakSigDetectOff) {
813 if (aniState->firstepLevel > 0) {
816 aniState->firstepLevel-1);
818 aniState->firstepLevel - 1);
825 if (aniState->firstepLevel > 0) {
828 aniState->firstepLevel-1);
830 aniState->firstepLevel - 1);
836 if (aniState->spurImmunityLevel > 0) {
838 __func__, aniState->spurImmunityLevel-1);
840 aniState->spurImmunityLevel - 1);
847 if (aniState->noiseImmunityLevel > 0) {
849 __func__, aniState->noiseImmunityLevel-1);
851 aniState->noiseImmunityLevel - 1);
870 struct ar5212AniState *aniState = NULL;
892 aniState = ahp->ah_curani;
908 AH5212(ah)->ah_cycleCount - aniState->cycleCount;
910 AH5212(ah)->ah_rxBusy - aniState->rxFrameCount;
912 AH5212(ah)->ah_txBusy - aniState->txFrameCount;
920 aniState->cycleCount = AH5212(ah)->ah_cycleCount;
921 aniState->rxFrameCount = AH5212(ah)->ah_rxBusy;
922 aniState->txFrameCount = AH5212(ah)->ah_txBusy;
932 updateMIBStats(struct ath_hal *ah, struct ar5212AniState *aniState)
935 const struct ar5212AniParams *params = aniState->params;
956 ofdmPhyErrCnt - aniState->ofdmPhyErrCount;
957 aniState->ofdmPhyErrCount = ofdmPhyErrCnt;
966 cckPhyErrCnt - aniState->cckPhyErrCount;
967 aniState->cckPhyErrCount = cckPhyErrCnt;
986 struct ar5212AniState *aniState = ahp->ah_curani;
993 /* XXX can aniState be null? */
994 if (aniState == AH_NULL)
1002 ar5212AniRestart(ah, aniState);
1008 aniState->listenTime += listenTime;
1010 OS_MARK(ah, AH_MARK_ANI_POLL, aniState->listenTime);
1012 params = aniState->params;
1013 if (aniState->listenTime > 5*params->period) {
1019 updateMIBStats(ah, aniState);
1020 if (aniState->ofdmPhyErrCount <= aniState->listenTime *
1022 aniState->cckPhyErrCount <= aniState->listenTime *
1025 ar5212AniRestart(ah, aniState);
1026 } else if (aniState->listenTime > params->period) {
1028 updateMIBStats(ah, aniState);
1030 if (aniState->ofdmPhyErrCount > aniState->listenTime *
1034 aniState->ofdmPhyErrCount, aniState->listenTime);
1036 ar5212AniRestart(ah, aniState);
1037 } else if (aniState->cckPhyErrCount > aniState->listenTime *
1041 aniState->cckPhyErrCount, aniState->listenTime);
1043 ar5212AniRestart(ah, aniState);