Lines Matching defs:urefs
257 * generating immediate notif. would overflow urefs.
369 mach_port_urefs_t urefs = IE_BITS_UREFS(entry->ie_bits);
371 assert(urefs > 0);
373 if (MACH_PORT_UREFS_OVERFLOW(urefs, 1)) {
380 (entry->ie_bits)++; /* increment urefs */
848 entry->ie_bits = bits-1; /* decrement urefs */
934 entry->ie_bits = bits-1; /* decrement urefs */
975 entry->ie_bits = bits-1; /* decrement urefs */
1208 mach_port_urefs_t urefs;
1230 urefs = IE_BITS_UREFS(bits);
1231 if (MACH_PORT_UREFS_UNDERFLOW(urefs, delta))
1233 if (MACH_PORT_UREFS_OVERFLOW(urefs, delta))
1236 if ((urefs + delta) == 0) {
1248 mach_port_urefs_t urefs;
1256 /* maximum urefs for send is MACH_PORT_UREFS_MAX-1 */
1269 urefs = IE_BITS_UREFS(bits);
1270 if (MACH_PORT_UREFS_UNDERFLOW(urefs, delta)) {
1274 if (MACH_PORT_UREFS_OVERFLOW(urefs+1, delta)) {
1279 if ((urefs + delta) == 0) {
1845 entry->ie_bits = bits-1; /* decrement urefs */
1944 entry->ie_bits = bits-1; /* decrement urefs */
2002 entry->ie_bits = bits+1; /* increment urefs */
2014 entry->ie_bits = bits+1; /* increment urefs */
2057 mach_port_urefs_t urefs;
2074 urefs = IE_BITS_UREFS(bits);
2075 if (urefs < 2)
2099 if (urefs == 2) {
2126 entry->ie_bits = bits-2; /* decrement urefs */
2232 mach_port_urefs_t urefs = IE_BITS_UREFS(bits);
2235 assert(urefs > 0);
2236 assert(urefs < MACH_PORT_UREFS_MAX);
2238 if (urefs+1 == MACH_PORT_UREFS_MAX) {
2240 /* leave urefs pegged to maximum */