• Home
  • Raw
  • Download

Lines Matching refs:buf

101 	if (!m->buf) {  in traverse()
102 m->buf = seq_buf_alloc(m->size = PAGE_SIZE); in traverse()
103 if (!m->buf) in traverse()
136 kvfree(m->buf); in traverse()
138 m->buf = seq_buf_alloc(m->size <<= 1); in traverse()
139 return !m->buf ? -ENOMEM : -EAGAIN; in traverse()
151 ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) in seq_read() argument
153 struct iovec iov = { .iov_base = buf, .iov_len = size}; in seq_read()
209 if (!m->buf) { in seq_read_iter()
210 m->buf = seq_buf_alloc(m->size = PAGE_SIZE); in seq_read_iter()
211 if (!m->buf) in seq_read_iter()
216 n = copy_to_iter(m->buf + m->from, m->count, iter); in seq_read_iter()
243 kvfree(m->buf); in seq_read_iter()
245 m->buf = seq_buf_alloc(m->size <<= 1); in seq_read_iter()
246 if (!m->buf) in seq_read_iter()
281 n = copy_to_iter(m->buf, m->count, iter); in seq_read_iter()
355 kvfree(m->buf); in seq_release()
377 char *buf; in seq_escape_mem() local
378 size_t size = seq_get_buf(m, &buf); in seq_escape_mem()
381 ret = string_escape_mem(src, len, buf, size, flags, esc); in seq_escape_mem()
407 len = vsnprintf(m->buf + m->count, m->size - m->count, f, args); in seq_vprintf()
433 len = bstr_printf(m->buf + m->count, m->size - m->count, f, in seq_bprintf()
488 char *buf; in seq_path() local
489 size_t size = seq_get_buf(m, &buf); in seq_path()
493 char *p = d_path(path, buf, size); in seq_path()
495 char *end = mangle_path(buf, p, esc); in seq_path()
497 res = end - buf; in seq_path()
526 char *buf; in seq_path_root() local
527 size_t size = seq_get_buf(m, &buf); in seq_path_root()
533 p = __d_path(path, root, buf, size); in seq_path_root()
538 char *end = mangle_path(buf, p, esc); in seq_path_root()
540 res = end - buf; in seq_path_root()
555 char *buf; in seq_dentry() local
556 size_t size = seq_get_buf(m, &buf); in seq_dentry()
560 char *p = dentry_path(dentry, buf, size); in seq_dentry()
562 char *end = mangle_path(buf, p, esc); in seq_dentry()
564 res = end - buf; in seq_dentry()
612 char *buf = seq_buf_alloc(size); in single_open_size() local
614 if (!buf) in single_open_size()
618 kvfree(buf); in single_open_size()
621 ((struct seq_file *)file->private_data)->buf = buf; in single_open_size()
684 m->buf[m->count++] = c; in seq_putc()
696 memcpy(m->buf + m->count, s, len); in seq_puts()
735 len = num_to_str(m->buf + m->count, m->size - m->count, num, width); in seq_put_decimal_ull_width()
793 m->buf[m->count + i] = hex_asc[0xf & v]; in seq_put_hex_ll()
817 m->buf[m->count++] = '-'; in seq_put_decimal_ll()
822 m->buf[m->count++] = num + '0'; in seq_put_decimal_ll()
826 len = num_to_str(m->buf + m->count, m->size - m->count, num, 0); in seq_put_decimal_ll()
849 memcpy(seq->buf + seq->count, data, len); in seq_write()
871 memset(m->buf + m->count, ' ', size); in seq_pad()
881 int rowsize, int groupsize, const void *buf, size_t len, in seq_hex_dump() argument
884 const u8 *ptr = buf; in seq_hex_dump()