Lines Matching defs:buf

24 	char buf[DEBUGFS_FORMAT_BUFFER_SIZE];
28 res = vscnprintf(buf, sizeof(buf), fmt, args);
31 return simple_read_from_buffer(userbuf, count, ppos, buf, res);
82 char buf[200];
88 len = scnprintf(buf, sizeof(buf),
113 buf, len);
122 char buf[100];
124 if (count >= sizeof(buf))
127 if (copy_from_user(buf, user_buf, count))
130 if (count && buf[count - 1] == '\n')
131 buf[count - 1] = '\0';
133 buf[count] = '\0';
135 if (sscanf(buf, "fq_limit %u", &local->fq.limit) == 1)
137 else if (sscanf(buf, "fq_memory_limit %u", &local->fq.memory_limit) == 1)
139 else if (sscanf(buf, "fq_quantum %u", &local->fq.quantum) == 1)
157 char buf[128] = {}, *pos, *end;
159 pos = buf;
160 end = pos + sizeof(buf) - 1;
169 return simple_read_from_buffer(user_buf, count, ppos, buf,
170 strlen(buf));
178 char buf[16];
180 if (count >= sizeof(buf))
183 if (copy_from_user(buf, user_buf, count))
186 if (count && buf[count - 1] == '\n')
187 buf[count - 1] = '\0';
189 buf[count] = '\0';
191 if (kstrtou16(buf, 0, &local->airtime_flags))
210 char buf[400];
213 len = scnprintf(buf, sizeof(buf),
228 buf, len);
237 char buf[100];
241 if (count >= sizeof(buf))
244 if (copy_from_user(buf, user_buf, count))
247 if (count && buf[count - 1] == '\n')
248 buf[count - 1] = '\0';
250 buf[count] = '\0';
252 if (sscanf(buf, "%u %u %u", &ac, &q_limit_low, &q_limit_high) != 3)
290 char buf[3];
293 len = scnprintf(buf, sizeof(buf), "%d\n", (int)local->force_tx_status);
296 buf, len);
305 char buf[3];
307 if (count >= sizeof(buf))
310 if (copy_from_user(buf, user_buf, count))
313 if (count && buf[count - 1] == '\n')
314 buf[count - 1] = '\0';
316 buf[count] = '\0';
318 if (buf[0] == '0' && buf[1] == '\0')
320 else if (buf[0] == '1' && buf[1] == '\0')
416 char *buf = kzalloc(bufsz, GFP_KERNEL);
417 char *pos = buf, *end = buf + bufsz - 1;
421 if (!buf)
435 rv = simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf));
436 kfree(buf);
446 char *buf;
452 buf = kzalloc(bufsz, GFP_KERNEL);
453 if (!buf)
456 pos = buf;
457 end = buf + bufsz - 1;
467 rv = simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf));
468 kfree(buf);
477 char buf[IEEE80211_MAX_QUEUES * 20];
482 res += sprintf(buf + res, "%02d: %#.8lx/%d\n", q,
487 return simple_read_from_buffer(user_buf, count, ppos, buf, res);
499 int (*printvalue)(struct ieee80211_low_level_stats *stats, char *buf,
503 char buf[20];
511 res = printvalue(&stats, buf, sizeof(buf));
512 return simple_read_from_buffer(userbuf, count, ppos, buf, res);
517 char *buf, int buflen) \
519 return scnprintf(buf, buflen, "%u\n", stats->name); \