|
static int | qos_pol_round (u64 numerator, u64 denominator, u64 *rounded_value, qos_round_type_en round_type) |
|
static int | pol_validate_cfg_params (qos_pol_cfg_params_st *cfg) |
|
static void | qos_convert_value_to_exp_mant_fmt (u64 value, u16 max_exp_value, u16 max_mant_value, qos_round_type_en type, u8 *exp, u32 *mant) |
|
static int | pol_convert_cfg_rates_to_hw (qos_pol_cfg_params_st *cfg, qos_pol_hw_params_st *hw) |
|
u64 | pol_get_bkt_max (u64 rate_hw, u64 bkt_max) |
|
u64 | pol_get_bkt_value (u64 rate_hw, u64 byte_value) |
|
static void | pol_rnd_burst_byte_fmt (u64 cfg_burst, u16 max_exp_value, u16 max_mant_value, u32 max_bkt_value, u32 rate_hw, u8 *exp, u32 *mant, u32 *bkt_value) |
|
static int | pol_convert_cfg_burst_to_hw (qos_pol_cfg_params_st *cfg, qos_pol_hw_params_st *hw) |
|
static int | pol_convert_cfg_to_hw_params (qos_pol_cfg_params_st *cfg, qos_pol_hw_params_st *hw) |
|
u32 | qos_convert_pps_to_kbps (u32 rate_pps) |
|
u32 | qos_convert_burst_ms_to_bytes (u32 burst_ms, u32 rate_kbps) |
|
int | pol_compute_hw_params (qos_pol_cfg_params_st *cfg, qos_pol_hw_params_st *hw) |
|
static u64 | get_tsc_hz (void) |
|
static int | compute_policer_params (u64 hz, u64 cir_rate, u64 pir_rate, u32 *current_limit, u32 *extended_limit, u32 *cir_bytes_per_period, u32 *pir_bytes_per_period, u32 *scale) |
|
int | x86_pol_compute_hw_params (qos_pol_cfg_params_st *cfg, policer_t *hw) |
|
int | pol_logical_2_physical (qos_pol_cfg_params_st *cfg, policer_t *phys) |
|
static void | qos_convert_pol_bucket_to_hw_fmt (policer_t *bkt, qos_pol_hw_params_st *hw_fmt) |
|
static int | pol_convert_hw_to_cfg_params (qos_pol_hw_params_st *hw, qos_pol_cfg_params_st *cfg) |
|
u32 | qos_convert_kbps_to_pps (u32 rate_kbps) |
|
u32 | qos_convert_burst_bytes_to_ms (u64 burst_bytes, u32 rate_kbps) |
|
int | pol_physical_2_logical (policer_t *phys, qos_pol_cfg_params_st *cfg) |
|