/freebsd/sys/contrib/openzfs/include/os/linux/kernel/linux/ |
H A D | percpu_compat.h | 37 #define percpu_counter_init_common(counter, n, gfp) \ argument 38 percpu_counter_init(counter, n, gfp) 40 #define percpu_counter_init_common(counter, n, gfp) \ argument 41 percpu_counter_init(counter, n)
|
/freebsd/sys/contrib/ck/include/ |
H A D | ck_ec.h | 394 uint32_t counter; member 406 uint64_t counter; member 412 #define CK_EC_INITIALIZER { .counter = 0 } 604 ec->counter = value & ~(1UL << 31); in ck_ec32_init() 660 : "+m"(ec->counter), "=@ccle"(flagged) \ in ck_ec32_inc() 665 : "+m"(ec->counter), "=r"(flagged) \ in ck_ec32_inc() 709 old = ck_pr_faa_32(&ec->counter, delta); in ck_ec32_add_mp() 732 : "+m"(ec->counter), "+r"(old) in ck_ec32_add_sp() 808 ec->counter = value << 1; in ck_ec64_init() 822 return ck_pr_load_64(&ec->counter) & 1; in ck_ec64_has_waiters() [all …]
|
/freebsd/sys/crypto/chacha20/ |
H A D | chacha.c | 85 x->input[12] = counter == NULL ? 0 : U8TO32_LITTLE(counter + 0); in chacha_ivsetup() 86 x->input[13] = counter == NULL ? 0 : U8TO32_LITTLE(counter + 4); in chacha_ivsetup() 92 x->input[12] = U8TO32_LITTLE(counter + 0); in chacha_ivsetup() 93 x->input[13] = U8TO32_LITTLE(counter + 4); in chacha_ivsetup() 94 x->input[14] = U8TO32_LITTLE(counter + 8); in chacha_ivsetup() 95 x->input[15] = U8TO32_LITTLE(counter + 12); in chacha_ivsetup() 101 chacha_ctrsave(const chacha_ctx *x, u8 *counter) in chacha_ctrsave() argument 103 U32TO8_LITTLE(counter + 0, x->input[12]); in chacha_ctrsave() 104 U32TO8_LITTLE(counter + 4, x->input[13]); in chacha_ctrsave() 105 U32TO8_LITTLE(counter + 8, x->input[14]); in chacha_ctrsave() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Target/ |
H A D | TargetPfmCounters.td | 14 class PfmCounter<string counter> { 15 // The name of the counter that measures events. 18 string Counter = counter; 22 class PfmIssueCounter<string resource_name, string counter> 23 : PfmCounter<counter> { 49 // a concrete performance counter name that can be looked up in libpfm. 50 class PfmValidationCounter<ValidationEvent event_type, string counter> 51 : PfmCounter<counter> { 52 // The name of the event that the validation counter detects.
|
/freebsd/tools/tools/netrate/tcpconnect/ |
H A D | tcpconnect.c | 109 u_int64_t counter; in main() local 125 counter = 0; in main() 128 counter++; in main() 130 printf("%ju count\n", (uintmax_t)counter); in main() 131 printf("%ju connections/second\n", (uintmax_t)(counter / SECONDS)); in main()
|
/freebsd/sys/contrib/openzfs/module/icp/algs/blake3/ |
H A D | blake3_impl.h | 44 uint8_t block_len, uint64_t counter, 49 uint64_t counter, uint8_t flags, uint8_t out[64]); 53 uint64_t counter, boolean_t increment_counter, uint8_t flags, 142 static inline uint32_t counter_low(uint64_t counter) { in counter_low() argument 143 return ((uint32_t)counter); in counter_low() 146 static inline uint32_t counter_high(uint64_t counter) { in counter_high() argument 147 return ((uint32_t)(counter >> 32)); in counter_high()
|
/freebsd/contrib/ntp/sntp/ |
H A D | log.c | 7 static int counter = 0; variable 30 counter = 1; //counter++; in open_logfile() 40 if(counter == 1){ in cleanup_log() 45 counter = 0; in cleanup_log()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/BLAKE3/ |
H A D | blake3_neon.c | 222 INLINE void load_counters4(uint64_t counter, bool increment_counter, in load_counters4() argument 226 counter_low(counter + (mask & 0)), counter_low(counter + (mask & 1)), in load_counters4() 227 counter_low(counter + (mask & 2)), counter_low(counter + (mask & 3))); in load_counters4() 229 counter_high(counter + (mask & 0)), counter_high(counter + (mask & 1)), in load_counters4() 230 counter_high(counter + (mask & 2)), counter_high(counter + (mask & 3))); in load_counters4() 235 const uint32_t key[8], uint64_t counter, in blake3_hash4_neon() argument 243 load_counters4(counter, increment_counter, &counter_low_vec, in blake3_hash4_neon() 307 const uint32_t key[8], uint64_t counter, in hash_one_neon() argument 331 uint64_t counter, bool increment_counter, in blake3_hash_many_neon() argument 338 counter += 4; in blake3_hash_many_neon() [all …]
|
/freebsd/sys/contrib/ncsw/Peripherals/FM/Port/ |
H A D | fman_port.c | 456 switch (counter) { in get_rx_stats_reg() 492 switch (counter) { in get_tx_stats_reg() 519 switch (counter) { in get_oh_stats_reg() 550 enum fman_port_perf_counters counter, in get_rx_perf_reg() argument 555 switch (counter) { in get_rx_perf_reg() 580 enum fman_port_perf_counters counter, in get_tx_perf_reg() argument 585 switch (counter) { in get_tx_perf_reg() 607 enum fman_port_perf_counters counter, in get_oh_perf_reg() argument 612 switch (counter) { in get_oh_perf_reg() 631 enum fman_port_qmi_counters counter, in get_qmi_counter_reg() argument [all …]
|
/freebsd/sys/opencrypto/ |
H A D | gmac.c | 70 KASSERT(ivlen <= sizeof agc->counter, ("passed ivlen too large!")); in AES_GMAC_Reinit() 71 memset(agc->counter, 0, sizeof(agc->counter)); in AES_GMAC_Reinit() 72 bcopy(iv, agc->counter, ivlen); in AES_GMAC_Reinit() 73 agc->counter[GMAC_BLOCK_LEN - 1] = 1; in AES_GMAC_Reinit() 125 rijndaelEncrypt(agc->keysched, agc->rounds, agc->counter, enccntr); in AES_GMAC_Final()
|
/freebsd/contrib/netbsd-tests/lib/libpthread_dbg/ |
H A D | t_threads.c | 127 int *counter = (int *)arg; in iterateThreads2() local 129 ++(*counter); in iterateThreads2() 194 int *counter = (int *)arg; in iterateThreads3() local 199 ++(*counter); in iterateThreads3() 265 int *counter = (int *)arg; in iterateThreads4() local 272 ++(*counter); in iterateThreads4() 353 ++(*counter); in iterateThreads5() 426 ++(*counter); in iterateThreads6() 500 ++(*counter); in iterateThreads7() 574 ++(*counter); in iterateThreads8() [all …]
|
/freebsd/crypto/openssl/providers/implementations/kdfs/ |
H A D | sskdf.c | 101 size_t counter, out_len, len = derived_key_len; in SSKDF_hash_kdm() local 125 for (counter = 1;; counter++) { in SSKDF_hash_kdm() 126 c[0] = (unsigned char)((counter >> 24) & 0xff); in SSKDF_hash_kdm() 127 c[1] = (unsigned char)((counter >> 16) & 0xff); in SSKDF_hash_kdm() 128 c[2] = (unsigned char)((counter >> 8) & 0xff); in SSKDF_hash_kdm() 129 c[3] = (unsigned char)(counter & 0xff); in SSKDF_hash_kdm() 221 size_t counter, out_len, len; in SSKDF_mac_kdm() local 247 for (counter = 1;; counter++) { in SSKDF_mac_kdm() 248 c[0] = (unsigned char)((counter >> 24) & 0xff); in SSKDF_mac_kdm() 250 c[2] = (unsigned char)((counter >> 8) & 0xff); in SSKDF_mac_kdm() [all …]
|
/freebsd/sys/dev/dpaa2/ |
H A D | dpaa2_types.h | 72 volatile int counter; member 125 (atomic_swap_int(&(a)->counter, (val))) 127 (atomic_load_acq_int(&(a)->counter)) 129 (atomic_add_acq_int(&(a)->counter, (val)))
|
/freebsd/contrib/wpa/src/eap_common/ |
H A D | eap_peap_common.c | 19 unsigned char counter = 0; in peap_prfplus() local 46 addr[3] = &counter; in peap_prfplus() 64 addr[4] = &counter; in peap_prfplus() 70 counter++; in peap_prfplus()
|
H A D | eap_pax_common.c | 36 u8 counter, *pos; in eap_pax_kdf() local 53 addr[2] = &counter; in eap_pax_kdf() 58 for (counter = 1; counter <= (u8) num_blocks; counter++) { in eap_pax_kdf()
|
/freebsd/sys/contrib/openzfs/module/icp/algs/modes/ |
H A D | ccm.c | 57 uint64_t counter; in ccm_mode_encrypt_contiguous_blocks() local 111 counter = htonll(counter + 1); in ccm_mode_encrypt_contiguous_blocks() 113 counter = ctx->ccm_cb[1] & ctx->ccm_counter_mask; in ccm_mode_encrypt_contiguous_blocks() 114 counter++; in ccm_mode_encrypt_contiguous_blocks() 116 counter &= ctx->ccm_counter_mask; in ccm_mode_encrypt_contiguous_blocks() 173 uint64_t counter; in calculate_ccm_mac() local 180 counter = 0; in calculate_ccm_mac() 355 uint64_t counter; in ccm_mode_decrypt_contiguous_blocks() local 460 counter = htonll(counter + 1); in ccm_mode_decrypt_contiguous_blocks() 463 counter++; in ccm_mode_decrypt_contiguous_blocks() [all …]
|
/freebsd/crypto/openssh/regress/misc/sk-dummy/ |
H A D | sk-dummy.c | 354 countbuf[0] = (counter >> 24) & 0xff; in sig_ecdsa() 355 countbuf[1] = (counter >> 16) & 0xff; in sig_ecdsa() 356 countbuf[2] = (counter >> 8) & 0xff; in sig_ecdsa() 357 countbuf[3] = counter & 0xff; in sig_ecdsa() 414 sizeof(counter) + SHA256_DIGEST_LENGTH]; in sig_ed25519() 437 signbuf[o++] = (counter >> 24) & 0xff; in sig_ed25519() 438 signbuf[o++] = (counter >> 16) & 0xff; in sig_ed25519() 439 signbuf[o++] = (counter >> 8) & 0xff; in sig_ed25519() 440 signbuf[o++] = counter & 0xff; in sig_ed25519() 507 response->counter = 0x12345678; in sk_sign() [all …]
|
/freebsd/tools/test/stress2/misc/ |
H A D | mmap43.sh | 144 counter=1 161 echo "Failed @ iteration $counter" 171 echo "`date +%T` Loop #$counter, elapsed $((`date +%s` - st)) seconds." 172 counter=$((counter + 1)) 180 printf "OK File size is %9d, tail is %4d bytes. (%3d loops)\n" $size $tail $counter || 181 printf "FAIL File size is %9d, tail is %4d bytes. (%3d loops)\n" $size $tail $counter
|
/freebsd/sys/contrib/device-tree/Bindings/mfd/ |
H A D | st,stm32-lptimer.yaml | 14 - Several counter modes: 17 - simple counter from IN1 input signal. 62 counter: 68 const: st,stm32-lptimer-counter 136 counter { 137 compatible = "st,stm32-lptimer-counter";
|
/freebsd/contrib/wpa/src/eap_server/ |
H A D | eap_server_sim.c | 36 u16 counter; member 149 struct eap_sim_msg *msg, u16 counter, in eap_sim_build_encr() argument 168 } else if (data->counter <= EAP_SIM_MAX_FAST_REAUTHS) { in eap_sim_build_encr() 179 counter == 0 && nonce_s == NULL) in eap_sim_build_encr() 186 if (counter > 0) { in eap_sim_build_encr() 321 data->counter); in eap_sim_build_notification() 489 data->counter = data->reauth->counter; in eap_sim_process_start() 617 data->next_reauth_id, data->counter + 1, in eap_sim_process_challenge() 655 if (eattr.counter != data->counter) { in eap_sim_process_reauth() 658 eattr.counter, data->counter); in eap_sim_process_reauth() [all …]
|
/freebsd/crypto/openssl/crypto/ffc/ |
H A D | ffc_params_generate.c | 138 int counter = 1; in generate_canonical_g() local 156 for (counter = 1; counter <= 0xFFFF; ++counter) { in generate_canonical_g() 167 md[2] = (unsigned char)(counter & 0xff); in generate_canonical_g() 296 *counter = i; in generate_p() 660 counter = 4 * L - 1; in ossl_ffc_params_FIPS186_4_gen_verify() 664 if (params->pcounter > counter) { in ossl_ffc_params_FIPS186_4_gen_verify() 668 counter = params->pcounter; in ossl_ffc_params_FIPS186_4_gen_verify() 941 counter = 4 * L - 1; /* Was 4096 */ in ossl_ffc_params_FIPS186_2_gen_verify() 944 if (params->pcounter > counter) { in ossl_ffc_params_FIPS186_2_gen_verify() 948 counter = params->pcounter; in ossl_ffc_params_FIPS186_2_gen_verify() [all …]
|
/freebsd/sys/contrib/libsodium/src/libsodium/crypto_stream/salsa20/xmm6int/ |
H A D | salsa20_xmm6int-sse2.c | 49 salsa_ivsetup(salsa_ctx *ctx, const uint8_t *iv, const uint8_t *counter) in salsa_ivsetup() argument 53 ctx->input[TR[8]] = counter == NULL ? 0 : LOAD32_LE(counter + 0); in salsa_ivsetup() 54 ctx->input[TR[9]] = counter == NULL ? 0 : LOAD32_LE(counter + 4); in salsa_ivsetup()
|
H A D | salsa20_xmm6int-avx2.c | 57 salsa_ivsetup(salsa_ctx *ctx, const uint8_t *iv, const uint8_t *counter) in salsa_ivsetup() argument 61 ctx->input[TR[8]] = counter == NULL ? 0 : LOAD32_LE(counter + 0); in salsa_ivsetup() 62 ctx->input[TR[9]] = counter == NULL ? 0 : LOAD32_LE(counter + 4); in salsa_ivsetup()
|
/freebsd/crypto/openssl/crypto/bn/ |
H A D | bn_blind.c | 22 int counter; member 72 ret->counter = -1; in BN_BLINDING_new() 102 if (b->counter == -1) in BN_BLINDING_update() 103 b->counter = 0; in BN_BLINDING_update() 105 if (++b->counter == BN_BLINDING_COUNTER && b->e != NULL && in BN_BLINDING_update() 124 if (b->counter == BN_BLINDING_COUNTER) in BN_BLINDING_update() 125 b->counter = 0; in BN_BLINDING_update() 145 if (b->counter == -1) in BN_BLINDING_convert_ex() 147 b->counter = 0; in BN_BLINDING_convert_ex()
|
/freebsd/tools/regression/sockets/unix_close_race/ |
H A D | unix_close_race.c | 65 u_int counter, ncpus; in main() local 109 for (counter = 0; counter < LOOPS; counter++) { in main()
|