• Home
  • Raw
  • Download

Lines Matching refs:s

344 int seq_escape(struct seq_file *m, const char *s, const char *esc)  in seq_escape()  argument
350 for (p = m->buf + m->count; (c = *s) != '\0' && p < end; s++) { in seq_escape()
400 char *mangle_path(char *s, char *p, char *esc) in mangle_path() argument
402 while (s <= p) { in mangle_path()
405 return s; in mangle_path()
407 *s++ = c; in mangle_path()
408 } else if (s + 4 > p) { in mangle_path()
411 *s++ = '\\'; in mangle_path()
412 *s++ = '0' + ((c & 0300) >> 6); in mangle_path()
413 *s++ = '0' + ((c & 070) >> 3); in mangle_path()
414 *s++ = '0' + (c & 07); in mangle_path()
433 char *s = m->buf + m->count; in seq_path() local
434 char *p = d_path(path, s, m->size - m->count); in seq_path()
436 s = mangle_path(s, p, esc); in seq_path()
437 if (s) { in seq_path()
439 m->count = s - m->buf; in seq_path()
440 return s - p; in seq_path()
459 char *s = m->buf + m->count; in seq_path_root() local
463 p = __d_path(path, root, s, m->size - m->count); in seq_path_root()
467 s = mangle_path(s, p, esc); in seq_path_root()
468 if (s) { in seq_path_root()
470 m->count = s - m->buf; in seq_path_root()
485 char *s = m->buf + m->count; in seq_dentry() local
486 char *p = dentry_path(dentry, s, m->size - m->count); in seq_dentry()
488 s = mangle_path(s, p, esc); in seq_dentry()
489 if (s) { in seq_dentry()
491 m->count = s - m->buf; in seq_dentry()
492 return s - p; in seq_dentry()
630 int seq_puts(struct seq_file *m, const char *s) in seq_puts() argument
632 int len = strlen(s); in seq_puts()
634 memcpy(m->buf + m->count, s, len); in seq_puts()