Searched refs:atomic_write_lock (Results 1 - 4 of 4) sorted by relevance

/linux-master/drivers/tty/serial/8250/
H A D8250_uniphier.c36 spinlock_t atomic_write_lock; member in struct:uniphier8250_priv
134 spin_lock_irqsave(&priv->atomic_write_lock, flags);
139 spin_unlock_irqrestore(&priv->atomic_write_lock, flags);
195 spin_lock_init(&priv->atomic_write_lock);
/linux-master/drivers/tty/
H A Dtty.h96 #define tty_is_writelocked(tty) (mutex_is_locked(&tty->atomic_write_lock))
H A Dtty_io.c767 * under the tty %atomic_write_lock but not always.
948 mutex_unlock(&tty->atomic_write_lock);
954 if (!mutex_trylock(&tty->atomic_write_lock)) {
957 if (mutex_lock_interruptible(&tty->atomic_write_lock))
996 /* write_buf/write_cnt is protected by the atomic_write_lock mutex */
1067 mutex_lock(&tty->atomic_write_lock);
1110 * Writes to the tty driver are serialized by the atomic_write_lock
2476 * @tty->atomic_write_lock serializes
3135 mutex_init(&tty->atomic_write_lock);
/linux-master/include/linux/
H A Dtty.h132 * @atomic_write_lock: protects against concurrent writers, i.e. locks
203 struct mutex atomic_write_lock; member in struct:tty_struct

Completed in 220 milliseconds