| /f-stack/app/redis-5.0.5/utils/lru/ |
| H A D | lfu-simulation.c | 13 uint8_t counter; /* Logarithmic counter. */ member 36 uint8_t log_incr(uint8_t counter) { in log_incr() argument 37 if (counter == 255) return counter; in log_incr() 39 double baseval = counter-COUNTER_INIT_VAL; in log_incr() 42 if (r < limit) counter++; in log_incr() 43 return counter; in log_incr() 48 e->counter = log_incr(e->counter); in access_entry() 58 if (e->counter) { in scan_entry() 60 e->counter /= 2; in scan_entry() 62 e->counter--; in scan_entry() [all …]
|
| /f-stack/freebsd/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)
|
| /f-stack/app/redis-5.0.5/src/ |
| H A D | crc16.c | 83 int counter; in crc16() local 85 for (counter = 0; counter < len; counter++) in crc16()
|
| H A D | evict.c | 315 uint8_t LFULogIncr(uint8_t counter) { in LFULogIncr() argument 316 if (counter == 255) return 255; in LFULogIncr() 318 double baseval = counter - LFU_INIT_VAL; in LFULogIncr() 321 if (r < p) counter++; in LFULogIncr() 322 return counter; in LFULogIncr() 337 unsigned long counter = o->lru & 255; in LFUDecrAndReturn() local 340 counter = (num_periods > counter) ? 0 : counter - num_periods; in LFUDecrAndReturn() 341 return counter; in LFUDecrAndReturn()
|
| /f-stack/freebsd/contrib/libsodium/src/libsodium/crypto_stream/chacha20/dolbeau/ |
| H A D | chacha20_dolbeau-ssse3.c | 49 chacha_ivsetup(chacha_ctx *ctx, const uint8_t *iv, const uint8_t *counter) in chacha_ivsetup() argument 51 ctx->input[12] = counter == NULL ? 0 : LOAD32_LE(counter + 0); in chacha_ivsetup() 52 ctx->input[13] = counter == NULL ? 0 : LOAD32_LE(counter + 4); in chacha_ivsetup() 58 chacha_ietf_ivsetup(chacha_ctx *ctx, const uint8_t *iv, const uint8_t *counter) in chacha_ietf_ivsetup() argument 60 ctx->input[12] = counter == NULL ? 0 : LOAD32_LE(counter); in chacha_ietf_ivsetup()
|
| H A D | chacha20_dolbeau-avx2.c | 54 chacha_ivsetup(chacha_ctx *ctx, const uint8_t *iv, const uint8_t *counter) in chacha_ivsetup() argument 56 ctx->input[12] = counter == NULL ? 0 : LOAD32_LE(counter + 0); in chacha_ivsetup() 57 ctx->input[13] = counter == NULL ? 0 : LOAD32_LE(counter + 4); in chacha_ivsetup() 63 chacha_ietf_ivsetup(chacha_ctx *ctx, const uint8_t *iv, const uint8_t *counter) in chacha_ietf_ivsetup() argument 65 ctx->input[12] = counter == NULL ? 0 : LOAD32_LE(counter); in chacha_ietf_ivsetup()
|
| /f-stack/dpdk/app/test-flow-perf/ |
| H A D | actions_gen.c | 29 uint32_t counter; member 62 uint32_t counter = para.counter; in add_mark() local 216 uint32_t mac = para.counter; in add_set_src_mac() 239 uint32_t mac = para.counter; in add_set_dst_mac() 262 uint32_t ip = para.counter; in add_set_src_ipv4() 281 uint32_t ip = para.counter; in add_set_dst_ipv4() 300 uint32_t ipv6 = para.counter; in add_set_src_ipv6() 323 uint32_t ipv6 = para.counter; in add_set_dst_ipv6() 346 uint32_t tp = para.counter; in add_set_src_tp() 367 uint32_t tp = para.counter; in add_set_dst_tp() [all …]
|
| /f-stack/freebsd/crypto/chacha20/ |
| H A D | chacha.c | 88 x->input[12] = counter == NULL ? 0 : U8TO32_LITTLE(counter + 0); in chacha_ivsetup() 89 x->input[13] = counter == NULL ? 0 : U8TO32_LITTLE(counter + 4); in chacha_ivsetup() 95 x->input[12] = U8TO32_LITTLE(counter + 0); in chacha_ivsetup() 96 x->input[13] = U8TO32_LITTLE(counter + 4); in chacha_ivsetup() 97 x->input[14] = U8TO32_LITTLE(counter + 8); in chacha_ivsetup() 98 x->input[15] = U8TO32_LITTLE(counter + 12); in chacha_ivsetup() 104 chacha_ctrsave(const chacha_ctx *x, u8 *counter) in chacha_ctrsave() argument 106 U32TO8_LITTLE(counter + 0, x->input[12]); in chacha_ctrsave() 107 U32TO8_LITTLE(counter + 4, x->input[13]); in chacha_ctrsave() 108 U32TO8_LITTLE(counter + 8, x->input[14]); in chacha_ctrsave() [all …]
|
| /f-stack/freebsd/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 …]
|
| /f-stack/dpdk/drivers/raw/ifpga/base/ |
| H A D | ifpga_fme_iperf.c | 74 u64 counter; in read_cache_counter() local 101 return counter; in read_cache_counter() 106 u64 *counter) \ 163 u64 counter; in read_iommu_sip_counter() local 185 return counter; in read_iommu_sip_counter() 190 u64 *counter) \ 216 u64 counter; in read_iommu_counter() local 238 return counter; in read_iommu_counter() 275 u64 counter = 0; in read_fabric_counter() local 299 counter = ctr.fab_cnt; in read_fabric_counter() [all …]
|
| /f-stack/freebsd/contrib/device-tree/Bindings/mfd/ |
| H A D | st,stm32-lptimer.yaml | 14 - Several counter modes: 17 - simple counter from IN1 input signal. 79 counter: 84 const: st,stm32-lptimer-counter 132 counter { 133 compatible = "st,stm32-lptimer-counter";
|
| H A D | st,stm32-timers.yaml | 11 - advanced-control timers consist of a 16-bit auto-reload counter driven 14 - general-purpose timers consist of a 16-bit or 32-bit auto-reload counter 16 - basic timers consist of a 16-bit auto-reload counter driven by a 111 counter: 116 const: st,stm32-timer-counter 156 counter { 157 compatible = "st,stm32-timer-counter";
|
| /f-stack/freebsd/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()
|
| /f-stack/dpdk/doc/guides/prog_guide/ |
| H A D | profile_app.rst | 52 Low-resolution generic counter 56 get a wall clock counter in user space. Typically it runs at a lower clock frequency than the CPU c… 60 High-resolution cycle counter 64 clock counter is through the ARMv8 PMU subsystem. The PMU cycle counter runs 65 at CPU frequency. However, access to the PMU cycle counter from user space is 67 cycle counter for user space access by configuring the PMU from the privileged 73 The example below shows the steps to configure the PMU based cycle counter on
|
| /f-stack/dpdk/examples/qos_sched/ |
| H A D | app_thread.c | 169 conf->counter = 0; /* reset empty read loop counter */ in app_tx_thread() 172 conf->counter++; in app_tx_thread() 175 if (unlikely(conf->counter > drain_tsc)) { in app_tx_thread() 182 conf->counter = 0; in app_tx_thread() 255 conf->counter = 0; /* reset empty read loop counter */ in app_mixed_thread() 258 conf->counter++; in app_mixed_thread() 261 if (unlikely(conf->counter > drain_tsc)) { in app_mixed_thread() 269 conf->counter = 0; in app_mixed_thread()
|
| /f-stack/dpdk/examples/vm_power_manager/ |
| H A D | oob_monitor_x86.c | 36 uint64_t counter = 0; in apply_policy() local 50 ret = pread(ci->cd[core].msr_fd, &counter, in apply_policy() 51 sizeof(counter), IA32_PERFCTR0); in apply_policy() 56 branches = counter; in apply_policy() 58 counter = 0; in apply_policy() 59 ret = pread(ci->cd[core].msr_fd, &counter, in apply_policy() 60 sizeof(counter), IA32_PERFCTR1); in apply_policy() 65 branch_misses = counter; in apply_policy()
|
| /f-stack/freebsd/mips/include/ |
| H A D | intr_machdep.h | 72 mips_intrcnt_inc(mips_intrcnt_t counter) in mips_intrcnt_inc() argument 74 if (counter) in mips_intrcnt_inc() 75 atomic_add_long(counter, 1); in mips_intrcnt_inc()
|
| /f-stack/dpdk/lib/librte_member/ |
| H A D | rte_member_x86.h | 54 uint32_t *counter, in search_bucket_multi_avx() argument 64 set_id[*counter] = buckets[bucket_id].sets[hit_idx]; in search_bucket_multi_avx() 65 (*counter)++; in search_bucket_multi_avx() 66 if (*counter >= match_per_key) in search_bucket_multi_avx()
|
| /f-stack/freebsd/contrib/device-tree/Bindings/timer/ |
| H A D | arm,arch_timer.yaml | 44 description: The frequency of the main counter, in Hz. Should be present 57 where reading certain values from the counter is unreliable. This also 58 affects writes to the tval register, due to the implicit counter read. 63 that reading the counter is unreliable unless the same value is returned 65 to the implicit counter read. 72 the tval registers, due to the implicit counter read. 83 description: The main counter does not tick when the system is in 85 Architecture Reference Manual's specification that the system counter "must
|
| H A D | fsl,ftm-timer.txt | 14 o "ftm-evt-counter-en" 15 o "ftm-src-counter-en" 25 "ftm-evt-counter-en", "ftm-src-counter-en";
|
| /f-stack/freebsd/contrib/openzfs/module/icp/algs/modes/ |
| H A D | ccm.c | 57 uint64_t counter; in ccm_mode_encrypt_contiguous_blocks() local 112 counter = htonll(counter + 1); in ccm_mode_encrypt_contiguous_blocks() 114 counter = ctx->ccm_cb[1] & ctx->ccm_counter_mask; in ccm_mode_encrypt_contiguous_blocks() 115 counter++; in ccm_mode_encrypt_contiguous_blocks() 117 counter &= ctx->ccm_counter_mask; in ccm_mode_encrypt_contiguous_blocks() 174 uint64_t counter; in calculate_ccm_mac() local 181 counter = 0; in calculate_ccm_mac() 358 uint64_t counter; in ccm_mode_decrypt_contiguous_blocks() local 463 counter = htonll(counter + 1); in ccm_mode_decrypt_contiguous_blocks() 466 counter++; in ccm_mode_decrypt_contiguous_blocks() [all …]
|
| H A D | gcm.c | 106 uint64_t counter; in gcm_mode_encrypt_contiguous_blocks() local 146 counter = htonll(counter + 1); in gcm_mode_encrypt_contiguous_blocks() 147 counter &= counter_mask; in gcm_mode_encrypt_contiguous_blocks() 228 uint64_t counter; in gcm_encrypt_final() local 240 counter = htonll(counter + 1); in gcm_encrypt_final() 294 uint64_t counter; in gcm_decrypt_incomplete_block() local 303 counter = htonll(counter + 1); in gcm_decrypt_incomplete_block() 304 counter &= counter_mask; in gcm_decrypt_incomplete_block() 379 uint64_t counter; in gcm_decrypt_final() local 412 counter = htonll(counter + 1); in gcm_decrypt_final() [all …]
|
| /f-stack/freebsd/contrib/device-tree/Bindings/counter/ |
| H A D | ftm-quaddec.txt | 1 FlexTimer Quadrature decoder counter 3 This driver exposes a simple counter for the quadrature decoder mode. 13 counter0: counter@29d0000 {
|
| /f-stack/freebsd/amd64/vmm/io/ |
| H A D | vhpet.c | 285 uint32_t counter; in vhpet_handler() local 311 counter = vhpet_counter(vhpet, &now); in vhpet_handler() 312 vhpet_start_timer(vhpet, n, counter, now); in vhpet_handler() 346 vhpet_adjust_compval(vhpet, n, counter); in vhpet_start_timer() 356 delta = (vhpet->timer[n].compval - counter) * vhpet->freq_sbt; in vhpet_start_timer() 384 vhpet->countbase = counter; in vhpet_stop_counting() 480 uint32_t isr_clear_mask, old_compval, old_comprate, counter; in vhpet_mmio_write() local 524 counter = vhpet_counter(vhpet, nowptr); in vhpet_mmio_write() 539 vhpet_stop_counting(vhpet, counter, now); in vhpet_mmio_write() 605 counter = vhpet_counter(vhpet, &now); in vhpet_mmio_write() [all …]
|