Lines Matching refs:upc
692 struct upcount **upc, **hupc; in upcount_inc() local
699 upc = hupc; in upcount_inc()
700 while ((*upc) != NULL) { in upcount_inc()
701 if ((*upc)->up_uid == uid && (*upc)->up_zoneid == zoneid) { in upcount_inc()
702 (*upc)->up_count++; in upcount_inc()
711 upc = &(*upc)->up_next; in upcount_inc()
735 upc = hupc; in upcount_inc()
740 new->up_next = *upc; in upcount_inc()
742 *upc = new; in upcount_inc()
751 struct upcount **upc; in upcount_dec() local
756 upc = &upc_hash[UPC_HASH(uid, zoneid)]; in upcount_dec()
757 while ((*upc) != NULL) { in upcount_dec()
758 if ((*upc)->up_uid == uid && (*upc)->up_zoneid == zoneid) { in upcount_dec()
759 (*upc)->up_count--; in upcount_dec()
760 if ((*upc)->up_count == 0) { in upcount_dec()
761 done = *upc; in upcount_dec()
762 *upc = (*upc)->up_next; in upcount_dec()
767 upc = &(*upc)->up_next; in upcount_dec()
779 struct upcount *upc; in upcount_get() local
783 upc = upc_hash[UPC_HASH(uid, zoneid)]; in upcount_get()
784 while (upc != NULL) { in upcount_get()
785 if (upc->up_uid == uid && upc->up_zoneid == zoneid) { in upcount_get()
786 return (upc->up_count); in upcount_get()
788 upc = upc->up_next; in upcount_get()