Home
last modified time | relevance | path

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

/arch/sh/include/asm/
Drwsem.h25 static inline void __down_read(struct rw_semaphore *sem) in __down_read()
33 static inline int __down_read_trylock(struct rw_semaphore *sem) in __down_read_trylock()
50 static inline void __down_write(struct rw_semaphore *sem) in __down_write()
62 static inline int __down_write_trylock(struct rw_semaphore *sem) in __down_write_trylock()
75 static inline void __up_read(struct rw_semaphore *sem) in __up_read()
88 static inline void __up_write(struct rw_semaphore *sem) in __up_write()
99 static inline void rwsem_atomic_add(int delta, struct rw_semaphore *sem) in rwsem_atomic_add()
107 static inline void __downgrade_write(struct rw_semaphore *sem) in __downgrade_write()
117 static inline void __down_write_nested(struct rw_semaphore *sem, int subclass) in __down_write_nested()
125 static inline int rwsem_atomic_update(int delta, struct rw_semaphore *sem) in rwsem_atomic_update()
/arch/sparc/include/asm/
Drwsem.h26 static inline void __down_read(struct rw_semaphore *sem) in __down_read()
32 static inline int __down_read_trylock(struct rw_semaphore *sem) in __down_read_trylock()
48 static inline void __down_write_nested(struct rw_semaphore *sem, int subclass) in __down_write_nested()
58 static inline void __down_write(struct rw_semaphore *sem) in __down_write()
63 static inline int __down_write_trylock(struct rw_semaphore *sem) in __down_write_trylock()
75 static inline void __up_read(struct rw_semaphore *sem) in __up_read()
87 static inline void __up_write(struct rw_semaphore *sem) in __up_write()
97 static inline void rwsem_atomic_add(long delta, struct rw_semaphore *sem) in rwsem_atomic_add()
105 static inline void __downgrade_write(struct rw_semaphore *sem) in __downgrade_write()
117 static inline long rwsem_atomic_update(long delta, struct rw_semaphore *sem) in rwsem_atomic_update()
/arch/xtensa/include/asm/
Drwsem.h30 static inline void __down_read(struct rw_semaphore *sem) in __down_read()
38 static inline int __down_read_trylock(struct rw_semaphore *sem) in __down_read_trylock()
55 static inline void __down_write(struct rw_semaphore *sem) in __down_write()
67 static inline int __down_write_trylock(struct rw_semaphore *sem) in __down_write_trylock()
80 static inline void __up_read(struct rw_semaphore *sem) in __up_read()
93 static inline void __up_write(struct rw_semaphore *sem) in __up_write()
104 static inline void rwsem_atomic_add(int delta, struct rw_semaphore *sem) in rwsem_atomic_add()
112 static inline void __downgrade_write(struct rw_semaphore *sem) in __downgrade_write()
125 static inline int rwsem_atomic_update(int delta, struct rw_semaphore *sem) in rwsem_atomic_update()
/arch/x86/include/asm/
Drwsem.h63 static inline void __down_read(struct rw_semaphore *sem) in __down_read()
80 static inline int __down_read_trylock(struct rw_semaphore *sem) in __down_read_trylock()
102 static inline void __down_write_nested(struct rw_semaphore *sem, int subclass) in __down_write_nested()
119 static inline void __down_write(struct rw_semaphore *sem) in __down_write()
127 static inline int __down_write_trylock(struct rw_semaphore *sem) in __down_write_trylock()
153 static inline void __up_read(struct rw_semaphore *sem) in __up_read()
171 static inline void __up_write(struct rw_semaphore *sem) in __up_write()
189 static inline void __downgrade_write(struct rw_semaphore *sem) in __downgrade_write()
209 static inline void rwsem_atomic_add(long delta, struct rw_semaphore *sem) in rwsem_atomic_add()
219 static inline long rwsem_atomic_update(long delta, struct rw_semaphore *sem) in rwsem_atomic_update()
/arch/ia64/include/asm/
Drwsem.h41 __down_read (struct rw_semaphore *sem) in __down_read()
53 __down_write (struct rw_semaphore *sem) in __down_write()
70 __up_read (struct rw_semaphore *sem) in __up_read()
82 __up_write (struct rw_semaphore *sem) in __up_write()
99 __down_read_trylock (struct rw_semaphore *sem) in __down_read_trylock()
114 __down_write_trylock (struct rw_semaphore *sem) in __down_write_trylock()
125 __downgrade_write (struct rw_semaphore *sem) in __downgrade_write()
142 #define rwsem_atomic_add(delta, sem) atomic64_add(delta, (atomic64_t *)(&(sem)->count)) argument
143 #define rwsem_atomic_update(delta, sem) atomic64_add_return(delta, (atomic64_t *)(&(sem)->count)) argument
/arch/alpha/include/asm/
Drwsem.h24 static inline void __down_read(struct rw_semaphore *sem) in __down_read()
51 static inline int __down_read_trylock(struct rw_semaphore *sem) in __down_read_trylock()
66 static inline void __down_write(struct rw_semaphore *sem) in __down_write()
93 static inline int __down_write_trylock(struct rw_semaphore *sem) in __down_write_trylock()
102 static inline void __up_read(struct rw_semaphore *sem) in __up_read()
127 static inline void __up_write(struct rw_semaphore *sem) in __up_write()
156 static inline void __downgrade_write(struct rw_semaphore *sem) in __downgrade_write()
180 static inline void rwsem_atomic_add(long val, struct rw_semaphore *sem) in rwsem_atomic_add()
199 static inline long rwsem_atomic_update(long val, struct rw_semaphore *sem) in rwsem_atomic_update()
/arch/s390/include/asm/
Drwsem.h59 static inline void __down_read(struct rw_semaphore *sem) in __down_read()
87 static inline int __down_read_trylock(struct rw_semaphore *sem) in __down_read_trylock()
118 static inline void __down_write_nested(struct rw_semaphore *sem, int subclass) in __down_write_nested()
144 static inline void __down_write(struct rw_semaphore *sem) in __down_write()
152 static inline int __down_write_trylock(struct rw_semaphore *sem) in __down_write_trylock()
180 static inline void __up_read(struct rw_semaphore *sem) in __up_read()
209 static inline void __up_write(struct rw_semaphore *sem) in __up_write()
239 static inline void __downgrade_write(struct rw_semaphore *sem) in __downgrade_write()
268 static inline void rwsem_atomic_add(long delta, struct rw_semaphore *sem) in rwsem_atomic_add()
294 static inline long rwsem_atomic_update(long delta, struct rw_semaphore *sem) in rwsem_atomic_update()
/arch/ia64/include/uapi/asm/
Dintrinsics.h41 #define IA64_FETCHADD(tmp,v,n,sz,sem) \ argument
57 #define ia64_fetchadd(i,v,sem) \ argument
Dcmpxchg.h72 #define ia64_cmpxchg(sem, ptr, old, new, size) \ argument
/arch/mips/include/asm/
Dpmon.h43 #define pmon_semlock(sem) debug_vectors->semlock(sem) argument
44 #define pmon_semunlock(sem) debug_vectors->semunlock(sem) argument