Home
last modified time | relevance | path

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

/arch/sh/include/asm/
Drwsem.h59 #define init_rwsem(sem) \ argument
66 static inline void init_rwsem(struct rw_semaphore *sem) in init_rwsem()
76 static inline void __down_read(struct rw_semaphore *sem) in __down_read()
84 static inline int __down_read_trylock(struct rw_semaphore *sem) in __down_read_trylock()
101 static inline void __down_write(struct rw_semaphore *sem) in __down_write()
113 static inline int __down_write_trylock(struct rw_semaphore *sem) in __down_write_trylock()
126 static inline void __up_read(struct rw_semaphore *sem) in __up_read()
139 static inline void __up_write(struct rw_semaphore *sem) in __up_write()
150 static inline void rwsem_atomic_add(int delta, struct rw_semaphore *sem) in rwsem_atomic_add()
158 static inline void __downgrade_write(struct rw_semaphore *sem) in __downgrade_write()
[all …]
/arch/xtensa/include/asm/
Drwsem.h52 static inline void init_rwsem(struct rw_semaphore *sem) in init_rwsem()
62 static inline void __down_read(struct rw_semaphore *sem) in __down_read()
70 static inline int __down_read_trylock(struct rw_semaphore *sem) in __down_read_trylock()
87 static inline void __down_write(struct rw_semaphore *sem) in __down_write()
99 static inline int __down_write_trylock(struct rw_semaphore *sem) in __down_write_trylock()
112 static inline void __up_read(struct rw_semaphore *sem) in __up_read()
125 static inline void __up_write(struct rw_semaphore *sem) in __up_write()
136 static inline void rwsem_atomic_add(int delta, struct rw_semaphore *sem) in rwsem_atomic_add()
144 static inline void __downgrade_write(struct rw_semaphore *sem) in __downgrade_write()
157 static inline int rwsem_atomic_update(int delta, struct rw_semaphore *sem) in rwsem_atomic_update()
[all …]
/arch/powerpc/include/asm/
Drwsem.h61 #define init_rwsem(sem) \ argument
71 static inline void __down_read(struct rw_semaphore *sem) in __down_read()
77 static inline int __down_read_trylock(struct rw_semaphore *sem) in __down_read_trylock()
93 static inline void __down_write_nested(struct rw_semaphore *sem, int subclass) in __down_write_nested()
103 static inline void __down_write(struct rw_semaphore *sem) in __down_write()
108 static inline int __down_write_trylock(struct rw_semaphore *sem) in __down_write_trylock()
120 static inline void __up_read(struct rw_semaphore *sem) in __up_read()
132 static inline void __up_write(struct rw_semaphore *sem) in __up_write()
142 static inline void rwsem_atomic_add(int delta, struct rw_semaphore *sem) in rwsem_atomic_add()
150 static inline void __downgrade_write(struct rw_semaphore *sem) in __downgrade_write()
[all …]
/arch/x86/include/asm/
Drwsem.h95 #define init_rwsem(sem) \ argument
105 static inline void __down_read(struct rw_semaphore *sem) in __down_read()
122 static inline int __down_read_trylock(struct rw_semaphore *sem) in __down_read_trylock()
144 static inline void __down_write_nested(struct rw_semaphore *sem, int subclass) in __down_write_nested()
163 static inline void __down_write(struct rw_semaphore *sem) in __down_write()
171 static inline int __down_write_trylock(struct rw_semaphore *sem) in __down_write_trylock()
184 static inline void __up_read(struct rw_semaphore *sem) in __up_read()
202 static inline void __up_write(struct rw_semaphore *sem) in __up_write()
221 static inline void __downgrade_write(struct rw_semaphore *sem) in __downgrade_write()
238 static inline void rwsem_atomic_add(int delta, struct rw_semaphore *sem) in rwsem_atomic_add()
[all …]
/arch/ia64/include/asm/
Drwsem.h62 init_rwsem (struct rw_semaphore *sem) in init_rwsem()
73 __down_read (struct rw_semaphore *sem) in __down_read()
85 __down_write (struct rw_semaphore *sem) in __down_write()
102 __up_read (struct rw_semaphore *sem) in __up_read()
114 __up_write (struct rw_semaphore *sem) in __up_write()
131 __down_read_trylock (struct rw_semaphore *sem) in __down_read_trylock()
146 __down_write_trylock (struct rw_semaphore *sem) in __down_write_trylock()
157 __downgrade_write (struct rw_semaphore *sem) in __downgrade_write()
174 #define rwsem_atomic_add(delta, sem) atomic64_add(delta, (atomic64_t *)(&(sem)->count)) argument
175 #define rwsem_atomic_update(delta, sem) atomic64_add_return(delta, (atomic64_t *)(&(sem)->count)) argument
[all …]
Dintrinsics.h39 #define IA64_FETCHADD(tmp,v,n,sz,sem) \ argument
55 #define ia64_fetchadd(i,v,sem) \ argument
132 #define ia64_cmpxchg(sem,ptr,old,new,size) \ argument
/arch/alpha/include/asm/
Drwsem.h48 static inline void init_rwsem(struct rw_semaphore *sem) in init_rwsem()
55 static inline void __down_read(struct rw_semaphore *sem) in __down_read()
82 static inline int __down_read_trylock(struct rw_semaphore *sem) in __down_read_trylock()
97 static inline void __down_write(struct rw_semaphore *sem) in __down_write()
124 static inline int __down_write_trylock(struct rw_semaphore *sem) in __down_write_trylock()
133 static inline void __up_read(struct rw_semaphore *sem) in __up_read()
158 static inline void __up_write(struct rw_semaphore *sem) in __up_write()
187 static inline void __downgrade_write(struct rw_semaphore *sem) in __downgrade_write()
211 static inline void rwsem_atomic_add(long val, struct rw_semaphore *sem) in rwsem_atomic_add()
230 static inline long rwsem_atomic_update(long val, struct rw_semaphore *sem) in rwsem_atomic_update()
[all …]
/arch/s390/include/asm/
Drwsem.h100 static inline void init_rwsem(struct rw_semaphore *sem) in init_rwsem()
110 #define init_rwsem(sem) \ argument
121 static inline void __down_read(struct rw_semaphore *sem) in __down_read()
149 static inline int __down_read_trylock(struct rw_semaphore *sem) in __down_read_trylock()
180 static inline void __down_write_nested(struct rw_semaphore *sem, int subclass) in __down_write_nested()
206 static inline void __down_write(struct rw_semaphore *sem) in __down_write()
214 static inline int __down_write_trylock(struct rw_semaphore *sem) in __down_write_trylock()
242 static inline void __up_read(struct rw_semaphore *sem) in __up_read()
272 static inline void __up_write(struct rw_semaphore *sem) in __up_write()
302 static inline void __downgrade_write(struct rw_semaphore *sem) in __downgrade_write()
[all …]
/arch/sparc/include/asm/
Drwsem.h47 #define init_rwsem(sem) \ argument
62 static inline void __down_write_nested(struct rw_semaphore *sem, int subclass) in __down_write_nested()
67 static inline int rwsem_atomic_update(int delta, struct rw_semaphore *sem) in rwsem_atomic_update()
72 static inline void rwsem_atomic_add(int delta, struct rw_semaphore *sem) in rwsem_atomic_add()
77 static inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked()
/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