Lines Matching refs:buf
91 static char *ddebug_describe_flags(struct _ddebug *dp, char *buf, in ddebug_describe_flags() argument
94 char *p = buf; in ddebug_describe_flags()
101 if (p == buf) in ddebug_describe_flags()
105 return buf; in ddebug_describe_flags()
222 static int ddebug_tokenize(char *buf, char *words[], int maxwords) in ddebug_tokenize() argument
226 while (*buf) { in ddebug_tokenize()
230 buf = skip_spaces(buf); in ddebug_tokenize()
231 if (!*buf) in ddebug_tokenize()
233 if (*buf == '#') in ddebug_tokenize()
237 if (*buf == '"' || *buf == '\'') { in ddebug_tokenize()
238 int quote = *buf++; in ddebug_tokenize()
239 for (end = buf; *end && *end != quote; end++) in ddebug_tokenize()
242 pr_err("unclosed quote: %s\n", buf); in ddebug_tokenize()
246 for (end = buf; *end && !isspace(*end); end++) in ddebug_tokenize()
248 BUG_ON(end == buf); in ddebug_tokenize()
258 words[nwords++] = buf; in ddebug_tokenize()
259 buf = end; in ddebug_tokenize()
521 static char *dynamic_emit_prefix(const struct _ddebug *desc, char *buf) in dynamic_emit_prefix() argument
526 *buf = '\0'; in dynamic_emit_prefix()
530 pos += snprintf(buf + pos, remaining(pos), "<intr> "); in dynamic_emit_prefix()
532 pos += snprintf(buf + pos, remaining(pos), "[%d] ", in dynamic_emit_prefix()
537 pos += snprintf(buf + pos, remaining(pos), "%s:", in dynamic_emit_prefix()
540 pos += snprintf(buf + pos, remaining(pos), "%s:", in dynamic_emit_prefix()
543 pos += snprintf(buf + pos, remaining(pos), "%d:", in dynamic_emit_prefix()
546 pos += snprintf(buf + pos, remaining(pos), " "); in dynamic_emit_prefix()
548 buf[PREFIX_SIZE - 1] = '\0'; in dynamic_emit_prefix()
550 return buf; in dynamic_emit_prefix()
557 char buf[PREFIX_SIZE]; in __dynamic_pr_debug() local
567 printk(KERN_DEBUG "%s%pV", dynamic_emit_prefix(descriptor, buf), &vaf); in __dynamic_pr_debug()
590 char buf[PREFIX_SIZE]; in __dynamic_dev_dbg() local
593 dynamic_emit_prefix(descriptor, buf), in __dynamic_dev_dbg()
619 char buf[PREFIX_SIZE]; in __dynamic_netdev_dbg() local
623 dynamic_emit_prefix(descriptor, buf), in __dynamic_netdev_dbg()
655 char buf[PREFIX_SIZE]; in __dynamic_ibdev_dbg() local
659 dynamic_emit_prefix(descriptor, buf), in __dynamic_ibdev_dbg()