Searched refs:wctxt (Results 1 – 4 of 4) sorted by relevance
/linux/kernel/printk/ |
H A D | nbcon.c | 772 bool nbcon_can_proceed(struct nbcon_write_context *wctxt) in nbcon_can_proceed() argument 774 struct nbcon_context *ctxt = &ACCESS_PRIVATE(wctxt, ctxt); in nbcon_can_proceed() 834 static void nbcon_write_context_set_buf(struct nbcon_write_context *wctxt, in nbcon_write_context_set_buf() argument 837 struct nbcon_context *ctxt = &ACCESS_PRIVATE(wctxt, ctxt); in nbcon_write_context_set_buf() 841 wctxt->outbuf = buf; in nbcon_write_context_set_buf() 842 wctxt->len = len; in nbcon_write_context_set_buf() 844 wctxt->unsafe_takeover = cur.unsafe_takeover; in nbcon_write_context_set_buf() 859 bool nbcon_enter_unsafe(struct nbcon_write_context *wctxt) in nbcon_enter_unsafe() argument 861 struct nbcon_context *ctxt = &ACCESS_PRIVATE(wctxt, ctxt); in nbcon_enter_unsafe() 866 nbcon_write_context_set_buf(wctxt, NULL, 0); in nbcon_enter_unsafe() [all …]
|
/linux/include/linux/ |
H A D | console.h | 384 void (*write_atomic)(struct console *con, struct nbcon_write_context *wctxt); 415 void (*write_thread)(struct console *con, struct nbcon_write_context *wctxt); 604 extern bool nbcon_can_proceed(struct nbcon_write_context *wctxt); 605 extern bool nbcon_enter_unsafe(struct nbcon_write_context *wctxt); 606 extern bool nbcon_exit_unsafe(struct nbcon_write_context *wctxt); 607 extern void nbcon_reacquire_nobuf(struct nbcon_write_context *wctxt); 611 static inline bool nbcon_can_proceed(struct nbcon_write_context *wctxt) { return false; } in nbcon_can_proceed() argument 612 static inline bool nbcon_enter_unsafe(struct nbcon_write_context *wctxt) { return false; } in nbcon_enter_unsafe() argument 613 static inline bool nbcon_exit_unsafe(struct nbcon_write_context *wctxt) { return false; } in nbcon_exit_unsafe() argument 614 static inline void nbcon_reacquire_nobuf(struct nbcon_write_context *wctxt) { } in nbcon_reacquire_nobuf() argument
|
/linux/drivers/tty/serial/ |
H A D | imx.c | 2103 struct nbcon_write_context *wctxt) in imx_uart_console_write_atomic() argument 2110 if (!nbcon_enter_unsafe(wctxt)) in imx_uart_console_write_atomic() 2129 uart_console_write(port, wctxt->outbuf, wctxt->len, in imx_uart_console_write_atomic() 2140 nbcon_exit_unsafe(wctxt); in imx_uart_console_write_atomic() 2144 struct nbcon_write_context *wctxt) in imx_uart_console_write_thread() argument 2151 if (!nbcon_enter_unsafe(wctxt)) in imx_uart_console_write_thread() 2168 if (nbcon_exit_unsafe(wctxt)) { in imx_uart_console_write_thread() 2169 int len = READ_ONCE(wctxt->len); in imx_uart_console_write_thread() 2184 if (!nbcon_enter_unsafe(wctxt)) in imx_uart_console_write_thread() 2187 uart_console_write(port, wctxt->outbuf + i, 1, in imx_uart_console_write_thread() [all …]
|
/linux/drivers/gpu/drm/clients/ |
H A D | drm_log.c | 348 static void drm_log_write_thread(struct console *con, struct nbcon_write_context *wctxt) in drm_log_write_thread() argument 361 drm_log_draw_kmsg_record(&dlog->scanout[i], wctxt->outbuf, wctxt->len); in drm_log_write_thread()
|