Lines Matching refs:nf
853 int16_t nf;
855 nf = (OS_REG_READ(ah, AR_PHY(25)) >> 19) & 0x1ff;
856 if (nf & 0x100)
857 nf = 0 - ((nf ^ 0x1ff) + 1);
858 return nf;
865 * Returns: The NF value at the end of the given time (or 0 for failure)
882 /* Compute the required amount of searchTime needed to finish NF */
905 "NF with runTime %d failed to end on channel %d\n",
908 " PHY NF Reg state: 0x%x\n",
943 * Read the NF and check it against the noise floor threshhold
945 * Returns: TRUE if the NF is good
950 int16_t nf, nfThresh;
957 "%s: NF did not complete in calibration window\n", __func__);
959 nf = ar5211GetNoiseFloor(ah);
960 if (nf > nfThresh) {
963 __func__, nf, nfThresh);
971 chan->rawNoiseFloor = nf;
972 return (nf <= nfThresh);
992 int16_t nf, nfThresh;
1002 nf = ar5211RunNoiseFloor(ah, runtime[i], 0);
1003 if (nf > nfThresh) {
1007 nf, nfThresh, runtime[i]);
1010 chan->rawNoiseFloor = nf;
1024 * Adjust NF based on statistical values for 5GHz frequencies.