Lines Matching defs:urefs

264  *			generating immediate notif. would overflow urefs.
395 mach_port_urefs_t urefs = IE_BITS_UREFS(entry->ie_bits);
397 assert(urefs > 0);
399 if (MACH_PORT_UREFS_OVERFLOW(urefs, 1)) {
406 (entry->ie_bits)++; /* increment urefs */
902 entry->ie_bits = bits-1; /* decrement urefs */
988 entry->ie_bits = bits-1; /* decrement urefs */
1029 entry->ie_bits = bits-1; /* decrement urefs */
1274 mach_port_urefs_t urefs;
1298 urefs = IE_BITS_UREFS(bits);
1299 if (MACH_PORT_UREFS_UNDERFLOW(urefs, delta))
1301 if (MACH_PORT_UREFS_OVERFLOW(urefs, delta))
1304 if ((urefs + delta) == 0) {
1319 mach_port_urefs_t urefs;
1327 /* maximum urefs for send is MACH_PORT_UREFS_MAX-1 */
1340 urefs = IE_BITS_UREFS(bits);
1341 if (MACH_PORT_UREFS_UNDERFLOW(urefs, delta)) {
1345 if (MACH_PORT_UREFS_OVERFLOW(urefs+1, delta)) {
1350 if ((urefs + delta) == 0) {
1457 mach_port_urefs_t urefs;
1503 urefs = IE_BITS_UREFS(bits);
1506 * the check for urefs overflow is not required.
1508 if (MACH_PORT_UREFS_UNDERFLOW(urefs, srdelta)) {
1512 if ((urefs + srdelta) == 0) {
2126 entry->ie_bits = bits-1; /* decrement urefs */
2225 entry->ie_bits = bits-1; /* decrement urefs */
2283 entry->ie_bits = bits+1; /* increment urefs */
2295 entry->ie_bits = bits+1; /* increment urefs */
2338 mach_port_urefs_t urefs;
2355 urefs = IE_BITS_UREFS(bits);
2356 if (urefs < 2)
2380 if (urefs == 2) {
2407 entry->ie_bits = bits-2; /* decrement urefs */
2513 mach_port_urefs_t urefs = IE_BITS_UREFS(bits);
2516 assert(urefs > 0);
2517 assert(urefs < MACH_PORT_UREFS_MAX);
2519 if (urefs+1 == MACH_PORT_UREFS_MAX) {
2521 /* leave urefs pegged to maximum */