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

1234567891011

/freebsd-10-stable/sys/pc98/include/
H A Dcounter.h6 #include <i386/counter.h>
/freebsd-10-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-10-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-10-stable/sys/ofed/include/asm/
H A Datomic-long.h38 volatile long counter; member in struct:__anon15
47 return i + atomic_fetchadd_long(&v->counter, i);
53 atomic_store_rel_long(&v->counter, i);
59 return atomic_load_acq_long(&v->counter);
65 return atomic_fetchadd_long(&v->counter, 1) + 1;
71 return atomic_fetchadd_long(&v->counter, -1) - 1;
H A Datomic.h38 volatile int counter; member in struct:__anon16
58 return i + atomic_fetchadd_int(&v->counter, i);
64 return atomic_fetchadd_int(&v->counter, -i) - i;
70 atomic_store_rel_int(&v->counter, i);
76 return atomic_load_acq_int(&v->counter);
82 return atomic_fetchadd_int(&v->counter, 1) + 1;
88 return atomic_fetchadd_int(&v->counter, -1) - 1;
100 if (likely(atomic_cmpset_int(&v->counter, c, c + a)))
/freebsd-10-stable/sys/mips/include/
H A Dintr_machdep.h61 * Opaque datatype that represents intr counter
69 mips_intrcnt_inc(mips_intrcnt_t counter) argument
71 if (counter)
72 atomic_add_long(counter, 1);
/freebsd-10-stable/contrib/wpa/src/crypto/
H A Daes-ctr.c19 * @nonce: Nonce for counter mode (16 bytes)
31 u8 counter[AES_BLOCK_SIZE], buf[AES_BLOCK_SIZE]; local
36 os_memcpy(counter, nonce, AES_BLOCK_SIZE);
39 aes_encrypt(ctx, counter, buf);
48 counter[i]++;
49 if (counter[i])
H A Dsha1-prf.c33 u8 counter = 0; local
44 addr[2] = &counter;
62 counter++;
H A Dsha256-prf.c32 u16 counter = 1; local
52 WPA_PUT_LE16(counter_le, counter);
62 counter++;
/freebsd-10-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-10-stable/sys/ofed/include/linux/
H A Dkref.h46 refcount_init(&kref->refcount.counter, 1);
53 refcount_acquire(&kref->refcount.counter);
60 if (refcount_release(&kref->refcount.counter)) {
73 if (refcount_release(&kref->refcount.counter)) {
/freebsd-10-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-10-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-10-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-10-stable/sys/gnu/dts/arm/
H A Dusb_a9260.dts27 atmel,wakeup-counter = <10>;
/freebsd-10-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-10-stable/contrib/llvm/tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DWorkList.h30 BlockCounter counter; member in class:clang::ento::WorkListUnit
38 counter(C),
44 counter(C),
51 /// Returns the block counter map associated with the worklist unit.
52 BlockCounter getBlockCounter() const { return counter; }
/freebsd-10-stable/contrib/llvm/tools/lldb/source/Utility/
H A DRange.cpp79 ValueType counter = m_low; local
80 while (counter <= m_high)
82 bool should_continue = callback(counter);
85 counter++;
/freebsd-10-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-10-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-10-stable/contrib/ntp/lib/isc/win32/include/isc/
H A Donce.h30 LONG counter; member in struct:__anon122
/freebsd-10-stable/sys/netinet/
H A Dtcp_fastopen.h42 void tcp_fastopen_decrement_counter(unsigned int *counter);
/freebsd-10-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-10-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));

Completed in 336 milliseconds

1234567891011