Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 25 of 46) sorted by relevance

12

/dpdk/drivers/net/bnx2x/
H A Dbnx2x_stats.h462 DIFF_64(diff.hi, new->s##_hi, old->s##_hi, \
463 diff.lo, new->s##_lo, old->s##_lo); \
464 ADD_64(estats->t##_hi, diff.hi, \
465 estats->t##_lo, diff.lo); \
477 ADD_64(pstats->mac_stx[1].t##_hi, new->diff##_hi, \
478 pstats->mac_stx[1].t##_lo, new->diff##_lo); \
490 diff = le##size##toh(tclient->s) - \
493 ADD_EXTEND_64(qstats->t##_hi, qstats->t##_lo, diff); \
501 ADD_EXTEND_64(estats->t##_hi, estats->t##_lo, diff); \
506 diff = le32toh(uclient->s) - le32toh(old_uclient->s); \
[all …]
H A Dbnx2x_stats.c541 } diff; in bnx2x_bmac_stats_update() local
783 } diff; in bnx2x_hw_stats_update() local
930 uint32_t diff; in bnx2x_storm_stats_update() local
/dpdk/
H A D.gitattributes1 *.c diff=cpp
2 *.h diff=cpp
3 *.py diff=python
/dpdk/app/test/
H A Dtest_red.c241 *diff = 0.0; in check_drop_rate()
244 if (*diff > tolerance) { in check_drop_rate()
261 *diff = 0.0; in check_avg()
476 double diff = 0.0; in func_test1() local
611 double diff = 0.0; in func_test2() local
719 double diff = 0.0; in func_test3() local
816 double diff = 0.0; in func_test4() local
1009 double diff = 0.0; in func_test5() local
1132 double diff = 0.0; in func_test6() local
1504 double diff = 0.0; in perf2_test() local
[all …]
H A Dtest_timer.c170 int64_t diff = 0; in timer_stress_main_loop() local
173 while (diff >= 0) { in timer_stress_main_loop()
194 diff = end_time - cur_time; in timer_stress_main_loop()
461 int64_t diff = 0; in timer_basic_main_loop() local
476 while (diff >= 0) { in timer_basic_main_loop()
486 diff = end_time - cur_time; in timer_basic_main_loop()
H A Dtest_timer_racecond.c120 int64_t diff = 0; in test_timer_racecond() local
150 while (diff >= 0) { in test_timer_racecond()
158 diff = end_time - cur_time; in test_timer_racecond()
H A Dtest_pie.c207 static int check_drop_rate(double *diff, double drop_rate, double drop_prob, in check_drop_rate() argument
215 *diff = 0.0; in check_drop_rate()
217 *diff = (abs_diff / drop_prob) * 100.0; in check_drop_rate()
218 if (*diff > tolerance) in check_drop_rate()
410 double diff = 0.0; in func_test1() local
437 drop_prob * 100.0, drop_rate * 100.0, diff, in func_test1()
494 double diff = 0.0; in func_test2() local
528 if (!check_drop_rate(&diff, drop_rate, drop_prob, in func_test2()
536 drop_prob * 100.0, drop_rate * 100.0, diff, in func_test2()
633 double diff = 0.0; in func_test3() local
[all …]
H A Dtest_hash_readwrite_lf_perf.c199 uint32_t diff; in check_bucket() local
217 diff = iter - prev_iter; in check_bucket()
218 if (diff > 1) in check_bucket()
/dpdk/drivers/bus/dpaa/base/qbman/
H A Dqman.h254 u8 diff, old_ci; in qm_eqcr_start_stash() local
263 eqcr->available += diff; in qm_eqcr_start_stash()
264 if (!diff) in qm_eqcr_start_stash()
384 eqcr->available += diff; in qm_eqcr_cci_update()
385 return diff; in qm_eqcr_cci_update()
403 eqcr->available += diff; in qm_eqcr_cce_update()
404 return diff; in qm_eqcr_cce_update()
492 dqrr->fill += diff; in qm_dqrr_pci_update()
493 return diff; in qm_dqrr_pci_update()
517 dqrr->fill += diff; in qm_dqrr_pce_update()
[all …]
H A Dbman.h324 u8 diff, old_ci = rcr->ci; in bm_rcr_cci_update() local
330 diff = bm_cyc_diff(BM_RCR_SIZE, old_ci, rcr->ci); in bm_rcr_cci_update()
331 rcr->available += diff; in bm_rcr_cci_update()
332 return diff; in bm_rcr_cci_update()
348 u8 diff, old_ci = rcr->ci; in bm_rcr_cce_update() local
355 diff = bm_cyc_diff(BM_RCR_SIZE, old_ci, rcr->ci); in bm_rcr_cce_update()
356 rcr->available += diff; in bm_rcr_cce_update()
357 return diff; in bm_rcr_cce_update()
H A Dqman.c2314 u8 i = 0, diff, old_ci, sent = 0; in qman_enqueue_multi() local
2320 diff = qm_cyc_diff(QM_EQCR_SIZE, old_ci, eqcr->ci); in qman_enqueue_multi()
2321 eqcr->available += diff; in qman_enqueue_multi()
2322 if (!diff) in qman_enqueue_multi()
2384 u8 i = 0, diff, old_ci, sent = 0; in qman_enqueue_multi_fq() local
2390 diff = qm_cyc_diff(QM_EQCR_SIZE, old_ci, eqcr->ci); in qman_enqueue_multi_fq()
2391 eqcr->available += diff; in qman_enqueue_multi_fq()
2392 if (!diff) in qman_enqueue_multi_fq()
/dpdk/lib/ipsec/
H A Dipsec_sqn.h153 uint32_t bit, bucket, last_bucket, new_bucket, diff, i; in esn_inb_update_sqn() local
169 diff = bucket - last_bucket; in esn_inb_update_sqn()
171 if (diff > sa->replay.nb_bucket) in esn_inb_update_sqn()
172 diff = sa->replay.nb_bucket; in esn_inb_update_sqn()
174 for (i = 0; i != diff; i++) { in esn_inb_update_sqn()
/dpdk/examples/vm_power_manager/
H A Dchannel_monitor.c541 double rdtsc_curr, rdtsc_diff, diff; in get_pkt_diff() local
569 diff = (vsi_pkt_total - vsi_pkt_count_prev_total) * in get_pkt_diff()
572 return diff; in get_pkt_diff()
580 uint64_t diff = 0; in apply_traffic_profile() local
582 diff = get_pkt_diff(pol); in apply_traffic_profile()
584 if (diff >= (pol->pkt.traffic_policy.max_max_packet_thresh)) { in apply_traffic_profile()
590 } else if (diff >= (pol->pkt.traffic_policy.avg_max_packet_thresh)) { in apply_traffic_profile()
596 } else if (diff < (pol->pkt.traffic_policy.avg_max_packet_thresh)) { in apply_traffic_profile()
/dpdk/drivers/net/mlx5/
H A Dmlx5_tx.c497 unsigned int diff = 0, olx = 0, i, m; in mlx5_select_tx_function() local
614 if (m >= RTE_DIM(txoff_func) || tmp < diff) { in mlx5_select_tx_function()
617 diff = tmp; in mlx5_select_tx_function()
620 if (tmp == diff) { in mlx5_select_tx_function()
H A Dmlx5_flow_flex.c353 int diff = shift - MLX5_PARSE_GRAPH_NODE_HDR_LEN_SHIFT_DWORD; in mlx5_flex_hdr_len_mask() local
356 return diff == 0 ? base_mask : in mlx5_flex_hdr_len_mask()
357 diff < 0 ? (base_mask << -diff) & base_mask : base_mask >> diff; in mlx5_flex_hdr_len_mask()
H A Dmlx5_tx.h1121 unsigned int diff; in mlx5_tx_mseg_memcpy() local
1130 diff = must - copy; in mlx5_tx_mseg_memcpy()
1131 if (diff <= rte_pktmbuf_data_len(loc->mbuf)) { in mlx5_tx_mseg_memcpy()
1138 len = RTE_MIN(len, diff); in mlx5_tx_mseg_memcpy()
H A Dmlx5_flow_aso.c461 uint64_t diff = curr - pool->time_of_last_age_check; in mlx5_aso_age_action_update() local
489 diff, __ATOMIC_RELAXED); in mlx5_aso_age_action_update()
/dpdk/examples/ipsec-secgw/test/
H A Ddata_rxtx.sh55 diff -u ${x} ${x}.copy1
/dpdk/devtools/
H A Dcheck-doc-vs-code.sh25 files=$(git diff-tree --name-only -r $trusted_commit..)
H A Dcheck-git-log.sh77 files=$(git diff-tree --no-commit-id --name-only -r $commit)
/dpdk/app/test-acl/
H A Dtest-acl.sh71 diff -u ${OUTF}.chk ${OUTF}.out
/dpdk/drivers/crypto/openssl/
H A Drte_openssl_pmd.c832 uint8_t diff = l - dstlen, rem; in process_openssl_encryption_update() local
836 if (diff && inplace) { in process_openssl_encryption_update()
838 (EVP_CIPHER_CTX_block_size(ctx) - diff)); in process_openssl_encryption_update()
843 rte_memcpy(*dst, temp, diff); in process_openssl_encryption_update()
844 rte_memcpy(src, temp + diff, rem); in process_openssl_encryption_update()
894 uint8_t diff = l - dstlen, rem; in process_openssl_decryption_update() local
898 if (diff && inplace) { in process_openssl_decryption_update()
900 (EVP_CIPHER_CTX_block_size(ctx) - diff)); in process_openssl_decryption_update()
905 rte_memcpy(*dst, temp, diff); in process_openssl_decryption_update()
906 rte_memcpy(src, temp + diff, rem); in process_openssl_decryption_update()
/dpdk/drivers/crypto/mlx5/
H A Dmlx5_crypto.c819 uint32_t diff, wqe_set_size; in mlx5_crypto_get_wqe_sizes() local
833 diff = rte_align32pow2(wqe_set_size) - wqe_set_size; in mlx5_crypto_get_wqe_sizes()
835 if (diff) in mlx5_crypto_get_wqe_sizes()
836 *umr_size += diff; in mlx5_crypto_get_wqe_sizes()
/dpdk/drivers/event/cnxk/
H A Dcnxk_tim_evdev.c140 populate_sample(uint64_t tck[], uint64_t ns[], double diff[], uint64_t dst[], in populate_sample() argument
155 diff[i] = PLT_MAX((double)ns[i], (double)tck[i] * tck_ns) - in populate_sample()
/dpdk/drivers/net/axgbe/
H A Daxgbe_ethdev.c1547 uint32_t addend, diff; in axgbe_adjfreq() local
1556 diff = (uint32_t)div_u64(adjust, 1000000000UL); in axgbe_adjfreq()
1557 addend = (neg_adjust) ? pdata->tstamp_addend - diff : in axgbe_adjfreq()
1558 pdata->tstamp_addend + diff; in axgbe_adjfreq()

12