• Home
  • Raw
  • Download

Lines Matching refs:count

27 	m->count = m->size;  in seq_set_overflow()
99 m->count = m->from = 0; in traverse()
118 m->count = 0; in traverse()
123 if (pos + m->count > offset) { in traverse()
125 m->count -= m->from; in traverse()
128 pos += m->count; in traverse()
129 m->count = 0; in traverse()
139 m->count = 0; in traverse()
183 m->count = 0; in seq_read()
195 m->count = 0; in seq_read()
209 if (m->count) { in seq_read()
210 n = min(m->count, size); in seq_read()
214 m->count -= n; in seq_read()
233 m->count = 0; in seq_read()
234 if (unlikely(!m->count)) { in seq_read()
238 if (m->count < m->size) in seq_read()
242 m->count = 0; in seq_read()
250 m->count = 0; in seq_read()
255 size_t offs = m->count; in seq_read()
266 if (m->count >= size) in seq_read()
270 m->count = offs; in seq_read()
276 n = min(m->count, size); in seq_read()
281 m->count -= n; in seq_read()
334 m->count = 0; in seq_lseek()
402 if (m->count < m->size) { in seq_vprintf()
403 len = vsnprintf(m->buf + m->count, m->size - m->count, f, args); in seq_vprintf()
404 if (m->count + len < m->size) { in seq_vprintf()
405 m->count += len; in seq_vprintf()
659 if (m->count >= m->size) in seq_putc()
662 m->buf[m->count++] = c; in seq_putc()
670 if (m->count + len >= m->size) { in seq_puts()
674 memcpy(m->buf + m->count, s, len); in seq_puts()
675 m->count += len; in seq_puts()
696 if (m->count + 2 >= m->size) /* we'll write 2 bytes at least */ in seq_put_decimal_ull_width()
709 if (m->count + width >= m->size) in seq_put_decimal_ull_width()
712 len = num_to_str(m->buf + m->count, m->size - m->count, num, width); in seq_put_decimal_ull_width()
716 m->count += len; in seq_put_decimal_ull_width()
764 if (m->count + len > m->size) { in seq_put_hex_ll()
770 m->buf[m->count + i] = hex_asc[0xf & v]; in seq_put_hex_ll()
773 m->count += len; in seq_put_hex_ll()
780 if (m->count + 3 >= m->size) /* we'll write 2 bytes at least */ in seq_put_decimal_ll()
790 if (m->count + 2 >= m->size) in seq_put_decimal_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()
807 m->count += len; in seq_put_decimal_ll()
825 if (seq->count + len < seq->size) { in seq_write()
826 memcpy(seq->buf + seq->count, data, len); in seq_write()
827 seq->count += len; in seq_write()
842 int size = m->pad_until - m->count; in seq_pad()
844 if (size + m->count > m->size) { in seq_pad()
848 memset(m->buf + m->count, ' ', size); in seq_pad()
849 m->count += size; in seq_pad()