/drivers/net/wireless/ath/ath9k/ |
D | ar9003_rtt.c | 113 ah->caldata->rtt_table[chain][i]); in ar9003_hw_rtt_load_hist() 116 i, chain, ah->caldata->rtt_table[chain][i]); in ar9003_hw_rtt_load_hist() 125 if (!test_bit(SW_PKDET_DONE, &ah->caldata->cal_flags)) in ar9003_hw_patch_rtt() 136 caldac = ah->caldata->caldac[chain]; in ar9003_hw_patch_rtt() 137 ah->caldata->rtt_table[chain][index] &= 0xFFFF05FF; in ar9003_hw_patch_rtt() 139 ah->caldata->rtt_table[chain][index] |= (caldac << 4); in ar9003_hw_patch_rtt() 177 ah->caldata->rtt_table[chain][i] = in ar9003_hw_rtt_fill_hist() 184 i, chain, ah->caldata->rtt_table[chain][i]); in ar9003_hw_rtt_fill_hist() 188 set_bit(RTT_DONE, &ah->caldata->cal_flags); in ar9003_hw_rtt_fill_hist() 202 if (ah->caldata) in ar9003_hw_rtt_clear_hist() [all …]
|
D | calib.c | 197 if (!ah->caldata) in ath9k_hw_reset_calvalid() 218 ah->caldata->CalValid &= ~currCal->calData->calType; in ath9k_hw_reset_calvalid() 227 if (ah->caldata) in ath9k_hw_start_nfcal() 228 set_bit(NFCAL_PENDING, &ah->caldata->cal_flags); in ath9k_hw_start_nfcal() 252 if (ah->caldata) in ath9k_hw_loadnf() 253 h = ah->caldata->nfCalHist; in ath9k_hw_loadnf() 407 struct ath9k_hw_cal_data *caldata = ah->caldata; in ath9k_hw_getnf() local 425 if (!caldata) { in ath9k_hw_getnf() 430 h = caldata->nfCalHist; in ath9k_hw_getnf() 431 clear_bit(NFCAL_PENDING, &caldata->cal_flags); in ath9k_hw_getnf() [all …]
|
D | ar9003_calib.c | 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() [all …]
|
D | link.c | 152 struct ath9k_hw_cal_data *caldata = ah->caldata; in ath_paprd_activate() local 155 if (!caldata || !test_bit(PAPRD_DONE, &caldata->cal_flags)) { in ath_paprd_activate() 165 ar9003_paprd_populate_single_table(ah, caldata, chain); in ath_paprd_activate() 219 struct ath9k_hw_cal_data *caldata = ah->caldata; in ath_paprd_calibrate() local 227 if (!caldata || in ath_paprd_calibrate() 228 !test_bit(PAPRD_PACKET_SENT, &caldata->cal_flags) || in ath_paprd_calibrate() 229 test_bit(PAPRD_DONE, &caldata->cal_flags)) { in ath_paprd_calibrate() 271 ret = ar9003_paprd_create_curve(ah, caldata, chain); in ath_paprd_calibrate() 289 set_bit(PAPRD_DONE, &caldata->cal_flags); in ath_paprd_calibrate() 316 if (ah->caldata && test_bit(NFCAL_INTF, &ah->caldata->cal_flags)) in ath_ani_calibrate() [all …]
|
D | ar9003_paprd.c | 752 struct ath9k_hw_cal_data *caldata, in ar9003_paprd_populate_single_table() argument 755 u32 *paprd_table_val = caldata->pa_table[chain]; in ar9003_paprd_populate_single_table() 756 u32 small_signal_gain = caldata->small_signal_gain[chain]; in ar9003_paprd_populate_single_table() 821 struct ath9k_hw_cal_data *caldata, in ar9003_paprd_retrain_pa_in() argument 824 u32 *pa_in = caldata->pa_table[chain]; in ar9003_paprd_retrain_pa_in() 917 struct ath9k_hw_cal_data *caldata, int chain) in ar9003_paprd_create_curve() argument 919 u16 *small_signal_gain = &caldata->small_signal_gain[chain]; in ar9003_paprd_create_curve() 920 u32 *pa_table = caldata->pa_table[chain]; in ar9003_paprd_create_curve() 926 memset(caldata->pa_table[chain], 0, sizeof(caldata->pa_table[chain])); in ar9003_paprd_create_curve() 951 if (ar9003_paprd_retrain_pa_in(ah, caldata, chain)) in ar9003_paprd_create_curve()
|
D | ar9002_calib.c | 83 struct ath9k_hw_cal_data *caldata = ah->caldata; in ar9002_hw_per_calibration() local 102 caldata->CalValid |= currCal->calData->calType; in ar9002_hw_per_calibration() 109 } else if (!(caldata->CalValid & currCal->calData->calType)) { in ar9002_hw_per_calibration() 667 if (ah->caldata) in ar9002_hw_calibrate() 668 nfcal_pending = test_bit(NFCAL_PENDING, &ah->caldata->cal_flags); in ar9002_hw_calibrate() 861 if (ah->caldata) in ar9002_hw_init_cal() 862 set_bit(NFCAL_PENDING, &ah->caldata->cal_flags); in ar9002_hw_init_cal() 902 if (ah->caldata) in ar9002_hw_init_cal() 903 ah->caldata->CalValid = 0; in ar9002_hw_init_cal()
|
D | mci.c | 708 struct ath9k_hw_cal_data *caldata = &sc->cur_chan->caldata; in ath9k_mci_set_txpower() local 710 (ah->curchan->channel > caldata->channel) && in ath9k_mci_set_txpower() 711 (ah->curchan->channel <= caldata->channel + 20)) in ath9k_mci_set_txpower() 714 (ah->curchan->channel < caldata->channel) && in ath9k_mci_set_txpower() 715 (ah->curchan->channel >= caldata->channel - 20)) in ath9k_mci_set_txpower()
|
D | hw.c | 1825 if (AR_SREV_9462(ah) && (ah->caldata && in ath9k_hw_do_fastcc() 1826 (!test_bit(TXIQCAL_DONE, &ah->caldata->cal_flags) || in ath9k_hw_do_fastcc() 1827 !test_bit(TXCLCAL_DONE, &ah->caldata->cal_flags) || in ath9k_hw_do_fastcc() 1828 !test_bit(RTT_DONE, &ah->caldata->cal_flags)))) in ath9k_hw_do_fastcc() 1870 struct ath9k_hw_cal_data *caldata, bool fastcc) in ath9k_hw_reset() argument 1895 ah->caldata = caldata; in ath9k_hw_reset() 1896 if (caldata && (chan->channel != caldata->channel || in ath9k_hw_reset() 1897 chan->channelFlags != caldata->channelFlags)) { in ath9k_hw_reset() 1899 memset(caldata, 0, sizeof(*caldata)); in ath9k_hw_reset() 1901 } else if (caldata) { in ath9k_hw_reset() [all …]
|
D | ar9003_mci.h | 332 struct ath9k_hw_cal_data *caldata); 366 struct ath9k_hw_cal_data *caldata) in ar9003_mci_end_reset() argument
|
D | htc_drv_main.c | 189 struct ath9k_hw_cal_data *caldata = NULL; in ath9k_htc_reset() local 210 caldata = &priv->caldata; in ath9k_htc_reset() 211 ret = ath9k_hw_reset(ah, ah->curchan, caldata, false); in ath9k_htc_reset() 249 struct ath9k_hw_cal_data *caldata; in ath9k_htc_set_channel() local 277 caldata = fastcc ? NULL : &priv->caldata; in ath9k_htc_set_channel() 278 ret = ath9k_hw_reset(ah, hchan, caldata, fastcc); in ath9k_htc_set_channel() 932 ret = ath9k_hw_reset(ah, init_channel, ah->caldata, false); in ath9k_htc_start()
|
D | common-spectral.c | 243 struct ath9k_hw_cal_data *caldata = ah->caldata; in ath_cmn_process_ht20_40_fft() local 255 if (caldata) in ath_cmn_process_ht20_40_fft() 257 caldata->nfCalHist[3].privNF); in ath_cmn_process_ht20_40_fft()
|
D | ar9003_mci.c | 733 struct ath9k_hw_cal_data *caldata) in ar9003_mci_end_reset() argument 769 if (caldata) { in ar9003_mci_end_reset() 770 clear_bit(TXIQCAL_DONE, &caldata->cal_flags); in ar9003_mci_end_reset() 771 clear_bit(TXCLCAL_DONE, &caldata->cal_flags); in ar9003_mci_end_reset() 772 clear_bit(RTT_DONE, &caldata->cal_flags); in ar9003_mci_end_reset()
|
D | hw.h | 818 struct ath9k_hw_cal_data *caldata; member 1025 struct ath9k_hw_cal_data *caldata, bool fastcc); 1119 struct ath9k_hw_cal_data *caldata, 1122 struct ath9k_hw_cal_data *caldata, int chain);
|
D | main.c | 286 struct ath9k_hw_cal_data *caldata = NULL; in ath_reset_internal() local 299 caldata = &sc->cur_chan->caldata; in ath_reset_internal() 320 r = ath9k_hw_reset(ah, hchan, caldata, fastcc); in ath_reset_internal() 678 r = ath9k_hw_reset(ah, init_channel, ah->caldata, false); in ath9k_start() 884 ath9k_hw_reset(ah, ah->curchan, ah->caldata, false); in ath9k_stop()
|
D | htc.h | 491 struct ath9k_hw_cal_data caldata; member
|
D | ath9k.h | 337 struct ath9k_hw_cal_data caldata; member
|
D | xmit.c | 2409 if (sc->sc_ah->caldata) in ath_tx_complete() 2410 set_bit(PAPRD_PACKET_SENT, &sc->sc_ah->caldata->cal_flags); in ath_tx_complete()
|
D | debug.c | 969 struct ath9k_nfcal_hist *h = sc->cur_chan->caldata.nfCalHist; in read_file_dump_nfcal()
|
/drivers/net/wireless/mediatek/mt76/mt76x0/ |
D | eeprom.c | 95 struct mt76x02_rx_freq_cal *caldata = &dev->cal.rx; in mt76x0_set_freq_offset() local 101 caldata->freq_offset = val; in mt76x0_set_freq_offset() 107 caldata->freq_offset -= mt76x02_sign_extend(val, 8); in mt76x0_set_freq_offset() 113 struct mt76x02_rx_freq_cal *caldata = &dev->cal.rx; in mt76x0_read_rx_gain() local 119 caldata->lna_gain = mt76x02_get_lna_gain(dev, &lna_2g, lna_5g, chan); in mt76x0_read_rx_gain() 121 for (i = 0; i < ARRAY_SIZE(caldata->rssi_offset); i++) { in mt76x0_read_rx_gain() 126 caldata->rssi_offset[i] = val; in mt76x0_read_rx_gain()
|
/drivers/net/wireless/ath/ath10k/ |
D | pci.c | 3019 u8 *caldata = NULL; in ath10k_pci_hif_fetch_cal_eeprom() local 3027 caldata = kmalloc(calsize, GFP_KERNEL); in ath10k_pci_hif_fetch_cal_eeprom() 3028 if (!caldata) in ath10k_pci_hif_fetch_cal_eeprom() 3034 ret = ath10k_pci_read_eeprom(ar, i, &caldata[i]); in ath10k_pci_hif_fetch_cal_eeprom() 3039 if (!ath10k_pci_validate_cal(caldata, calsize)) in ath10k_pci_hif_fetch_cal_eeprom() 3042 *data = caldata; in ath10k_pci_hif_fetch_cal_eeprom() 3048 kfree(caldata); in ath10k_pci_hif_fetch_cal_eeprom()
|