Lines Matching defs:sem
68 # define DEBUG_RWSEMS_WARN_ON(c, sem) do { \ argument
78 # define DEBUG_RWSEMS_WARN_ON(c, sem) argument
140 static inline void rwsem_set_owner(struct rw_semaphore *sem) in rwsem_set_owner()
146 static inline void rwsem_clear_owner(struct rw_semaphore *sem) in rwsem_clear_owner()
155 static inline bool rwsem_test_oflags(struct rw_semaphore *sem, long flags) in rwsem_test_oflags()
170 static inline void __rwsem_set_reader_owned(struct rw_semaphore *sem, in __rwsem_set_reader_owned()
179 static inline void rwsem_set_reader_owned(struct rw_semaphore *sem) in rwsem_set_reader_owned()
187 static inline bool is_rwsem_reader_owned(struct rw_semaphore *sem) in is_rwsem_reader_owned()
208 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned()
219 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned()
228 static inline void rwsem_set_nonspinnable(struct rw_semaphore *sem) in rwsem_set_nonspinnable()
241 static inline bool rwsem_read_trylock(struct rw_semaphore *sem, long *cntp) in rwsem_read_trylock()
256 static inline bool rwsem_write_trylock(struct rw_semaphore *sem) in rwsem_write_trylock()
271 static inline struct task_struct *rwsem_owner(struct rw_semaphore *sem) in rwsem_owner()
282 rwsem_owner_flags(struct rw_semaphore *sem, unsigned long *pflags) in rwsem_owner_flags()
310 void __init_rwsem(struct rw_semaphore *sem, const char *name, in __init_rwsem()
345 #define rwsem_first_waiter(sem) \ argument
370 rwsem_add_waiter(struct rw_semaphore *sem, struct rwsem_waiter *waiter) in rwsem_add_waiter()
386 rwsem_del_waiter(struct rw_semaphore *sem, struct rwsem_waiter *waiter) in rwsem_del_waiter()
411 static void rwsem_mark_wake(struct rw_semaphore *sem, in rwsem_mark_wake()
577 rwsem_del_wake_waiter(struct rw_semaphore *sem, struct rwsem_waiter *waiter, in rwsem_del_wake_waiter()
604 static inline bool rwsem_try_write_lock(struct rw_semaphore *sem, in rwsem_try_write_lock()
690 static inline bool rwsem_try_write_lock_unqueued(struct rw_semaphore *sem) in rwsem_try_write_lock_unqueued()
705 static inline bool rwsem_can_spin_on_owner(struct rw_semaphore *sem) in rwsem_can_spin_on_owner()
747 rwsem_spin_on_owner(struct rw_semaphore *sem) in rwsem_spin_on_owner()
806 static inline u64 rwsem_rspin_threshold(struct rw_semaphore *sem) in rwsem_rspin_threshold()
819 static bool rwsem_optimistic_spin(struct rw_semaphore *sem) in rwsem_optimistic_spin()
941 static inline void clear_nonspinnable(struct rw_semaphore *sem) in clear_nonspinnable()
948 static inline bool rwsem_can_spin_on_owner(struct rw_semaphore *sem) in rwsem_can_spin_on_owner()
953 static inline bool rwsem_optimistic_spin(struct rw_semaphore *sem) in rwsem_optimistic_spin()
958 static inline void clear_nonspinnable(struct rw_semaphore *sem) { } in clear_nonspinnable()
961 rwsem_spin_on_owner(struct rw_semaphore *sem) in rwsem_spin_on_owner()
975 static inline void rwsem_cond_wake_waiter(struct rw_semaphore *sem, long count, in rwsem_cond_wake_waiter()
996 rwsem_down_read_slowpath(struct rw_semaphore *sem, long count, unsigned int state) in rwsem_down_read_slowpath()
1107 rwsem_down_write_slowpath(struct rw_semaphore *sem, int state) in rwsem_down_write_slowpath()
1203 static struct rw_semaphore *rwsem_wake(struct rw_semaphore *sem) in rwsem_wake()
1224 static struct rw_semaphore *rwsem_downgrade_wake(struct rw_semaphore *sem) in rwsem_downgrade_wake()
1243 static inline int __down_read_common(struct rw_semaphore *sem, int state) in __down_read_common()
1261 static inline void __down_read(struct rw_semaphore *sem) in __down_read()
1266 static inline int __down_read_interruptible(struct rw_semaphore *sem) in __down_read_interruptible()
1271 static inline int __down_read_killable(struct rw_semaphore *sem) in __down_read_killable()
1276 static inline int __down_read_trylock(struct rw_semaphore *sem) in __down_read_trylock()
1300 static inline int __down_write_common(struct rw_semaphore *sem, int state) in __down_write_common()
1313 static inline void __down_write(struct rw_semaphore *sem) in __down_write()
1318 static inline int __down_write_killable(struct rw_semaphore *sem) in __down_write_killable()
1323 static inline int __down_write_trylock(struct rw_semaphore *sem) in __down_write_trylock()
1338 static inline void __up_read(struct rw_semaphore *sem) in __up_read()
1360 static inline void __up_write(struct rw_semaphore *sem) in __up_write()
1383 static inline void __downgrade_write(struct rw_semaphore *sem) in __downgrade_write()
1435 void __init_rwsem(struct rw_semaphore *sem, const char *name, in __init_rwsem()
1447 static inline void __down_read(struct rw_semaphore *sem) in __down_read()
1452 static inline int __down_read_interruptible(struct rw_semaphore *sem) in __down_read_interruptible()
1457 static inline int __down_read_killable(struct rw_semaphore *sem) in __down_read_killable()
1462 static inline int __down_read_trylock(struct rw_semaphore *sem) in __down_read_trylock()
1467 static inline void __up_read(struct rw_semaphore *sem) in __up_read()
1472 static inline void __sched __down_write(struct rw_semaphore *sem) in __down_write()
1477 static inline int __sched __down_write_killable(struct rw_semaphore *sem) in __down_write_killable()
1482 static inline int __down_write_trylock(struct rw_semaphore *sem) in __down_write_trylock()
1487 static inline void __up_write(struct rw_semaphore *sem) in __up_write()
1492 static inline void __downgrade_write(struct rw_semaphore *sem) in __downgrade_write()
1498 #define DEBUG_RWSEMS_WARN_ON(c, sem) argument
1500 static inline void __rwsem_set_reader_owned(struct rw_semaphore *sem, in __rwsem_set_reader_owned()
1505 static inline bool is_rwsem_reader_owned(struct rw_semaphore *sem) in is_rwsem_reader_owned()
1517 void __sched down_read(struct rw_semaphore *sem) in down_read()
1526 int __sched down_read_interruptible(struct rw_semaphore *sem) in down_read_interruptible()
1540 int __sched down_read_killable(struct rw_semaphore *sem) in down_read_killable()
1557 int down_read_trylock(struct rw_semaphore *sem) in down_read_trylock()
1570 void __sched down_write(struct rw_semaphore *sem) in down_write()
1581 int __sched down_write_killable(struct rw_semaphore *sem) in down_write_killable()
1599 int down_write_trylock(struct rw_semaphore *sem) in down_write_trylock()
1613 void up_read(struct rw_semaphore *sem) in up_read()
1623 void up_write(struct rw_semaphore *sem) in up_write()
1633 void downgrade_write(struct rw_semaphore *sem) in downgrade_write()
1642 void down_read_nested(struct rw_semaphore *sem, int subclass) in down_read_nested()
1650 int down_read_killable_nested(struct rw_semaphore *sem, int subclass) in down_read_killable_nested()
1664 void _down_write_nest_lock(struct rw_semaphore *sem, struct lockdep_map *nest) in _down_write_nest_lock()
1672 void down_read_non_owner(struct rw_semaphore *sem) in down_read_non_owner()
1686 void down_write_nested(struct rw_semaphore *sem, int subclass) in down_write_nested()
1694 int __sched down_write_killable_nested(struct rw_semaphore *sem, int subclass) in down_write_killable_nested()
1709 void up_read_non_owner(struct rw_semaphore *sem) in up_read_non_owner()