Home
last modified time | relevance | path

Searched refs:div_exp (Results 1 – 4 of 4) sorted by relevance

/dpdk/drivers/common/cnxk/
H A Droc_nix_tm_utils.c16 regval |= (shaper->div_exp << 13); in nix_tm_shaper2regval()
145 div_exp = 0; in nix_tm_shaper_rate_conv_floor()
150 div_exp += 1; in nix_tm_shaper_rate_conv_floor()
153 ((1 << div_exp) * 256))) in nix_tm_shaper_rate_conv_floor()
162 div_exp = 0; in nix_tm_shaper_rate_conv_floor()
181 *div_exp_p = div_exp; in nix_tm_shaper_rate_conv_floor()
208 div_exp = 0; in nix_tm_shaper_rate_conv_exact()
213 div_exp += 1; in nix_tm_shaper_rate_conv_exact()
216 ((1 << div_exp) * 256))) in nix_tm_shaper_rate_conv_exact()
225 div_exp = 0; in nix_tm_shaper_rate_conv_exact()
[all …]
H A Droc_nix_bpf.c40 uint64_t div_exp, exponent, mantissa; in meter_rate_to_nix() local
49 div_exp = 0; in meter_rate_to_nix()
59 if (div_exp > NIX_BPF_MAX_RATE_DIV_EXP || in meter_rate_to_nix()
65 *div_exp_p = div_exp; in meter_rate_to_nix()
72 return NIX_BPF_RATE(time_ns, exponent, mantissa, div_exp); in meter_rate_to_nix()
H A Droc_nix_priv.h292 uint64_t div_exp; member
/dpdk/drivers/common/cnxk/hw/
H A Dnix.h2138 #define NIX_BPF_RATE(policer_timeunit, exponent, mantissa, div_exp) \ argument
2140 (((1ull << (div_exp)) * 256 * policer_timeunit)))
2182 #define NIX_TM_SHAPER_RATE(exponent, mantissa, div_exp) \ argument
2184 (((1ull << (div_exp)) * 256)))