Searched refs:BYTES_IN_MBIT (Results 1 – 3 of 3) sorted by relevance
9 #define BYTES_IN_MBIT 125000 macro
18 if (nbytes < BYTES_IN_MBIT) { in mlx5e_qos_bytes_rate_check()20 nbytes, BYTES_IN_MBIT); in mlx5e_qos_bytes_rate_check()28 return div_u64(nbytes, BYTES_IN_MBIT); in mlx5e_qos_bytes2mbits()
263 share = div64_u64(div_u64(rate * 100, BYTES_IN_MBIT), in mlx5e_htb_convert_rate()271 rate, (u64)parent->max_average_bw * BYTES_IN_MBIT, *bw_share); in mlx5e_htb_convert_rate()279 *max_average_bw = max_t(u32, div_u64(ceil, BYTES_IN_MBIT), 1); in mlx5e_htb_convert_ceil()