• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/include/linux/

Lines Matching refs:head

102 #define _PLIST_HEAD_INIT(head)				\
103 .prio_list = LIST_HEAD_INIT((head).prio_list), \
104 .node_list = LIST_HEAD_INIT((head).node_list)
108 * @head: struct plist_head variable name
111 #define PLIST_HEAD_INIT(head, _lock) \
113 _PLIST_HEAD_INIT(head), \
119 * @head: struct plist_head variable name
122 #define PLIST_HEAD_INIT_RAW(head, _lock) \
124 _PLIST_HEAD_INIT(head), \
141 * @head: &struct plist_head pointer
145 plist_head_init(struct plist_head *head, spinlock_t *lock)
147 INIT_LIST_HEAD(&head->prio_list);
148 INIT_LIST_HEAD(&head->node_list);
150 head->spinlock = lock;
151 head->rawlock = NULL;
157 * @head: &struct plist_head pointer
161 plist_head_init_raw(struct plist_head *head, raw_spinlock_t *lock)
163 INIT_LIST_HEAD(&head->prio_list);
164 INIT_LIST_HEAD(&head->node_list);
166 head->rawlock = lock;
167 head->spinlock = NULL;
182 extern void plist_add(struct plist_node *node, struct plist_head *head);
183 extern void plist_del(struct plist_node *node, struct plist_head *head);
188 * @head: the head for your list
190 #define plist_for_each(pos, head) \
191 list_for_each_entry(pos, &(head)->node_list, plist.node_list)
197 * @head: the head for your list
201 #define plist_for_each_safe(pos, n, head) \
202 list_for_each_entry_safe(pos, n, &(head)->node_list, plist.node_list)
207 * @head: the head for your list
210 #define plist_for_each_entry(pos, head, mem) \
211 list_for_each_entry(pos, &(head)->node_list, mem.plist.node_list)
217 * @head: the head for your list
222 #define plist_for_each_entry_safe(pos, n, head, m) \
223 list_for_each_entry_safe(pos, n, &(head)->node_list, m.plist.node_list)
227 * @head: &struct plist_head pointer
229 static inline int plist_head_empty(const struct plist_head *head)
231 return list_empty(&head->node_list);
247 * @head: the &struct plist_head pointer
252 # define plist_first_entry(head, type, member) \
254 WARN_ON(plist_head_empty(head)); \
255 container_of(plist_first(head), type, member); \
258 # define plist_first_entry(head, type, member) \
259 container_of(plist_first(head), type, member)
264 * @head: the &struct plist_head pointer
269 # define plist_last_entry(head, type, member) \
271 WARN_ON(plist_head_empty(head)); \
272 container_of(plist_last(head), type, member); \
275 # define plist_last_entry(head, type, member) \
276 container_of(plist_last(head), type, member)
281 * @head: the &struct plist_head pointer
285 static inline struct plist_node *plist_first(const struct plist_head *head)
287 return list_entry(head->node_list.next,
293 * @head: the &struct plist_head pointer
297 static inline struct plist_node *plist_last(const struct plist_head *head)
299 return list_entry(head->node_list.prev,