Home
last modified time | relevance | path

Searched refs:list_is_head (Results 1 – 9 of 9) sorted by relevance

/linux/include/linux/
H A Dlist.h370 static inline int list_is_head(const struct list_head *list, const struct list_head *head) in list_is_head() function
418 return list_is_head(next, head) && (next == READ_ONCE(head->prev)); in list_empty_careful()
493 if (list_is_singular(head) && !list_is_head(entry, head) && (entry != head->next)) in list_cut_position()
495 if (list_is_head(entry, head)) in list_cut_position()
709 for (pos = (head)->next; !list_is_head(pos, (head)); pos = pos->next)
719 for (pos = pos->next; !list_is_head(pos, (head)); pos = pos->next)
727 for (pos = (head)->prev; !list_is_head(pos, (head)); pos = pos->prev)
737 !list_is_head(pos, (head)); \
748 !list_is_head(pos, (head)); \
773 list_is_head(&pos->member, (head))
H A Drculist.h52 !list_is_head(pos, (head)); \
/linux/tools/testing/selftests/bpf/progs/
H A Dmptcp_bpf.h8 static inline int list_is_head(const struct list_head *list, in list_is_head() function
24 list_is_head(&pos->member, (head))
/linux/fs/netfs/
H A Dwrite_retry.c192 } while (!list_is_head(next, &stream->subrequests)); in netfs_retry_write_stream()
H A Dread_retry.c234 } while (!list_is_head(next, &stream->subrequests)); in netfs_retry_read_subrequests()
/linux/kernel/
H A Dnstree.c225 if (list_is_head(list, &ns_tree->ns_list)) in __ns_tree_adjoined_rcu()
/linux/scripts/include/
H A Dlist.h208 static inline int list_is_head(const struct list_head *list, const struct list_head *head) in list_is_head() function
/linux/lib/tests/
H A Dlist-test.c271 KUNIT_EXPECT_TRUE_MSG(test, list_is_head(&a, &a), in list_test_list_is_head()
273 KUNIT_EXPECT_FALSE_MSG(test, list_is_head(&a, &b), in list_test_list_is_head()
275 KUNIT_EXPECT_FALSE_MSG(test, list_is_head(&a, &c), in list_test_list_is_head()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_vm.c485 while (!list_is_head(prev->next, &vm->done)) { in amdgpu_vm_lock_done_list()