Home
last modified time | relevance | path

Searched defs:sem (Results 1 – 7 of 7) sorted by relevance

/include/linux/
Dpercpu-rwsem.h31 static inline void percpu_down_read_preempt_disable(struct percpu_rw_semaphore *sem) in percpu_down_read_preempt_disable()
56 static inline void percpu_down_read(struct percpu_rw_semaphore *sem) in percpu_down_read()
62 static inline int percpu_down_read_trylock(struct percpu_rw_semaphore *sem) in percpu_down_read_trylock()
85 static inline void percpu_up_read_preempt_enable(struct percpu_rw_semaphore *sem) in percpu_up_read_preempt_enable()
104 static inline void percpu_up_read(struct percpu_rw_semaphore *sem) in percpu_up_read()
118 #define percpu_init_rwsem(sem) \ argument
124 #define percpu_rwsem_is_held(sem) lockdep_is_held(&(sem)->rw_sem) argument
126 #define percpu_rwsem_assert_held(sem) \ argument
129 static inline void percpu_rwsem_release(struct percpu_rw_semaphore *sem, in percpu_rwsem_release()
139 static inline void percpu_rwsem_acquire(struct percpu_rw_semaphore *sem, in percpu_rwsem_acquire()
Drwsem.h56 static inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked()
91 #define init_rwsem(sem) \ argument
104 static inline int rwsem_is_contended(struct rw_semaphore *sem) in rwsem_is_contended()
164 # define down_write_nest_lock(sem, nest_lock) \ argument
179 # define down_read_nested(sem, subclass) down_read(sem) argument
180 # define down_write_nest_lock(sem, nest_lock) down_write(sem) argument
181 # define down_write_nested(sem, subclass) down_write(sem) argument
182 # define down_write_killable_nested(sem, subclass) down_write_killable(sem) argument
183 # define down_read_non_owner(sem) down_read(sem) argument
184 # define up_read_non_owner(sem) up_read(sem) argument
Dtty_ldisc.h140 #define init_ldsem(sem) \ argument
161 # define ldsem_down_read_nested(sem, subclass, timeout) \ argument
163 # define ldsem_down_write_nested(sem, subclass, timeout) \ argument
Dsemaphore.h32 static inline void sema_init(struct semaphore *sem, int val) in sema_init()
Dkey.h149 struct rw_semaphore sem; /* change vs change sem */ member
/include/asm-generic/
Drwsem.h34 static inline void __down_read(struct rw_semaphore *sem) in __down_read()
40 static inline int __down_read_trylock(struct rw_semaphore *sem) in __down_read_trylock()
56 static inline void __down_write(struct rw_semaphore *sem) in __down_write()
66 static inline int __down_write_killable(struct rw_semaphore *sem) in __down_write_killable()
78 static inline int __down_write_trylock(struct rw_semaphore *sem) in __down_write_trylock()
90 static inline void __up_read(struct rw_semaphore *sem) in __up_read()
102 static inline void __up_write(struct rw_semaphore *sem) in __up_write()
112 static inline void __downgrade_write(struct rw_semaphore *sem) in __downgrade_write()
/include/linux/mlx5/
Ddriver.h278 struct semaphore sem; member