Lines Matching refs:upc
691 struct upcount **upc, **hupc; in upcount_inc() local
698 upc = hupc; in upcount_inc()
699 while ((*upc) != NULL) { in upcount_inc()
700 if ((*upc)->up_uid == uid && (*upc)->up_zoneid == zoneid) { in upcount_inc()
701 (*upc)->up_count++; in upcount_inc()
710 upc = &(*upc)->up_next; in upcount_inc()
734 upc = hupc; in upcount_inc()
739 new->up_next = *upc; in upcount_inc()
741 *upc = new; in upcount_inc()
750 struct upcount **upc; in upcount_dec() local
755 upc = &upc_hash[UPC_HASH(uid, zoneid)]; in upcount_dec()
756 while ((*upc) != NULL) { in upcount_dec()
757 if ((*upc)->up_uid == uid && (*upc)->up_zoneid == zoneid) { in upcount_dec()
758 (*upc)->up_count--; in upcount_dec()
759 if ((*upc)->up_count == 0) { in upcount_dec()
760 done = *upc; in upcount_dec()
761 *upc = (*upc)->up_next; in upcount_dec()
766 upc = &(*upc)->up_next; in upcount_dec()
778 struct upcount *upc; in upcount_get() local
782 upc = upc_hash[UPC_HASH(uid, zoneid)]; in upcount_get()
783 while (upc != NULL) { in upcount_get()
784 if (upc->up_uid == uid && upc->up_zoneid == zoneid) { in upcount_get()
785 return (upc->up_count); in upcount_get()
787 upc = upc->up_next; in upcount_get()