• Home
  • Raw
  • Download

Lines Matching refs:size

27 	return m->count == m->size;  in seq_overflow()
32 m->count = m->size; in seq_set_overflow()
35 static void *seq_buf_alloc(unsigned long size) in seq_buf_alloc() argument
39 buf = kmalloc(size, GFP_KERNEL | __GFP_NOWARN); in seq_buf_alloc()
40 if (!buf && size > PAGE_SIZE) in seq_buf_alloc()
41 buf = vmalloc(size); in seq_buf_alloc()
111 m->buf = seq_buf_alloc(m->size = PAGE_SIZE); in traverse()
151 m->buf = seq_buf_alloc(m->size <<= 1); in traverse()
164 ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos) in seq_read() argument
206 m->buf = seq_buf_alloc(m->size = PAGE_SIZE); in seq_read()
212 n = min(m->count, size); in seq_read()
218 size -= n; in seq_read()
223 if (!size) in seq_read()
243 if (m->count < m->size) in seq_read()
247 m->buf = seq_buf_alloc(m->size <<= 1); in seq_read()
260 while (m->count < size) { in seq_read()
277 n = min(m->count, size); in seq_read()
380 char *end = m->buf + m->size; in seq_escape()
408 if (m->count < m->size) { in seq_vprintf()
409 len = vsnprintf(m->buf + m->count, m->size - m->count, f, args); in seq_vprintf()
410 if (m->count + len < m->size) { in seq_vprintf()
477 size_t size = seq_get_buf(m, &buf); in seq_path() local
480 if (size) { in seq_path()
481 char *p = d_path(path, buf, size); in seq_path()
501 size_t size = seq_get_buf(m, &buf); in seq_path_root() local
504 if (size) { in seq_path_root()
507 p = __d_path(path, root, buf, size); in seq_path_root()
530 size_t size = seq_get_buf(m, &buf); in seq_dentry() local
533 if (size) { in seq_dentry()
534 char *p = dentry_path(dentry, buf, size); in seq_dentry()
549 if (m->count < m->size) { in seq_bitmap()
551 m->size - m->count, bits, nr_bits); in seq_bitmap()
552 if (m->count + len < m->size) { in seq_bitmap()
565 if (m->count < m->size) { in seq_bitmap_list()
567 m->size - m->count, bits, nr_bits); in seq_bitmap_list()
568 if (m->count + len < m->size) { in seq_bitmap_list()
615 void *data, size_t size) in single_open_size() argument
617 char *buf = seq_buf_alloc(size); in single_open_size()
627 ((struct seq_file *)file->private_data)->size = size; in single_open_size()
686 if (m->count < m->size) { in seq_putc()
697 if (m->count + len < m->size) { in seq_puts()
719 if (m->count + 2 >= m->size) /* we'll write 2 bytes at least */ in seq_put_decimal_ull()
730 len = num_to_str(m->buf + m->count, m->size - m->count, num); in seq_put_decimal_ull()
745 if (m->count + 3 >= m->size) { in seq_put_decimal_ll()
769 if (seq->count + len < seq->size) { in seq_write()