Lines Matching refs:heap

536 	callout_heap_t *heap;  in callout_heap_expand()  local
547 heap = kmem_alloc(size, KM_NOSLEEP); in callout_heap_expand()
550 if (heap == NULL) { in callout_heap_expand()
570 kmem_free(heap, size); in callout_heap_expand()
574 bcopy(ct->ct_heap, heap, osize); in callout_heap_expand()
576 ct->ct_heap = heap; in callout_heap_expand()
592 callout_heap_t *heap, *hcurrent, *hparent; in callout_upheap() local
601 heap = ct->ct_heap; in callout_upheap()
606 hparent = &heap[parent]; in callout_upheap()
607 hcurrent = &heap[current]; in callout_upheap()
673 callout_heap_t *heap, *hleft, *hright, *hcurrent; in callout_downheap() local
678 heap = ct->ct_heap; in callout_downheap()
690 hleft = &heap[left]; in callout_downheap()
691 hcurrent = &heap[current]; in callout_downheap()
702 hright = &heap[right]; in callout_downheap()
753 callout_heap_t *heap; in callout_heap_delete() local
767 heap = ct->ct_heap; in callout_heap_delete()
770 expiration = heap->ch_expiration; in callout_heap_delete()
772 cl = heap->ch_list; in callout_heap_delete()
807 heap[0] = heap[ct->ct_heap_num]; in callout_heap_delete()
828 if ((heap[1].ch_expiration < next) || in callout_heap_delete()
829 (heap[2].ch_expiration < next)) in callout_heap_delete()
861 callout_heap_t *heap; in callout_heap_process() local
875 heap = ct->ct_heap; in callout_heap_process()
898 cl = heap[i].ch_list; in callout_heap_process()
937 heap[i].ch_expiration = expiration; in callout_heap_process()
947 heap[ct->ct_heap_num] = heap[i]; in callout_heap_process()
966 return (heap->ch_expiration); in callout_heap_process()