Home
last modified time | relevance | path

Searched refs:MINSTREL_FRAC (Results 1 – 7 of 7) sorted by relevance

/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/ssv6xxx/smac/
H A Dssv_ht_rc.c73 mr->cur_prob = MINSTREL_FRAC(mr->success, mr->attempts); in minstrel_calc_rate_ewma()
98 if (mr->probability < MINSTREL_FRAC(1, 10)) { in minstrel_ht_calc_tp()
114 MINSTREL_FRAC(mi->ampdu_len, mi->ampdu_packets), EWMA_LEVEL); in rate_control_ht_sample()
152 MINSTREL_FRAC(3, 4)) || mr->probability > cur_prob) { in rate_control_ht_sample()
235 if (mr->probability < MINSTREL_FRAC(1, 10)) {
274 else if (mr->probability < MINSTREL_FRAC(20, 100)) in minstrel_ht_set_rate()
493 mi->avg_ampdu_len = MINSTREL_FRAC(1, 1); in ssv62xx_ht_rc_caps()
604 MINSTREL_FRAC(rate->success, rate->attempts) < in ssv6xxx_ht_report_handler()
605 MINSTREL_FRAC(20, 100)) in ssv6xxx_ht_report_handler()
609 MINSTREL_FRAC(rate2->success, rate2->attempts) < in ssv6xxx_ht_report_handler()
[all …]
H A Dssv_ht_rc.h21 #define MINSTREL_FRAC(val,div) (((val) << MINSTREL_SCALE) / div) macro
/OK3568_Linux_fs/kernel/net/mac80211/
H A Drc80211_minstrel.c82 if (mr->stats.prob_avg < MINSTREL_FRAC(10, 100)) in minstrel_get_tp_avg()
85 if (prob_avg > MINSTREL_FRAC(90, 100)) in minstrel_get_tp_avg()
86 return MINSTREL_TRUNC(100000 * (MINSTREL_FRAC(90, 100) / usecs)); in minstrel_get_tp_avg()
167 cur_prob = MINSTREL_FRAC(mrs->success, mrs->attempts); in minstrel_calc_rate_stats()
211 if (mrs->prob_avg > MINSTREL_FRAC(95, 100) || in minstrel_update_stats()
212 mrs->prob_avg < MINSTREL_FRAC(10, 100)) { in minstrel_update_stats()
232 if (mrs->prob_avg >= MINSTREL_FRAC(95, 100)) { in minstrel_update_stats()
411 (mi->r[ndx].stats.prob_avg > MINSTREL_FRAC(95, 100))) in minstrel_get_rate()
H A Drc80211_minstrel.h15 #define MINSTREL_FRAC(val, div) (((val) << MINSTREL_SCALE) / div) macro
30 #define MINSTREL_AVG_COEFF1 (MINSTREL_FRAC(1, 1) - \
H A Drc80211_minstrel_ht.c355 if (prob_avg < MINSTREL_FRAC(10, 100)) in minstrel_ht_get_tp_avg()
369 if (prob_avg > MINSTREL_FRAC(90, 100)) in minstrel_ht_get_tp_avg()
370 return MINSTREL_TRUNC(100000 * ((MINSTREL_FRAC(90, 100) * 1000) in minstrel_ht_get_tp_avg()
450 if (mrs->prob_avg > MINSTREL_FRAC(75, 100)) { in minstrel_ht_set_best_prob_rate()
627 faster_rate = mrs->prob_avg > MINSTREL_FRAC(75, 100); in minstrel_ht_rate_sample_switch()
695 MINSTREL_FRAC(mi->ampdu_len, mi->ampdu_packets), in minstrel_ht_update_stats()
1016 if (mrs->prob_avg < MINSTREL_FRAC(1, 10)) { in minstrel_calc_retransmit()
1073 if (mrs->prob_avg < MINSTREL_FRAC(20, 100) || !mrs->retry_count) { in minstrel_ht_set_rate()
1123 if (mi->groups[group].rates[rate].prob_avg < MINSTREL_FRAC(50, 100)) in minstrel_ht_get_max_amsdu_len()
1147 MINSTREL_FRAC(75, 100))) in minstrel_ht_get_max_amsdu_len()
[all …]
H A Drc80211_minstrel_debugfs.c92 tp_max = minstrel_get_tp_avg(mr, MINSTREL_FRAC(100,100)); in minstrel_stats_open()
149 tp_max = minstrel_get_tp_avg(mr, MINSTREL_FRAC(100,100)); in minstrel_stats_csv_open()
H A Drc80211_minstrel_ht_debugfs.c100 tp_max = minstrel_ht_get_tp_avg(mi, i, j, MINSTREL_FRAC(100, 100)); in minstrel_ht_stats_dump()
245 tp_max = minstrel_ht_get_tp_avg(mi, i, j, MINSTREL_FRAC(100, 100)); in minstrel_ht_stats_csv_dump()