Lines Matching refs:p
48 minstrel_ht_stats_dump(struct minstrel_ht_sta *mi, int i, char *p) in minstrel_ht_stats_dump() argument
57 return p; in minstrel_ht_stats_dump()
78 p += sprintf(p, "HT%c0 ", htmode); in minstrel_ht_stats_dump()
79 p += sprintf(p, "%cGI ", gimode); in minstrel_ht_stats_dump()
80 p += sprintf(p, "%d ", mg->streams); in minstrel_ht_stats_dump()
82 p += sprintf(p, "VHT%c0 ", htmode); in minstrel_ht_stats_dump()
83 p += sprintf(p, "%cGI ", gimode); in minstrel_ht_stats_dump()
84 p += sprintf(p, "%d ", mg->streams); in minstrel_ht_stats_dump()
86 p += sprintf(p, "OFDM "); in minstrel_ht_stats_dump()
87 p += sprintf(p, "1 "); in minstrel_ht_stats_dump()
89 p += sprintf(p, "CCK "); in minstrel_ht_stats_dump()
90 p += sprintf(p, "%cP ", j < 4 ? 'L' : 'S'); in minstrel_ht_stats_dump()
91 p += sprintf(p, "1 "); 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()
102 p += sprintf(p, " MCS%-2u", (mg->streams - 1) * 8 + j); in minstrel_ht_stats_dump()
104 p += sprintf(p, " MCS%-1u/%1u", j, mg->streams); in minstrel_ht_stats_dump()
113 p += sprintf(p, " %2u.%1uM", r / 10, r % 10); in minstrel_ht_stats_dump()
116 p += sprintf(p, " %3u ", idx); in minstrel_ht_stats_dump()
122 p += sprintf(p, "%6u ", tx_time); in minstrel_ht_stats_dump()
128 p += sprintf(p, "%4u.%1u %4u.%1u %3u.%1u" in minstrel_ht_stats_dump()
141 return p; in minstrel_ht_stats_dump()
150 char *p; in minstrel_ht_stats_open() local
157 p = ms->buf; in minstrel_ht_stats_open()
159 p += sprintf(p, "\n"); in minstrel_ht_stats_open()
160 p += sprintf(p, in minstrel_ht_stats_open()
162 p += sprintf(p, in minstrel_ht_stats_open()
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()
169 p = minstrel_ht_stats_dump(mi, i, p); in minstrel_ht_stats_open()
171 p += sprintf(p, "\nTotal packet count:: ideal %d " in minstrel_ht_stats_open()
176 p += sprintf(p, "Average # of aggregated frames per A-MPDU: %d.%d\n", in minstrel_ht_stats_open()
179 ms->len = p - ms->buf; 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
203 return p; in minstrel_ht_stats_csv_dump()
224 p += sprintf(p, "HT%c0,", htmode); in minstrel_ht_stats_csv_dump()
225 p += sprintf(p, "%cGI,", gimode); in minstrel_ht_stats_csv_dump()
226 p += sprintf(p, "%d,", mg->streams); in minstrel_ht_stats_csv_dump()
228 p += sprintf(p, "VHT%c0,", htmode); in minstrel_ht_stats_csv_dump()
229 p += sprintf(p, "%cGI,", gimode); in minstrel_ht_stats_csv_dump()
230 p += sprintf(p, "%d,", mg->streams); in minstrel_ht_stats_csv_dump()
232 p += sprintf(p, "OFDM,,1,"); in minstrel_ht_stats_csv_dump()
234 p += sprintf(p, "CCK,"); in minstrel_ht_stats_csv_dump()
235 p += sprintf(p, "%cP,", j < 4 ? 'L' : 'S'); in minstrel_ht_stats_csv_dump()
236 p += sprintf(p, "1,"); 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()
247 p += sprintf(p, ",MCS%-2u,", (mg->streams - 1) * 8 + j); in minstrel_ht_stats_csv_dump()
249 p += sprintf(p, ",MCS%-1u/%1u,", j, mg->streams); in minstrel_ht_stats_csv_dump()
258 p += sprintf(p, ",%2u.%1uM,", r / 10, r % 10); in minstrel_ht_stats_csv_dump()
261 p += sprintf(p, "%u,", idx); in minstrel_ht_stats_csv_dump()
266 p += sprintf(p, "%u,", tx_time); in minstrel_ht_stats_csv_dump()
272 p += sprintf(p, "%u.%u,%u.%u,%u.%u,%u,%u," in minstrel_ht_stats_csv_dump()
282 p += sprintf(p, "%d,%d,%d.%d\n", in minstrel_ht_stats_csv_dump()
290 return p; in minstrel_ht_stats_csv_dump()
299 char *p; in minstrel_ht_stats_csv_open() local
307 p = ms->buf; in minstrel_ht_stats_csv_open()
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()
313 p = minstrel_ht_stats_csv_dump(mi, i, p); in minstrel_ht_stats_csv_open()
315 ms->len = p - ms->buf; in minstrel_ht_stats_csv_open()