Lines Matching full:le

48 entry_to_citer(const atf_list_t *l, const struct list_entry *le)  in entry_to_citer()  argument
52 iter.m_entry = le; in entry_to_citer()
58 entry_to_iter(atf_list_t *l, struct list_entry *le) in entry_to_iter() argument
62 iter.m_entry = le; in entry_to_iter()
70 struct list_entry *le; in new_entry() local
72 le = (struct list_entry *)malloc(sizeof(*le)); in new_entry()
73 if (le != NULL) { in new_entry()
74 le->m_prev = le->m_next = NULL; in new_entry()
75 le->m_object = object; in new_entry()
76 le->m_managed = managed; in new_entry()
80 return le; in new_entry()
85 delete_entry(struct list_entry *le) in delete_entry() argument
87 if (le->m_managed) in delete_entry()
88 free(le->m_object); in delete_entry()
90 free(le); in delete_entry()
98 struct list_entry *le; in new_entry_and_link() local
100 le = new_entry(object, managed); in new_entry_and_link()
101 if (le != NULL) { in new_entry_and_link()
102 le->m_prev = prev; in new_entry_and_link()
103 le->m_next = next; in new_entry_and_link()
105 prev->m_next = le; in new_entry_and_link()
106 next->m_prev = le; in new_entry_and_link()
109 return le; in new_entry_and_link()
123 const struct list_entry *le = citer.m_entry; in atf_list_citer_data() local
124 PRE(le != NULL); in atf_list_citer_data()
125 return le->m_object; in atf_list_citer_data()
131 const struct list_entry *le = citer.m_entry; in atf_list_citer_next() local
134 PRE(le != NULL); in atf_list_citer_next()
137 newciter.m_entry = le->m_next; in atf_list_citer_next()
160 const struct list_entry *le = iter.m_entry; in atf_list_iter_data() local
161 PRE(le != NULL); in atf_list_iter_data()
162 return le->m_object; in atf_list_iter_data()
168 const struct list_entry *le = iter.m_entry; in atf_list_iter_next() local
171 PRE(le != NULL); in atf_list_iter_next()
174 newiter.m_entry = le->m_next; in atf_list_iter_next()
226 struct list_entry *le; in atf_list_fini() local
229 le = (struct list_entry *)l->m_begin; in atf_list_fini()
231 while (le != NULL) { in atf_list_fini()
234 lenext = le->m_next; in atf_list_fini()
235 delete_entry(le); in atf_list_fini()
236 le = lenext; in atf_list_fini()
250 struct list_entry *le = l->m_begin; in atf_list_begin() local
251 return entry_to_iter(l, le->m_next); in atf_list_begin()
257 const struct list_entry *le = l->m_begin; in atf_list_begin_c() local
258 return entry_to_citer(l, le->m_next); in atf_list_begin_c()
353 struct list_entry *le, *next, *prev; in atf_list_append() local
358 le = new_entry_and_link(data, managed, prev, next); in atf_list_append()
359 if (le == NULL) in atf_list_append()