Lines Matching refs:tail
76 spl_ptr_llist_element *tail; member
137 llist->tail = NULL; in spl_ptr_llist_init()
177 current = llist->tail; in spl_ptr_llist_offset()
207 llist->tail = elem; in spl_ptr_llist_unshift()
224 elem->prev = llist->tail; in spl_ptr_llist_push()
228 if (llist->tail) { in spl_ptr_llist_push()
229 llist->tail->next = elem; in spl_ptr_llist_push()
234 llist->tail = elem; in spl_ptr_llist_push()
245 spl_ptr_llist_element *tail = llist->tail; in spl_ptr_llist_pop() local
247 if (tail == NULL) { in spl_ptr_llist_pop()
252 if (tail->prev) { in spl_ptr_llist_pop()
253 tail->prev->next = NULL; in spl_ptr_llist_pop()
258 llist->tail = tail->prev; in spl_ptr_llist_pop()
260 ZVAL_COPY(ret, &tail->data); in spl_ptr_llist_pop()
263 llist->dtor(tail); in spl_ptr_llist_pop()
266 ZVAL_UNDEF(&tail->data); in spl_ptr_llist_pop()
268 SPL_LLIST_DELREF(tail); in spl_ptr_llist_pop()
274 spl_ptr_llist_element *tail = llist->tail; in spl_ptr_llist_last() local
276 if (tail == NULL) { in spl_ptr_llist_last()
279 return &tail->data; in spl_ptr_llist_last()
308 llist->tail = NULL; in spl_ptr_llist_shift()
902 if (element == llist->tail) { in SPL_METHOD()
903 llist->tail = element->prev; in SPL_METHOD()
944 *traverse_pointer_ptr = llist->tail; in spl_dllist_it_helper_rewind()