Lines Matching refs:flags
318 unsigned long flags; in __down_trylock_console_sem() local
325 printk_safe_enter_irqsave(flags); in __down_trylock_console_sem()
327 printk_safe_exit_irqrestore(flags); in __down_trylock_console_sem()
338 unsigned long flags; in __up_console_sem() local
342 printk_safe_enter_irqsave(flags); in __up_console_sem()
344 printk_safe_exit_irqrestore(flags); in __up_console_sem()
681 ts_usec, info->flags & LOG_CONT ? 'c' : '-', caller); in info_print_ext_header()
1148 dest_r.info->flags = r->info->flags; in add_to_rb()
1181 unsigned long flags; in setup_log_buf() local
1244 local_irq_save(flags); in setup_log_buf()
1261 local_irq_restore(flags); in setup_log_buf()
2007 unsigned long flags; in console_trylock_spinning() local
2022 printk_safe_enter_irqsave(flags); in console_trylock_spinning()
2043 printk_safe_exit_irqrestore(flags); in console_trylock_spinning()
2054 printk_safe_exit_irqrestore(flags); in console_trylock_spinning()
2118 #define printk_enter_irqsave(recursion_ptr, flags) \ argument
2123 local_irq_save(flags); \
2126 local_irq_restore(flags); \
2135 #define printk_exit_irqrestore(recursion_ptr, flags) \ argument
2139 local_irq_restore(flags); \
2182 enum printk_info_flags *flags) in printk_parse_prefix() argument
2198 if (flags) in printk_parse_prefix()
2199 *flags |= LOG_CONT; in printk_parse_prefix()
2211 enum printk_info_flags *flags, const char *fmt, in printk_sprint() argument
2221 *flags |= LOG_NEWLINE; in printk_sprint()
2246 enum printk_info_flags flags = 0; in vprintk_store() local
2287 printk_parse_prefix(&prefix_buf[0], &level, &flags); in vprintk_store()
2293 flags |= LOG_NEWLINE; in vprintk_store()
2296 flags |= LOG_FORCE_CON; in vprintk_store()
2298 if (flags & LOG_CONT) { in vprintk_store()
2302 facility, &flags, fmt, args); in vprintk_store()
2305 if (flags & LOG_FORCE_CON) in vprintk_store()
2306 r.info->flags |= LOG_FORCE_CON; in vprintk_store()
2308 if (flags & LOG_NEWLINE) { in vprintk_store()
2309 r.info->flags |= LOG_NEWLINE; in vprintk_store()
2336 text_len = printk_sprint(&r.text_buf[0], reserve_size, facility, &flags, fmt, args); in vprintk_store()
2342 r.info->flags = flags & 0x1f; in vprintk_store()
2349 if (!(flags & LOG_NEWLINE)) in vprintk_store()
2767 console_srcu_write_flags(con, con->flags | CON_SUSPENDED); in console_suspend_all()
2789 console_srcu_write_flags(con, con->flags & ~CON_SUSPENDED); in console_resume_all()
3010 force_con = r.info->flags & LOG_FORCE_CON; in printk_get_next_message()
3088 unsigned long flags; in console_emit_next_record() local
3131 printk_safe_enter_irqsave(flags); in console_emit_next_record()
3146 printk_safe_exit_irqrestore(flags); in console_emit_next_record()
3205 short flags = console_srcu_read_flags(con); in console_flush_all() local
3214 if ((flags & CON_NBCON) && (ft.nbcon_atomic || ft.nbcon_offload)) in console_flush_all()
3217 if (!console_is_usable(con, flags, !do_cond_resched)) in console_flush_all()
3221 if (flags & CON_NBCON) { in console_flush_all()
3361 short flags = console_srcu_read_flags(c); in console_unblank() local
3363 if (flags & CON_SUSPENDED) in console_unblank()
3366 if ((flags & CON_ENABLED) && c->unblank) { in console_unblank()
3403 short flags = console_srcu_read_flags(c); in console_unblank() local
3405 if (flags & CON_SUSPENDED) in console_unblank()
3408 if ((flags & CON_ENABLED) && c->unblank) in console_unblank()
3429 short flags; in __console_rewind_all() local
3437 flags = console_srcu_read_flags(c); in __console_rewind_all()
3439 if (flags & CON_NBCON) { in __console_rewind_all()
3533 console_srcu_write_flags(console, console->flags & ~CON_ENABLED); in console_suspend()
3552 console_srcu_write_flags(console, console->flags | CON_ENABLED); in console_resume()
3553 is_nbcon = console->flags & CON_NBCON; in console_resume()
3595 short flags = console_srcu_read_flags(con); in legacy_kthread_should_wakeup() local
3603 if ((flags & CON_NBCON) && (ft.nbcon_atomic || ft.nbcon_offload)) in legacy_kthread_should_wakeup()
3606 if (!console_is_usable(con, flags, false)) in legacy_kthread_should_wakeup()
3609 if (flags & CON_NBCON) { in legacy_kthread_should_wakeup()
3683 if (con->flags & CON_NBCON) in printk_kthreads_shutdown()
3727 if (con->flags & CON_NBCON) in printk_kthreads_check_locked()
3755 if (!(con->flags & CON_NBCON)) in printk_kthreads_check_locked()
3848 newcon->flags |= CON_ENABLED; in try_enable_preferred_console()
3850 newcon->flags |= CON_CONSDEV; in try_enable_preferred_console()
3859 if (newcon->flags & CON_ENABLED && c->user_specified == user_specified) in try_enable_preferred_console()
3874 newcon->flags |= CON_ENABLED; in try_enable_default_console()
3877 newcon->flags |= CON_CONSDEV; in try_enable_default_console()
3887 if (newcon->flags & (CON_PRINTBUFFER | CON_BOOT)) { in get_init_console_seq()
3932 if (!(con->flags & CON_BOOT) || in get_init_console_seq()
3933 !(con->flags & CON_ENABLED)) { in get_init_console_seq()
3937 if (con->flags & CON_NBCON) in get_init_console_seq()
3980 bool use_device_lock = (newcon->flags & CON_NBCON) && newcon->write_atomic; in register_console()
3984 unsigned long flags; in register_console() local
3996 if (con->flags & CON_BOOT) in register_console()
4003 if ((newcon->flags & CON_BOOT) && realcon_registered) { in register_console()
4009 if (newcon->flags & CON_NBCON) { in register_console()
4032 console_first()->flags & CON_BOOT) { in register_console()
4045 if (err || newcon->flags & CON_BRL) { in register_console()
4046 if (newcon->flags & CON_NBCON) in register_console()
4058 ((newcon->flags & (CON_CONSDEV | CON_BOOT)) == CON_CONSDEV)) { in register_console()
4059 newcon->flags &= ~CON_PRINTBUFFER; in register_console()
4065 if (newcon->flags & CON_NBCON) { in register_console()
4073 if (newcon->flags & CON_BOOT) in register_console()
4087 newcon->device_lock(newcon, &flags); in register_console()
4095 newcon->flags |= CON_CONSDEV; in register_console()
4098 } else if (newcon->flags & CON_CONSDEV) { in register_console()
4100 console_srcu_write_flags(console_first(), console_first()->flags & ~CON_CONSDEV); in register_console()
4115 newcon->device_unlock(newcon, flags); in register_console()
4128 ((newcon->flags & (CON_CONSDEV | CON_BOOT)) == CON_CONSDEV) && in register_console()
4133 if (con->flags & CON_BOOT) in register_console()
4148 bool use_device_lock = (console->flags & CON_NBCON) && console->write_atomic; in unregister_console_locked()
4152 unsigned long flags; in unregister_console_locked() local
4168 else if (console_is_usable(console, console->flags, true)) in unregister_console_locked()
4172 console_srcu_write_flags(console, console->flags & ~CON_ENABLED); in unregister_console_locked()
4182 console->device_lock(console, &flags); in unregister_console_locked()
4187 console->device_unlock(console, flags); in unregister_console_locked()
4198 if (!hlist_empty(&console_list) && console->flags & CON_CONSDEV) in unregister_console_locked()
4199 console_srcu_write_flags(console_first(), console_first()->flags | CON_CONSDEV); in unregister_console_locked()
4213 if (c->flags & CON_BOOT) in unregister_console_locked()
4216 if (c->flags & CON_NBCON) in unregister_console_locked()
4229 if (console->flags & CON_NBCON) in unregister_console_locked()
4287 con->flags |= CON_CONSDEV; in console_force_preferred_locked()
4291 console_srcu_write_flags(cur_pref_con, cur_pref_con->flags & ~CON_CONSDEV); in console_force_preferred_locked()
4353 if (!(con->flags & CON_BOOT)) in printk_late_init()
4395 short flags; in __pr_flush() local
4442 flags = console_srcu_read_flags(c); in __pr_flush()
4449 if (!console_is_usable(c, flags, true) && in __pr_flush()
4450 !console_is_usable(c, flags, false)) { in __pr_flush()
4454 if (flags & CON_NBCON) { in __pr_flush()
4668 unsigned long flags; in kmsg_dump_register() local
4675 spin_lock_irqsave(&dump_list_lock, flags); in kmsg_dump_register()
4682 spin_unlock_irqrestore(&dump_list_lock, flags); in kmsg_dump_register()
4697 unsigned long flags; in kmsg_dump_unregister() local
4700 spin_lock_irqsave(&dump_list_lock, flags); in kmsg_dump_unregister()
4706 spin_unlock_irqrestore(&dump_list_lock, flags); in kmsg_dump_unregister()