Lines Matching refs:buf

89 	char buf[16 * NUM_WLAN_STA_FLAGS], *pos = buf;  in sta_flags_read()  local
90 char *end = buf + sizeof(buf) - 1; in sta_flags_read()
102 return simple_read_from_buffer(userbuf, count, ppos, buf, strlen(buf)); in sta_flags_read()
111 char buf[17*IEEE80211_NUM_ACS], *p = buf; in sta_num_ps_buf_frames_read() local
115 p += scnprintf(p, sizeof(buf)+buf-p, "AC%d: %d\n", ac, in sta_num_ps_buf_frames_read()
118 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_num_ps_buf_frames_read()
125 char buf[15*IEEE80211_NUM_TIDS], *p = buf; in sta_last_seq_ctrl_read() local
129 p += scnprintf(p, sizeof(buf)+buf-p, "%x ", in sta_last_seq_ctrl_read()
131 p += scnprintf(p, sizeof(buf)+buf-p, "\n"); in sta_last_seq_ctrl_read()
132 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_last_seq_ctrl_read()
144 char *buf = kzalloc(bufsz, GFP_KERNEL), *p = buf; in sta_aqm_read() local
149 if (!buf) in sta_aqm_read()
156 bufsz+buf-p, in sta_aqm_read()
162 bufsz+buf-p, in sta_aqm_read()
167 p += scnprintf(p, bufsz+buf-p, in sta_aqm_read()
189 rv = simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_aqm_read()
190 kfree(buf); in sta_aqm_read()
198 char buf[71 + IEEE80211_NUM_TIDS * 40], *p = buf; in sta_agg_status_read() local
206 p += scnprintf(p, sizeof(buf) + buf - p, "next dialog_token: %#02x\n", in sta_agg_status_read()
208 p += scnprintf(p, sizeof(buf) + buf - p, in sta_agg_status_read()
218 p += scnprintf(p, sizeof(buf) + buf - p, "%02d", i); in sta_agg_status_read()
219 p += scnprintf(p, sizeof(buf) + buf - p, "\t\t%x", in sta_agg_status_read()
221 p += scnprintf(p, sizeof(buf) + buf - p, "\t%#.2x", in sta_agg_status_read()
224 p += scnprintf(p, sizeof(buf) + buf - p, "\t%#.3x", in sta_agg_status_read()
227 p += scnprintf(p, sizeof(buf) + buf - p, "\t\t%x", !!tid_tx); in sta_agg_status_read()
228 p += scnprintf(p, sizeof(buf) + buf - p, "\t%#.2x", in sta_agg_status_read()
230 p += scnprintf(p, sizeof(buf) + buf - p, "\t%03d", in sta_agg_status_read()
232 p += scnprintf(p, sizeof(buf) + buf - p, "\n"); in sta_agg_status_read()
236 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_agg_status_read()
242 char _buf[25] = {}, *buf = _buf; in sta_agg_status_write() local
252 if (copy_from_user(buf, userbuf, count)) in sta_agg_status_write()
255 buf[sizeof(_buf) - 1] = '\0'; in sta_agg_status_write()
256 pos = buf; in sta_agg_status_write()
257 buf = strsep(&pos, " "); in sta_agg_status_write()
258 if (!buf) in sta_agg_status_write()
261 if (!strcmp(buf, "tx")) in sta_agg_status_write()
263 else if (!strcmp(buf, "rx")) in sta_agg_status_write()
268 buf = strsep(&pos, " "); in sta_agg_status_write()
269 if (!buf) in sta_agg_status_write()
271 if (!strcmp(buf, "start")) { in sta_agg_status_write()
275 } else if (!strcmp(buf, "stop")) { in sta_agg_status_write()
281 buf = strsep(&pos, " "); in sta_agg_status_write()
282 if (!buf) in sta_agg_status_write()
284 if (sscanf(buf, "timeout=%d", &timeout) == 1) { in sta_agg_status_write()
285 buf = strsep(&pos, " "); in sta_agg_status_write()
286 if (!buf || !tx || !start) in sta_agg_status_write()
290 ret = kstrtoul(buf, 0, &tid); in sta_agg_status_write()
316 p += scnprintf(p, sizeof(buf)+buf-p, "\t" _str "\n"); \ in sta_ht_capa_read()
318 char buf[512], *p = buf; in sta_ht_capa_read() local
323 p += scnprintf(p, sizeof(buf) + buf - p, "ht %ssupported\n", in sta_ht_capa_read()
326 p += scnprintf(p, sizeof(buf)+buf-p, "cap: %#.4x\n", htc->cap); in sta_ht_capa_read()
368 p += scnprintf(p, sizeof(buf)+buf-p, "ampdu factor/density: %d/%d\n", in sta_ht_capa_read()
370 p += scnprintf(p, sizeof(buf)+buf-p, "MCS mask:"); in sta_ht_capa_read()
373 p += scnprintf(p, sizeof(buf)+buf-p, " %.2x", in sta_ht_capa_read()
375 p += scnprintf(p, sizeof(buf)+buf-p, "\n"); in sta_ht_capa_read()
379 p += scnprintf(p, sizeof(buf)+buf-p, in sta_ht_capa_read()
384 p += scnprintf(p, sizeof(buf)+buf-p, "MCS tx params: %x\n", in sta_ht_capa_read()
388 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_ht_capa_read()
395 char buf[512], *p = buf; in sta_vht_capa_read() local
399 p += scnprintf(p, sizeof(buf) + buf - p, "VHT %ssupported\n", in sta_vht_capa_read()
402 p += scnprintf(p, sizeof(buf) + buf - p, "cap: %#.8x\n", in sta_vht_capa_read()
407 p += scnprintf(p, sizeof(buf) + buf - p, \ in sta_vht_capa_read()
413 p += scnprintf(p, sizeof(buf) + buf - p, in sta_vht_capa_read()
417 p += scnprintf(p, sizeof(buf) + buf - p, in sta_vht_capa_read()
421 p += scnprintf(p, sizeof(buf) + buf - p, in sta_vht_capa_read()
425 p += scnprintf(p, sizeof(buf) + buf - p, in sta_vht_capa_read()
430 p += scnprintf(p, sizeof(buf) + buf - p, in sta_vht_capa_read()
434 p += scnprintf(p, sizeof(buf) + buf - p, in sta_vht_capa_read()
438 p += scnprintf(p, sizeof(buf) + buf - p, in sta_vht_capa_read()
442 p += scnprintf(p, sizeof(buf) + buf - p, in sta_vht_capa_read()
450 p += scnprintf(p, sizeof(buf) + buf - p, in sta_vht_capa_read()
454 p += scnprintf(p, sizeof(buf) + buf - p, in sta_vht_capa_read()
458 p += scnprintf(p, sizeof(buf) + buf - p, in sta_vht_capa_read()
466 p += scnprintf(p, sizeof(buf) + buf - p, in sta_vht_capa_read()
472 p += scnprintf(p, sizeof(buf) + buf - p, in sta_vht_capa_read()
478 p += scnprintf(p, sizeof(buf)+buf-p, "RX MCS: %.4x\n", in sta_vht_capa_read()
481 p += scnprintf(p, sizeof(buf)+buf-p, in sta_vht_capa_read()
484 p += scnprintf(p, sizeof(buf)+buf-p, "TX MCS: %.4x\n", in sta_vht_capa_read()
487 p += scnprintf(p, sizeof(buf)+buf-p, in sta_vht_capa_read()
492 return simple_read_from_buffer(userbuf, count, ppos, buf, p - buf); in sta_vht_capa_read()