Home
last modified time | relevance | path

Searched refs:ldisc_sem (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/tty/
Dtty_ldisc.c266 ldsem_down_read(&tty->ldisc_sem, MAX_SCHEDULE_TIMEOUT); in tty_ldisc_ref_wait()
269 ldsem_up_read(&tty->ldisc_sem); in tty_ldisc_ref_wait()
287 if (ldsem_down_read_trylock(&tty->ldisc_sem)) { in tty_ldisc_ref()
290 ldsem_up_read(&tty->ldisc_sem); in tty_ldisc_ref()
306 ldsem_up_read(&ld->tty->ldisc_sem); in tty_ldisc_deref()
314 return ldsem_down_write(&tty->ldisc_sem, timeout); in __tty_ldisc_lock()
320 return ldsem_down_write_nested(&tty->ldisc_sem, in __tty_ldisc_lock_nested()
326 ldsem_up_write(&tty->ldisc_sem); in __tty_ldisc_unlock()
484 lockdep_assert_held_write(&tty->ldisc_sem); in tty_ldisc_close()
506 lockdep_assert_held_write(&tty->ldisc_sem); in tty_ldisc_failto()
[all …]
Dtty_io.c3087 init_ldsem(&tty->ldisc_sem); in alloc_tty_struct()
/kernel/linux/linux-5.10/drivers/usb/serial/
Dconsole.c144 init_ldsem(&tty->ldisc_sem); in usb_console_setup()
/kernel/linux/linux-5.10/include/linux/
Dtty.h294 struct ld_semaphore ldisc_sem; member