Lines Matching +full:enum +full:- +full:as +full:- +full:flags

11  * 10-Mar-94: Arno Griffioen: Conversion for vt100 emulator port from PC LINUX
32 enum con_scroll {
37 enum vc_intensity;
40 * struct consw - callbacks for consoles
49 * (optional -- @con_putcs would be called instead)
60 * @con_font_set: set console @vc font to @font with height @vpitch. @flags can
73 * @vc->vc_screenbuf. (optional)
74 * @con_save_screen: save screen content into @vc->vc_screenbuf. Called e.g.
85 * @con_debug_leave: restore the console to its pre-debug state as closely as
102 unsigned int bottom, enum con_scroll dir,
105 bool (*con_blank)(struct vc_data *vc, enum vesa_blank_mode blank,
109 unsigned int vpitch, unsigned int flags);
122 enum vc_intensity intensity,
160 * enum cons_flags - General console flags
169 * @CON_BOOT: Marks the console driver as early console driver which
176 * on a CPU which is marked OFFLINE. That is misleading as
179 * readiness of the per-CPU areas.
189 enum cons_flags {
202 * struct nbcon_state - console state for nbcon consoles
209 * past. The console cannot be safe until re-initialized.
216 * spin-waiting to timeout and give up without the risk of a waiter being
241 * enum nbcon_prio - console owner priority for nbcon consoles
243 * @NBCON_PRIO_NORMAL: Normal (non-emergency) usage
252 enum nbcon_prio {
264 * struct nbcon_context - Context for console acquire/release
266 * @spinwait_max_us: Limit for spin-wait acquire
280 enum nbcon_prio prio;
292 * struct nbcon_write_context - Context handed to the nbcon write callbacks
306 * struct console - The console descriptor structure
315 * @flags: Console flags. See enum cons_flags
317 * @cflag: TTY control mode flags
327 * @nbcon_device_ctxt: Context available for non-printing operations
331 * @rcuwait: RCU-safe wait object for @kthread waking
343 short flags; member
396 * sections handling applies as with write_atomic().
402 * on the device. It might be as relaxed (mutex)[*] or as tight
403 * (disabled preemption and interrupts) as needed. It allows
423 * via user input/output (such as an interactive login shell) and
425 * called by the printk-subsystem whenever it needs to synchronize
435 * care of this (such as spinlocks). Otherwise this function must
438 * The flags argument is provided as a convenience to the driver. It
442 void (*device_lock)(struct console *con, unsigned long *flags);
452 * appropriately re-enable migration (depending on how device_lock()
455 * The flags argument is the value of the same variable that was
458 void (*device_unlock)(struct console *con, unsigned long flags);
497 * console_srcu_read_flags - Locklessly read flags of a possibly registered
499 * @con: struct console pointer of console to read flags from
501 * Locklessly reading @con->flags provides a consistent read value because
502 * there is at most one CPU modifying @con->flags and that CPU is using only
503 * read-modify-write operations to do so.
513 * @con->flags directly instead.
516 * Return: The current value of the @con->flags field.
523 * The READ_ONCE() matches the WRITE_ONCE() when @flags are modified in console_srcu_read_flags()
526 return data_race(READ_ONCE(con->flags)); in console_srcu_read_flags()
530 * console_srcu_write_flags - Write flags for a registered console
531 * @con: struct console pointer of console to write flags to
532 * @flags: new flags value to write
534 * Only use this function to write flags for registered consoles. It
539 static inline void console_srcu_write_flags(struct console *con, short flags) in console_srcu_write_flags() argument
544 WRITE_ONCE(con->flags, flags); in console_srcu_write_flags()
551 return !hlist_unhashed(&con->node); in console_is_registered_locked()
555 * console_is_registered - Check if the console is registered
576 * for_each_console_srcu() - Iterator over registered consoles
577 * @con: struct console pointer used as loop cursor
590 * for_each_console() - Iterator over registered consoles
591 * @con: struct console pointer used as loop cursor
593 * The console list and the &console.flags are immutable while iterating.
620 enum con_flush_mode {
634 extern void console_flush_on_panic(enum con_flush_mode mode);