Searched refs:counter (Results 1 - 25 of 323) sorted by relevance

1234567891011>>

/freebsd-11-stable/sys/pc98/include/
H A Dcounter.h6 #include <i386/counter.h>
/freebsd-11-stable/contrib/ntp/sntp/
H A Dlog.c7 static int counter = 0; variable
30 counter = 1; //counter++;
38 //counter--;
39 //if(counter <= 0){
40 if(counter == 1){
45 counter = 0;
/freebsd-11-stable/contrib/wpa/src/eap_common/
H A Deap_psk_common.c38 u8 counter = 1; local
44 hash[aes_block_size - 1] ^= counter;
47 hash[aes_block_size - 1] ^= counter;
48 counter++;
51 hash[aes_block_size - 1] ^= counter;
54 hash[aes_block_size - 1] ^= counter;
55 counter++;
59 hash[aes_block_size - 1] ^= counter;
63 hash[aes_block_size - 1] ^= counter;
64 counter
[all...]
H A Deap_peap_common.c19 unsigned char counter = 0; local
46 addr[3] = &counter;
64 addr[4] = &counter;
70 counter++;
/freebsd-11-stable/sys/compat/linuxkpi/common/include/asm/
H A Datomic-long.h38 #define ATOMIC_LONG_INIT(x) { .counter = (x) }
41 volatile long counter; member in struct:__anon1
51 return i + atomic_fetchadd_long(&v->counter, i);
57 WRITE_ONCE(v->counter, i);
63 return READ_ONCE(v->counter);
69 return atomic_fetchadd_long(&v->counter, 1) + 1;
75 return atomic_fetchadd_long(&v->counter, -1) - 1;
82 return atomic_swap_long(&v->counter, val);
86 while (!atomic_fcmpset_long(&v->counter, &ret, val))
98 if (atomic_fcmpset_long(&v->counter,
[all...]
H A Datomic64.h36 volatile int64_t counter; member in struct:__anon3
39 #define ATOMIC64_INIT(x) { .counter = (x) }
59 return i + atomic_fetchadd_64(&v->counter, i);
65 return atomic_fetchadd_64(&v->counter, -i) - i;
71 atomic_store_rel_64(&v->counter, i);
77 return READ_ONCE(v->counter);
83 return atomic_fetchadd_64(&v->counter, 1) + 1;
89 return atomic_fetchadd_64(&v->counter, -1) - 1;
100 if (likely(atomic_fcmpset_64(&v->counter, &c, c + a)))
114 if (likely(atomic_fcmpset_64(&v->counter,
[all...]
H A Datomic.h39 #define ATOMIC_INIT(x) { .counter = (x) }
42 volatile int counter; member in struct:__anon2
63 return i + atomic_fetchadd_int(&v->counter, i);
69 return atomic_fetchadd_int(&v->counter, -i) - i;
75 WRITE_ONCE(v->counter, i);
81 atomic_store_rel_int(&v->counter, i);
87 atomic_set_int(&v->counter, mask);
93 return READ_ONCE(v->counter);
99 return atomic_fetchadd_int(&v->counter, 1) + 1;
105 return atomic_fetchadd_int(&v->counter,
[all...]
/freebsd-11-stable/tools/tools/mid/
H A Dmid-index12 local($counter);
15 $counter = 0;
45 $counter++;
47 if ($debug && $counter % $speedstep == 0) {
48 print STDERR sprintf("\r%7d", $counter);
69 print STDERR sprintf("\r%7d", $counter)
70 if $debug && $counter % $speedstep != 0;
/freebsd-11-stable/sys/mips/include/
H A Dintr_machdep.h62 * Opaque datatype that represents intr counter
70 mips_intrcnt_inc(mips_intrcnt_t counter) argument
72 if (counter)
73 atomic_add_long(counter, 1);
/freebsd-11-stable/contrib/gcc/config/i386/
H A Dgthr-win32.c149 mutex->counter = -1;
156 if (InterlockedIncrement (&mutex->counter) == 0 ||
163 InterlockedDecrement (&mutex->counter);
171 if (__GTHR_W32_InterlockedCompareExchange (&mutex->counter, 0, -1) < 0)
180 if (InterlockedDecrement (&mutex->counter) >= 0)
189 mutex->counter = -1;
199 if (InterlockedIncrement (&mutex->counter) == 0)
206 InterlockedDecrement (&mutex->counter);
218 InterlockedDecrement (&mutex->counter);
228 if (__GTHR_W32_InterlockedCompareExchange (&mutex->counter,
[all...]
/freebsd-11-stable/contrib/subversion/subversion/libsvn_fs_x/
H A Dbatch_fsync.c100 * counter to reach a certain value. Currently, only increments have been
114 * RESULT_POOL. The initial counter value is 0. */
119 waitable_counter_t *counter = apr_pcalloc(result_pool, sizeof(*counter)); local
120 counter->value = 0;
122 SVN_ERR(svn_thread_cond__create(&counter->cond, result_pool));
123 SVN_ERR(svn_mutex__init(&counter->mutex, TRUE, result_pool));
125 *counter_p = counter;
132 waitable_counter__increment(waitable_counter_t *counter) argument
134 SVN_ERR(svn_mutex__lock(counter
145 waitable_counter__wait_for(waitable_counter_t *counter, int value) argument
169 waitable_counter__reset(waitable_counter_t *counter) argument
196 waitable_counter_t *counter; member in struct:to_sync_t
206 waitable_counter_t *counter; member in struct:svn_fs_x__batch_fsync_t
[all...]
/freebsd-11-stable/contrib/wpa/src/crypto/
H A Daes-ctr.c20 * @nonce: Nonce for counter mode (16 bytes)
32 u8 counter[AES_BLOCK_SIZE], buf[AES_BLOCK_SIZE]; local
37 os_memcpy(counter, nonce, AES_BLOCK_SIZE);
40 aes_encrypt(ctx, counter, buf);
49 counter[i]++;
50 if (counter[i])
62 * @nonce: Nonce for counter mode (16 bytes)
H A Dsha1-prf.c33 u8 counter = 0; local
44 addr[2] = &counter;
62 counter++;
/freebsd-11-stable/tools/test/hwpmc/
H A Dpmctest.py37 # pmc counter present in a system.
43 # This should result in ls being run with every available counter
46 # The default is to wait after each counter is tested. Since the
85 for counter in counters.split():
86 if counter in notcounter:
88 p = subprocess.Popen(["pmcstat", "-p", counter, options.program],
/freebsd-11-stable/contrib/ntp/lib/isc/include/isc/
H A Dstats.h41 * Create a statistics counter structure of general type. It counts a general
86 isc_stats_increment(isc_stats_t *stats, isc_statscounter_t counter);
88 * Increment the counter-th counter of stats.
93 *\li counter is less than the maximum available ID for the stats specified
98 isc_stats_decrement(isc_stats_t *stats, isc_statscounter_t counter);
100 * Decrement the counter-th counter of stats.
110 * Dump the current statistics counters in a specified way. For each counter
/freebsd-11-stable/include/rpcsvc/
H A Dspray.x60 unsigned int counter;
72 * Just throw away the data and increment the counter
80 * Get the value of the counter and elapsed time since
87 * Clear the counter and reset the elapsed time
/freebsd-11-stable/contrib/ntp/lib/isc/
H A Dstats.c75 * copy the current counter values into a local array. This buffer
195 incrementcounter(isc_stats_t *stats, int counter) { argument
201 * counter while we "writing" a counter field. The write access itself
208 prev = isc_atomic_xadd((isc_int32_t *)&stats->counters[counter].lo, 1);
218 isc_atomic_xadd((isc_int32_t *)&stats->counters[counter].hi, 1);
221 isc_atomic_xaddq((isc_int64_t *)&stats->counters[counter], 1);
224 stats->counters[counter]++;
233 decrementcounter(isc_stats_t *stats, int counter) { argument
241 prev = isc_atomic_xadd((isc_int32_t *)&stats->counters[counter]
295 isc_stats_increment(isc_stats_t *stats, isc_statscounter_t counter) argument
303 isc_stats_decrement(isc_stats_t *stats, isc_statscounter_t counter) argument
[all...]
/freebsd-11-stable/contrib/ntp/lib/isc/win32/include/isc/
H A Donce.h30 LONG counter; member in struct:__anon4873
/freebsd-11-stable/sys/netinet/
H A Dtcp_fastopen.h42 void tcp_fastopen_decrement_counter(unsigned int *counter);
/freebsd-11-stable/usr.sbin/keyserv/
H A Dcrypt_server.c91 short counter; local
94 for(counter = 0; counter < 256; counter++)
95 state[counter] = counter;
100 for(counter = 0; counter < 256; counter++)
102 index2 = (key_data_ptr[index1] + state[counter]
116 short counter; local
[all...]
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/
H A Dkref.h52 refcount_init(&kref->refcount.counter, 1);
66 refcount_acquire(&kref->refcount.counter);
73 if (refcount_release(&kref->refcount.counter)) {
86 if (refcount_release(&kref->refcount.counter)) {
/freebsd-11-stable/crypto/openssl/crypto/modes/
H A Dctr128.c63 * NOTE: the IV/counter CTR mode is big-endian. The code itself is
67 /* increment counter (128-bit int) by 1 */
68 static void ctr128_inc(unsigned char *counter) argument
74 c += counter[n];
75 counter[n] = (u8)c;
81 static void ctr128_inc_aligned(unsigned char *counter) argument
91 if (is_endian.little || ((size_t)counter % sizeof(size_t)) != 0) {
92 ctr128_inc(counter);
96 data = (size_t *)counter;
109 * The input encrypted as though 128bit counter mod
186 ctr96_inc(unsigned char *counter) argument
[all...]
/freebsd-11-stable/tools/tools/netrate/tcpconnect/
H A Dtcpconnect.c111 u_int64_t counter; local
127 counter = 0;
130 counter++;
132 printf("%ju count\n", (uintmax_t)counter);
133 printf("%ju connections/second\n", (uintmax_t)(counter / SECONDS));
/freebsd-11-stable/contrib/ntp/lib/isc/win32/
H A Donce.c36 if (InterlockedDecrement(&controller->counter) == 0) {
/freebsd-11-stable/cddl/usr.sbin/dtrace/tests/common/docsExamples/
H A DMakefile12 counter.d \

Completed in 192 milliseconds

1234567891011>>