Lines Matching refs:head
27 cl->head = NULL; in init_cirlist()
40 assert(cl->head == NULL); in cl_insert_tail()
41 cl->head = new; in cl_insert_tail()
42 cl->head->next = cl->head; in cl_insert_tail()
43 cl->head->prev = cl->head; in cl_insert_tail()
47 assert(cl->head->next == cl->head); in cl_insert_tail()
48 assert(cl->head->prev == cl->head); in cl_insert_tail()
49 cl->head->next = new; in cl_insert_tail()
50 cl->head->prev = new; in cl_insert_tail()
51 new->next = cl->head; in cl_insert_tail()
52 new->prev = cl->head; in cl_insert_tail()
54 assert(cl->head->next != cl->head); in cl_insert_tail()
55 assert(cl->head->prev != cl->head); in cl_insert_tail()
57 new->next = cl->head; in cl_insert_tail()
58 new->prev = (cl->head)->prev; in cl_insert_tail()
59 cl->head->prev->next = new; in cl_insert_tail()
60 cl->head->prev = new; in cl_insert_tail()
73 assert(cl->head == NULL); in cl_remove_head()
77 assert(cl->head->next == cl->head); in cl_remove_head()
78 assert(cl->head->prev == cl->head); in cl_remove_head()
79 oldhead = cl->head; in cl_remove_head()
80 cl->head = NULL; in cl_remove_head()
83 oldhead = cl->head; in cl_remove_head()
87 cl->head = newhead; in cl_remove_head()
90 assert(cl->head->next != cl->head); in cl_remove_head()
91 assert(cl->head->prev != cl->head); in cl_remove_head()
92 oldhead = cl->head; in cl_remove_head()
96 cl->head = newhead; in cl_remove_head()