Lines Matching refs:upc
693 struct upcount **upc, **hupc; in upcount_inc() local
700 upc = hupc; in upcount_inc()
701 while ((*upc) != NULL) { in upcount_inc()
702 if ((*upc)->up_uid == uid && (*upc)->up_zoneid == zoneid) { in upcount_inc()
703 (*upc)->up_count++; in upcount_inc()
712 upc = &(*upc)->up_next; in upcount_inc()
736 upc = hupc; in upcount_inc()
741 new->up_next = *upc; in upcount_inc()
743 *upc = new; in upcount_inc()
752 struct upcount **upc; in upcount_dec() local
757 upc = &upc_hash[UPC_HASH(uid, zoneid)]; in upcount_dec()
758 while ((*upc) != NULL) { in upcount_dec()
759 if ((*upc)->up_uid == uid && (*upc)->up_zoneid == zoneid) { in upcount_dec()
760 (*upc)->up_count--; in upcount_dec()
761 if ((*upc)->up_count == 0) { in upcount_dec()
762 done = *upc; in upcount_dec()
763 *upc = (*upc)->up_next; in upcount_dec()
768 upc = &(*upc)->up_next; in upcount_dec()
780 struct upcount *upc; in upcount_get() local
784 upc = upc_hash[UPC_HASH(uid, zoneid)]; in upcount_get()
785 while (upc != NULL) { in upcount_get()
786 if (upc->up_uid == uid && upc->up_zoneid == zoneid) { in upcount_get()
787 return (upc->up_count); in upcount_get()
789 upc = upc->up_next; in upcount_get()