Home
last modified time | relevance | path

Searched defs:counter (Results 1 – 25 of 37) sorted by relevance

12

/xnu-12377.41.6/osfmk/kern/
H A Dcounter_common.c50 scalable_counter_static_boot_mangle(scalable_counter_t *counter) in scalable_counter_static_boot_mangle()
61 scalable_counter_static_init(scalable_counter_t *counter) in scalable_counter_static_init()
79 counter_alloc(scalable_counter_t *counter) in counter_alloc()
86 counter_alloc(atomic_counter_t *counter) in counter_alloc()
93 counter_free(scalable_counter_t *counter) in counter_free()
100 counter_free(atomic_counter_t *counter) in counter_free()
107 counter_add(atomic_counter_t *counter, uint64_t amount) in counter_add()
114 counter_inc(atomic_counter_t *counter) in counter_inc()
121 counter_dec(atomic_counter_t *counter) in counter_dec()
128 counter_add_preemption_disabled(atomic_counter_t *counter, uint64_t amount) in counter_add_preemption_disabled()
[all …]
H A Depoch_sync.c358 esync_update_epoch(const uint64_t epoch, os_atomic(uint64_t) *counter) in esync_update_epoch()
417 esync_wait(esync_space_t space, const uint64_t id, const uint64_t epoch, in esync_wait()
495 esync_wake(esync_space_t space, const uint64_t id, const uint64_t epoch, in esync_wake()
H A Dkpc_common.c556 kpc_sample_kperf(uint32_t actionid, uint32_t counter, uint64_t config, in kpc_sample_kperf()
/xnu-12377.41.6/osfmk/arm/
H A Dcounter.c38 counter_add(scalable_counter_t *counter, uint64_t amount) in counter_add()
45 counter_inc(scalable_counter_t *counter) in counter_inc()
52 counter_dec(scalable_counter_t *counter) in counter_dec()
64 counter_add_preemption_disabled(scalable_counter_t *counter, uint64_t amount) in counter_add_preemption_disabled()
71 counter_inc_preemption_disabled(scalable_counter_t *counter) in counter_inc_preemption_disabled()
78 counter_dec_preemption_disabled(scalable_counter_t *counter) in counter_dec_preemption_disabled()
/xnu-12377.41.6/osfmk/x86_64/
H A Dcounter.c65 counter_add(scalable_counter_t *counter, uint64_t amount) in counter_add()
74 counter_inc(scalable_counter_t *counter) in counter_inc()
83 counter_dec(scalable_counter_t *counter) in counter_dec()
92 counter_add_preemption_disabled(scalable_counter_t *counter, uint64_t amount) in counter_add_preemption_disabled()
99 counter_inc_preemption_disabled(scalable_counter_t *counter) in counter_inc_preemption_disabled()
106 counter_dec_preemption_disabled(scalable_counter_t *counter) in counter_dec_preemption_disabled()
/xnu-12377.41.6/iokit/IOKit/
H A DIOStatisticsPrivate.h276 setCounterType(IOEventSourceCounter *counter, IOStatisticsCounterType type) in setCounterType()
284 countOpenGate(IOEventSourceCounter *counter) in countOpenGate()
293 countCloseGate(IOEventSourceCounter *counter) in countCloseGate()
303 countInterruptCheckForWork(IOEventSourceCounter *counter) in countInterruptCheckForWork()
311 countInterrupt(IOEventSourceCounter *counter) in countInterrupt()
320 countCommandQueueActionCall(IOEventSourceCounter *counter) in countCommandQueueActionCall()
329 countCommandGateActionCall(IOEventSourceCounter *counter) in countCommandGateActionCall()
338 countTimerTimeout(IOEventSourceCounter *counter) in countTimerTimeout()
350 countWorkLoopOpenGate(IOWorkLoopCounter *counter) in countWorkLoopOpenGate()
359 countWorkLoopCloseGate(IOWorkLoopCounter *counter) in countWorkLoopCloseGate()
H A DIOEventSource.h160 struct IOEventSourceCounter *counter; member
H A DIOWorkLoop.h162 struct IOWorkLoopCounter *counter; member
H A DIOUserClient.h223 IOUserClientCounter *counter; member
/xnu-12377.41.6/osfmk/vm/
H A Dvm_page_internal.h70 #define VM_COUNTER_DELTA(counter, value) ({ \ argument
75 #define VM_COUNTER_ATOMIC_DELTA(counter, value) ({ \ argument
96 #define VM_COUNTER_ADD(counter, value) ({ \ argument
101 #define VM_COUNTER_ATOMIC_ADD(counter, value) ({ \ argument
121 #define VM_COUNTER_SUB(counter, value) ({ \ argument
126 #define VM_COUNTER_ATOMIC_SUB(counter, value) ({ \ argument
145 #define VM_COUNTER_INC(counter) VM_COUNTER_ADD(counter, 1) argument
146 #define VM_COUNTER_ATOMIC_INC(counter) VM_COUNTER_ATOMIC_ADD(counter, 1) argument
159 #define VM_COUNTER_DEC(counter) VM_COUNTER_SUB(counter, 1) argument
160 #define VM_COUNTER_ATOMIC_DEC(counter) VM_COUNTER_ATOMIC_SUB(counter, 1) argument
/xnu-12377.41.6/iokit/Kernel/
H A DIOStatistics.cpp429 IOEventSourceCounter *counter = NULL; in registerEventSource() local
473 IOStatistics::unregisterEventSource(IOEventSourceCounter *counter) in unregisterEventSource()
493 IOWorkLoopCounter *counter = NULL; in registerWorkLoop() local
524 IOStatistics::unregisterWorkLoop(IOWorkLoopCounter *counter) in unregisterWorkLoop()
544 IOUserClientCounter *counter = NULL; in registerUserClient() local
575 IOStatistics::unregisterUserClient(IOUserClientCounter *counter) in unregisterUserClient()
945 IOEventSourceCounter *counter; in copyCounterStatistics() local
1101 IOStatistics::storeUserClientCallInfo(IOUserClient *userClient, IOUserClientCounter *counter) in storeUserClientCallInfo()
1220 IOUserClientCounter *counter; in countUserClientCall() local
/xnu-12377.41.6/iokit/Tests/
H A DTests.cpp918 int counter = 0; in OSAllocationTests() local
925 int counter = 0; in OSAllocationTests() local
967 int counter = 0; in OSDataAllocationTests() local
974 int counter = 0; in OSDataAllocationTests() local
997 int counter = 0; in OSBoundedArrayTests() local
1004 int counter = 0; in OSBoundedArrayTests() local
1022 int counter = 0; in OSBoundedArrayRefTests() local
1029 int counter = 0; in OSBoundedArrayRefTests() local
1185 int counter = 0; in OSBoundedPtrTests() local
1192 int counter = 0; in OSBoundedPtrTests() local
/xnu-12377.41.6/tools/lldbmacros/
H A Dcounter.py10 def GetSimpleCounter(counter): argument
/xnu-12377.41.6/tests/
H A Dquiesce_counter.c75 uint64_t counter = *commpage_addr; variable
H A Dpfkey.c1132 static int counter = 0; in pfkey_process_message_test_60822136() local
1202 static int counter = 0; in pfkey_process_message_test_60822924() local
1272 static int counter = 0; in pfkey_process_message_test_60822956() local
1395 static int counter = 0; in pfkey_process_message_test_60768729() local
1443 static uint8_t counter = 0; in pfkey_process_message_test_60769680() local
/xnu-12377.41.6/osfmk/arm64/
H A Dkpc.c223 uint64_t counter[MAX_CPUS][KPC_MAX_COUNTERS]; member
262 enable_counter(uint32_t counter) in enable_counter()
284 disable_counter(uint32_t counter) in disable_counter()
308 set_modes(uint32_t counter, kpc_config_t cfgword, bool secure) in set_modes()
342 read_counter(uint32_t counter) in read_counter()
362 write_counter(uint32_t counter, uint64_t value) in write_counter()
454 get_counter_config(uint32_t counter) in get_counter_config()
951 unsigned int counter = i + offset; in kpc_set_config_arch() local
H A Dmte.c162 for (size_t counter = 0; counter < buf_count; counter++, va += 256) { in mte_bulk_read_tags() local
179 for (size_t counter = 0; counter < buf_count; counter++, va += 256) { in mte_bulk_write_tags() local
/xnu-12377.41.6/tests/vm/
H A Dvm_mteinfo.c97 #define VM_COUNTER_SUB(counter, value) ({ \ argument
104 #define VM_COUNTER_ADD(counter, value) ({ \ argument
111 #define VM_COUNTER_DEC(counter) VM_COUNTER_SUB(counter, 1) argument
112 #define VM_COUNTER_INC(counter) VM_COUNTER_ADD(counter, 1) argument
/xnu-12377.41.6/tests/unit/
H A Dfibers_test.c147 volatile int64_t counter; member
H A Dmocks_test.c53 volatile int64_t counter; member
/xnu-12377.41.6/osfmk/i386/
H A DDiagnostics.h111 read_pmc(uint32_t counter) in read_pmc()
/xnu-12377.41.6/bsd/net/
H A Dnet_api_stats.h152 #define INC_ATOMIC_INT64_LIM(counter) { \ argument
/xnu-12377.41.6/osfmk/prng/
H A Dprng_random.c94 uint8_t counter; in wide_hash() local
/xnu-12377.41.6/tests/recount/
H A Drecount_tests.c614 volatile int counter = 0; in _thread_spin_and_exit() local
/xnu-12377.41.6/bsd/vfs/
H A Dvfs_cache.c2462 uint32_t counter = 1; in cache_lookup_smr() local
2682 uint32_t counter = 1; in cache_lookup_ext() local

12