/freebsd-11-stable/sys/pc98/include/ |
H A D | counter.h | 6 #include <i386/counter.h>
|
/freebsd-11-stable/contrib/ntp/sntp/ |
H A D | log.c | 7 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 D | eap_psk_common.c | 38 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 D | eap_peap_common.c | 19 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 D | atomic-long.h | 38 #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 D | atomic64.h | 36 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 D | atomic.h | 39 #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 D | mid-index | 12 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 D | intr_machdep.h | 62 * 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 D | gthr-win32.c | 149 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 D | batch_fsync.c | 100 * 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 D | aes-ctr.c | 20 * @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 D | sha1-prf.c | 33 u8 counter = 0; local 44 addr[2] = &counter; 62 counter++;
|
/freebsd-11-stable/tools/test/hwpmc/ |
H A D | pmctest.py | 37 # 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 D | stats.h | 41 * 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 D | spray.x | 60 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 D | stats.c | 75 * 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 D | once.h | 30 LONG counter; member in struct:__anon4873
|
/freebsd-11-stable/sys/netinet/ |
H A D | tcp_fastopen.h | 42 void tcp_fastopen_decrement_counter(unsigned int *counter);
|
/freebsd-11-stable/usr.sbin/keyserv/ |
H A D | crypt_server.c | 91 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 D | kref.h | 52 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 D | ctr128.c | 63 * 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 D | tcpconnect.c | 111 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 D | once.c | 36 if (InterlockedDecrement(&controller->counter) == 0) {
|
/freebsd-11-stable/cddl/usr.sbin/dtrace/tests/common/docsExamples/ |
H A D | Makefile | 12 counter.d \
|