Lines Matching refs:buf

63 	char buf[121];  in sta_flags_read()  local
69 int res = scnprintf(buf, sizeof(buf), in sta_flags_read()
84 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in sta_flags_read()
93 char buf[17*IEEE80211_NUM_ACS], *p = buf; in sta_num_ps_buf_frames_read() local
97 p += scnprintf(p, sizeof(buf)+buf-p, "AC%d: %d\n", ac, in sta_num_ps_buf_frames_read()
100 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_num_ps_buf_frames_read()
121 char buf[100]; in sta_connected_time_read() local
128 res = scnprintf(buf, sizeof(buf), in sta_connected_time_read()
132 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in sta_connected_time_read()
141 char buf[15*IEEE80211_NUM_TIDS], *p = buf; in sta_last_seq_ctrl_read() local
145 p += scnprintf(p, sizeof(buf)+buf-p, "%x ", in sta_last_seq_ctrl_read()
147 p += scnprintf(p, sizeof(buf)+buf-p, "\n"); in sta_last_seq_ctrl_read()
148 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_last_seq_ctrl_read()
155 char buf[71 + IEEE80211_NUM_TIDS * 40], *p = buf; in sta_agg_status_read() local
163 p += scnprintf(p, sizeof(buf) + buf - p, "next dialog_token: %#02x\n", in sta_agg_status_read()
165 p += scnprintf(p, sizeof(buf) + buf - p, in sta_agg_status_read()
172 p += scnprintf(p, sizeof(buf) + buf - p, "%02d", i); in sta_agg_status_read()
173 p += scnprintf(p, sizeof(buf) + buf - p, "\t\t%x", !!tid_rx); in sta_agg_status_read()
174 p += scnprintf(p, sizeof(buf) + buf - p, "\t%#.2x", in sta_agg_status_read()
176 p += scnprintf(p, sizeof(buf) + buf - p, "\t%#.3x", in sta_agg_status_read()
179 p += scnprintf(p, sizeof(buf) + buf - p, "\t\t%x", !!tid_tx); in sta_agg_status_read()
180 p += scnprintf(p, sizeof(buf) + buf - p, "\t%#.2x", in sta_agg_status_read()
182 p += scnprintf(p, sizeof(buf) + buf - p, "\t%03d", in sta_agg_status_read()
184 p += scnprintf(p, sizeof(buf) + buf - p, "\n"); in sta_agg_status_read()
188 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_agg_status_read()
194 char _buf[12] = {}, *buf = _buf; in sta_agg_status_write() local
203 if (copy_from_user(buf, userbuf, count)) in sta_agg_status_write()
206 buf[sizeof(_buf) - 1] = '\0'; in sta_agg_status_write()
208 if (strncmp(buf, "tx ", 3) == 0) { in sta_agg_status_write()
209 buf += 3; in sta_agg_status_write()
211 } else if (strncmp(buf, "rx ", 3) == 0) { in sta_agg_status_write()
212 buf += 3; in sta_agg_status_write()
217 if (strncmp(buf, "start ", 6) == 0) { in sta_agg_status_write()
218 buf += 6; in sta_agg_status_write()
222 } else if (strncmp(buf, "stop ", 5) == 0) { in sta_agg_status_write()
223 buf += 5; in sta_agg_status_write()
228 ret = kstrtoul(buf, 0, &tid); in sta_agg_status_write()
256 p += scnprintf(p, sizeof(buf)+buf-p, "\t" _str "\n"); \ in sta_ht_capa_read()
258 char buf[512], *p = buf; in sta_ht_capa_read() local
263 p += scnprintf(p, sizeof(buf) + buf - p, "ht %ssupported\n", in sta_ht_capa_read()
266 p += scnprintf(p, sizeof(buf)+buf-p, "cap: %#.4x\n", htc->cap); in sta_ht_capa_read()
308 p += scnprintf(p, sizeof(buf)+buf-p, "ampdu factor/density: %d/%d\n", in sta_ht_capa_read()
310 p += scnprintf(p, sizeof(buf)+buf-p, "MCS mask:"); in sta_ht_capa_read()
313 p += scnprintf(p, sizeof(buf)+buf-p, " %.2x", in sta_ht_capa_read()
315 p += scnprintf(p, sizeof(buf)+buf-p, "\n"); in sta_ht_capa_read()
319 p += scnprintf(p, sizeof(buf)+buf-p, in sta_ht_capa_read()
324 p += scnprintf(p, sizeof(buf)+buf-p, "MCS tx params: %x\n", in sta_ht_capa_read()
328 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_ht_capa_read()
335 char buf[128], *p = buf; in sta_vht_capa_read() local
339 p += scnprintf(p, sizeof(buf) + buf - p, "VHT %ssupported\n", in sta_vht_capa_read()
342 p += scnprintf(p, sizeof(buf)+buf-p, "cap: %#.8x\n", vhtc->cap); in sta_vht_capa_read()
344 p += scnprintf(p, sizeof(buf)+buf-p, "RX MCS: %.4x\n", in sta_vht_capa_read()
347 p += scnprintf(p, sizeof(buf)+buf-p, in sta_vht_capa_read()
350 p += scnprintf(p, sizeof(buf)+buf-p, "TX MCS: %.4x\n", in sta_vht_capa_read()
353 p += scnprintf(p, sizeof(buf)+buf-p, in sta_vht_capa_read()
358 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_vht_capa_read()