• Home
  • Raw
  • Download

Lines Matching refs:s

52 static void queue_flush_work(struct printk_safe_seq_buf *s)  in queue_flush_work()  argument
55 irq_work_queue(&s->work); in queue_flush_work()
68 static __printf(2, 0) int printk_safe_log_store(struct printk_safe_seq_buf *s, in printk_safe_log_store() argument
76 len = atomic_read(&s->len); in printk_safe_log_store()
79 if (len >= sizeof(s->buffer) - 1) { in printk_safe_log_store()
80 atomic_inc(&s->message_lost); in printk_safe_log_store()
81 queue_flush_work(s); 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()
106 queue_flush_work(s); in printk_safe_log_store()
168 static void report_message_lost(struct printk_safe_seq_buf *s) in report_message_lost() argument
170 int lost = atomic_xchg(&s->message_lost, 0); in report_message_lost()
184 struct printk_safe_seq_buf *s = 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()
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()
233 report_message_lost(s); in __printk_safe_flush()
292 struct printk_safe_seq_buf *s = this_cpu_ptr(&nmi_print_seq); in vprintk_nmi() local
294 return printk_safe_log_store(s, fmt, args); in vprintk_nmi()
344 struct printk_safe_seq_buf *s = this_cpu_ptr(&safe_print_seq); in vprintk_safe() local
346 return printk_safe_log_store(s, fmt, args); in vprintk_safe()
394 struct printk_safe_seq_buf *s; in printk_safe_init() local
396 s = &per_cpu(safe_print_seq, cpu); in printk_safe_init()
397 init_irq_work(&s->work, __printk_safe_flush); in printk_safe_init()
400 s = &per_cpu(nmi_print_seq, cpu); in printk_safe_init()
401 init_irq_work(&s->work, __printk_safe_flush); in printk_safe_init()