| /xnu-11215/tests/bounded_ptr_src/ |
| H A D | arith.difference.cpp | 31 _assert(diff == 0); in tests() 37 _assert(diff == 1); in tests() 43 _assert(diff == 2); in tests() 49 _assert(diff == 3); in tests() 55 _assert(diff == 4); in tests() 61 _assert(diff == 5); in tests() 69 _assert(diff == -1); in tests() 75 _assert(diff == -2); in tests() 81 _assert(diff == -3); in tests() 87 _assert(diff == -4); in tests() [all …]
|
| /xnu-11215/tests/ |
| H A D | ntp_adjtime_29192647.c | 63 uint64_t time_conv1, diff; in get_abs_to_us_scale_factor() local 87 diff = time_conv1 - new_time_usec; in get_abs_to_us_scale_factor() 89 diff = new_time_usec - time_conv1; in get_abs_to_us_scale_factor() 111 long diff; variable 177 diff = (long) us_delta - (long) abs_delta; 180 T_EXPECT_LE_LONG(diff, (long) ERROR, "Check abs time vs calendar time"); 182 T_EXPECT_GE_LONG(diff, (long) -ERROR, "Check abs time vs calendar time"); 198 long diff, freq; variable 273 diff = (long) us_delta - (long) time_delta; 276 T_EXPECT_LE_LONG(diff, (long) ERROR, "Check abs time vs calendar time"); [all …]
|
| /xnu-11215/tools/ |
| H A D | pre-commit.sh | 7 FILES=$(git diff --staged --name-only --diff-filter=d)
|
| /xnu-11215/bsd/netinet/ |
| H A D | tcp_timer.c | 1932 int32_t diff; in need_to_resched_timerlist() local 1948 if (diff <= 0) { in need_to_resched_timerlist() 2007 int32_t diff; in tcp_run_conn_timer() local 2054 if (diff > 0) { in tcp_run_conn_timer() 2056 offset = diff; in tcp_run_conn_timer() 2479 if (diff > 0) { in tcp_cumulative_stat() 2480 *dest = diff; in tcp_cumulative_stat() 2493 if (diff > 0) { in tcp_cumulative_stat64() 2494 *dest = diff; in tcp_cumulative_stat64() 2766 int32_t diff; in tcp_interface_send_probe() local [all …]
|
| /xnu-11215/osfmk/kern/ |
| H A D | recount.c | 560 struct recount_snap diff = { 0 }; in recount_current_thread_usage() local 561 recount_snap_diff(&diff, &snap, last); in recount_current_thread_usage() 562 recount_usage_add_snap(usage, RCT_LVL_KERNEL, &diff); in recount_current_thread_usage() 601 struct recount_snap diff = { 0 }; in recount_current_thread_perf_level_usage() local 602 recount_snap_diff(&diff, &snap, last); in recount_current_thread_perf_level_usage() 605 recount_usage_add_snap(cur_usage, RCT_LVL_KERNEL, &diff); in recount_current_thread_perf_level_usage() 924 struct recount_snap diff = { 0 }; in recount_switch_thread() local 925 recount_snap_diff(&diff, cur, last); in recount_switch_thread() 1028 recount_snap_diff(diff, cur, last); in recount_precise_transition_diff() 1083 struct recount_snap diff = { 0 }; in recount_transition() local [all …]
|
| H A D | remote_time.c | 372 uint64_t diff = 0; in bt_calibration_thread() local 375 diff = pred_remote_ts - curr_remote_ts; in bt_calibration_thread() 377 diff = curr_remote_ts - pred_remote_ts; in bt_calibration_thread() 379 if (diff > TS_PAIR_MISMATCH_THRESHOLD_NS) { in bt_calibration_thread()
|
| /xnu-11215/osfmk/mach/arm/ |
| H A D | thread_status.h | 577 add_saved_state_pc(arm_saved_state_t *iss, int diff) in add_saved_state_pc() argument 580 uint64_t pc = saved_state32(iss)->pc + (uint32_t)diff; in add_saved_state_pc() 588 [diff] "r"(diff) in add_saved_state_pc() 591 saved_state64(iss)->pc += (unsigned long)diff; in add_saved_state_pc() 598 add_user_saved_state_pc(arm_saved_state_t *iss, int diff) in add_user_saved_state_pc() argument 601 uint64_t pc = saved_state32(iss)->pc + (uint32_t)diff; in add_user_saved_state_pc() 609 [diff] "r"(diff) in add_user_saved_state_pc() 612 saved_state64(iss)->pc += (unsigned long)diff; in add_user_saved_state_pc()
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | waitq.py | 263 diff = stats.waits - stats.wakeups 264 if diff == 0 and waiters_only: 299 print(fmt_str.format(q=addressof(waitq), stats=stats, diff=diff, bt_str=bt_str))
|
| H A D | misc.py | 242 diff = signed(rt_timer.deadline) - signed(recent_timestamp) 243 diff_s = kern.GetNanotimeFromAbstime(diff) / 1000000000.0 260 ['(PAST DEADLINE)', '(deadline ok)'][int(diff > 0)] if valid_deadline else ""))
|
| /xnu-11215/tools/trace/ |
| H A D | bridgetime.lua | 122 local diff = (math.abs(buf[2] - buf[3]))/1000000 126 diff, buf[4], format_timestamp_arm(buf[1]))
|
| /xnu-11215/libkern/os/ |
| H A D | log.c | 1228 log_stats_diff(const log_stats_t *before, const log_stats_t *after, log_stats_t *diff) in log_stats_diff() argument 1245 *diff = d; in log_stats_diff() 1277 log_stats_t diff = {}; in log_stats_report() local 1278 log_stats_diff(before, after, &diff); in log_stats_report() 1282 test, diff.total, diff.saved, diff.dropped, in log_stats_report() 1283 diff.errors, diff.errors_kc, diff.errors_fmt, diff.errors_max_args); in log_stats_report()
|
| /xnu-11215/bsd/net/ |
| H A D | pf.c | 799 int diff; in pf_src_compare() local 808 return diff; in pf_src_compare() 811 return diff; in pf_src_compare() 819 int diff; in pf_state_compare_lan_ext() local 823 return diff; in pf_state_compare_lan_ext() 826 return diff; in pf_state_compare_lan_ext() 835 return diff; in pf_state_compare_lan_ext() 938 int diff; in pf_state_compare_ext_gwy() local 943 return diff; in pf_state_compare_ext_gwy() 947 return diff; in pf_state_compare_ext_gwy() [all …]
|
| /xnu-11215/iokit/Kernel/ |
| H A D | IODeviceTreeSupport.cpp | 1141 SInt64 diff = 0; in DefaultCompare() local 1144 diff = IOPhysical32(left[1], left[0]) - IOPhysical32(right[1], right[0]); in DefaultCompare() 1146 diff = (left[0] - right[0]); in DefaultCompare() 1151 return diff; in DefaultCompare() 1242 SInt64 diff, diff2, endDiff; in IODTResolveAddressCell() local 1299 diff = (*compare)( childAddressCells, cell, range ); in IODTResolveAddressCell() 1313 if ((diff < 0) || (diff2 >= 0)) { in IODTResolveAddressCell() 1337 if ((endDiff - len + 1 + lookRangeStart) == (diff + rangeStart)) { in IODTResolveAddressCell() 1346 offset += diff; in IODTResolveAddressCell()
|
| /xnu-11215/tools/cocci/ |
| H A D | zalloc-data.cocci | 28 // vim:ft=diff:
|
| H A D | zalloc-zero.cocci | 80 // vim:ft=diff:
|
| H A D | zalloc-nofail.cocci | 87 // vim:ft=diff:
|
| H A D | c11_atomic_builtin_rewrite.cocci | 162 // vim:ft=diff:
|
| H A D | hw_atomic_rewrite.cocci | 96 // vim:ft=diff:
|
| H A D | os_atomic_normalize.cocci | 94 // vim:ft=diff:
|
| /xnu-11215/libkern/kxld/ |
| H A D | kxld_array.c | 359 u_long diff = 0; in kxld_array_get_index() local 372 diff = it - pool->buffer; in kxld_array_get_index() 373 idx = (u_int) (diff / array->itemsize); in kxld_array_get_index()
|
| /xnu-11215/bsd/skywalk/core/ |
| H A D | skywalk.c | 1319 uintptr_t diff; in skywalk_memcmp_mask_self_tests() local 1323 diff = P2ROUNDUP(s1, SK_DUMP_BUF_ALIGN) - (uintptr_t)s1; in skywalk_memcmp_mask_self_tests() 1324 s1 = (void *)((char *)s1 + diff); in skywalk_memcmp_mask_self_tests() 1464 uintptr_t diff; in skywalk_self_tests() local 1485 diff = P2ROUNDUP(s1, SK_DUMP_BUF_ALIGN) - (uintptr_t)s1; in skywalk_self_tests() 1486 s1 = (void *)((char *)s1 + diff); in skywalk_self_tests()
|
| /xnu-11215/SETUP/config/ |
| H A D | doconf | 297 diff $SYSCONF $SYSCONF.new
|
| /xnu-11215/osfmk/vm/ |
| H A D | vm_page.h | 383 ptrdiff_t diff = (vm_page_t)p - vm_page_array_beginning_addr; in vm_page_pack_ptr() local 384 assert((vm_page_t)p == &vm_pages[diff]); in vm_page_pack_ptr() 385 return (vm_page_packed_t)(diff | VM_PAGE_PACKED_FROM_ARRAY); in vm_page_pack_ptr()
|
| /xnu-11215/osfmk/i386/AT386/ |
| H A D | model_dep.c | 1087 vm_address_t bestaddr = 0, diff, curdiff; in panic_print_macho_symbol_name() local 1125 diff = search; in panic_print_macho_symbol_name() 1134 if (curdiff < diff) { in panic_print_macho_symbol_name() 1135 diff = curdiff; in panic_print_macho_symbol_name() 1143 if (diff != 0) { in panic_print_macho_symbol_name() 1144 paniclog_append_noflush("%s : %s + 0x%lx", module_name, bestsym, (unsigned long)diff); in panic_print_macho_symbol_name()
|
| /xnu-11215/SETUP/kextsymboltool/ |
| H A D | kextsymboltool.c | 511 boolean_t diff = false; in main() local 536 diff = true; in main() 690 if (diff) { in main()
|