Lines Matching defs:tty_mutex
145 DEFINE_MUTEX(tty_mutex);
305 * Locking: caller must hold tty_mutex
331 * Locking: this acquires tty_mutex to protect the tty_drivers list from
353 mutex_lock(&tty_mutex);
367 mutex_unlock(&tty_mutex);
398 mutex_lock(&tty_mutex);
416 mutex_unlock(&tty_mutex);
1219 * Locking: tty_mutex must be held. If the tty is found, bump the tty kref.
1246 * %tty_mutex currently so we can be relaxed about ordering.
1297 * Locking: tty_mutex for now
1314 * Locking: tty_mutex for now
1377 * The function is called under the tty_mutex, which protects us from the
1577 * tty_mutex
1585 WARN_ON(!mutex_is_locked(&tty_mutex));
1668 mutex_lock(&tty_mutex);
1671 mutex_unlock(&tty_mutex);
1698 mutex_lock(&tty_mutex);
1700 mutex_unlock(&tty_mutex);
1908 * Locking: %tty_mutex protects get_tty_driver()
1957 mutex_lock(&tty_mutex);
1960 mutex_unlock(&tty_mutex);
1980 mutex_unlock(&tty_mutex);
1992 * Claims the global %tty_mutex to serialize:
2029 * Claims the global tty_mutex to serialize:
2044 mutex_lock(&tty_mutex);
2047 mutex_unlock(&tty_mutex);
2054 mutex_unlock(&tty_mutex);
2061 mutex_unlock(&tty_mutex);
2065 mutex_unlock(&tty_mutex);
2081 mutex_unlock(&tty_mutex);
2105 * * %tty_mutex protects tty, tty_lookup_driver() and tty_init_dev().
2109 * Note: the tty_unlock/lock cases without a ref are only safe due to %tty_mutex
3443 mutex_lock(&tty_mutex);
3445 mutex_unlock(&tty_mutex);
3464 mutex_lock(&tty_mutex);
3466 mutex_unlock(&tty_mutex);
3485 mutex_lock(&tty_mutex);
3487 mutex_unlock(&tty_mutex);