Lines Matching refs:name
80 #define ATOMIC_INIT_NOTIFIER_HEAD(name) do { \ argument
81 spin_lock_init(&(name)->lock); \
82 (name)->head = NULL; \
84 #define BLOCKING_INIT_NOTIFIER_HEAD(name) do { \ argument
85 init_rwsem(&(name)->rwsem); \
86 (name)->head = NULL; \
88 #define RAW_INIT_NOTIFIER_HEAD(name) do { \ argument
89 (name)->head = NULL; \
94 #define srcu_cleanup_notifier_head(name) \ argument
95 cleanup_srcu_struct(&(name)->srcu);
97 #define ATOMIC_NOTIFIER_INIT(name) { \ argument
98 .lock = __SPIN_LOCK_UNLOCKED(name.lock), \
100 #define BLOCKING_NOTIFIER_INIT(name) { \ argument
101 .rwsem = __RWSEM_INITIALIZER((name).rwsem), \
103 #define RAW_NOTIFIER_INIT(name) { \ argument
106 #define SRCU_NOTIFIER_INIT(name, pcpu) \ argument
108 .mutex = __MUTEX_INITIALIZER(name.mutex), \
110 .srcu = __SRCU_STRUCT_INIT(name.srcu, pcpu), \
113 #define ATOMIC_NOTIFIER_HEAD(name) \ argument
114 struct atomic_notifier_head name = \
115 ATOMIC_NOTIFIER_INIT(name)
116 #define BLOCKING_NOTIFIER_HEAD(name) \ argument
117 struct blocking_notifier_head name = \
118 BLOCKING_NOTIFIER_INIT(name)
119 #define RAW_NOTIFIER_HEAD(name) \ argument
120 struct raw_notifier_head name = \
121 RAW_NOTIFIER_INIT(name)
124 #define _SRCU_NOTIFIER_HEAD(name, mod) \ argument
125 static DEFINE_PER_CPU(struct srcu_data, name##_head_srcu_data); \
126 mod struct srcu_notifier_head name = \
127 SRCU_NOTIFIER_INIT(name, name##_head_srcu_data)
130 #define _SRCU_NOTIFIER_HEAD(name, mod) \ argument
131 mod struct srcu_notifier_head name = \
132 SRCU_NOTIFIER_INIT(name, name)
136 #define SRCU_NOTIFIER_HEAD(name) \ argument
137 _SRCU_NOTIFIER_HEAD(name, /* not static */)
139 #define SRCU_NOTIFIER_HEAD_STATIC(name) \ argument
140 _SRCU_NOTIFIER_HEAD(name, static)