Lines Matching refs:prev
37 list->prev = list; in list_init()
44 assert((list->next != NULL && list->prev != NULL) || in list_insert()
46 assert(((elm->next == NULL && elm->prev == NULL) || list_empty(elm)) || in list_insert()
49 elm->prev = list; in list_insert()
52 elm->next->prev = elm; in list_insert()
58 assert((list->next != NULL && list->prev != NULL) || in list_append()
60 assert(((elm->next == NULL && elm->prev == NULL) || list_empty(elm)) || 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()
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()
78 elm->prev = NULL; in list_remove()
84 assert((list->next != NULL && list->prev != NULL) || in list_empty()