Lines Matching full:mi

36 minstrel_ht_is_sample_rate(struct minstrel_ht_sta *mi, int idx)  in minstrel_ht_is_sample_rate()  argument
40 for (type = 0; type < ARRAY_SIZE(mi->sample); type++) in minstrel_ht_is_sample_rate()
42 if (mi->sample[type].cur_sample_rates[i] == idx) in minstrel_ht_is_sample_rate()
48 minstrel_ht_stats_dump(struct minstrel_ht_sta *mi, int i, char *p) in minstrel_ht_stats_dump() argument
56 if (!mi->supported[i]) in minstrel_ht_stats_dump()
70 struct minstrel_rate_stats *mrs = &mi->groups[i].rates[j]; in minstrel_ht_stats_dump()
74 if (!(mi->supported[i] & BIT(j))) in minstrel_ht_stats_dump()
94 *(p++) = (idx == mi->max_tp_rate[0]) ? 'A' : ' '; in minstrel_ht_stats_dump()
95 *(p++) = (idx == mi->max_tp_rate[1]) ? 'B' : ' '; in minstrel_ht_stats_dump()
96 *(p++) = (idx == mi->max_tp_rate[2]) ? 'C' : ' '; in minstrel_ht_stats_dump()
97 *(p++) = (idx == mi->max_tp_rate[3]) ? 'D' : ' '; in minstrel_ht_stats_dump()
98 *(p++) = (idx == mi->max_prob_rate) ? 'P' : ' '; in minstrel_ht_stats_dump()
99 *(p++) = minstrel_ht_is_sample_rate(mi, idx) ? 'S' : ' '; in minstrel_ht_stats_dump()
124 tp_max = minstrel_ht_get_tp_avg(mi, i, j, MINSTREL_FRAC(100, 100)); in minstrel_ht_stats_dump()
125 tp_avg = minstrel_ht_get_tp_avg(mi, i, j, mrs->prob_avg); in minstrel_ht_stats_dump()
147 struct minstrel_ht_sta *mi = inode->i_private; in minstrel_ht_stats_open() local
165 p = minstrel_ht_stats_dump(mi, MINSTREL_CCK_GROUP, p); in minstrel_ht_stats_open()
167 p = minstrel_ht_stats_dump(mi, i, p); in minstrel_ht_stats_open()
168 for (i++; i < ARRAY_SIZE(mi->groups); i++) in minstrel_ht_stats_open()
169 p = minstrel_ht_stats_dump(mi, i, p); in minstrel_ht_stats_open()
173 max(0, (int) mi->total_packets - (int) mi->sample_packets), in minstrel_ht_stats_open()
174 mi->sample_packets); in minstrel_ht_stats_open()
175 if (mi->avg_ampdu_len) in minstrel_ht_stats_open()
177 MINSTREL_TRUNC(mi->avg_ampdu_len), in minstrel_ht_stats_open()
178 MINSTREL_TRUNC(mi->avg_ampdu_len * 10) % 10); in minstrel_ht_stats_open()
194 minstrel_ht_stats_csv_dump(struct minstrel_ht_sta *mi, int i, char *p) in minstrel_ht_stats_csv_dump() argument
202 if (!mi->supported[i]) in minstrel_ht_stats_csv_dump()
216 struct minstrel_rate_stats *mrs = &mi->groups[i].rates[j]; in minstrel_ht_stats_csv_dump()
220 if (!(mi->supported[i] & BIT(j))) in minstrel_ht_stats_csv_dump()
239 p += sprintf(p, "%s" ,((idx == mi->max_tp_rate[0]) ? "A" : "")); in minstrel_ht_stats_csv_dump()
240 p += sprintf(p, "%s" ,((idx == mi->max_tp_rate[1]) ? "B" : "")); in minstrel_ht_stats_csv_dump()
241 p += sprintf(p, "%s" ,((idx == mi->max_tp_rate[2]) ? "C" : "")); in minstrel_ht_stats_csv_dump()
242 p += sprintf(p, "%s" ,((idx == mi->max_tp_rate[3]) ? "D" : "")); in minstrel_ht_stats_csv_dump()
243 p += sprintf(p, "%s" ,((idx == mi->max_prob_rate) ? "P" : "")); in minstrel_ht_stats_csv_dump()
244 p += sprintf(p, "%s", (minstrel_ht_is_sample_rate(mi, idx) ? "S" : "")); in minstrel_ht_stats_csv_dump()
268 tp_max = minstrel_ht_get_tp_avg(mi, i, j, MINSTREL_FRAC(100, 100)); in minstrel_ht_stats_csv_dump()
269 tp_avg = minstrel_ht_get_tp_avg(mi, i, j, mrs->prob_avg); in minstrel_ht_stats_csv_dump()
283 max(0, (int) mi->total_packets - in minstrel_ht_stats_csv_dump()
284 (int) mi->sample_packets), in minstrel_ht_stats_csv_dump()
285 mi->sample_packets, in minstrel_ht_stats_csv_dump()
286 MINSTREL_TRUNC(mi->avg_ampdu_len), in minstrel_ht_stats_csv_dump()
287 MINSTREL_TRUNC(mi->avg_ampdu_len * 10) % 10); in minstrel_ht_stats_csv_dump()
296 struct minstrel_ht_sta *mi = inode->i_private; in minstrel_ht_stats_csv_open() local
309 p = minstrel_ht_stats_csv_dump(mi, MINSTREL_CCK_GROUP, p); in minstrel_ht_stats_csv_open()
311 p = minstrel_ht_stats_csv_dump(mi, i, p); in minstrel_ht_stats_csv_open()
312 for (i++; i < ARRAY_SIZE(mi->groups); i++) in minstrel_ht_stats_csv_open()
313 p = minstrel_ht_stats_csv_dump(mi, i, p); in minstrel_ht_stats_csv_open()