• Home
  • Raw
  • Download

Lines Matching refs:buf

78 	if (!m->buf) {  in traverse()
79 m->buf = kmalloc(m->size = PAGE_SIZE, GFP_KERNEL); in traverse()
80 if (!m->buf) in traverse()
118 kfree(m->buf); in traverse()
119 m->buf = kmalloc(m->size <<= 1, GFP_KERNEL); in traverse()
120 return !m->buf ? -ENOMEM : -EAGAIN; in traverse()
132 ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) in seq_read() argument
171 if (!m->buf) { in seq_read()
172 m->buf = kmalloc(m->size = PAGE_SIZE, GFP_KERNEL); in seq_read()
173 if (!m->buf) in seq_read()
179 err = copy_to_user(buf, m->buf + m->from, n); in seq_read()
185 buf += n; in seq_read()
212 kfree(m->buf); in seq_read()
213 m->buf = kmalloc(m->size <<= 1, GFP_KERNEL); in seq_read()
214 if (!m->buf) in seq_read()
244 err = copy_to_user(buf, m->buf, n); in seq_read()
328 kfree(m->buf); in seq_release()
346 char *end = m->buf + m->size; in seq_escape()
350 for (p = m->buf + m->count; (c = *s) != '\0' && p < end; s++) { in seq_escape()
365 m->count = p - m->buf; in seq_escape()
377 len = vsnprintf(m->buf + m->count, m->size - m->count, f, args); in seq_printf()
433 char *s = m->buf + m->count; in seq_path()
438 p = m->buf + m->count; in seq_path()
439 m->count = s - m->buf; in seq_path()
459 char *s = m->buf + m->count; in seq_path_root()
469 p = m->buf + m->count; in seq_path_root()
470 m->count = s - m->buf; in seq_path_root()
485 char *s = m->buf + m->count; in seq_dentry()
490 p = m->buf + m->count; in seq_dentry()
491 m->count = s - m->buf; in seq_dentry()
504 int len = bitmap_scnprintf(m->buf + m->count, in seq_bitmap()
520 int len = bitmap_scnlistprintf(m->buf + m->count, in seq_bitmap_list()
623 m->buf[m->count++] = c; in seq_putc()
634 memcpy(m->buf + m->count, s, len); in seq_puts()