Lines Matching refs:next
50 sca->head = walk->next;
73 sca->head->next = NULL;
89 new->next = sca->head;
99 // check if we can merge walk to next
100 struct cnode_meta *next = walk->next;
101 if (next && next->slot == walk->slot + walk->space) {
102 walk->space += next->space;
103 walk->next = next->next;
104 slab_free(&sca->slab, next);
114 // Freing just before walk->next
115 if (walk->next && slot + count == walk->next->slot) {
116 walk->next->slot = slot;
117 walk->next->space += count;
121 // Freeing after walk and before walk->next
122 if (walk->next && slot < walk->next->slot) {
123 struct cnode_meta *new = walk->next;
124 walk->next = slab_alloc(&sca->slab);
125 walk->next->slot = slot;
126 walk->next->space = count;
127 walk->next->next = new;
131 walk = walk->next;
135 prev->next = slab_alloc(&sca->slab);
136 prev->next->slot = slot;
137 prev->next->space = count;
138 prev->next->next = NULL;
161 for (struct cnode_meta *walk = this->head; walk; walk = walk->next) {
241 ret->head->next = NULL;