Lines Matching refs:coeff
28 struct coeff { struct
889 struct coeff *coeff, in ar9003_hw_tx_iq_cal_outlier_detection() argument
930 ar9003_hw_detect_outlier(coeff->mag_coeff[i], in ar9003_hw_tx_iq_cal_outlier_detection()
935 ar9003_hw_detect_outlier(coeff->phs_coeff[i], in ar9003_hw_tx_iq_cal_outlier_detection()
942 magnitude = coeff->mag_coeff[i][im][0]; in ar9003_hw_tx_iq_cal_outlier_detection()
943 phase = coeff->phs_coeff[i][im][0]; in ar9003_hw_tx_iq_cal_outlier_detection()
945 coeff->iqc_coeff[0] = in ar9003_hw_tx_iq_cal_outlier_detection()
951 coeff->iqc_coeff[0]); in ar9003_hw_tx_iq_cal_outlier_detection()
955 coeff->iqc_coeff[0]); in ar9003_hw_tx_iq_cal_outlier_detection()
959 coeff->iqc_coeff[0]; in ar9003_hw_tx_iq_cal_outlier_detection()
1004 struct coeff *coeff, in __ar955x_tx_iq_cal_sort() argument
1013 if (coeff->mag_coeff[i][im][iy] < in __ar955x_tx_iq_cal_sort()
1014 coeff->mag_coeff[i][im][ix]) { in __ar955x_tx_iq_cal_sort()
1015 temp = coeff->mag_coeff[i][im][ix]; in __ar955x_tx_iq_cal_sort()
1016 coeff->mag_coeff[i][im][ix] = in __ar955x_tx_iq_cal_sort()
1017 coeff->mag_coeff[i][im][iy]; in __ar955x_tx_iq_cal_sort()
1018 coeff->mag_coeff[i][im][iy] = temp; in __ar955x_tx_iq_cal_sort()
1020 if (coeff->phs_coeff[i][im][iy] < in __ar955x_tx_iq_cal_sort()
1021 coeff->phs_coeff[i][im][ix]) { in __ar955x_tx_iq_cal_sort()
1022 temp = coeff->phs_coeff[i][im][ix]; in __ar955x_tx_iq_cal_sort()
1023 coeff->phs_coeff[i][im][ix] = in __ar955x_tx_iq_cal_sort()
1024 coeff->phs_coeff[i][im][iy]; in __ar955x_tx_iq_cal_sort()
1025 coeff->phs_coeff[i][im][iy] = temp; in __ar955x_tx_iq_cal_sort()
1029 coeff->mag_coeff[i][im][0] = coeff->mag_coeff[i][im][MAXIQCAL / 2]; in __ar955x_tx_iq_cal_sort()
1030 coeff->phs_coeff[i][im][0] = coeff->phs_coeff[i][im][MAXIQCAL / 2]; in __ar955x_tx_iq_cal_sort()
1035 coeff->mag_coeff[i][im][0], in __ar955x_tx_iq_cal_sort()
1036 coeff->phs_coeff[i][im][0]); in __ar955x_tx_iq_cal_sort()
1041 struct coeff *coeff, in ar955x_tx_iq_cal_median() argument
1051 __ar955x_tx_iq_cal_sort(ah, coeff, i, nmeasurement); in ar955x_tx_iq_cal_median()
1072 static struct coeff coeff; in ar9003_hw_tx_iq_cal_post_proc() local
1128 coeff.iqc_coeff)) { in ar9003_hw_tx_iq_cal_post_proc()
1134 coeff.phs_coeff[i][im][iqcal_idx] = in ar9003_hw_tx_iq_cal_post_proc()
1135 coeff.iqc_coeff[0] & 0x7f; in ar9003_hw_tx_iq_cal_post_proc()
1136 coeff.mag_coeff[i][im][iqcal_idx] = in ar9003_hw_tx_iq_cal_post_proc()
1137 (coeff.iqc_coeff[0] >> 7) & 0x7f; in ar9003_hw_tx_iq_cal_post_proc()
1139 if (coeff.mag_coeff[i][im][iqcal_idx] > 63) in ar9003_hw_tx_iq_cal_post_proc()
1140 coeff.mag_coeff[i][im][iqcal_idx] -= 128; in ar9003_hw_tx_iq_cal_post_proc()
1141 if (coeff.phs_coeff[i][im][iqcal_idx] > 63) in ar9003_hw_tx_iq_cal_post_proc()
1142 coeff.phs_coeff[i][im][iqcal_idx] -= 128; in ar9003_hw_tx_iq_cal_post_proc()
1147 outlier_detect = ar955x_tx_iq_cal_median(ah, &coeff, in ar9003_hw_tx_iq_cal_post_proc()
1150 ar9003_hw_tx_iq_cal_outlier_detection(ah, &coeff, is_reusable); in ar9003_hw_tx_iq_cal_post_proc()