Lines Matching refs:sp

67 int __init_srcu_struct(struct srcu_struct *sp, const char *name,
70 #define init_srcu_struct(sp) \ argument
74 __init_srcu_struct((sp), #sp, &__srcu_key); \
80 int init_srcu_struct(struct srcu_struct *sp);
128 void call_srcu(struct srcu_struct *sp, struct rcu_head *head,
131 void cleanup_srcu_struct(struct srcu_struct *sp);
132 int __srcu_read_lock(struct srcu_struct *sp) __acquires(sp);
133 void __srcu_read_unlock(struct srcu_struct *sp, int idx) __releases(sp);
134 void synchronize_srcu(struct srcu_struct *sp);
135 void synchronize_srcu_expedited(struct srcu_struct *sp);
136 unsigned long srcu_batches_completed(struct srcu_struct *sp);
137 void srcu_barrier(struct srcu_struct *sp);
156 static inline int srcu_read_lock_held(struct srcu_struct *sp) in srcu_read_lock_held() argument
160 return lock_is_held(&sp->dep_map); in srcu_read_lock_held()
165 static inline int srcu_read_lock_held(struct srcu_struct *sp) in srcu_read_lock_held() argument
184 #define srcu_dereference_check(p, sp, c) \ argument
185 __rcu_dereference_check((p), (c) || srcu_read_lock_held(sp), __rcu)
197 #define srcu_dereference(p, sp) srcu_dereference_check((p), (sp), 0) argument
216 static inline int srcu_read_lock(struct srcu_struct *sp) __acquires(sp) in srcu_read_lock() argument
221 retval = __srcu_read_lock(sp); in srcu_read_lock()
223 rcu_lock_acquire(&(sp)->dep_map); in srcu_read_lock()
234 static inline void srcu_read_unlock(struct srcu_struct *sp, int idx) in srcu_read_unlock() argument
235 __releases(sp) in srcu_read_unlock()
237 rcu_lock_release(&(sp)->dep_map); in srcu_read_unlock()
238 __srcu_read_unlock(sp, idx); in srcu_read_unlock()