Lines Matching refs:list

50 add_genlist(genlist_t *list, uintptr_t data, void *data_context)  in add_genlist()  argument
62 new_entry->prev = list->tail; in add_genlist()
64 if (!list->count) { in add_genlist()
65 list->tail = new_entry; in add_genlist()
66 list->head = new_entry; in add_genlist()
68 list->tail->next = new_entry; in add_genlist()
69 list->tail = new_entry; in add_genlist()
71 list->count++; in add_genlist()
79 void delete_genlist(genlist_t *list, genlist_entry_t *entry) { in delete_genlist() argument
86 list->head = entry->next; in delete_genlist()
92 list->tail = entry->prev; in delete_genlist()
95 list->count--; in delete_genlist()
104 genlist_entry_t *remove_genlist_head(genlist_t *list) { in remove_genlist_head() argument
106 genlist_entry_t *entry = list->head; in remove_genlist_head()
108 if (list->head) { in remove_genlist_head()
109 list->head = list->head->next; in remove_genlist_head()
110 list->count--; in remove_genlist_head()
112 if (!list->head) in remove_genlist_head()
113 list->tail = list->head; in remove_genlist_head()
122 void flush_genlist(genlist_t *list) { in flush_genlist() argument
126 entry = remove_genlist_head(list); in flush_genlist()
130 entry = remove_genlist_head(list); in flush_genlist()
132 init_genlist(list); in flush_genlist()
135 bool genlist_empty(genlist_t *list) { in genlist_empty() argument
137 if (list->head != NULL) in genlist_empty()
146 void insert_genlist_tail(genlist_t *list, genlist_entry_t *entry) { in insert_genlist_tail() argument
149 entry->prev = list->tail; in insert_genlist_tail()
151 if (!list->count) { in insert_genlist_tail()
152 list->tail = entry; in insert_genlist_tail()
153 list->head = entry; in insert_genlist_tail()
155 list->tail->next = entry; in insert_genlist_tail()
156 list->tail = entry; in insert_genlist_tail()
158 list->count++; in insert_genlist_tail()