Lines Matching refs:next
27 item->next = NULL; in pitem_new()
50 pitem *curr, *next; in pqueue_insert() local
57 for (curr = NULL, next = pq->items; in pqueue_insert()
58 next != NULL; curr = next, next = next->next) { in pqueue_insert()
62 int cmp = memcmp(next->priority, item->priority, 8); in pqueue_insert()
64 item->next = next; in pqueue_insert()
69 curr->next = item; in pqueue_insert()
78 item->next = NULL; in pqueue_insert()
79 curr->next = item; in pqueue_insert()
94 pq->items = pq->items->next; in pqueue_pop()
101 pitem *next; in pqueue_find() local
107 for (next = pq->items; next->next != NULL; next = next->next) { in pqueue_find()
108 if (memcmp(next->priority, prio64be, 8) == 0) { in pqueue_find()
109 found = next; in pqueue_find()
115 if (memcmp(next->priority, prio64be, 8) == 0) in pqueue_find()
116 found = next; in pqueue_find()
138 *item = (*item)->next; in pqueue_next()
150 item = item->next; in pqueue_size()