Lines Matching refs:nbcon_state
128 static inline void nbcon_state_set(struct console *con, struct nbcon_state *new) in nbcon_state_set()
130 atomic_set(&ACCESS_PRIVATE(con, nbcon_state), new->atom); in nbcon_state_set()
138 static inline void nbcon_state_read(struct console *con, struct nbcon_state *state) in nbcon_state_read()
140 state->atom = atomic_read(&ACCESS_PRIVATE(con, nbcon_state)); in nbcon_state_read()
151 static inline bool nbcon_state_try_cmpxchg(struct console *con, struct nbcon_state *cur, in nbcon_state_try_cmpxchg()
152 struct nbcon_state *new) in nbcon_state_try_cmpxchg()
154 return atomic_try_cmpxchg(&ACCESS_PRIVATE(con, nbcon_state), &cur->atom, new->atom); in nbcon_state_try_cmpxchg()
238 struct nbcon_state *cur) in nbcon_context_try_acquire_direct()
242 struct nbcon_state new; in nbcon_context_try_acquire_direct()
278 static bool nbcon_waiter_matches(struct nbcon_state *cur, int expected_prio) in nbcon_waiter_matches()
336 struct nbcon_state *cur) in nbcon_context_try_acquire_requested()
340 struct nbcon_state new; in nbcon_context_try_acquire_requested()
419 struct nbcon_state *cur) in nbcon_context_try_acquire_handover()
423 struct nbcon_state new; in nbcon_context_try_acquire_handover()
525 struct nbcon_state *cur) in nbcon_context_try_acquire_hostile()
529 struct nbcon_state new; in nbcon_context_try_acquire_hostile()
575 struct nbcon_state cur; in nbcon_context_try_acquire()
609 static bool nbcon_owner_matches(struct nbcon_state *cur, int expected_cpu, in nbcon_owner_matches()
655 struct nbcon_state cur; in nbcon_context_release()
656 struct nbcon_state new; in nbcon_context_release()
704 static bool nbcon_context_can_proceed(struct nbcon_context *ctxt, struct nbcon_state *cur) in nbcon_context_can_proceed()
776 struct nbcon_state cur; in nbcon_can_proceed()
809 struct nbcon_state cur; in __nbcon_context_update_unsafe()
810 struct nbcon_state new; in __nbcon_context_update_unsafe()
839 struct nbcon_state cur; in nbcon_write_context_set_buf()
949 struct nbcon_state cur; in nbcon_emit_next_record()
1672 struct nbcon_state state = { }; in nbcon_alloc()
1722 struct nbcon_state state = { }; in nbcon_free()