Lines Matching refs:coeff

28 struct coeff {  struct
890 struct coeff *coeff, in ar9003_hw_tx_iq_cal_outlier_detection() argument
931 ar9003_hw_detect_outlier(coeff->mag_coeff[i], in ar9003_hw_tx_iq_cal_outlier_detection()
936 ar9003_hw_detect_outlier(coeff->phs_coeff[i], in ar9003_hw_tx_iq_cal_outlier_detection()
943 magnitude = coeff->mag_coeff[i][im][0]; in ar9003_hw_tx_iq_cal_outlier_detection()
944 phase = coeff->phs_coeff[i][im][0]; in ar9003_hw_tx_iq_cal_outlier_detection()
946 coeff->iqc_coeff[0] = in ar9003_hw_tx_iq_cal_outlier_detection()
952 coeff->iqc_coeff[0]); in ar9003_hw_tx_iq_cal_outlier_detection()
956 coeff->iqc_coeff[0]); in ar9003_hw_tx_iq_cal_outlier_detection()
960 coeff->iqc_coeff[0]; in ar9003_hw_tx_iq_cal_outlier_detection()
1005 struct coeff *coeff, in __ar955x_tx_iq_cal_sort() argument
1014 if (coeff->mag_coeff[i][im][iy] < in __ar955x_tx_iq_cal_sort()
1015 coeff->mag_coeff[i][im][ix]) { in __ar955x_tx_iq_cal_sort()
1016 temp = coeff->mag_coeff[i][im][ix]; in __ar955x_tx_iq_cal_sort()
1017 coeff->mag_coeff[i][im][ix] = in __ar955x_tx_iq_cal_sort()
1018 coeff->mag_coeff[i][im][iy]; in __ar955x_tx_iq_cal_sort()
1019 coeff->mag_coeff[i][im][iy] = temp; in __ar955x_tx_iq_cal_sort()
1021 if (coeff->phs_coeff[i][im][iy] < in __ar955x_tx_iq_cal_sort()
1022 coeff->phs_coeff[i][im][ix]) { in __ar955x_tx_iq_cal_sort()
1023 temp = coeff->phs_coeff[i][im][ix]; in __ar955x_tx_iq_cal_sort()
1024 coeff->phs_coeff[i][im][ix] = in __ar955x_tx_iq_cal_sort()
1025 coeff->phs_coeff[i][im][iy]; in __ar955x_tx_iq_cal_sort()
1026 coeff->phs_coeff[i][im][iy] = temp; in __ar955x_tx_iq_cal_sort()
1030 coeff->mag_coeff[i][im][0] = coeff->mag_coeff[i][im][MAXIQCAL / 2]; in __ar955x_tx_iq_cal_sort()
1031 coeff->phs_coeff[i][im][0] = coeff->phs_coeff[i][im][MAXIQCAL / 2]; in __ar955x_tx_iq_cal_sort()
1036 coeff->mag_coeff[i][im][0], in __ar955x_tx_iq_cal_sort()
1037 coeff->phs_coeff[i][im][0]); in __ar955x_tx_iq_cal_sort()
1042 struct coeff *coeff, in ar955x_tx_iq_cal_median() argument
1052 __ar955x_tx_iq_cal_sort(ah, coeff, i, nmeasurement); in ar955x_tx_iq_cal_median()
1073 static struct coeff coeff; in ar9003_hw_tx_iq_cal_post_proc() local
1129 coeff.iqc_coeff)) { in ar9003_hw_tx_iq_cal_post_proc()
1135 coeff.phs_coeff[i][im][iqcal_idx] = in ar9003_hw_tx_iq_cal_post_proc()
1136 coeff.iqc_coeff[0] & 0x7f; in ar9003_hw_tx_iq_cal_post_proc()
1137 coeff.mag_coeff[i][im][iqcal_idx] = in ar9003_hw_tx_iq_cal_post_proc()
1138 (coeff.iqc_coeff[0] >> 7) & 0x7f; in ar9003_hw_tx_iq_cal_post_proc()
1140 if (coeff.mag_coeff[i][im][iqcal_idx] > 63) in ar9003_hw_tx_iq_cal_post_proc()
1141 coeff.mag_coeff[i][im][iqcal_idx] -= 128; in ar9003_hw_tx_iq_cal_post_proc()
1142 if (coeff.phs_coeff[i][im][iqcal_idx] > 63) in ar9003_hw_tx_iq_cal_post_proc()
1143 coeff.phs_coeff[i][im][iqcal_idx] -= 128; in ar9003_hw_tx_iq_cal_post_proc()
1148 outlier_detect = ar955x_tx_iq_cal_median(ah, &coeff, in ar9003_hw_tx_iq_cal_post_proc()
1151 ar9003_hw_tx_iq_cal_outlier_detection(ah, &coeff, is_reusable); in ar9003_hw_tx_iq_cal_post_proc()