Lines Matching refs:list_is_head
362 static inline int list_is_head(const struct list_head *list, const struct list_head *head) in list_is_head() function
410 return list_is_head(next, head) && (next == READ_ONCE(head->prev)); in list_empty_careful()
485 if (list_is_singular(head) && !list_is_head(entry, head) && (entry != head->next)) in list_cut_position()
487 if (list_is_head(entry, head)) in list_cut_position()
687 for (pos = (head)->next; !list_is_head(pos, (head)); pos = pos->next)
696 !list_is_head(pos, (head)); \
707 for (pos = pos->next; !list_is_head(pos, (head)); pos = pos->next)
715 for (pos = (head)->prev; !list_is_head(pos, (head)); pos = pos->prev)
725 !list_is_head(pos, (head)); \
736 !list_is_head(pos, (head)); \
761 list_is_head(&pos->member, (head))