Lines Matching defs:new

102  * context. The new owner is supposed to reprint the entire interrupted record
109 * @new: The new state to write
114 static inline void nbcon_state_set(struct console *con, struct nbcon_state *new)
116 atomic_set(&ACCESS_PRIVATE(con, nbcon_state), new->atom);
133 * @new: New state
138 struct nbcon_state *new)
140 return atomic_try_cmpxchg(&ACCESS_PRIVATE(con, nbcon_state), &cur->atom, new->atom);
184 * @new_seq: The new sequence number to set
186 * @ctxt->seq is updated to the new value of @con::nbcon_seq (expanded to
231 struct nbcon_state new;
249 new.atom = cur->atom;
250 new.prio = ctxt->prio;
251 new.req_prio = NBCON_PRIO_NONE;
252 new.unsafe = cur->unsafe_takeover;
253 new.cpu = cpu;
255 } while (!nbcon_state_try_cmpxchg(con, cur, &new));
292 * Return: 0 on success and @cur is updated to the new console state.
311 struct nbcon_state new;
334 new.atom = cur->atom;
335 new.prio = ctxt->prio;
336 new.req_prio = NBCON_PRIO_NONE;
337 new.unsafe = cur->unsafe_takeover;
338 new.cpu = cpu;
340 if (!nbcon_state_try_cmpxchg(con, cur, &new)) {
394 struct nbcon_state new;
424 new.atom = cur->atom;
425 new.req_prio = ctxt->prio;
426 if (!nbcon_state_try_cmpxchg(con, cur, &new))
429 cur->atom = new.atom;
454 * No need to remove request if there is a new waiter. This
462 new.atom = cur->atom;
463 new.req_prio = NBCON_PRIO_NONE;
464 if (nbcon_state_try_cmpxchg(con, cur, &new)) {
469 cur->atom = new.atom;
500 struct nbcon_state new;
517 new.atom = cur->atom;
518 new.cpu = cpu;
519 new.prio = ctxt->prio;
520 new.unsafe |= cur->unsafe_takeover;
521 new.unsafe_takeover |= cur->unsafe;
523 } while (!nbcon_state_try_cmpxchg(con, cur, &new));
609 struct nbcon_state new;
617 new.atom = cur.atom;
618 new.prio = NBCON_PRIO_NONE;
624 new.unsafe |= cur.unsafe_takeover;
626 } while (!nbcon_state_try_cmpxchg(con, &cur, &new));
743 * @unsafe: The new value for the unsafe bit
763 struct nbcon_state new;
778 new.atom = cur.atom;
779 new.unsafe = unsafe;
780 } while (!nbcon_state_try_cmpxchg(con, &cur, &new));
782 cur.atom = new.atom;