caldata 3034 drivers/net/wireless/ath/ath10k/pci.c u8 *caldata = NULL; caldata 3042 drivers/net/wireless/ath/ath10k/pci.c caldata = kmalloc(calsize, GFP_KERNEL); caldata 3043 drivers/net/wireless/ath/ath10k/pci.c if (!caldata) caldata 3049 drivers/net/wireless/ath/ath10k/pci.c ret = ath10k_pci_read_eeprom(ar, i, &caldata[i]); caldata 3054 drivers/net/wireless/ath/ath10k/pci.c if (!ath10k_pci_validate_cal(caldata, calsize)) caldata 3057 drivers/net/wireless/ath/ath10k/pci.c *data = caldata; caldata 3063 drivers/net/wireless/ath/ath10k/pci.c kfree(caldata); caldata 83 drivers/net/wireless/ath/ath9k/ar9002_calib.c struct ath9k_hw_cal_data *caldata = ah->caldata; caldata 102 drivers/net/wireless/ath/ath9k/ar9002_calib.c caldata->CalValid |= currCal->calData->calType; caldata 109 drivers/net/wireless/ath/ath9k/ar9002_calib.c } else if (!(caldata->CalValid & currCal->calData->calType)) { caldata 667 drivers/net/wireless/ath/ath9k/ar9002_calib.c if (ah->caldata) caldata 668 drivers/net/wireless/ath/ath9k/ar9002_calib.c nfcal_pending = test_bit(NFCAL_PENDING, &ah->caldata->cal_flags); caldata 861 drivers/net/wireless/ath/ath9k/ar9002_calib.c if (ah->caldata) caldata 862 drivers/net/wireless/ath/ath9k/ar9002_calib.c set_bit(NFCAL_PENDING, &ah->caldata->cal_flags); caldata 902 drivers/net/wireless/ath/ath9k/ar9002_calib.c if (ah->caldata) caldata 903 drivers/net/wireless/ath/ath9k/ar9002_calib.c ah->caldata->CalValid = 0; caldata 77 drivers/net/wireless/ath/ath9k/ar9003_calib.c struct ath9k_hw_cal_data *caldata = ah->caldata; caldata 105 drivers/net/wireless/ath/ath9k/ar9003_calib.c caldata->CalValid |= cur_caldata->calType; caldata 115 drivers/net/wireless/ath/ath9k/ar9003_calib.c } else if (!(caldata->CalValid & cur_caldata->calType)) { caldata 895 drivers/net/wireless/ath/ath9k/ar9003_calib.c struct ath9k_hw_cal_data *caldata = ah->caldata; caldata 957 drivers/net/wireless/ath/ath9k/ar9003_calib.c if (caldata) caldata 958 drivers/net/wireless/ath/ath9k/ar9003_calib.c caldata->tx_corr_coeff[im][i] = caldata 961 drivers/net/wireless/ath/ath9k/ar9003_calib.c if (caldata) caldata 962 drivers/net/wireless/ath/ath9k/ar9003_calib.c caldata->num_measures[i] = nmeasurement; caldata 970 drivers/net/wireless/ath/ath9k/ar9003_calib.c if (caldata) { caldata 972 drivers/net/wireless/ath/ath9k/ar9003_calib.c set_bit(TXIQCAL_DONE, &caldata->cal_flags); caldata 974 drivers/net/wireless/ath/ath9k/ar9003_calib.c clear_bit(TXIQCAL_DONE, &caldata->cal_flags); caldata 1161 drivers/net/wireless/ath/ath9k/ar9003_calib.c struct ath9k_hw_cal_data *caldata = ah->caldata; caldata 1184 drivers/net/wireless/ath/ath9k/ar9003_calib.c for (im = 0; im < caldata->num_measures[i]; im++) { caldata 1188 drivers/net/wireless/ath/ath9k/ar9003_calib.c caldata->tx_corr_coeff[im][i]); caldata 1192 drivers/net/wireless/ath/ath9k/ar9003_calib.c caldata->tx_corr_coeff[im][i]); caldata 1307 drivers/net/wireless/ath/ath9k/ar9003_calib.c struct ath9k_hw_cal_data *caldata = ah->caldata; caldata 1319 drivers/net/wireless/ath/ath9k/ar9003_calib.c if (caldata) caldata 1320 drivers/net/wireless/ath/ath9k/ar9003_calib.c set_bit(SW_PKDET_DONE, &caldata->cal_flags); caldata 1322 drivers/net/wireless/ath/ath9k/ar9003_calib.c if ((ah->caps.hw_caps & ATH9K_HW_CAP_RTT) && caldata) { caldata 1324 drivers/net/wireless/ath/ath9k/ar9003_calib.c caldata->caldac[0] = REG_READ_FIELD(ah, caldata 1327 drivers/net/wireless/ath/ath9k/ar9003_calib.c caldata->caldac[1] = REG_READ_FIELD(ah, caldata 1331 drivers/net/wireless/ath/ath9k/ar9003_calib.c caldata->caldac[0] = REG_READ_FIELD(ah, caldata 1334 drivers/net/wireless/ath/ath9k/ar9003_calib.c caldata->caldac[1] = REG_READ_FIELD(ah, caldata 1346 drivers/net/wireless/ath/ath9k/ar9003_calib.c struct ath9k_hw_cal_data *caldata = ah->caldata; caldata 1350 drivers/net/wireless/ath/ath9k/ar9003_calib.c if (!caldata || !(ah->enabled_cals & TX_CL_CAL)) caldata 1356 drivers/net/wireless/ath/ath9k/ar9003_calib.c if (test_bit(TXCLCAL_DONE, &caldata->cal_flags)) { caldata 1362 drivers/net/wireless/ath/ath9k/ar9003_calib.c caldata->tx_clcal[i][j]); caldata 1369 drivers/net/wireless/ath/ath9k/ar9003_calib.c caldata->tx_clcal[i][j] = caldata 1372 drivers/net/wireless/ath/ath9k/ar9003_calib.c set_bit(TXCLCAL_DONE, &caldata->cal_flags); caldata 1378 drivers/net/wireless/ath/ath9k/ar9003_calib.c struct ath9k_hw_cal_data *caldata = ah->caldata; caldata 1392 drivers/net/wireless/ath/ath9k/ar9003_calib.c if (caldata) caldata 1393 drivers/net/wireless/ath/ath9k/ar9003_calib.c caldata->CalValid = 0; caldata 1400 drivers/net/wireless/ath/ath9k/ar9003_calib.c struct ath9k_hw_cal_data *caldata = ah->caldata; caldata 1444 drivers/net/wireless/ath/ath9k/ar9003_calib.c if (caldata && test_bit(TXCLCAL_DONE, &caldata->cal_flags)) caldata 1468 drivers/net/wireless/ath/ath9k/ar9003_calib.c if (caldata && !test_bit(TXIQCAL_DONE, &caldata->cal_flags)) caldata 1529 drivers/net/wireless/ath/ath9k/ar9003_calib.c else if (caldata && test_bit(TXIQCAL_DONE, &caldata->cal_flags)) caldata 1534 drivers/net/wireless/ath/ath9k/ar9003_calib.c if (run_rtt_cal && caldata) { caldata 1542 drivers/net/wireless/ath/ath9k/ar9003_calib.c if (test_bit(SW_PKDET_DONE, &caldata->cal_flags)) caldata 733 drivers/net/wireless/ath/ath9k/ar9003_mci.c struct ath9k_hw_cal_data *caldata) caldata 769 drivers/net/wireless/ath/ath9k/ar9003_mci.c if (caldata) { caldata 770 drivers/net/wireless/ath/ath9k/ar9003_mci.c clear_bit(TXIQCAL_DONE, &caldata->cal_flags); caldata 771 drivers/net/wireless/ath/ath9k/ar9003_mci.c clear_bit(TXCLCAL_DONE, &caldata->cal_flags); caldata 772 drivers/net/wireless/ath/ath9k/ar9003_mci.c clear_bit(RTT_DONE, &caldata->cal_flags); caldata 332 drivers/net/wireless/ath/ath9k/ar9003_mci.h struct ath9k_hw_cal_data *caldata); caldata 366 drivers/net/wireless/ath/ath9k/ar9003_mci.h struct ath9k_hw_cal_data *caldata) caldata 752 drivers/net/wireless/ath/ath9k/ar9003_paprd.c struct ath9k_hw_cal_data *caldata, caldata 755 drivers/net/wireless/ath/ath9k/ar9003_paprd.c u32 *paprd_table_val = caldata->pa_table[chain]; caldata 756 drivers/net/wireless/ath/ath9k/ar9003_paprd.c u32 small_signal_gain = caldata->small_signal_gain[chain]; caldata 821 drivers/net/wireless/ath/ath9k/ar9003_paprd.c struct ath9k_hw_cal_data *caldata, caldata 824 drivers/net/wireless/ath/ath9k/ar9003_paprd.c u32 *pa_in = caldata->pa_table[chain]; caldata 917 drivers/net/wireless/ath/ath9k/ar9003_paprd.c struct ath9k_hw_cal_data *caldata, int chain) caldata 919 drivers/net/wireless/ath/ath9k/ar9003_paprd.c u16 *small_signal_gain = &caldata->small_signal_gain[chain]; caldata 920 drivers/net/wireless/ath/ath9k/ar9003_paprd.c u32 *pa_table = caldata->pa_table[chain]; caldata 926 drivers/net/wireless/ath/ath9k/ar9003_paprd.c memset(caldata->pa_table[chain], 0, sizeof(caldata->pa_table[chain])); caldata 951 drivers/net/wireless/ath/ath9k/ar9003_paprd.c if (ar9003_paprd_retrain_pa_in(ah, caldata, chain)) caldata 113 drivers/net/wireless/ath/ath9k/ar9003_rtt.c ah->caldata->rtt_table[chain][i]); caldata 116 drivers/net/wireless/ath/ath9k/ar9003_rtt.c i, chain, ah->caldata->rtt_table[chain][i]); caldata 125 drivers/net/wireless/ath/ath9k/ar9003_rtt.c if (!test_bit(SW_PKDET_DONE, &ah->caldata->cal_flags)) caldata 136 drivers/net/wireless/ath/ath9k/ar9003_rtt.c caldac = ah->caldata->caldac[chain]; caldata 137 drivers/net/wireless/ath/ath9k/ar9003_rtt.c ah->caldata->rtt_table[chain][index] &= 0xFFFF05FF; caldata 139 drivers/net/wireless/ath/ath9k/ar9003_rtt.c ah->caldata->rtt_table[chain][index] |= (caldac << 4); caldata 177 drivers/net/wireless/ath/ath9k/ar9003_rtt.c ah->caldata->rtt_table[chain][i] = caldata 184 drivers/net/wireless/ath/ath9k/ar9003_rtt.c i, chain, ah->caldata->rtt_table[chain][i]); caldata 188 drivers/net/wireless/ath/ath9k/ar9003_rtt.c set_bit(RTT_DONE, &ah->caldata->cal_flags); caldata 202 drivers/net/wireless/ath/ath9k/ar9003_rtt.c if (ah->caldata) caldata 203 drivers/net/wireless/ath/ath9k/ar9003_rtt.c clear_bit(RTT_DONE, &ah->caldata->cal_flags); caldata 210 drivers/net/wireless/ath/ath9k/ar9003_rtt.c if (!ah->caldata) caldata 213 drivers/net/wireless/ath/ath9k/ar9003_rtt.c if (test_bit(SW_PKDET_DONE, &ah->caldata->cal_flags)) { caldata 217 drivers/net/wireless/ath/ath9k/ar9003_rtt.c ah->caldata->caldac[0]); caldata 220 drivers/net/wireless/ath/ath9k/ar9003_rtt.c ah->caldata->caldac[1]); caldata 224 drivers/net/wireless/ath/ath9k/ar9003_rtt.c ah->caldata->caldac[0]); caldata 227 drivers/net/wireless/ath/ath9k/ar9003_rtt.c ah->caldata->caldac[1]); caldata 235 drivers/net/wireless/ath/ath9k/ar9003_rtt.c if (!test_bit(RTT_DONE, &ah->caldata->cal_flags)) caldata 240 drivers/net/wireless/ath/ath9k/ar9003_rtt.c if (test_bit(SW_PKDET_DONE, &ah->caldata->cal_flags)) caldata 337 drivers/net/wireless/ath/ath9k/ath9k.h struct ath9k_hw_cal_data caldata; caldata 197 drivers/net/wireless/ath/ath9k/calib.c if (!ah->caldata) caldata 218 drivers/net/wireless/ath/ath9k/calib.c ah->caldata->CalValid &= ~currCal->calData->calType; caldata 227 drivers/net/wireless/ath/ath9k/calib.c if (ah->caldata) caldata 228 drivers/net/wireless/ath/ath9k/calib.c set_bit(NFCAL_PENDING, &ah->caldata->cal_flags); caldata 252 drivers/net/wireless/ath/ath9k/calib.c if (ah->caldata) caldata 253 drivers/net/wireless/ath/ath9k/calib.c h = ah->caldata->nfCalHist; caldata 407 drivers/net/wireless/ath/ath9k/calib.c struct ath9k_hw_cal_data *caldata = ah->caldata; caldata 425 drivers/net/wireless/ath/ath9k/calib.c if (!caldata) { caldata 430 drivers/net/wireless/ath/ath9k/calib.c h = caldata->nfCalHist; caldata 431 drivers/net/wireless/ath/ath9k/calib.c clear_bit(NFCAL_PENDING, &caldata->cal_flags); caldata 432 drivers/net/wireless/ath/ath9k/calib.c ath9k_hw_update_nfcal_hist_buffer(ah, caldata, nfarray); caldata 445 drivers/net/wireless/ath/ath9k/calib.c ah->caldata->channel = chan->channel; caldata 446 drivers/net/wireless/ath/ath9k/calib.c ah->caldata->channelFlags = chan->channelFlags; caldata 447 drivers/net/wireless/ath/ath9k/calib.c h = ah->caldata->nfCalHist; caldata 462 drivers/net/wireless/ath/ath9k/calib.c struct ath9k_hw_cal_data *caldata = ah->caldata; caldata 464 drivers/net/wireless/ath/ath9k/calib.c if (unlikely(!caldata)) caldata 475 drivers/net/wireless/ath/ath9k/calib.c if (!test_bit(NFCAL_PENDING, &caldata->cal_flags)) caldata 480 drivers/net/wireless/ath/ath9k/calib.c set_bit(NFCAL_INTF, &caldata->cal_flags); caldata 243 drivers/net/wireless/ath/ath9k/common-spectral.c struct ath9k_hw_cal_data *caldata = ah->caldata; caldata 255 drivers/net/wireless/ath/ath9k/common-spectral.c if (caldata) caldata 257 drivers/net/wireless/ath/ath9k/common-spectral.c caldata->nfCalHist[3].privNF); caldata 969 drivers/net/wireless/ath/ath9k/debug.c struct ath9k_nfcal_hist *h = sc->cur_chan->caldata.nfCalHist; caldata 491 drivers/net/wireless/ath/ath9k/htc.h struct ath9k_hw_cal_data caldata; caldata 189 drivers/net/wireless/ath/ath9k/htc_drv_main.c struct ath9k_hw_cal_data *caldata = NULL; caldata 210 drivers/net/wireless/ath/ath9k/htc_drv_main.c caldata = &priv->caldata; caldata 211 drivers/net/wireless/ath/ath9k/htc_drv_main.c ret = ath9k_hw_reset(ah, ah->curchan, caldata, false); caldata 249 drivers/net/wireless/ath/ath9k/htc_drv_main.c struct ath9k_hw_cal_data *caldata; caldata 277 drivers/net/wireless/ath/ath9k/htc_drv_main.c caldata = fastcc ? NULL : &priv->caldata; caldata 278 drivers/net/wireless/ath/ath9k/htc_drv_main.c ret = ath9k_hw_reset(ah, hchan, caldata, fastcc); caldata 932 drivers/net/wireless/ath/ath9k/htc_drv_main.c ret = ath9k_hw_reset(ah, init_channel, ah->caldata, false); caldata 1825 drivers/net/wireless/ath/ath9k/hw.c if (AR_SREV_9462(ah) && (ah->caldata && caldata 1826 drivers/net/wireless/ath/ath9k/hw.c (!test_bit(TXIQCAL_DONE, &ah->caldata->cal_flags) || caldata 1827 drivers/net/wireless/ath/ath9k/hw.c !test_bit(TXCLCAL_DONE, &ah->caldata->cal_flags) || caldata 1828 drivers/net/wireless/ath/ath9k/hw.c !test_bit(RTT_DONE, &ah->caldata->cal_flags)))) caldata 1870 drivers/net/wireless/ath/ath9k/hw.c struct ath9k_hw_cal_data *caldata, bool fastcc) caldata 1895 drivers/net/wireless/ath/ath9k/hw.c ah->caldata = caldata; caldata 1896 drivers/net/wireless/ath/ath9k/hw.c if (caldata && (chan->channel != caldata->channel || caldata 1897 drivers/net/wireless/ath/ath9k/hw.c chan->channelFlags != caldata->channelFlags)) { caldata 1899 drivers/net/wireless/ath/ath9k/hw.c memset(caldata, 0, sizeof(*caldata)); caldata 1901 drivers/net/wireless/ath/ath9k/hw.c } else if (caldata) { caldata 1902 drivers/net/wireless/ath/ath9k/hw.c clear_bit(PAPRD_PACKET_SENT, &caldata->cal_flags); caldata 2038 drivers/net/wireless/ath/ath9k/hw.c if (caldata) { caldata 2039 drivers/net/wireless/ath/ath9k/hw.c clear_bit(TXIQCAL_DONE, &caldata->cal_flags); caldata 2040 drivers/net/wireless/ath/ath9k/hw.c clear_bit(TXCLCAL_DONE, &caldata->cal_flags); caldata 2045 drivers/net/wireless/ath/ath9k/hw.c if (ath9k_hw_mci_is_enabled(ah) && ar9003_mci_end_reset(ah, chan, caldata)) caldata 818 drivers/net/wireless/ath/ath9k/hw.h struct ath9k_hw_cal_data *caldata; caldata 1025 drivers/net/wireless/ath/ath9k/hw.h struct ath9k_hw_cal_data *caldata, bool fastcc); caldata 1119 drivers/net/wireless/ath/ath9k/hw.h struct ath9k_hw_cal_data *caldata, caldata 1122 drivers/net/wireless/ath/ath9k/hw.h struct ath9k_hw_cal_data *caldata, int chain); caldata 152 drivers/net/wireless/ath/ath9k/link.c struct ath9k_hw_cal_data *caldata = ah->caldata; caldata 155 drivers/net/wireless/ath/ath9k/link.c if (!caldata || !test_bit(PAPRD_DONE, &caldata->cal_flags)) { caldata 165 drivers/net/wireless/ath/ath9k/link.c ar9003_paprd_populate_single_table(ah, caldata, chain); caldata 219 drivers/net/wireless/ath/ath9k/link.c struct ath9k_hw_cal_data *caldata = ah->caldata; caldata 227 drivers/net/wireless/ath/ath9k/link.c if (!caldata || caldata 228 drivers/net/wireless/ath/ath9k/link.c !test_bit(PAPRD_PACKET_SENT, &caldata->cal_flags) || caldata 229 drivers/net/wireless/ath/ath9k/link.c test_bit(PAPRD_DONE, &caldata->cal_flags)) { caldata 271 drivers/net/wireless/ath/ath9k/link.c ret = ar9003_paprd_create_curve(ah, caldata, chain); caldata 289 drivers/net/wireless/ath/ath9k/link.c set_bit(PAPRD_DONE, &caldata->cal_flags); caldata 316 drivers/net/wireless/ath/ath9k/link.c if (ah->caldata && test_bit(NFCAL_INTF, &ah->caldata->cal_flags)) caldata 410 drivers/net/wireless/ath/ath9k/link.c if (ar9003_is_paprd_enabled(ah) && ah->caldata) { caldata 411 drivers/net/wireless/ath/ath9k/link.c if (!test_bit(PAPRD_DONE, &ah->caldata->cal_flags)) { caldata 286 drivers/net/wireless/ath/ath9k/main.c struct ath9k_hw_cal_data *caldata = NULL; caldata 299 drivers/net/wireless/ath/ath9k/main.c caldata = &sc->cur_chan->caldata; caldata 320 drivers/net/wireless/ath/ath9k/main.c r = ath9k_hw_reset(ah, hchan, caldata, fastcc); caldata 678 drivers/net/wireless/ath/ath9k/main.c r = ath9k_hw_reset(ah, init_channel, ah->caldata, false); caldata 884 drivers/net/wireless/ath/ath9k/main.c ath9k_hw_reset(ah, ah->curchan, ah->caldata, false); caldata 708 drivers/net/wireless/ath/ath9k/mci.c struct ath9k_hw_cal_data *caldata = &sc->cur_chan->caldata; caldata 710 drivers/net/wireless/ath/ath9k/mci.c (ah->curchan->channel > caldata->channel) && caldata 711 drivers/net/wireless/ath/ath9k/mci.c (ah->curchan->channel <= caldata->channel + 20)) caldata 714 drivers/net/wireless/ath/ath9k/mci.c (ah->curchan->channel < caldata->channel) && caldata 715 drivers/net/wireless/ath/ath9k/mci.c (ah->curchan->channel >= caldata->channel - 20)) caldata 2409 drivers/net/wireless/ath/ath9k/xmit.c if (sc->sc_ah->caldata) caldata 2410 drivers/net/wireless/ath/ath9k/xmit.c set_bit(PAPRD_PACKET_SENT, &sc->sc_ah->caldata->cal_flags); caldata 95 drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c struct mt76x02_rx_freq_cal *caldata = &dev->cal.rx; caldata 101 drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c caldata->freq_offset = val; caldata 107 drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c caldata->freq_offset -= mt76x02_sign_extend(val, 8); caldata 113 drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c struct mt76x02_rx_freq_cal *caldata = &dev->cal.rx; caldata 119 drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c caldata->lna_gain = mt76x02_get_lna_gain(dev, &lna_2g, lna_5g, chan); caldata 121 drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c for (i = 0; i < ARRAY_SIZE(caldata->rssi_offset); i++) { caldata 126 drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c caldata->rssi_offset[i] = val;