Lines Matching refs:caldata
77 struct ath9k_hw_cal_data *caldata = ah->caldata; in ar9003_hw_per_calibration() local
105 caldata->CalValid |= cur_caldata->calType; in ar9003_hw_per_calibration()
115 } else if (!(caldata->CalValid & cur_caldata->calType)) { in ar9003_hw_per_calibration()
895 struct ath9k_hw_cal_data *caldata = ah->caldata; in ar9003_hw_tx_iq_cal_outlier_detection() local
957 if (caldata) in ar9003_hw_tx_iq_cal_outlier_detection()
958 caldata->tx_corr_coeff[im][i] = in ar9003_hw_tx_iq_cal_outlier_detection()
961 if (caldata) in ar9003_hw_tx_iq_cal_outlier_detection()
962 caldata->num_measures[i] = nmeasurement; in ar9003_hw_tx_iq_cal_outlier_detection()
970 if (caldata) { in ar9003_hw_tx_iq_cal_outlier_detection()
972 set_bit(TXIQCAL_DONE, &caldata->cal_flags); in ar9003_hw_tx_iq_cal_outlier_detection()
974 clear_bit(TXIQCAL_DONE, &caldata->cal_flags); in ar9003_hw_tx_iq_cal_outlier_detection()
1157 struct ath9k_hw_cal_data *caldata = ah->caldata; in ar9003_hw_tx_iq_cal_reload() local
1180 for (im = 0; im < caldata->num_measures[i]; im++) { in ar9003_hw_tx_iq_cal_reload()
1184 caldata->tx_corr_coeff[im][i]); in ar9003_hw_tx_iq_cal_reload()
1188 caldata->tx_corr_coeff[im][i]); in ar9003_hw_tx_iq_cal_reload()
1303 struct ath9k_hw_cal_data *caldata = ah->caldata; in ar9003_hw_do_pcoem_manual_peak_cal() local
1315 if (caldata) in ar9003_hw_do_pcoem_manual_peak_cal()
1316 set_bit(SW_PKDET_DONE, &caldata->cal_flags); in ar9003_hw_do_pcoem_manual_peak_cal()
1318 if ((ah->caps.hw_caps & ATH9K_HW_CAP_RTT) && caldata) { in ar9003_hw_do_pcoem_manual_peak_cal()
1320 caldata->caldac[0] = REG_READ_FIELD(ah, in ar9003_hw_do_pcoem_manual_peak_cal()
1323 caldata->caldac[1] = REG_READ_FIELD(ah, in ar9003_hw_do_pcoem_manual_peak_cal()
1327 caldata->caldac[0] = REG_READ_FIELD(ah, in ar9003_hw_do_pcoem_manual_peak_cal()
1330 caldata->caldac[1] = REG_READ_FIELD(ah, in ar9003_hw_do_pcoem_manual_peak_cal()
1342 struct ath9k_hw_cal_data *caldata = ah->caldata; in ar9003_hw_cl_cal_post_proc() local
1346 if (!caldata || !(ah->enabled_cals & TX_CL_CAL)) in ar9003_hw_cl_cal_post_proc()
1352 if (test_bit(TXCLCAL_DONE, &caldata->cal_flags)) { in ar9003_hw_cl_cal_post_proc()
1358 caldata->tx_clcal[i][j]); in ar9003_hw_cl_cal_post_proc()
1365 caldata->tx_clcal[i][j] = in ar9003_hw_cl_cal_post_proc()
1368 set_bit(TXCLCAL_DONE, &caldata->cal_flags); in ar9003_hw_cl_cal_post_proc()
1374 struct ath9k_hw_cal_data *caldata = ah->caldata; in ar9003_hw_init_cal_common() local
1388 if (caldata) in ar9003_hw_init_cal_common()
1389 caldata->CalValid = 0; in ar9003_hw_init_cal_common()
1396 struct ath9k_hw_cal_data *caldata = ah->caldata; in ar9003_hw_init_cal_pcoem() local
1440 if (caldata && test_bit(TXCLCAL_DONE, &caldata->cal_flags)) in ar9003_hw_init_cal_pcoem()
1464 if (caldata && !test_bit(TXIQCAL_DONE, &caldata->cal_flags)) in ar9003_hw_init_cal_pcoem()
1525 else if (caldata && test_bit(TXIQCAL_DONE, &caldata->cal_flags)) in ar9003_hw_init_cal_pcoem()
1530 if (run_rtt_cal && caldata) { in ar9003_hw_init_cal_pcoem()
1538 if (test_bit(SW_PKDET_DONE, &caldata->cal_flags)) in ar9003_hw_init_cal_pcoem()