• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/staging/otus/hal/

Lines Matching defs:aniState

136     struct zsAniState *aniState;
140 aniState = HpPriv->curani;
172 if (level > aniState->noiseImmunityLevel)
174 else if (level < aniState->noiseImmunityLevel)
176 aniState->noiseImmunityLevel = (u8_t)level;
225 if (!on != aniState->ofdmWeakSigDetectOff)
231 aniState->ofdmWeakSigDetectOff = !on;
245 if (high != aniState->cckWeakSigThreshold)
251 aniState->cckWeakSigThreshold = (u8_t)high;
271 if (level > aniState->firstepLevel)
273 else if (level < aniState->firstepLevel)
275 aniState->firstepLevel = (u8_t)level;
294 if (level > aniState->spurImmunityLevel)
296 else if (level < aniState->spurImmunityLevel)
298 aniState->spurImmunityLevel = (u8_t)level;
339 struct zsAniState *aniState;
344 aniState = HpPriv->curani;
346 aniState->listenTime = 0;
349 //if (aniState->ofdmTrigHigh > AR_PHY_COUNTMAX)
351 // aniState->ofdmPhyErrBase = 0;
355 // aniState->ofdmPhyErrBase = AR_PHY_COUNTMAX - aniState->ofdmTrigHigh;
356 //if (aniState->cckTrigHigh > AR_PHY_COUNTMAX)
358 // aniState->cckPhyErrBase = 0;
362 // aniState->cckPhyErrBase = AR_PHY_COUNTMAX - aniState->cckTrigHigh;
363 //zm_debug_msg2("Writing ofdmbase = 0x", aniState->ofdmPhyErrBase);
364 //zm_debug_msg2("Writing cckbase = 0x", aniState->cckPhyErrBase);
365 //OS_REG_WRITE(ah, AR_PHY_ERR_1, aniState->ofdmPhyErrBase);
366 //OS_REG_WRITE(ah, AR_PHY_ERR_2, aniState->cckPhyErrBase);
369 aniState->ofdmPhyErrBase = 0;
370 aniState->cckPhyErrBase = 0;
372 aniState->ofdmPhyErrCount = 0;
373 aniState->cckPhyErrCount = 0;
378 struct zsAniState *aniState;
390 aniState = HpPriv->curani;
392 if (aniState->noiseImmunityLevel < ZM_HAL_NOISE_IMMUNE_MAX)
394 zfHpAniControl(dev, ZM_HAL_ANI_NOISE_IMMUNITY_LEVEL, aniState->noiseImmunityLevel + 1);
398 if (aniState->spurImmunityLevel < ZM_HAL_SPUR_IMMUNE_MAX)
400 zfHpAniControl(dev, ZM_HAL_ANI_SPUR_IMMUNITY_LEVEL, aniState->spurImmunityLevel + 1);
404 if (rssi > aniState->rssiThrHigh)
409 if (!aniState->ofdmWeakSigDetectOff)
419 if (aniState->firstepLevel < ZM_HAL_FIRST_STEP_MAX)
421 zfHpAniControl(dev, ZM_HAL_ANI_FIRSTEP_LEVEL, aniState->firstepLevel + 1);
425 else if (rssi > aniState->rssiThrLow)
431 if (aniState->ofdmWeakSigDetectOff)
433 if (aniState->firstepLevel < ZM_HAL_FIRST_STEP_MAX)
434 zfHpAniControl(dev, ZM_HAL_ANI_FIRSTEP_LEVEL, aniState->firstepLevel + 1);
446 if (!aniState->ofdmWeakSigDetectOff)
448 if (aniState->firstepLevel > 0)
457 struct zsAniState *aniState;
470 aniState = HpPriv->curani;
471 if (aniState->noiseImmunityLevel < ZM_HAL_NOISE_IMMUNE_MAX)
474 aniState->noiseImmunityLevel + 1);
478 if (rssi > aniState->rssiThrLow)
483 if (aniState->firstepLevel < ZM_HAL_FIRST_STEP_MAX)
484 zfHpAniControl(dev, ZM_HAL_ANI_FIRSTEP_LEVEL, aniState->firstepLevel + 1);
494 if (aniState->firstepLevel > 0)
502 struct zsAniState *aniState;
508 aniState = HpPriv->curani;
511 if (rssi > aniState->rssiThrHigh)
518 else if (rssi > aniState->rssiThrLow)
524 if (aniState->ofdmWeakSigDetectOff)
529 if (aniState->firstepLevel > 0)
531 zfHpAniControl(dev, ZM_HAL_ANI_FIRSTEP_LEVEL, aniState->firstepLevel - 1);
540 if (aniState->firstepLevel > 0)
542 zfHpAniControl(dev, ZM_HAL_ANI_FIRSTEP_LEVEL, aniState->firstepLevel - 1);
547 if (aniState->spurImmunityLevel > 0)
549 zfHpAniControl(dev, ZM_HAL_ANI_SPUR_IMMUNITY_LEVEL, aniState->spurImmunityLevel - 1);
556 if (aniState->noiseImmunityLevel > 0)
558 zfHpAniControl(dev, ZM_HAL_ANI_NOISE_IMMUNITY_LEVEL, aniState->noiseImmunityLevel - 1);
575 struct zsAniState *aniState;
587 aniState = HpPriv->curani;
588 if (aniState->cycleCount == 0 || aniState->cycleCount > cycleCount)
600 s32_t ccdelta = cycleCount - aniState->cycleCount;
601 s32_t rfdelta = rxFrameCount - aniState->rxFrameCount;
602 s32_t tfdelta = txFrameCount - aniState->txFrameCount;
605 aniState->cycleCount = cycleCount;
606 aniState->txFrameCount = txFrameCount;
607 aniState->rxFrameCount = rxFrameCount;
617 struct zsAniState *aniState;
629 aniState = HpPriv->curani;
640 aniState->listenTime += listenTime;
650 //if (phyCnt1 < aniState->ofdmPhyErrBase ||
651 // phyCnt2 < aniState->cckPhyErrBase)
653 // if (phyCnt1 < aniState->ofdmPhyErrBase)
656 // zm_debug_msg2("resetting counter value to 0x", aniState->ofdmPhyErrBase);
657 // //OS_REG_WRITE(ah, AR_PHY_ERR_1, aniState->ofdmPhyErrBase);
660 // if (phyCnt2 < aniState->cckPhyErrBase)
663 // zm_debug_msg2("resetting counter value to 0x", aniState->cckPhyErrBase);
664 // //OS_REG_WRITE(ah, AR_PHY_ERR_2, aniState->cckPhyErrBase);
670 //ofdmPhyErrCnt = phyCnt1 - aniState->ofdmPhyErrBase;
671 //HpPriv->stats.ast_ani_ofdmerrs += ofdmPhyErrCnt - aniState->ofdmPhyErrCount;
672 //aniState->ofdmPhyErrCount = ofdmPhyErrCnt;
675 aniState->ofdmPhyErrCount += ofdmPhyErrCnt;
677 //cckPhyErrCnt = phyCnt2 - aniState->cckPhyErrBase;
678 //HpPriv->stats.ast_ani_cckerrs += cckPhyErrCnt - aniState->cckPhyErrCount;
679 //aniState->cckPhyErrCount = cckPhyErrCnt;
682 aniState->cckPhyErrCount += cckPhyErrCnt;
690 if (aniState->listenTime > 5 * HpPriv->aniPeriod)
696 if (aniState->ofdmPhyErrCount <= aniState->listenTime *
697 aniState->ofdmTrigLow/1000 &&
698 aniState->cckPhyErrCount <= aniState->listenTime *
699 aniState->cckTrigLow/1000)
703 else if (aniState->listenTime > HpPriv->aniPeriod)
706 if (aniState->ofdmPhyErrCount > aniState->listenTime *
707 aniState->ofdmTrigHigh / 1000)
712 else if (aniState->cckPhyErrCount > aniState->listenTime *
713 aniState->cckTrigHigh / 1000)