Lines Matching defs:prev
587 rctl_t *prev = kmem_cache_alloc(rctl_cache, KM_SLEEP);
588 rctl_t *rctl = prev;
590 rcgp->rcag_ctls = prev;
594 prev->rc_next = rctl;
595 prev = rctl;
602 rctl_val_t *prev = kmem_cache_alloc(rctl_val_cache, KM_SLEEP);
603 rctl_val_t *rval = prev;
605 rcgp->rcag_vals = prev;
609 prev->rcv_next = rval;
610 prev = rval;
779 rctl_val_t *prev;
803 prev = *root;
804 while (prev->rcv_next != NULL &&
805 (equiv = rctl_val_cmp(rval, prev->rcv_next, 0)) > 0) {
806 prev = prev->rcv_next;
812 rval->rcv_next = prev->rcv_next;
815 prev->rcv_next = rval;
816 rval->rcv_prev = prev;
824 rctl_val_t *prev;
829 prev = *root;
830 if (rctl_val_cmp(rval, prev, 0) == 0) {
831 *root = prev->rcv_next;
835 kmem_cache_free(rctl_val_cache, prev);
840 while (prev->rcv_next != NULL &&
841 rctl_val_cmp(rval, prev->rcv_next, 0) != 0) {
842 prev = prev->rcv_next;
845 if (prev->rcv_next == NULL) {
853 prev = prev->rcv_next;
854 prev->rcv_prev->rcv_next = prev->rcv_next;
855 if (prev->rcv_next != NULL)
856 prev->rcv_next->rcv_prev = prev->rcv_prev;
858 kmem_cache_free(rctl_val_cache, prev);