Lines Matching refs:VAR

211 #define	list_for_each(VAR, HEAD)					\  argument
212 for ((VAR) = list_first((HEAD)); \
213 (VAR) != (HEAD); \
214 (VAR) = list_next((VAR)))
216 #define list_for_each_safe(VAR, NEXT, HEAD) \ argument
217 for ((VAR) = list_first((HEAD)); \
218 ((VAR) != (HEAD)) && ((NEXT) = list_next((VAR)), 1); \
219 (VAR) = (NEXT))
221 #define list_for_each_entry(VAR, HEAD, FIELD) \ argument
222 for ((VAR) = list_entry(list_first((HEAD)), typeof(*(VAR)), FIELD); \
223 &(VAR)->FIELD != (HEAD); \
224 (VAR) = list_entry(list_next(&(VAR)->FIELD), typeof(*(VAR)), \
227 #define list_for_each_entry_reverse(VAR, HEAD, FIELD) \ argument
228 for ((VAR) = list_entry(list_last((HEAD)), typeof(*(VAR)), FIELD); \
229 &(VAR)->FIELD != (HEAD); \
230 (VAR) = list_entry(list_prev(&(VAR)->FIELD), typeof(*(VAR)), \
233 #define list_for_each_entry_safe(VAR, NEXT, HEAD, FIELD) \ argument
234 for ((VAR) = list_entry(list_first((HEAD)), typeof(*(VAR)), FIELD); \
235 (&(VAR)->FIELD != (HEAD)) && \
236 ((NEXT) = list_entry(list_next(&(VAR)->FIELD), \
237 typeof(*(VAR)), FIELD), 1); \
238 (VAR) = (NEXT))
240 #define list_for_each_entry_continue(VAR, HEAD, FIELD) \ argument
241 for ((VAR) = list_next_entry((VAR), FIELD); \
242 &(VAR)->FIELD != (HEAD); \
243 (VAR) = list_next_entry((VAR), FIELD))
245 #define list_for_each_entry_continue_reverse(VAR, HEAD, FIELD) \ argument
246 for ((VAR) = list_prev_entry((VAR), FIELD); \
247 &(VAR)->FIELD != (HEAD); \
248 (VAR) = list_prev_entry((VAR), FIELD))
250 #define list_for_each_entry_safe_from(VAR, NEXT, HEAD, FIELD) \ argument
252 (&(VAR)->FIELD != (HEAD)) && \
253 ((NEXT) = list_next_entry((VAR), FIELD)); \
254 (VAR) = (NEXT))