Lines Matching refs:elm
42 list_insert(struct list *list, struct list *elm) in list_insert() argument
46 assert(((elm->next == NULL && elm->prev == NULL) || list_empty(elm)) || in list_insert()
49 elm->prev = list; in list_insert()
50 elm->next = list->next; in list_insert()
51 list->next = elm; in list_insert()
52 elm->next->prev = elm; in list_insert()
56 list_append(struct list *list, struct list *elm) in list_append() argument
60 assert(((elm->next == NULL && elm->prev == NULL) || list_empty(elm)) || in list_append()
63 elm->next = list; in list_append()
64 elm->prev = list->prev; in list_append()
65 list->prev = elm; in list_append()
66 elm->prev->next = elm; in list_append()
70 list_remove(struct list *elm) in list_remove() argument
72 assert((elm->next != NULL && elm->prev != NULL) || in list_remove()
75 elm->prev->next = elm->next; in list_remove()
76 elm->next->prev = elm->prev; in list_remove()
77 elm->next = NULL; in list_remove()
78 elm->prev = NULL; in list_remove()
91 list_is_last(const struct list *list, const struct list *elm) in list_is_last() argument
93 return elm->next == list; in list_is_last()