Lines Matching full:cal

27 #include "ar5212/ar5212.h"	/* for NF cal related declarations */
67 struct ar5416PerCal *cal = &AH5416(ah)->ah_cal; in ar5416IsCalSupp() local
69 switch (calType & cal->suppCals) { in ar5416IsCalSupp()
76 * Run ADC Gain Cal for either 5ghz any or 2ghz HT40. in ar5416IsCalSupp()
94 * Setup HW to collect samples used for current cal
127 /* Kick-off cal */ in ar5416SetupMeasurement()
132 * Initialize shared data structures and prepare a cal to be run.
137 struct ar5416PerCal *cal = &AH5416(ah)->ah_cal; in ar5416ResetMeasurement() local
140 OS_MEMZERO(cal->caldata, sizeof(cal->caldata)); in ar5416ResetMeasurement()
141 cal->calSamples = 0; in ar5416ResetMeasurement()
158 struct ar5416PerCal *cal = &AH5416(ah)->ah_cal;
169 /* Reset this Cal */
174 "%s: Cal %d failed to finish in 100ms.\n",
177 cal->cal_list = cal->cal_last = cal->cal_curr = AH_NULL;
180 /* Run this cal */
185 "%s: init cal %d did not complete.\n",
192 cal->cal_list = cal->cal_last = cal->cal_curr = AH_NULL;
209 /* Enable Rx Filter Cal */ in ar5416InitCalHardware()
230 /* Disable Rx Filter Cal */ in ar5416InitCalHardware()
245 struct ar5416PerCal *cal = &AH5416(ah)->ah_cal; in ar5416InitCal() local
259 /* If there's PA Cal, do it */ in ar5416InitCal()
266 * higher than normal value if DC offset and noise floor cal are in ar5416InitCal()
279 cal->cal_list = cal->cal_last = cal->cal_curr = AH_NULL; in ar5416InitCal()
289 INIT_CAL(&cal->adcDcCalInitData); in ar5416InitCal()
290 INSERT_CAL(cal, &cal->adcDcCalInitData); in ar5416InitCal()
293 cal->cal_curr = cal->cal_list; in ar5416InitCal()
295 if (cal->ah_cal_curr != AH_NULL && !ar5416RunInitCals(ah, 0)) in ar5416InitCal()
302 INIT_CAL(&cal->adcGainCalData); in ar5416InitCal()
303 INSERT_CAL(cal, &cal->adcGainCalData); in ar5416InitCal()
308 INIT_CAL(&cal->adcDcCalData); in ar5416InitCal()
309 INSERT_CAL(cal, &cal->adcDcCalData); in ar5416InitCal()
314 INIT_CAL(&cal->iqCalData); in ar5416InitCal()
315 INSERT_CAL(cal, &cal->iqCalData); in ar5416InitCal()
320 cal->cal_curr = cal->cal_list; in ar5416InitCal()
322 /* Kick off measurements for the first cal */ in ar5416InitCal()
323 if (cal->cal_curr != AH_NULL) in ar5416InitCal()
324 ar5416ResetMeasurement(ah, cal->cal_curr); in ar5416InitCal()
334 * Entry point for upper layers to restart current cal.
340 struct ar5416PerCal *cal = &AH5416(ah)->ah_cal; in ar5416ResetCalValid() local
342 HAL_CAL_LIST *currCal = cal->cal_curr; in ar5416ResetCalValid()
365 /* Verify Cal is supported on this channel */ in ar5416ResetCalValid()
370 "%s: Resetting Cal %d state for channel %u/0x%x\n", in ar5416ResetCalValid()
374 /* Disable cal validity in channel */ in ar5416ResetCalValid()
389 struct ar5416PerCal *cal = &AH5416(ah)->ah_cal; in ar5416DoCalibration() local
391 /* Cal is assumed not done until explicitly set below */ in ar5416DoCalibration()
405 __func__, cal->calSamples, in ar5416DoCalibration()
411 if (++cal->calSamples >= currCal->calData->calNumSamples) { in ar5416DoCalibration()
434 /* If current cal is marked invalid in channel, kick it off */ in ar5416DoCalibration()
446 struct ar5416PerCal *cal = &AH5416(ah)->ah_cal; in ar5416PerCalibrationN() local
447 HAL_CAL_LIST *currCal = cal->cal_curr; in ar5416PerCalibrationN()
473 * 1. Call generic cal routine in ar5416PerCalibrationN()
474 * 2. When this cal is done (isCalDone) if we have more cals waiting in ar5416PerCalibrationN()
477 * Instead, change isCalDone to FALSE and setup the waiting cal(s) in ar5416PerCalibrationN()
485 cal->cal_curr = currCal = currCal->calNext; in ar5416PerCalibrationN()
493 /* Do NF cal only at longer intervals */ in ar5416PerCalibrationN()
504 * Get the value from the previous NF cal in ar5416PerCalibrationN()
546 struct ar5416PerCal *cal = &AH5416(ah)->ah_cal; in ar5416PerCalibration() local
547 HAL_CAL_LIST *curCal = cal->cal_curr; in ar5416PerCalibration()
658 * here, the baseband nf cal will just be capped by our present in ar5416LoadNF()
798 /* Finished NF cal, check against threshold */ in ar5416GetNf()