Searched refs:ewma (Results 1 - 9 of 9) sorted by relevance

/linux-4.1.27/include/linux/
H A Daverage.h8 struct ewma { struct
14 extern void ewma_init(struct ewma *avg, unsigned long factor,
17 extern struct ewma *ewma_add(struct ewma *avg, unsigned long val);
25 static inline unsigned long ewma_read(const struct ewma *avg) ewma_read()
/linux-4.1.27/lib/
H A Daverage.c35 * Initialize the EWMA parameters for a given struct ewma @avg.
37 void ewma_init(struct ewma *avg, unsigned long factor, unsigned long weight) ewma_init()
54 struct ewma *ewma_add(struct ewma *avg, unsigned long val) ewma_add()
/linux-4.1.27/drivers/md/bcache/
H A Dutil.h444 #define ewma_add(ewma, val, weight, factor) \
446 (ewma) *= (weight) - 1; \
447 (ewma) += (val) << factor; \
448 (ewma) /= (weight); \
449 (ewma) >> factor; \
/linux-4.1.27/drivers/net/wireless/rt2x00/
H A Drt2x00link.c40 static inline int rt2x00link_get_avg_rssi(struct ewma *ewma) rt2x00link_get_avg_rssi() argument
44 avg = ewma_read(ewma); rt2x00link_get_avg_rssi()
H A Drt2x00.h288 struct ewma rssi_ant;
317 struct ewma avg_rssi;
/linux-4.1.27/net/mac80211/
H A Drc80211_minstrel.h12 #define EWMA_LEVEL 96 /* ewma weighting factor [/EWMA_DIV] */
H A Dsta_info.h386 struct ewma avg_signal;
391 struct ewma chain_signal_avg[IEEE80211_MAX_CHAINS];
/linux-4.1.27/drivers/net/
H A Dvirtio_net.c88 struct ewma mrg_avg_pkt_len;
603 static unsigned int get_mergeable_buf_len(struct ewma *avg_pkt_len) get_mergeable_buf_len()
1661 struct ewma *avg; mergeable_rx_buffer_size_show()
/linux-4.1.27/drivers/net/wireless/ath/ath5k/
H A Dath5k.h1436 struct ewma ah_beacon_rssi_avg;

Completed in 391 milliseconds