Lines Matching refs:len
38 atomic_t len; /* length of written data */ member
72 size_t len; in printk_safe_log_store() local
76 len = atomic_read(&s->len); in printk_safe_log_store()
79 if (len >= sizeof(s->buffer) - 1) { in printk_safe_log_store()
89 if (!len) in printk_safe_log_store()
93 add = vscnprintf(s->buffer + len, sizeof(s->buffer) - len, fmt, ap); in printk_safe_log_store()
103 if (atomic_cmpxchg(&s->len, len, len + add) != len) in printk_safe_log_store()
110 static inline void printk_safe_flush_line(const char *text, int len) in printk_safe_flush_line() argument
118 printk_deferred("%.*s", len, text); in printk_safe_flush_line()
122 static int printk_safe_flush_buffer(const char *start, size_t len) in printk_safe_flush_buffer() argument
128 end = start + len; in printk_safe_flush_buffer()
165 return len; in printk_safe_flush_buffer()
187 size_t len; in __printk_safe_flush() local
201 len = atomic_read(&s->len); in __printk_safe_flush()
209 if ((i && i >= len) || len > sizeof(s->buffer)) { in __printk_safe_flush()
213 len = 0; in __printk_safe_flush()
216 if (!len) in __printk_safe_flush()
221 i += printk_safe_flush_buffer(s->buffer + i, len - i); in __printk_safe_flush()
229 if (atomic_cmpxchg(&s->len, len, 0) != len) in __printk_safe_flush()
369 int len; in vprintk_func() local
371 len = vprintk_store(0, LOGLEVEL_DEFAULT, NULL, 0, fmt, args); in vprintk_func()
374 return len; in vprintk_func()