Home
last modified time | relevance | path

Searched refs:caldata (Results 1 – 25 of 28) sorted by relevance

12

/linux-6.1.9/drivers/net/wireless/ath/ath9k/
Dar9003_rtt.c113 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 …]
Dcalib.c198 if (!ah->caldata) in ath9k_hw_reset_calvalid()
219 ah->caldata->CalValid &= ~currCal->calData->calType; in ath9k_hw_reset_calvalid()
231 if (ah->caldata) in ath9k_hw_start_nfcal()
232 set_bit(NFCAL_PENDING, &ah->caldata->cal_flags); in ath9k_hw_start_nfcal()
256 if (ah->caldata) in ath9k_hw_loadnf()
257 h = ah->caldata->nfCalHist; in ath9k_hw_loadnf()
411 struct ath9k_hw_cal_data *caldata = ah->caldata; in ath9k_hw_getnf() local
429 if (!caldata) { in ath9k_hw_getnf()
434 h = caldata->nfCalHist; in ath9k_hw_getnf()
435 clear_bit(NFCAL_PENDING, &caldata->cal_flags); in ath9k_hw_getnf()
[all …]
Dar9003_calib.c77 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 …]
Dlink.c152 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 …]
Dar9002_calib.c84 struct ath9k_hw_cal_data *caldata = ah->caldata; in ar9002_hw_per_calibration() local
103 caldata->CalValid |= currCal->calData->calType; in ar9002_hw_per_calibration()
118 } else if (!(caldata->CalValid & currCal->calData->calType)) { in ar9002_hw_per_calibration()
676 if (ah->caldata) { in ar9002_hw_calibrate()
677 nfcal_pending = test_bit(NFCAL_PENDING, &ah->caldata->cal_flags); in ar9002_hw_calibrate()
679 set_bit(LONGCAL_PENDING, &ah->caldata->cal_flags); in ar9002_hw_calibrate()
680 else if (test_bit(LONGCAL_PENDING, &ah->caldata->cal_flags)) in ar9002_hw_calibrate()
733 if (ah->caldata) in ar9002_hw_calibrate()
735 &ah->caldata->cal_flags); in ar9002_hw_calibrate()
931 if (ah->caldata) in ar9002_hw_init_cal()
[all …]
Dar9003_paprd.c752 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()
Dmci.c708 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()
Dhw.c1823 if (AR_SREV_9462(ah) && (ah->caldata && in ath9k_hw_do_fastcc()
1824 (!test_bit(TXIQCAL_DONE, &ah->caldata->cal_flags) || in ath9k_hw_do_fastcc()
1825 !test_bit(TXCLCAL_DONE, &ah->caldata->cal_flags) || in ath9k_hw_do_fastcc()
1826 !test_bit(RTT_DONE, &ah->caldata->cal_flags)))) in ath9k_hw_do_fastcc()
1868 struct ath9k_hw_cal_data *caldata, bool fastcc) in ath9k_hw_reset() argument
1893 ah->caldata = caldata; in ath9k_hw_reset()
1894 if (caldata && (chan->channel != caldata->channel || in ath9k_hw_reset()
1895 chan->channelFlags != caldata->channelFlags)) { in ath9k_hw_reset()
1897 memset(caldata, 0, sizeof(*caldata)); in ath9k_hw_reset()
1899 } else if (caldata) { in ath9k_hw_reset()
[all …]
Dar9003_mci.h332 struct ath9k_hw_cal_data *caldata);
366 struct ath9k_hw_cal_data *caldata) in ar9003_mci_end_reset() argument
Dhtc_drv_main.c189 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()
Dcommon-spectral.c243 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()
Dhw.h819 struct ath9k_hw_cal_data *caldata; member
1030 struct ath9k_hw_cal_data *caldata, bool fastcc);
1124 struct ath9k_hw_cal_data *caldata,
1127 struct ath9k_hw_cal_data *caldata, int chain);
Dar9003_mci.c733 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()
Dmain.c289 struct ath9k_hw_cal_data *caldata = NULL; in ath_reset_internal() local
302 caldata = &sc->cur_chan->caldata; in ath_reset_internal()
328 r = ath9k_hw_reset(ah, hchan, caldata, fastcc); in ath_reset_internal()
688 r = ath9k_hw_reset(ah, init_channel, ah->caldata, false); in ath9k_start()
962 ath9k_hw_reset(ah, ah->curchan, ah->caldata, false); in ath9k_stop()
Dhtc.h497 struct ath9k_hw_cal_data caldata; member
Dath9k.h338 struct ath9k_hw_cal_data caldata; member
Dxmit.c2459 if (sc->sc_ah->caldata) in ath_tx_complete()
2460 set_bit(PAPRD_PACKET_SENT, &sc->sc_ah->caldata->cal_flags); in ath_tx_complete()
/linux-6.1.9/Documentation/devicetree/bindings/net/wireless/
Dmarvell-8xxx.txt19 - marvell,caldata* : A series of properties with marvell,caldata prefix,
24 "marvell,caldata-txpwrlimit-2g" (length = 566).
25 "marvell,caldata-txpwrlimit-5g-sub0" (length = 502).
26 "marvell,caldata-txpwrlimit-5g-sub1" (length = 688).
27 "marvell,caldata-txpwrlimit-5g-sub2" (length = 750).
28 "marvell,caldata-txpwrlimit-5g-sub3" (length = 502).
/linux-6.1.9/drivers/thermal/
Dsun8i_thermal.c76 u16 *caldata, int callen);
201 u16 *caldata, int callen) in sun8i_h3_ths_calibrate() argument
205 if (!caldata[0] || callen < 2 * tmdev->chip->sensor_num) in sun8i_h3_ths_calibrate()
214 caldata[i] << offset); in sun8i_h3_ths_calibrate()
221 u16 *caldata, int callen) in sun50i_h6_ths_calibrate() argument
226 if (!caldata[0] || callen < 2 + 2 * tmdev->chip->sensor_num) in sun50i_h6_ths_calibrate()
245 ft_temp = (caldata[0] & FT_TEMP_MASK) * 100; in sun50i_h6_ths_calibrate()
248 int sensor_reg = caldata[i + 1] & TEMP_CALIB_MASK; in sun50i_h6_ths_calibrate()
285 u16 *caldata; in sun8i_ths_calibrate() local
309 caldata = nvmem_cell_read(calcell, &callen); in sun8i_ths_calibrate()
[all …]
/linux-6.1.9/drivers/net/wireless/mediatek/mt76/mt76x0/
Deeprom.c95 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()
/linux-6.1.9/drivers/iio/imu/bno055/
Dbno055.c350 static int bno055_init(struct bno055_priv *priv, const u8 *caldata, int len) in bno055_init() argument
374 if (caldata) { in bno055_init()
375 ret = bno055_calibration_load(priv, caldata, len); in bno055_init()
387 u8 caldata[BNO055_CALDATA_LEN]; in bno055_operation_mode_set() local
399 ret = regmap_bulk_read(priv->regmap, BNO055_CALDATA_START, caldata, in bno055_operation_mode_set()
408 ret = bno055_init(priv, caldata, BNO055_CALDATA_LEN); in bno055_operation_mode_set()
1554 const struct firmware *caldata = NULL; in bno055_probe() local
1638 ret = request_firmware(&caldata, fw_name_buf, dev); in bno055_probe()
1641 ret = request_firmware(&caldata, BNO055_FW_GENERIC_NAME, dev); in bno055_probe()
1646 ret = bno055_init(priv, caldata->data, caldata->size); in bno055_probe()
[all …]
/linux-6.1.9/Documentation/iio/
Dbno055.rst44 bno055-caldata-0e7c26a33541515120204a35342b04ff.dat
45 bno055-caldata.dat
/linux-6.1.9/Documentation/devicetree/bindings/mtd/partitions/
Dbrcm,bcm963xx-imagetag.txt36 caldata@7e0000 {
/linux-6.1.9/arch/arm/boot/dts/
Drk3288-veyron-jerry.dts51 marvell,caldata-txpwrlimit-2g = /bits/ 8 <
87 marvell,caldata-txpwrlimit-5g-sub0 = /bits/ 8 <
121 marvell,caldata-txpwrlimit-5g-sub1 = /bits/ 8 <
167 marvell,caldata-txpwrlimit-5g-sub2 = /bits/ 8 <
/linux-6.1.9/drivers/net/wireless/ath/ath10k/
Dpci.c3038 u8 *caldata = NULL; in ath10k_pci_hif_fetch_cal_eeprom() local
3046 caldata = kmalloc(calsize, GFP_KERNEL); in ath10k_pci_hif_fetch_cal_eeprom()
3047 if (!caldata) in ath10k_pci_hif_fetch_cal_eeprom()
3053 ret = ath10k_pci_read_eeprom(ar, i, &caldata[i]); in ath10k_pci_hif_fetch_cal_eeprom()
3058 if (!ath10k_pci_validate_cal(caldata, calsize)) in ath10k_pci_hif_fetch_cal_eeprom()
3061 *data = caldata; in ath10k_pci_hif_fetch_cal_eeprom()
3067 kfree(caldata); in ath10k_pci_hif_fetch_cal_eeprom()

12