Lines Matching refs:ptr
137 #define list_entry(ptr, type, member) container_of(ptr, type, member) argument
147 #define list_first_entry(ptr, type, member) list_entry((ptr)->next, type, member) argument
157 #define list_first_entry_or_null(ptr, type, member) (!list_empty(ptr) ? list_entry((ptr)->next, typ… argument
167 #define list_last_entry(ptr, type, member) list_entry((ptr)->prev, type, member) argument
177 #define list_last_entry_or_full(ptr, type, member) (!list_empty(ptr) ? list_entry((ptr)->prev, type… argument
201 #define list_for_each(ptr, head) \ argument
202 for ((ptr) = (head)->next; (ptr) != (head); (ptr) = (ptr)->next)
210 #define list_for_each_prev(ptr, head) \ argument
211 for ((ptr) = (head)->prev; (ptr) != (head); (ptr) = (ptr)->prev)
221 #define list_for_each_safe(ptr, n, head) \ argument
222 for ((ptr) = (head)->next, (n) = (ptr)->next; (ptr) != (head); (ptr) = n, n = (ptr)->next)
232 #define list_for_each_prev_safe(ptr, n, head) \ argument
233 for ((ptr) = (head)->prev, (n) = (ptr)->prev; (ptr) != (head); (ptr) = n, n = (ptr)->prev)