Lines Matching defs:urefs
263 * generating immediate notif. would overflow urefs.
358 mach_port_urefs_t urefs = IE_BITS_UREFS(bits);
361 assert(urefs > 0);
363 if (MACH_PORT_UREFS_OVERFLOW(urefs, 1)) {
368 (entry->ie_bits)++; /* increment urefs */
802 entry->ie_bits = bits-1; /* decrement urefs */
881 entry->ie_bits = bits-1; /* decrement urefs */
923 entry->ie_bits = bits-1; /* decrement urefs */
1130 mach_port_urefs_t urefs;
1152 urefs = IE_BITS_UREFS(bits);
1153 if (MACH_PORT_UREFS_UNDERFLOW(urefs, delta))
1155 if (MACH_PORT_UREFS_OVERFLOW(urefs, delta))
1158 if ((urefs + delta) == 0) {
1170 mach_port_urefs_t urefs;
1179 /* maximum urefs for send is MACH_PORT_UREFS_MAX-1 */
1192 urefs = IE_BITS_UREFS(bits);
1193 if (MACH_PORT_UREFS_UNDERFLOW(urefs, delta)) {
1197 if (MACH_PORT_UREFS_OVERFLOW(urefs+1, delta)) {
1202 if ((urefs + delta) == 0) {
1739 entry->ie_bits = bits-1; /* decrement urefs */
1839 entry->ie_bits = bits-1; /* decrement urefs */
1897 entry->ie_bits = bits+1; /* increment urefs */
1909 entry->ie_bits = bits+1; /* increment urefs */
1951 mach_port_urefs_t urefs;
1966 urefs = IE_BITS_UREFS(bits);
1967 if (urefs < 2)
1990 if (urefs == 2) {
2017 entry->ie_bits = bits-2; /* decrement urefs */
2120 mach_port_urefs_t urefs = IE_BITS_UREFS(bits);
2123 assert(urefs > 0);
2124 assert(urefs < MACH_PORT_UREFS_MAX);
2126 if (urefs+1 == MACH_PORT_UREFS_MAX) {
2128 /* leave urefs pegged to maximum */