Home
last modified time | relevance | path

Searched refs:os_atomic_inc_orig (Results 1 – 25 of 43) sorted by relevance

12

/xnu-11215.1.10/tools/cocci/
H A DOSAtomic_rewrite.cocci11 + os_atomic_inc_orig(E, relaxed)
14 + os_atomic_inc_orig(E, relaxed)
17 + os_atomic_inc_orig(E, relaxed)
20 + os_atomic_inc_orig(E, relaxed)
23 + os_atomic_inc_orig(E, relaxed)
26 + os_atomic_inc_orig(E, relaxed)
29 + os_atomic_inc_orig(E, relaxed)
32 + os_atomic_inc_orig(E, relaxed)
35 + os_atomic_inc_orig(E, relaxed)
38 + os_atomic_inc_orig(E, relaxed)
[all …]
H A Dos_atomic_normalize.cocci37 + os_atomic_inc_orig(E, m)
43 + os_atomic_inc_orig(E, m)
H A Dhw_atomic_rewrite.cocci23 + os_atomic_inc_orig(E, relaxed)
39 + os_atomic_inc_orig(E, relaxed)
H A Dc11_atomic_builtin_rewrite.cocci57 + os_atomic_inc_orig
/xnu-11215.1.10/tests/
H A Dos_atomic.cpp16 T_ASSERT_EQ(os_atomic_inc_orig(&i, relaxed), 0, "atomic inc");
22 T_ASSERT_EQ(os_atomic_inc_orig(&old_i, relaxed), 0, "atomic inc");
28 T_ASSERT_EQ(os_atomic_inc_orig(&v_i, relaxed), 0, "atomic inc");
/xnu-11215.1.10/osfmk/bank/
H A Dbank_internal.h120 (os_atomic_inc_orig(&(elem)->bt_made, relaxed))
171 (os_atomic_inc_orig(&(elem)->ba_made, relaxed))
/xnu-11215.1.10/libkern/gen/
H A DOSAtomicOperations.c139 return os_atomic_inc_orig(value, relaxed); in OSIncrementAtomic()
209 return os_atomic_inc_orig(value, relaxed); in OSIncrementAtomic8()
/xnu-11215.1.10/bsd/sys/
H A Deventvar.h390 … unsigned int __index = os_atomic_inc_orig(&__kqwl->kqwl_preadopt_tg_history_index, relaxed); \
415 unsigned int __index = os_atomic_inc_orig(&__kqwl->kqwl_index, relaxed); \
/xnu-11215.1.10/osfmk/kern/
H A Dsocd_client.c113 trace_idx = os_atomic_inc_orig(&socd_client_state.trace_idx, relaxed); in socd_client_trace()
H A Dlock_group.c496 __unused uint64_t val = os_atomic_inc_orig(&stat->lgs_count, relaxed); in lck_grp_stat_inc()
H A Dthread.h627 uint64_t __index = os_atomic_inc_orig(&thread->workq_quantum_history_index, relaxed); \
H A Dexclaves_resource.c647 os_atomic_inc_orig(&resource->r_usecnt, relaxed); in exclaves_resource_retain()
/xnu-11215.1.10/libkern/os/
H A Datomic_private.h410 #define os_atomic_inc_orig(p, m) _os_atomic_c11_op_orig(p, 1, m, fetch_add) macro
/xnu-11215.1.10/bsd/dev/dtrace/
H A Ddtrace_subr.c383 minor_t minor = os_atomic_inc_orig(&next_minor, relaxed) % DTRACE_NCLIENTS; in dtrace_state_reserve()
/xnu-11215.1.10/san/coverage/
H A Dkcov_ksancov.c222 uint32_t idx = os_atomic_inc_orig(&dev->trace->kt_head, relaxed); in trace_pc_guard_pcs()
239 uint32_t idx = os_atomic_inc_orig(&dev->trace->kt_head, relaxed); in trace_pc_guard_pcs_stk()
/xnu-11215.1.10/bsd/vfs/
H A Dvfs_lookup.c418 old_count = os_atomic_inc_orig(&rootdir_with_usecount->v_usecount, relaxed); in namei()
427 old_count = os_atomic_inc_orig(&dp->v_usecount, relaxed); in namei()
H A Dvfs_cache.c2994 uint32_t old_count = os_atomic_inc_orig(&ncp->nc_counter, release); in cache_enter_locked()
3180 uint32_t old_count = os_atomic_inc_orig(&ncp->nc_counter, release); in cache_delete()
/xnu-11215.1.10/bsd/net/
H A Droute.c1369 idx = os_atomic_inc_orig(&rte->rtd_refrele_cnt, relaxed) % CTRACE_HIST_SIZE; in rtunref_audit()
1409 idx = os_atomic_inc_orig(&rte->rtd_refhold_cnt, relaxed) % CTRACE_HIST_SIZE; in rtref_audit()
3871 idx = os_atomic_inc_orig(&rte->rtd_lock_cnt, relaxed) % CTRACE_HIST_SIZE; in rte_lock_debug()
3883 idx = os_atomic_inc_orig(&rte->rtd_unlock_cnt, relaxed) % CTRACE_HIST_SIZE; in rte_unlock_debug()
/xnu-11215.1.10/bsd/kern/
H A Dsys_ulock.c663 if (os_atomic_inc_orig(&fault_inject, relaxed) % 73 == 0) { in sys_ulock_wait2()
H A Dsys_pipe.c621 pp->pp_pipe_id = os_atomic_inc_orig(&pipe_unique_id, relaxed); in pipepair_alloc()
H A Dkpi_mbuf.c1924 os_atomic_inc_orig(&mbuf_tx_compl_index, relaxed); in mbuf_set_timestamp_requested()
/xnu-11215.1.10/osfmk/arm64/sptm/pmap/
H A Dpmap_data.c1053 if (__improbable((refcountp != NULL) && (os_atomic_inc_orig(refcountp, relaxed) == UINT16_MAX))) { in pv_alloc()
/xnu-11215.1.10/doc/primitives/
H A Datomics.md214 printf("%d\n", os_atomic_inc_orig(&i)); // prints 0
/xnu-11215.1.10/osfmk/tests/
H A Dkernel_tests.c2250 if (os_atomic_inc_orig(&info->value, relaxed) == 0) { in thread_force_reflock()
2291 if (os_atomic_inc_orig(&info->value, relaxed) == 0) { in thread_lock_reflock()
/xnu-11215.1.10/bsd/netinet6/
H A Dnd6_rtr.c2952 idx = os_atomic_inc_orig(cnt, relaxed) % NDDR_TRACE_HIST_SIZE; in nddr_trace()
3081 idx = os_atomic_inc_orig(cnt, relaxed) % NDPR_TRACE_HIST_SIZE; in ndpr_trace()

12