Lines Matching full:ssp

28 int __init_srcu_struct(struct srcu_struct *ssp, const char *name,
31 #define init_srcu_struct(ssp) \ argument
35 __init_srcu_struct((ssp), #ssp, &__srcu_key); \
41 int init_srcu_struct(struct srcu_struct *ssp);
57 void call_srcu(struct srcu_struct *ssp, struct rcu_head *head,
59 void cleanup_srcu_struct(struct srcu_struct *ssp);
60 int __srcu_read_lock(struct srcu_struct *ssp) __acquires(ssp);
61 void __srcu_read_unlock(struct srcu_struct *ssp, int idx) __releases(ssp);
62 void synchronize_srcu(struct srcu_struct *ssp);
63 unsigned long get_state_synchronize_srcu(struct srcu_struct *ssp);
64 unsigned long start_poll_synchronize_srcu(struct srcu_struct *ssp);
65 bool poll_state_synchronize_srcu(struct srcu_struct *ssp, unsigned long cookie);
77 * @ssp: The srcu_struct structure to check
91 static inline int srcu_read_lock_held(const struct srcu_struct *ssp) in srcu_read_lock_held() argument
95 return lock_is_held(&ssp->dep_map); in srcu_read_lock_held()
100 static inline int srcu_read_lock_held(const struct srcu_struct *ssp) in srcu_read_lock_held() argument
110 * @ssp: pointer to the srcu_struct, which is used to check that we
119 #define srcu_dereference_check(p, ssp, c) \ argument
121 (c) || srcu_read_lock_held(ssp), __rcu)
126 * @ssp: pointer to the srcu_struct, which is used to check that we
133 #define srcu_dereference(p, ssp) srcu_dereference_check((p), (ssp), 0) argument
138 * @ssp: pointer to the srcu_struct, which is used to check that we
141 #define srcu_dereference_notrace(p, ssp) srcu_dereference_check((p), (ssp), 1) argument
145 * @ssp: srcu_struct in which to register the new reader.
160 static inline int srcu_read_lock(struct srcu_struct *ssp) __acquires(ssp) in srcu_read_lock() argument
164 retval = __srcu_read_lock(ssp); in srcu_read_lock()
165 rcu_lock_acquire(&(ssp)->dep_map); in srcu_read_lock()
171 srcu_read_lock_notrace(struct srcu_struct *ssp) __acquires(ssp) in srcu_read_lock_notrace() argument
175 retval = __srcu_read_lock(ssp); in srcu_read_lock_notrace()
181 * @ssp: srcu_struct in which to unregister the old reader.
186 static inline void srcu_read_unlock(struct srcu_struct *ssp, int idx) in srcu_read_unlock() argument
187 __releases(ssp) in srcu_read_unlock()
190 rcu_lock_release(&(ssp)->dep_map); in srcu_read_unlock()
191 __srcu_read_unlock(ssp, idx); in srcu_read_unlock()
196 srcu_read_unlock_notrace(struct srcu_struct *ssp, int idx) __releases(ssp) in srcu_read_unlock_notrace() argument
198 __srcu_read_unlock(ssp, idx); in srcu_read_unlock_notrace()