Lines Matching refs:six_lock

136 struct six_lock {  struct
157 typedef int (*six_lock_should_sleep_fn)(struct six_lock *lock, void *); argument
159 void six_lock_exit(struct six_lock *lock);
165 void __six_lock_init(struct six_lock *lock, const char *name,
191 static inline u32 six_lock_seq(const struct six_lock *lock) in six_lock_seq()
196 bool six_trylock_ip(struct six_lock *lock, enum six_lock_type type, unsigned long ip);
205 static inline bool six_trylock_type(struct six_lock *lock, enum six_lock_type type) in six_trylock_type()
210 int six_lock_ip_waiter(struct six_lock *lock, enum six_lock_type type,
229 static inline int six_lock_waiter(struct six_lock *lock, enum six_lock_type type, in six_lock_waiter()
247 static inline int six_lock_ip(struct six_lock *lock, enum six_lock_type type, in six_lock_ip()
266 static inline int six_lock_type(struct six_lock *lock, enum six_lock_type type, in six_lock_type()
274 bool six_relock_ip(struct six_lock *lock, enum six_lock_type type,
286 static inline bool six_relock_type(struct six_lock *lock, enum six_lock_type type, in six_relock_type()
292 void six_unlock_ip(struct six_lock *lock, enum six_lock_type type, unsigned long ip);
308 static inline void six_unlock_type(struct six_lock *lock, enum six_lock_type type) in six_unlock_type()
314 static inline bool six_trylock_ip_##type(struct six_lock *lock, unsigned long ip)\
319 static inline bool six_trylock_##type(struct six_lock *lock) \
324 static inline int six_lock_ip_waiter_##type(struct six_lock *lock, \
332 static inline int six_lock_ip_##type(struct six_lock *lock, \
339 static inline bool six_relock_ip_##type(struct six_lock *lock, u32 seq, unsigned long ip)\
344 static inline bool six_relock_##type(struct six_lock *lock, u32 seq) \
349 static inline int six_lock_##type(struct six_lock *lock, \
355 static inline void six_unlock_ip_##type(struct six_lock *lock, unsigned long ip) \
360 static inline void six_unlock_##type(struct six_lock *lock) \
370 void six_lock_downgrade(struct six_lock *);
371 bool six_lock_tryupgrade(struct six_lock *);
372 bool six_trylock_convert(struct six_lock *, enum six_lock_type,
375 void six_lock_increment(struct six_lock *, enum six_lock_type);
377 void six_lock_wakeup_all(struct six_lock *);
383 struct six_lock_count six_lock_counts(struct six_lock *);
384 void six_lock_readers_add(struct six_lock *, int);