• Home
  • Raw
  • Download

Lines Matching defs:sem

70 # define DEBUG_RWSEMS_WARN_ON(c, sem)	do {			\  argument
80 # define DEBUG_RWSEMS_WARN_ON(c, sem) argument
142 static inline void rwsem_set_owner(struct rw_semaphore *sem) in rwsem_set_owner()
148 static inline void rwsem_clear_owner(struct rw_semaphore *sem) in rwsem_clear_owner()
157 static inline bool rwsem_test_oflags(struct rw_semaphore *sem, long flags) in rwsem_test_oflags()
172 static inline void __rwsem_set_reader_owned(struct rw_semaphore *sem, in __rwsem_set_reader_owned()
181 static inline void rwsem_set_reader_owned(struct rw_semaphore *sem) in rwsem_set_reader_owned()
189 static inline bool is_rwsem_reader_owned(struct rw_semaphore *sem) in is_rwsem_reader_owned()
210 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned()
221 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned()
230 static inline void rwsem_set_nonspinnable(struct rw_semaphore *sem) in rwsem_set_nonspinnable()
243 static inline bool rwsem_read_trylock(struct rw_semaphore *sem, long *cntp) in rwsem_read_trylock()
259 static inline bool rwsem_write_trylock(struct rw_semaphore *sem) in rwsem_write_trylock()
278 static inline struct task_struct *rwsem_owner(struct rw_semaphore *sem) in rwsem_owner()
289 rwsem_owner_flags(struct rw_semaphore *sem, unsigned long *pflags) in rwsem_owner_flags()
317 void __init_rwsem(struct rw_semaphore *sem, const char *name, in __init_rwsem()
353 #define rwsem_first_waiter(sem) \ argument
378 rwsem_add_waiter(struct rw_semaphore *sem, struct rwsem_waiter *waiter) in rwsem_add_waiter()
394 rwsem_del_waiter(struct rw_semaphore *sem, struct rwsem_waiter *waiter) in rwsem_del_waiter()
419 static void rwsem_mark_wake(struct rw_semaphore *sem, in rwsem_mark_wake()
585 rwsem_del_wake_waiter(struct rw_semaphore *sem, struct rwsem_waiter *waiter, in rwsem_del_wake_waiter()
612 static inline bool rwsem_try_write_lock(struct rw_semaphore *sem, in rwsem_try_write_lock()
698 static inline bool rwsem_try_write_lock_unqueued(struct rw_semaphore *sem) in rwsem_try_write_lock_unqueued()
713 static inline bool rwsem_can_spin_on_owner(struct rw_semaphore *sem) in rwsem_can_spin_on_owner()
758 rwsem_spin_on_owner(struct rw_semaphore *sem) in rwsem_spin_on_owner()
822 static inline u64 rwsem_rspin_threshold(struct rw_semaphore *sem) in rwsem_rspin_threshold()
835 static bool rwsem_optimistic_spin(struct rw_semaphore *sem) in rwsem_optimistic_spin()
966 static inline void clear_nonspinnable(struct rw_semaphore *sem) in clear_nonspinnable()
973 static inline bool rwsem_can_spin_on_owner(struct rw_semaphore *sem) in rwsem_can_spin_on_owner()
978 static inline bool rwsem_optimistic_spin(struct rw_semaphore *sem) in rwsem_optimistic_spin()
983 static inline void clear_nonspinnable(struct rw_semaphore *sem) { } in clear_nonspinnable()
986 rwsem_spin_on_owner(struct rw_semaphore *sem) in rwsem_spin_on_owner()
1000 static inline void rwsem_cond_wake_waiter(struct rw_semaphore *sem, long count, in rwsem_cond_wake_waiter()
1021 rwsem_down_read_slowpath(struct rw_semaphore *sem, long count, unsigned int state) in rwsem_down_read_slowpath()
1145 rwsem_down_write_slowpath(struct rw_semaphore *sem, int state) in rwsem_down_write_slowpath()
1255 static struct rw_semaphore *rwsem_wake(struct rw_semaphore *sem) in rwsem_wake()
1277 static struct rw_semaphore *rwsem_downgrade_wake(struct rw_semaphore *sem) in rwsem_downgrade_wake()
1296 static __always_inline int __down_read_common(struct rw_semaphore *sem, int state) in __down_read_common()
1314 static __always_inline void __down_read(struct rw_semaphore *sem) in __down_read()
1319 static __always_inline int __down_read_interruptible(struct rw_semaphore *sem) in __down_read_interruptible()
1324 static __always_inline int __down_read_killable(struct rw_semaphore *sem) in __down_read_killable()
1329 static inline int __down_read_trylock(struct rw_semaphore *sem) in __down_read_trylock()
1354 static inline int __down_write_common(struct rw_semaphore *sem, int state) in __down_write_common()
1364 static inline void __down_write(struct rw_semaphore *sem) in __down_write()
1369 static inline int __down_write_killable(struct rw_semaphore *sem) in __down_write_killable()
1374 static inline int __down_write_trylock(struct rw_semaphore *sem) in __down_write_trylock()
1383 static inline void __up_read(struct rw_semaphore *sem) in __up_read()
1406 static inline void __up_write(struct rw_semaphore *sem) in __up_write()
1430 static inline void __downgrade_write(struct rw_semaphore *sem) in __downgrade_write()
1480 void __init_rwsem(struct rw_semaphore *sem, const char *name, in __init_rwsem()
1492 static inline void __down_read(struct rw_semaphore *sem) in __down_read()
1497 static inline int __down_read_interruptible(struct rw_semaphore *sem) in __down_read_interruptible()
1502 static inline int __down_read_killable(struct rw_semaphore *sem) in __down_read_killable()
1507 static inline int __down_read_trylock(struct rw_semaphore *sem) in __down_read_trylock()
1512 static inline void __up_read(struct rw_semaphore *sem) in __up_read()
1517 static inline void __sched __down_write(struct rw_semaphore *sem) in __down_write()
1522 static inline int __sched __down_write_killable(struct rw_semaphore *sem) in __down_write_killable()
1527 static inline int __down_write_trylock(struct rw_semaphore *sem) in __down_write_trylock()
1532 static inline void __up_write(struct rw_semaphore *sem) in __up_write()
1537 static inline void __downgrade_write(struct rw_semaphore *sem) in __downgrade_write()
1543 #define DEBUG_RWSEMS_WARN_ON(c, sem) argument
1545 static inline void __rwsem_set_reader_owned(struct rw_semaphore *sem, in __rwsem_set_reader_owned()
1550 static inline bool is_rwsem_reader_owned(struct rw_semaphore *sem) in is_rwsem_reader_owned()
1562 void __sched down_read(struct rw_semaphore *sem) in down_read()
1571 int __sched down_read_interruptible(struct rw_semaphore *sem) in down_read_interruptible()
1585 int __sched down_read_killable(struct rw_semaphore *sem) in down_read_killable()
1602 int down_read_trylock(struct rw_semaphore *sem) in down_read_trylock()
1615 void __sched down_write(struct rw_semaphore *sem) in down_write()
1626 int __sched down_write_killable(struct rw_semaphore *sem) in down_write_killable()
1644 int down_write_trylock(struct rw_semaphore *sem) in down_write_trylock()
1658 void up_read(struct rw_semaphore *sem) in up_read()
1668 void up_write(struct rw_semaphore *sem) in up_write()
1679 void downgrade_write(struct rw_semaphore *sem) in downgrade_write()
1689 void down_read_nested(struct rw_semaphore *sem, int subclass) in down_read_nested()
1697 int down_read_killable_nested(struct rw_semaphore *sem, int subclass) in down_read_killable_nested()
1711 void _down_write_nest_lock(struct rw_semaphore *sem, struct lockdep_map *nest) in _down_write_nest_lock()
1719 void down_read_non_owner(struct rw_semaphore *sem) in down_read_non_owner()
1733 void down_write_nested(struct rw_semaphore *sem, int subclass) in down_write_nested()
1741 int __sched down_write_killable_nested(struct rw_semaphore *sem, int subclass) in down_write_killable_nested()
1756 void up_read_non_owner(struct rw_semaphore *sem) in up_read_non_owner()