/include/linux/ |
D | rwsem.h | 87 static inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked() argument 89 return atomic_long_read(&sem->count) != 0; in rwsem_is_locked() 121 extern void __init_rwsem(struct rw_semaphore *sem, const char *name, 124 #define init_rwsem(sem) \ argument 128 __init_rwsem((sem), #sem, &__key); \ 137 static inline int rwsem_is_contended(struct rw_semaphore *sem) in rwsem_is_contended() argument 139 return !list_empty(&sem->wait_list); in rwsem_is_contended() 165 #define init_rwsem(sem) \ argument 169 __init_rwsem((sem), #sem, &__key); \ 172 static __always_inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked() argument [all …]
|
D | percpu-rwsem.h | 57 static inline void percpu_down_read(struct percpu_rw_semaphore *sem) in percpu_down_read() argument 61 rwsem_acquire_read(&sem->dep_map, 0, 0, _RET_IP_); in percpu_down_read() 72 if (likely(rcu_sync_is_idle(&sem->rss))) in percpu_down_read() 73 this_cpu_inc(*sem->read_count); in percpu_down_read() 75 __percpu_down_read(sem, false); /* Unconditional memory barrier */ in percpu_down_read() 84 static inline bool percpu_down_read_trylock(struct percpu_rw_semaphore *sem) in percpu_down_read_trylock() argument 92 if (likely(rcu_sync_is_idle(&sem->rss))) in percpu_down_read_trylock() 93 this_cpu_inc(*sem->read_count); in percpu_down_read_trylock() 95 ret = __percpu_down_read(sem, true); /* Unconditional memory barrier */ in percpu_down_read_trylock() 104 rwsem_acquire_read(&sem->dep_map, 0, 1, _RET_IP_); in percpu_down_read_trylock() [all …]
|
D | semaphore.h | 31 static inline void sema_init(struct semaphore *sem, int val) in sema_init() argument 34 *sem = (struct semaphore) __SEMAPHORE_INITIALIZER(*sem, val); in sema_init() 35 lockdep_init_map(&sem->lock.dep_map, "semaphore->lock", &__key, 0); in sema_init() 38 extern void down(struct semaphore *sem); 39 extern int __must_check down_interruptible(struct semaphore *sem); 40 extern int __must_check down_killable(struct semaphore *sem); 41 extern int __must_check down_trylock(struct semaphore *sem); 42 extern int __must_check down_timeout(struct semaphore *sem, long jiffies); 43 extern void up(struct semaphore *sem);
|
D | tty_ldisc.h | 150 extern void __init_ldsem(struct ld_semaphore *sem, const char *name, 153 #define init_ldsem(sem) \ argument 157 __init_ldsem((sem), #sem, &__key); \ 161 extern int ldsem_down_read(struct ld_semaphore *sem, long timeout); 162 extern int ldsem_down_read_trylock(struct ld_semaphore *sem); 163 extern int ldsem_down_write(struct ld_semaphore *sem, long timeout); 164 extern int ldsem_down_write_trylock(struct ld_semaphore *sem); 165 extern void ldsem_up_read(struct ld_semaphore *sem); 166 extern void ldsem_up_write(struct ld_semaphore *sem); 169 extern int ldsem_down_read_nested(struct ld_semaphore *sem, int subclass, [all …]
|
D | key.h | 199 struct rw_semaphore sem; /* change vs change sem */ member 472 rwsem_is_locked(&((struct key *)(KEY))->sem)))
|
/include/trace/hooks/ |
D | rwsem.h | 17 TP_PROTO(struct rw_semaphore *sem), 18 TP_ARGS(sem)); 20 TP_PROTO(struct rw_semaphore *sem), 21 TP_ARGS(sem)); 23 TP_PROTO(struct rw_semaphore *sem), 24 TP_ARGS(sem)); 27 struct rw_semaphore *sem, 29 TP_ARGS(waiter, sem, already_on_list)); 31 TP_PROTO(struct rw_semaphore *sem), 32 TP_ARGS(sem));
|
D | dtask.h | 45 TP_PROTO(struct rw_semaphore *sem), 46 TP_ARGS(sem)); 48 TP_PROTO(struct rw_semaphore *sem), 49 TP_ARGS(sem)); 51 TP_PROTO(struct rw_semaphore *sem), 52 TP_ARGS(sem)); 54 TP_PROTO(struct rw_semaphore *sem), 55 TP_ARGS(sem)); 57 TP_PROTO(struct rw_semaphore *sem, bool *time_out, int *cnt, bool chk_only), 58 TP_ARGS(sem, time_out, cnt, chk_only)); [all …]
|
/include/soc/arc/ |
D | mcip.h | 66 msg:1, sem:1, ipi:1, slv:1, member 70 slv:1, ipi:1, sem:1, msg:1,
|
/include/uapi/linux/ |
D | sem.h | 29 struct sem *sem_base; /* ptr to first semaphore in array */
|
/include/linux/mlx5/ |
D | driver.h | 299 struct semaphore sem; member
|