| /xnu-11215/bsd/dev/dtrace/ |
| H A D | blist.c | 220 blist_free(newbl, count, newbl->bl_blocks - count); in blist_resize() 274 if (count == 1) { 531 if (v > count) { 532 v = count; 548 count -= v; 639 count -= radix; 641 if (count) { 648 count 651 count = 0; 719 count [all …]
|
| /xnu-11215/osfmk/arm/ |
| H A D | caches.c | 73 count = length; in flush_dcache() 81 count = length; in flush_dcache() 88 addr += count; in flush_dcache() 89 length -= count; in flush_dcache() 107 count = length; in clean_dcache() 122 addr += count; in clean_dcache() 123 length -= count; in clean_dcache() 167 count = size; in dcache_incoherent_io_flush64() 190 size -= count; in dcache_incoherent_io_flush64() 227 count = size; in dcache_incoherent_io_store64() [all …]
|
| H A D | preemption_disable.c | 101 if (count == 0) { in _enable_preemption_write_count() 124 unsigned int count = thread->machine.preemption_count; in _disable_preemption() local 127 count + 1, compiler_acq_rel); in _disable_preemption() 155 unsigned int count = thread->machine.preemption_count; in _disable_preemption_without_measurements() local 162 count + 1, compiler_acq_rel); in _disable_preemption_without_measurements() 195 if (__improbable(count == 0)) { in _enable_preemption() 200 if (__improbable(count == SCHED_HYGIENE_MARKER + 1)) { in _enable_preemption() 205 _enable_preemption_write_count(thread, count - 1); in _enable_preemption() 220 count &= ~SCHED_HYGIENE_MARKER; in get_preemption_level_for_thread() 222 return (int)count; in get_preemption_level_for_thread() [all …]
|
| /xnu-11215/osfmk/kern/ |
| H A D | host.c | 164 assert(count != 0); in host_processors() 181 *countp = count; in host_processors() 309 *count = 0; in host_info() 471 original_count = *count; in host_statistics() 646 *count = 0; in get_cached_info() 650 *count = g_host_stats_cache[index].count; in get_cached_info() 837 original_count = *count; in vm_stats() 1036 if (pos > *count) { in get_sched_statistics() 1061 if (pos > *count) { in get_sched_statistics() 1070 *count = pos; in get_sched_statistics() [all …]
|
| H A D | kpc_common.c | 377 offset += count; in kpc_get_shadow_counters() 409 uint32_t count = 0; in kpc_get_counter_count() local 418 count += pmc_cnt; in kpc_get_counter_count() 421 return count; in kpc_get_counter_count() 427 uint32_t count = 0; in kpc_get_config_count() local 443 return count; in kpc_get_config_count() 449 uint32_t count = 0; in kpc_get_config() local 628 uint32_t count = 0; in kpc_get_period() local 675 uint32_t count = 0; in kpc_set_actionid() local 687 val += count; in kpc_set_actionid() [all …]
|
| H A D | test_mpsc_queue.c | 44 uint64_t *count, *end; member 54 if (*q->count % 10000 == 0) { in mpsc_test_pingpong_invoke() 55 printf("mpsc_test_pingpong: %lld asyncs left\n", *q->count); in mpsc_test_pingpong_invoke() 57 if ((*q->count)-- > 0) { in mpsc_test_pingpong_invoke() 79 mpsc_test_pingpong(uint64_t count, uint64_t *out) in mpsc_test_pingpong() argument 86 if (count < 1000 || count > 1000 * 1000) { in mpsc_test_pingpong() 107 uint64_t n = count, start, end; in mpsc_test_pingpong() 108 ping.count = pong.count = &n; in mpsc_test_pingpong() 134 count, *out, (*out / count) / 1000, (*out / count) % 1000); in mpsc_test_pingpong()
|
| /xnu-11215/libkern/c++/ |
| H A D | OSArray.cpp | 72 count = 0; in initWithCapacity() 138 unsigned int count, in withObjects() argument 184 return count; in getCount() 243 count = 0; in flushCollection() 274 if (index != count) { in setObject() 280 count++; in setObject() 345 if (index >= count) { in removeObject() 352 count--; in removeObject() 396 if (index >= count) { in getObject() 406 if (count == 0) { in getLastObject() [all …]
|
| H A D | OSDictionary.cpp | 103 count = 0; in initWithCapacity() 209 count = dict->count; in initWithDictionary() 237 unsigned int count, in withObjects() argument 252 unsigned int count, in withObjects() argument 293 return count; in getCount() 354 count = 0; in flushCollection() 395 if (count >= capacity && count >= ensureCapacity(count + 1)) { in setObject() 402 os::move_backward(&dictionary[i], &dictionary[count], &dictionary[count + 1]); in setObject() 406 count++; in setObject() 464 count--; in removeObject() [all …]
|
| H A D | OSOrderedSet.cpp | 75 count = 0; in initWithCapacity() 140 return count; in getCount() 198 count = 0; in flushCollection() 222 if (index != count) { in setObject() 228 count++; in setObject() 304 count--; in removeObject() 330 return i < count; in member() 337 if (index >= count) { in getObject() 347 if (count) { in getFirstObject() 357 if (count) { in getLastObject() [all …]
|
| /xnu-11215/tests/ |
| H A D | mach_eventlink.c | 75 uint64_t count = 1; in test_eventlink_wait_with_timeout() local 97 uint64_t count = 1; in test_eventlink_wait_no_wait() local 119 uint64_t count = 1; in test_eventlink_wait_destroy() local 140 uint64_t count = 0; in test_eventlink_wait_for_signal() local 162 uint64_t count = 0; in test_eventlink_wait_then_signal() local 188 uint64_t count = 0; in test_eventlink_wait_then_wait_signal_with_no_wait() local 217 uint64_t count = 0; in test_eventlink_wait_then_wait_signal_with_prepost() local 231 count = 0; in test_eventlink_wait_then_wait_signal_with_prepost() 247 uint64_t count = 0; in test_eventlink_wait_then_signal_loop() local 617 uint64_t count = 0; variable [all …]
|
| H A D | task_info_28439149.c | 46 mach_msg_type_number_t count; variable 58 count = TASK_BASIC_INFO_64_COUNT; 60 &count), "task_info(self, TASK_BASIC_INFO_64 ...)"); 61 count = TASK_BASIC_INFO_64_COUNT; 63 &count), "task_info(other_name, TASK_BASIC_INFO_64 ...)"); 64 count = TASK_BASIC_INFO_64_COUNT; 69 count = TASK_DYLD_INFO_COUNT; 71 &count), "task_info(self, TASK_DYLD_INFO ...)"); 72 count = TASK_DYLD_INFO_COUNT; 74 &count), "task_info(other_name, TASK_DYLD_INFO ...)"); [all …]
|
| H A D | task_info.c | 87 …T_EXPECT_EQ(count, TASK_VM_INFO_REV0_COUNT, "task_info count(%d) is equal to TASK_VM_INFO_REV0_COU… 119 …T_EXPECT_EQ(count, TASK_VM_INFO_REV1_COUNT, "task_info count(%d) is equal to TASK_VM_INFO_REV1_COU… 151 …T_EXPECT_EQ(count, TASK_VM_INFO_REV2_COUNT, "task_info count(%d) is equal to TASK_VM_INFO_REV2_COU… 311 count--; 383 count--; 414 count--; 444 count--; 501 count = TASK_POWER_INFO_V2_COUNT_OLD; 509 count--; 570 mach_msg_type_number_t count; in test_task_basic_info() local [all …]
|
| H A D | host_statistics_rate_limiting.c | 81 unsigned int count; in get_host_info() local 83 count = HOST_VM_INFO64_REV0_COUNT; in get_host_info() 85 count = HOST_VM_INFO64_REV1_COUNT; in get_host_info() 87 count = HOST_EXTMOD_INFO64_COUNT; in get_host_info() 89 count = HOST_LOAD_INFO_COUNT; in get_host_info() 91 count = HOST_VM_INFO_REV0_COUNT; in get_host_info() 93 count = HOST_VM_INFO_REV1_COUNT; in get_host_info() 95 count = HOST_VM_INFO_REV2_COUNT; in get_host_info() 97 count = HOST_CPU_LOAD_INFO_COUNT; in get_host_info() 99 count = TASK_POWER_INFO_COUNT; in get_host_info() [all …]
|
| /xnu-11215/config/ |
| H A D | newvers.pl | 169 my $count=0; 170 $count += $data =~ s/###KERNEL_VERSION_LONG###/$VERSION_LONG/g; 171 $count += $data =~ s/###KERNEL_VERSION_SHORT###/$VERSION_SHORT/g; 172 $count += $data =~ s/###KERNEL_VERSION_MAJOR###/$VERSION_MAJOR/g; 173 $count += $data =~ s/###KERNEL_VERSION_MINOR###/$VERSION_MINOR/g; 176 $count += $data =~ s/###KERNEL_VERSION_STAGE###/$VERSION_STAGE/g; 178 $count += $data =~ s/###KERNEL_BUILD_CONFIG###/$BUILD_CONFIG/g; 179 $count += $data =~ s/###KERNEL_BUILDER###/$BUILDER/g; 180 $count += $data =~ s/###KERNEL_BUILD_OBJROOT###/$BUILD_OBJROOT/g; 181 $count += $data =~ s/###KERNEL_BUILD_DATE###/$BUILD_DATE/g; [all …]
|
| /xnu-11215/iokit/IOKit/ |
| H A D | IOLib.h | 319 #define IONewData(type, count) \ argument 322 #define IONewZeroData(type, count) \ argument 416 #define IONewZero_2(e_ty, count) \ argument 417 IONew_2(e_ty, count) 419 #define IONewZero_3(h_ty, e_ty, count) \ argument 420 IONew_3(h_ty, e_ty, count) 423 #define IONew_2(e_ty, count) \ argument 426 #define IONew_3(h_ty, e_ty, count) \ argument 429 #define IONewZero_2(e_ty, count) \ argument 432 #define IONewZero_3(h_ty, e_ty, count) \ argument [all …]
|
| /xnu-11215/osfmk/arm64/ |
| H A D | status.c | 578 mach_msg_type_number_t count, in machine_thread_state_convert_from_user() argument 828 uint32_t count) in machine_thread_function_pointers_convert_from_user() argument 842 while (count--) { in machine_thread_function_pointers_convert_from_user() 870 if (*count < 4) { in machine_thread_get_state() 878 *count = 4; in machine_thread_get_state() 882 if (*count < 4) { in machine_thread_get_state() 890 *count = 4; in machine_thread_get_state() 894 if (*count < 5) { in machine_thread_get_state() 903 *count = 5; in machine_thread_get_state() 1101 *count = (max + 1); in machine_thread_get_state() [all …]
|
| /xnu-11215/bsd/kern/ |
| H A D | tty_subr.c | 192 cc = count; in q_to_b() 195 count -= cc; in q_to_b() 216 size_t count = 0; in ndqb() local 239 count++; in ndqb() 246 count++; in ndqb() 279 cc = count; in ndflush() 281 count -= cc; in ndflush() 423 cc = count; in b_to_q() 429 count = 0; in b_to_q() 438 count -= cc; in b_to_q() [all …]
|
| H A D | kern_symfile.c | 520 count = 0; in kern_open_file_for_direct_io() 522 count *= blksize; in kern_open_file_for_direct_io() 523 if (count && (count < maxiocount)) { in kern_open_file_for_direct_io() 529 count = 0; in kern_open_file_for_direct_io() 532 if (count && (count < maxiocount)) { in kern_open_file_for_direct_io() 538 count = 0; in kern_open_file_for_direct_io() 540 if (count && (count < maxiocount)) { in kern_open_file_for_direct_io() 546 count = 0; in kern_open_file_for_direct_io() 548 if (count && (count < maxiocount)) { in kern_open_file_for_direct_io() 560 if (count && (count < maxiocount)) { in kern_open_file_for_direct_io() [all …]
|
| /xnu-11215/osfmk/i386/ |
| H A D | pcb.c | 1307 if (*count < 3) { in machine_thread_get_state() 1315 *count = 3; in machine_thread_get_state() 1321 if (*count < 4) { in machine_thread_get_state() 1330 *count = 4; in machine_thread_get_state() 1336 if (*count < 5) { in machine_thread_get_state() 1346 *count = 5; in machine_thread_get_state() 1352 if (*count < 6) { in machine_thread_get_state() 1363 *count = 6; in machine_thread_get_state() 1381 *count = 7; in machine_thread_get_state() 1823 *count = 0; in machine_thread_get_state() [all …]
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IOLocks.cpp | 185 lock->count = 0; in IORecursiveLockAllocWithLockGroup() 218 lock->count++; in IORecursiveLockLock() 224 lock->count = 1; in IORecursiveLockLock() 234 lock->count++; in IORecursiveLockTryLock() 241 lock->count = 1; in IORecursiveLockTryLock() 273 UInt32 count = lock->count; in IORecursiveLockSleep() local 278 lock->count = 0; in IORecursiveLockSleep() 287 lock->count = count; in IORecursiveLockSleep() 296 UInt32 count = lock->count; in IORecursiveLockSleepDeadline() local 301 lock->count = 0; in IORecursiveLockSleepDeadline() [all …]
|
| /xnu-11215/bsd/tests/ |
| H A D | tree_tests_sysctl.c | 91 rb_tree_insert_nodes(struct _rb_test_tree *tree, size_t count) in rb_tree_insert_nodes() argument 94 if (RBT_TEST_NODE_COUNT < count) { in rb_tree_insert_nodes() 95 count = RBT_TEST_NODE_COUNT; in rb_tree_insert_nodes() 98 for (idx = 0; idx < count; idx++) { in rb_tree_insert_nodes() 105 return count; in rb_tree_insert_nodes() 109 rb_tree_remove_nodes(struct _rb_test_tree *tree, size_t count) in rb_tree_remove_nodes() argument 112 if (RBT_TEST_NODE_COUNT < count) { in rb_tree_remove_nodes() 113 count = RBT_TEST_NODE_COUNT; in rb_tree_remove_nodes() 116 for (idx = 0; idx < count; idx++) { in rb_tree_remove_nodes() 123 return count; in rb_tree_remove_nodes()
|
| /xnu-11215/tests/vm/ |
| H A D | vm_test_shreg_ro.c | 77 &count); in find_nested_read_only_mapping() 153 &count); 180 &count); 214 &count); 241 &count); 272 &count); 300 &count); 325 &count); 360 &count); 390 &count); [all …]
|
| /xnu-11215/osfmk/vm/ |
| H A D | analytics.c | 135 uint64_t count; member 161 {.count = 0, .lower = HR_TO_S(0), .upper = HR_TO_S(1)}, /* [0, 1) hours */ in report_compressor_age() 162 {.count = 0, .lower = HR_TO_S(1), .upper = HR_TO_S(6)}, /* [1, 6) hours */ in report_compressor_age() 183 c_buckets[b].count++; in report_compressor_age() 195 e->hour1 = c_buckets[0].count; in report_compressor_age() 196 e->hour6 = c_buckets[1].count; in report_compressor_age() 197 e->hour12 = c_buckets[2].count; in report_compressor_age() 198 e->hour24 = c_buckets[3].count; in report_compressor_age() 199 e->hour36 = c_buckets[4].count; in report_compressor_age() 200 e->hour48 = c_buckets[5].count; in report_compressor_age() [all …]
|
| /xnu-11215/libkern/crypto/ |
| H A D | corecrypto_md5.c | 9 return (((uint64_t)ctx->count[0]) << 32) | (ctx->count[1]); in getCount() 13 setCount(MD5_CTX *ctx, uint64_t count) in setCount() argument 15 ctx->count[0] = (uint32_t)(count >> 32); in setCount() 16 ctx->count[1] = (uint32_t)count; in setCount() 32 uint64_t count = getCount(md5_ctx); in MD5ToDi() local 34 ccdigest_num(di, di_ctx) = (unsigned)(count % di->block_size); in MD5ToDi() 35 ccdigest_nbits(di, di_ctx) = (count - ccdigest_num(di, di_ctx)) * 8; in MD5ToDi()
|
| /xnu-11215/tools/lockstat/ |
| H A D | lockstat.c | 85 unsigned int count; variable 111 printf("count = %d\n", count); in main() 112 for (i = 0; i < count; i++) { in main() 137 for (i = 0; i < count; i++) { in main() 196 for (i = 0; i < count; i++) { in main() 252 for (i = 0; i < count; i++) { in main() 309 for (i = 0; i < count; i++) { in print_all_spin() 346 for (i = 0; i < count; i++) { in print_all_mutex() 375 for (i = 0; i < count; i++) { in print_all_rw() 384 lockgroup_start = calloc(count, sizeof(lockgroup_info_t)); in prime_lockgroup_deltas() [all …]
|