• Home
  • Raw
  • Download

Lines Matching refs:buf

103 	if (!m->buf) {  in traverse()
104 m->buf = seq_buf_alloc(m->size = PAGE_SIZE); in traverse()
105 if (!m->buf) in traverse()
138 kvfree(m->buf); in traverse()
140 m->buf = seq_buf_alloc(m->size <<= 1); in traverse()
141 return !m->buf ? -ENOMEM : -EAGAIN; in traverse()
153 ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) in seq_read() argument
203 if (!m->buf) { in seq_read()
204 m->buf = seq_buf_alloc(m->size = PAGE_SIZE); in seq_read()
205 if (!m->buf) in seq_read()
211 err = copy_to_user(buf, m->buf + m->from, n); in seq_read()
217 buf += n; in seq_read()
241 kvfree(m->buf); in seq_read()
243 m->buf = seq_buf_alloc(m->size <<= 1); in seq_read()
244 if (!m->buf) in seq_read()
277 err = copy_to_user(buf, m->buf, n); in seq_read()
360 kvfree(m->buf); in seq_release()
378 char *buf; in seq_escape() local
379 size_t size = seq_get_buf(m, &buf); in seq_escape()
382 ret = string_escape_str(s, buf, size, ESCAPE_OCTAL, esc); in seq_escape()
389 char *buf; in seq_escape_mem_ascii() local
390 size_t size = seq_get_buf(m, &buf); in seq_escape_mem_ascii()
393 ret = string_escape_mem_ascii(src, isz, buf, size); in seq_escape_mem_ascii()
403 len = vsnprintf(m->buf + m->count, m->size - m->count, f, args); in seq_vprintf()
466 char *buf; in seq_path() local
467 size_t size = seq_get_buf(m, &buf); in seq_path()
471 char *p = d_path(path, buf, size); in seq_path()
473 char *end = mangle_path(buf, p, esc); in seq_path()
475 res = end - buf; in seq_path()
504 char *buf; in seq_path_root() local
505 size_t size = seq_get_buf(m, &buf); in seq_path_root()
511 p = __d_path(path, root, buf, size); in seq_path_root()
516 char *end = mangle_path(buf, p, esc); in seq_path_root()
518 res = end - buf; in seq_path_root()
533 char *buf; in seq_dentry() local
534 size_t size = seq_get_buf(m, &buf); in seq_dentry()
538 char *p = dentry_path(dentry, buf, size); in seq_dentry()
540 char *end = mangle_path(buf, p, esc); in seq_dentry()
542 res = end - buf; in seq_dentry()
590 char *buf = seq_buf_alloc(size); in single_open_size() local
592 if (!buf) in single_open_size()
596 kvfree(buf); in single_open_size()
599 ((struct seq_file *)file->private_data)->buf = buf; in single_open_size()
662 m->buf[m->count++] = c; in seq_putc()
674 memcpy(m->buf + m->count, s, len); in seq_puts()
712 len = num_to_str(m->buf + m->count, m->size - m->count, num, width); in seq_put_decimal_ull_width()
770 m->buf[m->count + i] = hex_asc[0xf & v]; in seq_put_hex_ll()
794 m->buf[m->count++] = '-'; in seq_put_decimal_ll()
799 m->buf[m->count++] = num + '0'; in seq_put_decimal_ll()
803 len = num_to_str(m->buf + m->count, m->size - m->count, num, 0); in seq_put_decimal_ll()
826 memcpy(seq->buf + seq->count, data, len); in seq_write()
848 memset(m->buf + m->count, ' ', size); in seq_pad()
858 int rowsize, int groupsize, const void *buf, size_t len, in seq_hex_dump() argument
861 const u8 *ptr = buf; in seq_hex_dump()