Home
last modified time | relevance | path

Searched refs:old_value (Results 1 – 22 of 22) sorted by relevance

/xnu-11215/libkern/libclosure/
H A Druntime.cpp102 int32_t old_value = *where; in latching_incr_int() local
106 if (OSAtomicCompareAndSwapInt(old_value, old_value + 2, where)) { in latching_incr_int()
107 return old_value + 2; in latching_incr_int()
116 int32_t old_value = *where; in latching_incr_int_not_deallocating() local
117 if (old_value & BLOCK_DEALLOCATING) { in latching_incr_int_not_deallocating()
125 if (OSAtomicCompareAndSwapInt(old_value, old_value + 2, where)) { in latching_incr_int_not_deallocating()
138 int32_t old_value = *where; in latching_decr_int_should_deallocate() local
142 if ((old_value & BLOCK_REFCOUNT_MASK) == 0) { in latching_decr_int_should_deallocate()
145 int32_t new_value = old_value - 2; in latching_decr_int_should_deallocate()
148 new_value = old_value - 1; in latching_decr_int_should_deallocate()
[all …]
/xnu-11215/bsd/net/
H A Drestricted_in_port.c215 int old_value = restricted_port_enforced; variable
216 int value = old_value;
231 old_value, restricted_port_enforced);
242 int old_value = restricted_port_verbose; variable
243 int value = old_value;
257 old_value, restricted_port_verbose);
268 uint16_t old_value = restricted_port_test; in sysctl_restricted_port_test_common() local
269 int value = old_value; in sysctl_restricted_port_test_common()
333 uint16_t old_value = restricted_port_test; variable
341 old_value, restricted_port_test);
[all …]
/xnu-11215/bsd/netinet/
H A Dtcp_ccdbg.c46 UInt32 old_value = TCP_CCDBG_NOUNIT; in tcp_ccdbg_control_connect() local
49 if (tcp_ccdbg_unit != old_value) { in tcp_ccdbg_control_connect()
53 if (OSCompareAndSwap(old_value, new_value, &tcp_ccdbg_unit)) { in tcp_ccdbg_control_connect()
66 UInt32 old_value = tcp_ccdbg_unit; in tcp_ccdbg_control_disconnect() local
72 if (!OSCompareAndSwap(old_value, new_value, in tcp_ccdbg_control_disconnect()
H A Dmptcp.c179 int old_value = *(int *)oidp->oid_arg1; variable
192 old_value, *(int *)oidp->oid_arg1);
H A Din_pcb.c195 int old_value = *(int *)oidp->oid_arg1; variable
223 old_value, *(int *)oidp->oid_arg1);
/xnu-11215/doc/primitives/
H A Datomics.md256 int old_value, new_value;
259 old_value = atomic_load_explicit(address, memory_order_relaxed);
261 if (!validate(old_value)) {
264 new_value = compute_new_value(old_value);
274 int old_value, new_value;
277 success = os_atomic_rmw_loop(address, old_value, new_value, acquire, {
278 if (!validate(old_value)) {
281 new_value = compute_new_value(old_value);
304 int old_value, new_value;
319 if (!validate(old_value)) {
[all …]
/xnu-11215/bsd/dev/i386/
H A Dsysctl.c278 int new_value = 0, old_value = 0, changed = 0, error; in panic_set_restart_timeout() local
283 old_value = (int)MIN(nstime / NSEC_PER_SEC, INT_MAX); in panic_set_restart_timeout()
286 error = sysctl_io_number(req, old_value, sizeof(old_value), &new_value, &changed); in panic_set_restart_timeout()
366 uint64_t old_value; in misc_kernel_timeout_spin() local
372 absolutetime_to_nanoseconds(kernel_timeout_spin, &old_value); in misc_kernel_timeout_spin()
374 error = sysctl_io_number(req, old_value, sizeof(uint64_t), &new_value, &changed); in misc_kernel_timeout_spin()
958 uint64_t new_value = 0, old_value = 0; in misc_svisor_read() local
961 error = sysctl_io_number(req, old_value, sizeof(uint64_t), &new_value, &changed); in misc_svisor_read()
1057 uint32_t old_value = curtask_get_insn_copy_optout() ? 1 : 0; variable
1068 return SYSCTL_OUT(req, &old_value, sizeof(old_value));
/xnu-11215/libsyscall/wrappers/
H A Dkdebug_trace.c76 void* old_value = NULL; in kdebug_typefilter() local
77 …if (ptr && !atomic_compare_exchange_strong((void* _Atomic volatile *)&typefilter, &old_value, ptr)… in kdebug_typefilter()
/xnu-11215/bsd/kern/
H A Dkern_sysctl.c3452 int new_value, old_value, changed; local
3458 old_value = KERN_RAGE_THREAD;
3460 old_value = KERN_RAGE_PROC;
3462 old_value = 0;
3516 int new_value, old_value; local
3526 old_value = 0;
3528 if ((error = sysctl_io_number(req, old_value, sizeof(old_value), &new_value, NULL)) != 0) {
3566 old_value = KERN_OPENEVT_PROC;
3568 old_value = 0;
4315 vm_map_size_t old_value; local
[all …]
H A Dsys_generic.c2883 uint32_t old_value = thread_get_no_smt() ? 1 : 0; variable
2895 return SYSCTL_OUT(req, &old_value, sizeof(old_value));
2983 int old_value = thread_get_no_smt() ? 1 : 0; in sysctl_kern_sched_thread_set_no_smt() local
2984 int error = sysctl_io_number(req, old_value, sizeof(int), &new_value, &changed); in sysctl_kern_sched_thread_set_no_smt()
3012 int old_value = rt_allow_limit_percent; in sysctl_kern_rt_allow_limit_percent() local
3015 int error = sysctl_io_number(req, old_value, sizeof(old_value), in sysctl_kern_rt_allow_limit_percent()
3044 uint64_t old_value = rt_allow_limit_interval_ms; in sysctl_kern_rt_allow_limit_interval_ms() local
3047 int error = sysctl_io_number(req, old_value, sizeof(old_value), in sysctl_kern_rt_allow_limit_interval_ms()
3077 int old_value = task_get_filter_msg_flag(current_task()) ? 1 : 0; variable
3128 int old_value = ipc_entry_table_count_max(); variable
[all …]
H A Dkern_exit.c1364 uint32_t old_value = atomic_load_explicit(&p->p_user_faults, in abort_with_payload_internal() local
1374 if (old_value >= OS_REASON_TOTAL_USER_FAULTS_PER_PROC) { in abort_with_payload_internal()
1379 &old_value, old_value + 1, memory_order_relaxed, in abort_with_payload_internal()
H A Dkern_memorystatus.c4827 uint64_t old_value = 0; variable
4834 old_value = memorystatus_vm_map_fork_pidwatch_val;
4836 error = sysctl_io_number(req, old_value, sizeof(old_value), &new_value, NULL);
4850 …log_debug("memorystatus: pidwatch old_value = 0x%llx, new_value = 0x%llx\n", old_value, new_value);
/xnu-11215/bsd/dev/arm64/
H A Dsysctl.c116 int old_value = (int)ml_cpu_signal_deferred_get_timer(); in cpu_signal_deferred_timer() local
118 int error = sysctl_io_number(req, old_value, sizeof(int), &new_value, &changed); in cpu_signal_deferred_timer()
/xnu-11215/osfmk/vm/
H A Dvm_protos.h563 bool *old_value);
H A Dvm_user.c1175 vm_toggle_entry_reuse(int toggle, int *old_value) in vm_toggle_entry_reuse() argument
1180 if (toggle == VM_TOGGLE_GETVALUE && old_value != NULL) { in vm_toggle_entry_reuse()
1181 *old_value = map->disable_vmentry_reuse; in vm_toggle_entry_reuse()
H A Dmemory_object.c1691 bool *old_value) in memory_object_mark_as_tracked() argument
1705 *old_value = object->fbdp_tracked; in memory_object_mark_as_tracked()
H A Dvm_shared_region.c3022 uint32_t old_value; in vm_shared_region_slide_page_v1() local
3025 old_value = *ptr_to_slide; in vm_shared_region_slide_page_v1()
3027 if (is_64 && *ptr_to_slide < old_value) { in vm_shared_region_slide_page_v1()
3035 i, j, b, slide, old_value, *ptr_to_slide); in vm_shared_region_slide_page_v1()
/xnu-11215/osfmk/kern/
H A Dpolicy_internal.h245 extern int task_low_mem_privileged_listener(task_t task, boolean_t new_value, boolean_t *old_value);
H A Dtask_policy.c3754 task_low_mem_privileged_listener(task_t task, boolean_t new_value, boolean_t *old_value) in task_low_mem_privileged_listener() argument
3756 if (old_value != NULL) { in task_low_mem_privileged_listener()
3757 *old_value = (boolean_t)task->low_mem_privileged_listener; in task_low_mem_privileged_listener()
/xnu-11215/tests/skywalk/
H A Dskywalk_test_common.c2394 sktc_toggle_ip_reass(int new_value, int *old_value) in sktc_toggle_ip_reass() argument
2396 size_t old_value_size = sizeof(*old_value); in sktc_toggle_ip_reass()
2401 old_value, old_value != NULL ? &old_value_size : NULL, in sktc_toggle_ip_reass()
/xnu-11215/bsd/vfs/
H A Dvfs_syscalls.c11957 int new_value, old_value, changed = 0; in sysctl_nspace_resolver() local
11960 error = nspace_resolver_get_proc_state(p, &old_value); in sysctl_nspace_resolver()
11965 error = sysctl_io_number(req, old_value, sizeof(int), &new_value, in sysctl_nspace_resolver()
11983 int new_value, old_value, changed = 0; in sysctl_nspace_prevent_materialization() local
11986 error = nspace_materialization_get_proc_state(p, &old_value); in sysctl_nspace_prevent_materialization()
11991 error = sysctl_io_number(req, old_value, sizeof(int), &new_value, in sysctl_nspace_prevent_materialization()
12008 int new_value, old_value, changed = 0; in sysctl_nspace_thread_prevent_materialization() local
12011 error = nspace_materialization_get_thread_state(&old_value); in sysctl_nspace_thread_prevent_materialization()
12016 error = sysctl_io_number(req, old_value, sizeof(int), &new_value, in sysctl_nspace_thread_prevent_materialization()
/xnu-11215/libkern/c++/
H A DOSKext.cpp16964 int new_value = 0, old_value = 0, changed = 0; local
16965 int error = sysctl_io_number(req, old_value, sizeof(int), &new_value, &changed);