cyc_index_t
cyclic_dump_node(cyc_cpu_t *cpu, cyc_index_t *heap, char **c, size_t w,
cyc_index_t *heap;
size_t hsize = sizeof (cyc_index_t) * cpu->cyp_size;
cyc_index_t root, i, *heap;
hsize = sizeof (cyc_index_t) * cpu.cyp_size;
cyc_index_t *buf;
bufsiz = (pc->cypc_sizemask + 1) * sizeof (cyc_index_t);
cyc_index_t new_size = arg->cyx_size, size = cpu->cyp_size, i;
cyc_index_t *new_heap = arg->cyx_heap;
bcopy(cpu->cyp_heap, new_heap, sizeof (cyc_index_t) * size);
cyc_index_t new_size, old_size;
cyc_index_t *new_heap, *old_heap;
new_heap = kmem_alloc(sizeof (cyc_index_t) * new_size, KM_SLEEP);
kmem_alloc(sizeof (cyc_index_t) * new_size, KM_SLEEP);
sizeof (cyc_index_t) * (pc->cypc_sizemask + 1));
kmem_free(old_heap, sizeof (cyc_index_t) * old_size);
cyc_index_t ndx, nelems;
static cyc_index_t
cyc_index_t ndx = arg->cyx_ndx, nelems, i;
cyc_index_t *heap, last;
cyc_index_t root;
cyclic_remove_here(cyc_cpu_t *cpu, cyc_index_t ndx, cyc_time_t *when, int wait)
cyclic_reprogram_cyclic(cyc_cpu_t *cpu, cyc_index_t ndx, hrtime_t expire,
cyc_index_t nelems, i;
cyc_index_t *heap;
cyclic_reprogram_here(cyc_cpu_t *cpu, cyc_index_t ndx, hrtime_t expiration)
cyc_index_t ndx = idp->cyi_ndx;
cyc_index_t ndx = idp->cyi_ndx;
cpu->cyp_heap = kmem_zalloc(sizeof (cyc_index_t), KM_SLEEP);
kmem_alloc(sizeof (cyc_index_t), KM_SLEEP);
size_t bufsize = sizeof (cyc_index_t) * (pc->cypc_sizemask + 1);
kmem_free(cpu->cyp_heap, cpu->cyp_size * sizeof (cyc_index_t));
cyc_index_t ndx;
cyclic_upheap(cyc_cpu_t *cpu, cyc_index_t ndx)
cyc_index_t *heap;
cyc_index_t heap_parent, heap_current = ndx;
cyc_index_t parent, current;
cyclic_downheap(cyc_cpu_t *cpu, cyc_index_t ndx)
cyc_index_t *heap = cpu->cyp_heap;
cyc_index_t heap_left, heap_right, heap_me = ndx;
cyc_index_t left, right, me;
cyc_index_t nelems = cpu->cyp_nelems;
cyclic_expire(cyc_cpu_t *cpu, cyc_index_t ndx, cyclic_t *cyclic)
cyc_index_t *heap = cpu->cyp_heap;
cyc_index_t ndx = heap[0];
cyc_index_t *cypc_buf;
cyc_index_t *cyp_heap;
cyc_index_t cyp_nelems;
cyc_index_t cyp_size;
cyc_index_t cyo_ndx;
cyc_index_t cyi_ndx;
cyc_index_t cyx_ndx;
cyc_index_t *cyx_heap;
cyc_index_t cyx_size;