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