| /xnu-11215/libkern/zlib/ |
| H A D | inffast.c | 122 bits = state->bits; in inflate_fast() 131 if (bits < 15) { in inflate_fast() 133 bits += 8; in inflate_fast() 135 bits += 8; in inflate_fast() 141 bits -= op; in inflate_fast() 164 bits += 8; in inflate_fast() 166 bits += 8; in inflate_fast() 172 bits -= op; in inflate_fast() 298 len = bits >> 3; in inflate_fast() 300 bits -= len << 3; in inflate_fast() [all …]
|
| H A D | infback.c | 121 bits = 9; in fixedtables() 128 bits = 5; in fixedtables() 153 bits = state->bits; \ 164 state->bits = bits; \ 222 bits -= bits & 7; \ 300 bits = 0; in inflateBack() 417 if ((unsigned)(this.bits) <= bits) break; in inflateBack() 503 if ((unsigned)(this.bits) <= bits) break; in inflateBack() 511 if ((unsigned)(last.bits + this.bits) <= bits) break; in inflateBack() 557 if ((unsigned)(this.bits) <= bits) break; in inflateBack() [all …]
|
| H A D | inflate.c | 163 if (bits > 16 || state->bits + bits > 32) return Z_STREAM_ERROR; in inflatePrime() 166 state->bits += bits; in inflatePrime() 250 bits = 9; in fixedtables() 434 bits = state->bits; \ 445 state->bits = bits; \ 488 bits -= bits & 7; \ 998 if ((unsigned)(this.bits) <= bits) break; in inflate() 1006 if ((unsigned)(last.bits + this.bits) <= bits) break; in inflate() 1045 if ((unsigned)(this.bits) <= bits) break; in inflate() 1053 if ((unsigned)(last.bits + this.bits) <= bits) break; in inflate() [all …]
|
| H A D | inftrees.c | 61 code FAR * FAR *table, unsigned FAR *bits, in inflate_table() argument 137 root = *bits; in inflate_table() 143 this.bits = (unsigned char)1; in inflate_table() 147 *bits = 1; in inflate_table() 240 this.bits = (unsigned char)(len - drop); in inflate_table() 308 (*table)[low].bits = (unsigned char)root; in inflate_table() 321 this.bits = (unsigned char)(len - drop); in inflate_table() 329 this.bits = (unsigned char)len; in inflate_table() 349 *bits = root; in inflate_table()
|
| H A D | trees.c | 323 for (bits = 0; bits <= MAX_BITS; bits++) bl_count[bits] = 0; in tr_static_init() 539 for (bits = 0; bits <= MAX_BITS; bits++) s->bl_count[bits] = 0; in gen_bitlen() 549 if (bits > max_length) { in gen_bitlen() 550 bits = max_length; in gen_bitlen() 558 s->bl_count[bits]++; in gen_bitlen() 572 bits = max_length-1; in gen_bitlen() 573 while (s->bl_count[bits] == 0) bits--; in gen_bitlen() 588 for (bits = max_length; bits != 0; bits--) { in gen_bitlen() 589 n = s->bl_count[bits]; in gen_bitlen() 627 for (bits = 1; bits <= MAX_BITS; bits++) { in gen_codes() [all …]
|
| /xnu-11215/osfmk/ipc/ |
| H A D | ipc_right.c | 258 *bitsp = bits; in ipc_right_lookup_read() 661 ipc_entry_bits_t bits; in ipc_right_check() local 676 bits = entry->ie_bits; in ipc_right_check() 699 bits = (bits & ~IE_BITS_TYPE_MASK) | MACH_PORT_TYPE_DEAD_NAME; in ipc_right_check() 726 entry->ie_bits = bits; in ipc_right_check() 890 ipc_entry_bits_t bits; in ipc_right_destroy() local 893 bits = entry->ie_bits; in ipc_right_destroy() 1039 ipc_entry_bits_t bits; in ipc_right_dealloc() local 1042 bits = entry->ie_bits; in ipc_right_dealloc() 1255 ipc_entry_bits_t bits; in ipc_right_delta() local [all …]
|
| H A D | ipc_entry.h | 136 #define IE_BITS_UREFS(bits) ((bits) & IE_BITS_UREFS_MASK) argument 139 #define IE_BITS_TYPE(bits) ((bits) & IE_BITS_TYPE_MASK) argument 145 #define IE_BITS_GEN(bits) ((bits) & IE_BITS_GEN_MASK) argument 150 #define IE_BITS_ROLL(bits) ((((bits) & IE_BITS_ROLL_MASK) << 8) ^ IE_BITS_GEN_MASK) argument 195 #define IE_BITS_GEN(bits) 0 argument 199 #define IE_BITS_ROLL(bits) (bits) argument
|
| H A D | mach_debug.c | 229 ipc_entry_bits_t bits; in mach_port_space_info() local 232 bits = IE_BITS_GEN_MASK; in mach_port_space_info() 234 bits = entry->ie_bits; in mach_port_space_info() 236 iin->iin_name = MACH_PORT_MAKE(index, IE_BITS_GEN(bits)); in mach_port_space_info() 238 iin->iin_type = IE_BITS_TYPE(bits); in mach_port_space_info() 239 if ((bits & MACH_PORT_TYPE_PORT_RIGHTS) != MACH_PORT_TYPE_NONE && in mach_port_space_info() 249 iin->iin_urefs = IE_BITS_UREFS(bits); in mach_port_space_info() 471 ipc_entry_bits_t bits; in mach_port_kobject_description() local 483 kr = ipc_right_lookup_read(space, name, &bits, &object); in mach_port_kobject_description() 489 if ((bits & MACH_PORT_TYPE_SEND_RECEIVE) == 0) { in mach_port_kobject_description()
|
| H A D | ipc_object.c | 267 ipc_entry_bits_t bits; in ipc_object_translate() local 898 ipc_entry_bits_t bits; in ipc_object_insert_send_right() local 913 bits = entry->ie_bits; in ipc_object_insert_send_right() 920 if ((bits & MACH_PORT_TYPE_PORT_RIGHTS) == 0) { in ipc_object_insert_send_right() 931 if (bits & MACH_PORT_TYPE_RECEIVE) { in ipc_object_insert_send_right() 933 if ((bits & MACH_PORT_TYPE_SEND) == 0) { in ipc_object_insert_send_right() 935 bits |= MACH_PORT_TYPE_SEND; in ipc_object_insert_send_right() 938 if (IE_BITS_UREFS(bits) < MACH_PORT_UREFS_MAX) { in ipc_object_insert_send_right() 939 bits += 1; /* increment urefs */ in ipc_object_insert_send_right() 941 entry->ie_bits = bits; in ipc_object_insert_send_right() [all …]
|
| /xnu-11215/osfmk/arm/commpage/ |
| H A D | commpage.c | 435 uint64_t bits = 0; in commpage_init_arm_optional_features_isar0() local 498 uint64_t bits = 0; in commpage_init_arm_optional_features_isar1() local 588 uint64_t bits = 0; in commpage_init_arm_optional_features_mmfr0() local 604 uint64_t bits = 0; in commpage_init_arm_optional_features_mmfr2() local 621 uint64_t bits = 0; in commpage_init_arm_optional_features_pfr0() local 736 uint64_t bits = 0; in commpage_init_arm_optional_features_mmfr1() local 816 uint64_t bits; in commpage_init_cpu_capabilities() local 820 bits = 0; in commpage_init_cpu_capabilities() 839 bits |= kUP; in commpage_init_cpu_capabilities() 846 bits |= kHasVfp; in commpage_init_cpu_capabilities() [all …]
|
| /xnu-11215/osfmk/i386/commpage/ |
| H A D | commpage.c | 266 uint64_t bits; in commpage_init_cpu_capabilities() local 270 bits = 0; in commpage_init_cpu_capabilities() 275 bits |= kHasAVX1_0; in commpage_init_cpu_capabilities() 278 bits |= kHasSSE4_2; in commpage_init_cpu_capabilities() 287 bits |= kHasSSE3; in commpage_init_cpu_capabilities() 290 bits |= kHasSSE2; in commpage_init_cpu_capabilities() 293 bits |= kHasSSE; in commpage_init_cpu_capabilities() 296 bits |= kHasMMX; in commpage_init_cpu_capabilities() 303 bits |= kCache128; in commpage_init_cpu_capabilities() 306 bits |= kCache64; in commpage_init_cpu_capabilities() [all …]
|
| /xnu-11215/osfmk/arm/ |
| H A D | cpuid.c | 57 arm_cache_clidr_t bits; member 72 arm_cache_ccsidr_t bits; member 379 cpuid_cache_info_p->c_unified = (arm_cache_clidr_info.bits.Ctype1 == 0x4) ? 1 : 0; in do_cacheid() 381 switch (arm_cache_ccsidr_info.bits.c_type) { in do_cacheid() 399 cpuid_cache_info_p->c_assoc = (arm_cache_ccsidr_info.bits.Assoc + 1); in do_cacheid() 408 if ((arm_cache_clidr_info.bits.Ctype3 == 0x4) || in do_cacheid() 409 (arm_cache_clidr_info.bits.Ctype2 == 0x4) || (arm_cache_clidr_info.bits.Ctype2 == 0x2)) { in do_cacheid() 410 if (arm_cache_clidr_info.bits.Ctype3 == 0x4) { in do_cacheid() 421 cpuid_cache_info_p->c_assoc = (arm_cache_ccsidr_info.bits.Assoc + 1); in do_cacheid() 452 uint32_t c_linesz = 4 * (1 << (arm_cache_ccsidr_info.bits.LineSize + 2)); in do_cacheid() [all …]
|
| /xnu-11215/tests/ |
| H A D | os_refcnt.c | 215 do_bitwise_test(const os_ref_count_t bits) in do_bitwise_test() argument 222 os_ref_init_count_mask(&rc, bits, NULL, 1, reserved); in do_bitwise_test() 224 T_ASSERT_EQ_UINT(os_ref_get_count_mask(&rc, bits), 1, "[%u bits] refcount initialized", bits); in do_bitwise_test() 226 os_ref_retain_mask(&rc, bits, NULL); in do_bitwise_test() 227 os_ref_retain_mask(&rc, bits, NULL); in do_bitwise_test() 233 os_ref_release_live_mask(&rc, bits, NULL); in do_bitwise_test() 236 x = os_ref_release_mask(&rc, bits, NULL); in do_bitwise_test() 242 os_ref_init_count_mask(&rc, bits, NULL, 1, reserved); in do_bitwise_test() 248 (void)os_ref_release_mask(&rc, bits, NULL); in do_bitwise_test() 249 (void)os_ref_release_mask(&rc, bits, NULL); in do_bitwise_test() [all …]
|
| /xnu-11215/libkern/libkern/ |
| H A D | Block_private.h | 82 uintptr_t bits; variable 97 Key, &bits); in prepareWrite() 107 if (other.bits == 0) { in prepareWrite() 111 ptrauth_auth_and_resign((void*)other.bits, Key, &other.bits, in prepareWrite() 112 Key, &bits); in prepareWrite() 147 : bits(prepareWrite(value)) in StorageSignedFunctionPointer() 152 : bits(prepareWrite(value)) in StorageSignedFunctionPointer() 159 bits = prepareWrite(rhs); 166 bits = prepareWrite(rhs); 171 return completeReadFn(bits); in Fn() [all …]
|
| /xnu-11215/bsd/nfs/ |
| H A D | nfs_gss.h | 106 #define win_getbit(bits, bit) ((bits[(bit) / 32] & (1 << (bit) % 32)) != 0) argument 107 #define win_setbit(bits, bit) do { bits[(bit) / 32] |= (1 << (bit) % 32); } while (0) argument 108 #define win_resetbit(bits, bit) do { bits[(bit) / 32] &= ~(1 << (bit) % 32); } while (0) argument
|
| /xnu-11215/bsd/vfs/ |
| H A D | vfs_attrlist.c | 320 uint64_t bits; member 352 {.attr = 0, .bits = 0, .size = 0} 386 {.attr = 0, .bits = 0, .size = 0} 400 vsp->f_active |= tab->bits; in getvolattrlist_parsetab() 470 (tab->bits != 0) && in getvolattrlist_fixupattrs() 480 (tab->bits != 0) && in getvolattrlist_fixupattrs() 493 uint64_t bits; member 665 vap->va_active |= tab->bits; in getattrlist_parsetab() 843 (tab->bits & vap->va_active) && in getattrlist_fixupattrs() 853 (tab->bits & vap->va_active) && in getattrlist_fixupattrs() [all …]
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | pci.py | 53 def DoPciCfgRead(bits, bus, dev, func, offs): argument 62 return ReadPhysInt(phys_addr, bits) 64 def DoPciCfgWrite(bits, bus, dev, func, offs, val): argument 73 return WritePhysInt(phys_addr, val, bits) 169 bits = ArgumentStringToInt(cmd_args[0]) 175 read_val = DoPciCfgRead(bits, bus, dev, func, offs) 182 fmt_string = "{:08x}: " + format_for_bits[bits] 202 bits = ArgumentStringToInt(cmd_args[0]) 209 if not DoPciCfgWrite(bits, bus, dev, func, offs, write_val):
|
| H A D | pmap.py | 82 if bits == 64 : 85 if bits == 32 : 88 if bits == 16 : 91 if bits == 8 : 153 if bits == 64 : 156 if bits == 32 : 159 if bits == 16 : 162 if bits == 8 : 201 if bits == 8: 204 if bits == 16: [all …]
|
| /xnu-11215/osfmk/i386/ |
| H A D | machine_check.c | 109 mca_error_bank_count = ia32_mcg_cap.bits.count; in mca_get_availability() 110 mca_control_MSR_present = ia32_mcg_cap.bits.mcg_ctl_p; in mca_get_availability() 111 mca_cmci_present = ia32_mcg_cap.bits.mcg_ext_corr_err_p; in mca_get_availability() 223 if (!bank->mca_mci_status.bits.val) { in mca_save_state() 226 bank->mca_mci_misc = (bank->mca_mci_status.bits.miscv)? in mca_save_state() 228 bank->mca_mci_addr = (bank->mca_mci_status.bits.addrv)? in mca_save_state() 276 if (!status.bits.val) { in mca_dump_bank() 283 if (status.bits.addrv) { in mca_dump_bank() 288 if (status.bits.miscv) { in mca_dump_bank()
|
| /xnu-11215/osfmk/mach/ |
| H A D | exclaves_l4.h | 92 #define Exclaves_L4_BfmW(base, bits) \ argument 93 (((~Exclaves_L4_Word(0)) >> (Exclaves_L4_WordBits - (bits))) << (base)) 103 #define Exclaves_L4_BfxW(bitfield, base, bits) \ argument 104 (((bitfield) & Exclaves_L4_BfmW((base), (bits))) >> (base)) 116 #define Exclaves_L4_BfiW(bitfield, base, bits, value) \ argument 117 (((bitfield) & (~Exclaves_L4_BfmW((base), (bits)))) | \ 118 (((Exclaves_L4_Word(value)) << (base)) & Exclaves_L4_BfmW((base), (bits)))) 128 #define Exclaves_L4_BfW(base, bits, value) \ argument 129 (Exclaves_L4_BfiW(Exclaves_L4_Word(0), (base), (bits), (value)))
|
| H A D | message.h | 179 ((bits) & MACH_MSGH_BITS_REMOTE_MASK) 181 (((bits) & MACH_MSGH_BITS_LOCAL_MASK) >> 8) 183 (((bits) & MACH_MSGH_BITS_VOUCHER_MASK) >> 16) 185 ((bits) & MACH_MSGH_BITS_PORTS_MASK) 187 ((bits) &~ MACH_MSGH_BITS_PORTS_MASK) 191 (MACH_MSGH_BITS_REMOTE(bits) != MACH_MSGH_BITS_ZERO) 193 (MACH_MSGH_BITS_LOCAL(bits) != MACH_MSGH_BITS_ZERO) 195 (MACH_MSGH_BITS_VOUCHER(bits) != MACH_MSGH_BITS_ZERO) 197 (((bits) & MACH_MSGH_BITS_COMPLEX) != MACH_MSGH_BITS_ZERO) 201 (((bits) & MACH_MSGH_BITS_RAISEIMP) != MACH_MSGH_BITS_ZERO) [all …]
|
| /xnu-11215/bsd/kern/ |
| H A D | ast.h | 48 extern void kevent_ast(thread_t thread, uint16_t bits); 49 extern void act_set_astkevent(thread_t thread, uint16_t bits); 50 extern uint16_t act_clear_astkevent(thread_t thread, uint16_t bits);
|
| /xnu-11215/osfmk/arm/pmap/ |
| H A D | pmap_data.h | 1234 ppattr_set_bits(unsigned int pai, pp_attr_t bits) in ppattr_set_bits() argument 1237 os_atomic_or(ppattr, bits, acq_rel); in ppattr_set_bits() 1247 ppattr_clear_bits(unsigned int pai, pp_attr_t bits) in ppattr_clear_bits() argument 1250 os_atomic_andnot(ppattr, bits, acq_rel); in ppattr_clear_bits() 1260 ppattr_test_bits(unsigned int pai, pp_attr_t bits) in ppattr_test_bits() argument 1263 return (*ppattr & bits) == bits; in ppattr_test_bits() 1274 ppattr_pa_set_bits(pmap_paddr_t pa, pp_attr_t bits) in ppattr_pa_set_bits() argument 1277 ppattr_set_bits(pa_index(pa), bits); in ppattr_pa_set_bits() 1289 ppattr_pa_clear_bits(pmap_paddr_t pa, pp_attr_t bits) in ppattr_pa_clear_bits() argument 1292 ppattr_clear_bits(pa_index(pa), bits); in ppattr_pa_clear_bits() [all …]
|
| /xnu-11215/osfmk/kern/ |
| H A D | task_policy.c | 2406 uint64_t bits = 0; in task_requested_bitfield() local 2409 bits |= (requested.trp_int_darwinbg ? POLICY_REQ_INT_DARWIN_BG : 0); in task_requested_bitfield() 2410 bits |= (requested.trp_ext_darwinbg ? POLICY_REQ_EXT_DARWIN_BG : 0); in task_requested_bitfield() 2413 bits |= (requested.trp_int_iopassive ? POLICY_REQ_INT_PASSIVE_IO : 0); in task_requested_bitfield() 2414 bits |= (requested.trp_ext_iopassive ? POLICY_REQ_EXT_PASSIVE_IO : 0); in task_requested_bitfield() 2416 bits |= (requested.trp_terminated ? POLICY_REQ_TERMINATED : 0); in task_requested_bitfield() 2418 bits |= (requested.trp_boosted ? POLICY_REQ_BOOSTED : 0); in task_requested_bitfield() 2419 bits |= (requested.trp_tal_enabled ? POLICY_REQ_TAL_ENABLED : 0); in task_requested_bitfield() 2438 return bits; in task_requested_bitfield() 2444 uint64_t bits = 0; in task_effective_bitfield() local [all …]
|
| /xnu-11215/tests/vm/ |
| H A D | zalloc_buddy.c | 76 uint8_t bits[sizeof(zba_base_header()->zbah_bits)] = { }; variable 93 T_QUIET; T_ASSERT_LT(node, 8 * sizeof(bits), "fits in bitfield: %zd", pos); 94 T_QUIET; T_ASSERT_EQ(0, bits[node / 8] & (1 << (node % 8)), "never seen"); 95 bits[node / 8] ^= 1 << (node % 8);
|