• Home
  • Raw
  • Download

Lines Matching refs:member

34 #define container_of(ptr, type, member) ({                      \  argument
35 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
36 (type *)( (char *)__mptr - offsetof(type,member) );})
286 #define list_entry(ptr, type, member) \ argument
287 container_of(ptr, type, member)
336 #define list_for_each_entry(pos, head, member) \ argument
337 for (pos = list_entry((head)->next, typeof(*pos), member); \
338 &pos->member != (head); \
339 pos = list_entry(pos->member.next, typeof(*pos), member))
347 #define list_for_each_entry_reverse(pos, head, member) \ argument
348 for (pos = list_entry((head)->prev, typeof(*pos), member); \
349 &pos->member != (head); \
350 pos = list_entry(pos->member.prev, typeof(*pos), member))
360 #define list_prepare_entry(pos, head, member) \ argument
361 ((pos) ? : list_entry(head, typeof(*pos), member))
372 #define list_for_each_entry_continue(pos, head, member) \ argument
373 for (pos = list_entry(pos->member.next, typeof(*pos), member); \
374 &pos->member != (head); \
375 pos = list_entry(pos->member.next, typeof(*pos), member))
385 #define list_for_each_entry_from(pos, head, member) \ argument
386 for (; &pos->member != (head); \
387 pos = list_entry(pos->member.next, typeof(*pos), member))
396 #define list_for_each_entry_safe(pos, n, head, member) \ argument
397 for (pos = list_entry((head)->next, typeof(*pos), member), \
398 n = list_entry(pos->member.next, typeof(*pos), member); \
399 &pos->member != (head); \
400 pos = n, n = list_entry(n->member.next, typeof(*n), member))
412 #define list_for_each_entry_safe_continue(pos, n, head, member) \ argument
413 for (pos = list_entry(pos->member.next, typeof(*pos), member), \
414 n = list_entry(pos->member.next, typeof(*pos), member); \
415 &pos->member != (head); \
416 pos = n, n = list_entry(n->member.next, typeof(*n), member))
428 #define list_for_each_entry_safe_from(pos, n, head, member) \ argument
429 for (n = list_entry(pos->member.next, typeof(*pos), member); \
430 &pos->member != (head); \
431 pos = n, n = list_entry(n->member.next, typeof(*n), member))
443 #define list_for_each_entry_safe_reverse(pos, n, head, member) \ argument
444 for (pos = list_entry((head)->prev, typeof(*pos), member), \
445 n = list_entry(pos->member.prev, typeof(*pos), member); \
446 &pos->member != (head); \
447 pos = n, n = list_entry(n->member.prev, typeof(*n), member))