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()
274 static inline struct task_struct *rwsem_owner(struct rw_semaphore *sem) in rwsem_owner()
285 rwsem_owner_flags(struct rw_semaphore *sem, unsigned long *pflags) in rwsem_owner_flags()
313 void __init_rwsem(struct rw_semaphore *sem, const char *name, in __init_rwsem()
348 #define rwsem_first_waiter(sem) \ argument
373 rwsem_add_waiter(struct rw_semaphore *sem, struct rwsem_waiter *waiter) in rwsem_add_waiter()
389 rwsem_del_waiter(struct rw_semaphore *sem, struct rwsem_waiter *waiter) in rwsem_del_waiter()
414 static void rwsem_mark_wake(struct rw_semaphore *sem, in rwsem_mark_wake()
580 rwsem_del_wake_waiter(struct rw_semaphore *sem, struct rwsem_waiter *waiter, in rwsem_del_wake_waiter()
607 static inline bool rwsem_try_write_lock(struct rw_semaphore *sem, in rwsem_try_write_lock()
694 static inline bool rwsem_try_write_lock_unqueued(struct rw_semaphore *sem) in rwsem_try_write_lock_unqueued()
709 static inline bool rwsem_can_spin_on_owner(struct rw_semaphore *sem) in rwsem_can_spin_on_owner()
753 rwsem_spin_on_owner(struct rw_semaphore *sem) in rwsem_spin_on_owner()
812 static inline u64 rwsem_rspin_threshold(struct rw_semaphore *sem) in rwsem_rspin_threshold()
825 static bool rwsem_optimistic_spin(struct rw_semaphore *sem) in rwsem_optimistic_spin()
950 static inline void clear_nonspinnable(struct rw_semaphore *sem) in clear_nonspinnable()
957 static inline bool rwsem_can_spin_on_owner(struct rw_semaphore *sem) in rwsem_can_spin_on_owner()
962 static inline bool rwsem_optimistic_spin(struct rw_semaphore *sem) in rwsem_optimistic_spin()
967 static inline void clear_nonspinnable(struct rw_semaphore *sem) { } in clear_nonspinnable()
970 rwsem_spin_on_owner(struct rw_semaphore *sem) in rwsem_spin_on_owner()
984 static inline void rwsem_cond_wake_waiter(struct rw_semaphore *sem, long count, in rwsem_cond_wake_waiter()
1005 rwsem_down_read_slowpath(struct rw_semaphore *sem, long count, unsigned int state) in rwsem_down_read_slowpath()
1116 rwsem_down_write_slowpath(struct rw_semaphore *sem, int state) in rwsem_down_write_slowpath()
1215 static struct rw_semaphore *rwsem_wake(struct rw_semaphore *sem) in rwsem_wake()
1236 static struct rw_semaphore *rwsem_downgrade_wake(struct rw_semaphore *sem) in rwsem_downgrade_wake()
1255 static inline int __down_read_common(struct rw_semaphore *sem, int state) in __down_read_common()
1267 static inline void __down_read(struct rw_semaphore *sem) in __down_read()
1272 static inline int __down_read_interruptible(struct rw_semaphore *sem) in __down_read_interruptible()
1277 static inline int __down_read_killable(struct rw_semaphore *sem) in __down_read_killable()
1282 static inline int __down_read_trylock(struct rw_semaphore *sem) in __down_read_trylock()
1302 static inline int __down_write_common(struct rw_semaphore *sem, int state) in __down_write_common()
1312 static inline void __down_write(struct rw_semaphore *sem) in __down_write()
1317 static inline int __down_write_killable(struct rw_semaphore *sem) in __down_write_killable()
1322 static inline int __down_write_trylock(struct rw_semaphore *sem) in __down_write_trylock()
1331 static inline void __up_read(struct rw_semaphore *sem) in __up_read()
1351 static inline void __up_write(struct rw_semaphore *sem) in __up_write()
1374 static inline void __downgrade_write(struct rw_semaphore *sem) in __downgrade_write()
1424 void __init_rwsem(struct rw_semaphore *sem, const char *name, in __init_rwsem()
1436 static inline void __down_read(struct rw_semaphore *sem) in __down_read()
1441 static inline int __down_read_interruptible(struct rw_semaphore *sem) in __down_read_interruptible()
1446 static inline int __down_read_killable(struct rw_semaphore *sem) in __down_read_killable()
1451 static inline int __down_read_trylock(struct rw_semaphore *sem) in __down_read_trylock()
1456 static inline void __up_read(struct rw_semaphore *sem) in __up_read()
1461 static inline void __sched __down_write(struct rw_semaphore *sem) in __down_write()
1466 static inline int __sched __down_write_killable(struct rw_semaphore *sem) in __down_write_killable()
1471 static inline int __down_write_trylock(struct rw_semaphore *sem) in __down_write_trylock()
1476 static inline void __up_write(struct rw_semaphore *sem) in __up_write()
1481 static inline void __downgrade_write(struct rw_semaphore *sem) in __downgrade_write()
1487 #define DEBUG_RWSEMS_WARN_ON(c, sem) argument
1489 static inline void __rwsem_set_reader_owned(struct rw_semaphore *sem, in __rwsem_set_reader_owned()
1494 static inline bool is_rwsem_reader_owned(struct rw_semaphore *sem) in is_rwsem_reader_owned()
1506 void __sched down_read(struct rw_semaphore *sem) in down_read()
1515 int __sched down_read_interruptible(struct rw_semaphore *sem) in down_read_interruptible()
1529 int __sched down_read_killable(struct rw_semaphore *sem) in down_read_killable()
1546 int down_read_trylock(struct rw_semaphore *sem) in down_read_trylock()
1559 void __sched down_write(struct rw_semaphore *sem) in down_write()
1570 int __sched down_write_killable(struct rw_semaphore *sem) in down_write_killable()
1588 int down_write_trylock(struct rw_semaphore *sem) in down_write_trylock()
1602 void up_read(struct rw_semaphore *sem) in up_read()
1612 void up_write(struct rw_semaphore *sem) in up_write()
1622 void downgrade_write(struct rw_semaphore *sem) in downgrade_write()
1631 void down_read_nested(struct rw_semaphore *sem, int subclass) in down_read_nested()
1639 int down_read_killable_nested(struct rw_semaphore *sem, int subclass) in down_read_killable_nested()
1653 void _down_write_nest_lock(struct rw_semaphore *sem, struct lockdep_map *nest) in _down_write_nest_lock()
1661 void down_read_non_owner(struct rw_semaphore *sem) in down_read_non_owner()
1669 void down_write_nested(struct rw_semaphore *sem, int subclass) in down_write_nested()
1677 int __sched down_write_killable_nested(struct rw_semaphore *sem, int subclass) in down_write_killable_nested()
1692 void up_read_non_owner(struct rw_semaphore *sem) in up_read_non_owner()