sys/dev/netif/ath/hal/ath_hal/ar5416/ar5416_cal.c
static void
ar5416ResetMeasurement(struct ath_hal *ah, HAL_CAL_LIST *currCal)
{
	struct ar5416PerCal *cal = &AH5416(ah)->ah_cal;

	/* Reset data structures shared between different calibrations */
	OS_MEMZERO(cal->caldata, sizeof(cal->caldata));
	cal->calSamples = 0;

	/* Setup HW for new calibration */
	ar5416SetupMeasurement(ah, currCal);

	/* Change SW state to RUNNING for this calibration */
	currCal->calState = CAL_RUNNING;
}
/*
 * Initialize shared data structures and prepare a cal to be run.
 */
Initialize shared data structures and prepare a cal to be run.
Initialize shared data structures and prepare a cal to be run .
static void
ar5416ResetMeasurement(struct ath_hal *ah, HAL_CAL_LIST *currCal)
{
	struct ar5416PerCal *cal = &AH5416(ah)->ah_cal;
	OS_MEMZERO(cal->caldata, sizeof(cal->caldata));
	cal->calSamples = 0;
	ar5416SetupMeasurement(ah, currCal);
	currCal->calState = CAL_RUNNING;
}
static void ar5416ResetMeasurement ( struct ath_hal * ah , HAL_CAL_LIST * currCal ) { struct ar5416PerCal * cal = & AH5416 ( ah ) -> ah_cal ; OS_MEMZERO ( cal -> caldata , sizeof ( cal -> caldata ) ) ; cal -> calSamples = 0 ; ar5416SetupMeasurement ( ah , currCal ) ; currCal -> calState = CAL_RUNNING ; }
Initialize shared data structures and prepare a cal to be run.
Initialize shared data structures and prepare a cal to be run .
/* Reset data structures shared between different calibrations */ /* Setup HW for new calibration */ /* Change SW state to RUNNING for this calibration */