• Home
  • Raw
  • Download

Lines Matching refs:len

28 static bool seq_buf_can_fit(struct seq_buf *s, size_t len)  in seq_buf_can_fit()  argument
30 return s->len + len <= s->size; in seq_buf_can_fit()
42 unsigned int len = seq_buf_used(s); in seq_buf_print_seq() local
44 return seq_write(m, s->buffer, len); in seq_buf_print_seq()
59 int len; in seq_buf_vprintf() local
63 if (s->len < s->size) { in seq_buf_vprintf()
64 len = vsnprintf(s->buffer + s->len, s->size - s->len, fmt, args); in seq_buf_vprintf()
65 if (s->len + len < s->size) { in seq_buf_vprintf()
66 s->len += len; in seq_buf_vprintf()
115 unsigned int len = seq_buf_buffer_left(s); in seq_buf_bprintf() local
120 if (s->len < s->size) { in seq_buf_bprintf()
121 ret = bstr_printf(s->buffer + s->len, len, fmt, binary); in seq_buf_bprintf()
122 if (s->len + ret < s->size) { in seq_buf_bprintf()
123 s->len += ret; in seq_buf_bprintf()
143 size_t len = strlen(str); in seq_buf_puts() local
148 len += 1; in seq_buf_puts()
150 if (seq_buf_can_fit(s, len)) { in seq_buf_puts()
151 memcpy(s->buffer + s->len, str, len); in seq_buf_puts()
153 s->len += len - 1; in seq_buf_puts()
174 s->buffer[s->len++] = c; in seq_buf_putc()
193 int seq_buf_putmem(struct seq_buf *s, const void *mem, unsigned int len) in seq_buf_putmem() argument
197 if (seq_buf_can_fit(s, len)) { in seq_buf_putmem()
198 memcpy(s->buffer + s->len, mem, len); in seq_buf_putmem()
199 s->len += len; in seq_buf_putmem()
222 unsigned int len) argument
231 while (len) {
232 start_len = min(len, HEX_CHARS - 1);
241 if (WARN_ON_ONCE(j == 0 || j/2 > len))
245 len -= j / 2;
308 int len; local
314 len = seq_buf_used(s);
316 if (len <= s->readpos)
319 len -= s->readpos;
320 if (cnt > len)
321 cnt = len;