Home
last modified time | relevance | path

Searched refs:ld_semaphore (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/tty/
H A Dtty_ldsem.c74 static void __ldsem_wake_readers(struct ld_semaphore *sem) in __ldsem_wake_readers()
104 static inline int writer_trylock(struct ld_semaphore *sem) in writer_trylock()
119 static void __ldsem_wake_writer(struct ld_semaphore *sem) in __ldsem_wake_writer()
135 static void __ldsem_wake(struct ld_semaphore *sem) in __ldsem_wake()
143 static void ldsem_wake(struct ld_semaphore *sem) in ldsem_wake()
155 static struct ld_semaphore __sched *
229 static struct ld_semaphore __sched *
346 int ldsem_down_read_trylock(struct ld_semaphore *sem) in ldsem_down_read_trylock()
372 int ldsem_down_write_trylock(struct ld_semaphore *sem) in ldsem_down_write_trylock()
389 void ldsem_up_read(struct ld_semaphore *sem) in ldsem_up_read()
[all …]
/openbmc/linux/include/linux/
H A Dtty_ldisc.h17 struct ld_semaphore { struct
28 void __init_ldsem(struct ld_semaphore *sem, const char *name, argument
39 int ldsem_down_read(struct ld_semaphore *sem, long timeout);
40 int ldsem_down_read_trylock(struct ld_semaphore *sem);
41 int ldsem_down_write(struct ld_semaphore *sem, long timeout);
42 int ldsem_down_write_trylock(struct ld_semaphore *sem);
43 void ldsem_up_read(struct ld_semaphore *sem);
44 void ldsem_up_write(struct ld_semaphore *sem);
47 int ldsem_down_read_nested(struct ld_semaphore *sem, int subclass,
49 int ldsem_down_write_nested(struct ld_semaphore *sem, int subclass,
H A Dtty.h202 struct ld_semaphore ldisc_sem;