Home
last modified time | relevance | path

Searched refs:newval (Results 1 – 2 of 2) sorted by relevance

/dpdk/drivers/net/cnxk/
H A Dcn10k_tx.h214 int32_t nb_desc, val, newval; in cn10k_nix_sec_fc_wait() local
231 newval = nb_desc - __atomic_load_n(fc, __ATOMIC_RELAXED); in cn10k_nix_sec_fc_wait()
232 newval -= nb_pkts; in cn10k_nix_sec_fc_wait()
233 if (newval >= 0) in cn10k_nix_sec_fc_wait()
237 if (!__atomic_compare_exchange_n(fc_sw, &val, newval, false, in cn10k_nix_sec_fc_wait()
/dpdk/drivers/net/sfc/
H A Dsfc_ethdev.c663 sfc_update_diff_stat(uint64_t *stat, uint64_t newval) in sfc_update_diff_stat() argument
665 if ((int64_t)(newval - *stat) > 0 || newval == 0) in sfc_update_diff_stat()
666 *stat = newval; in sfc_update_diff_stat()