|
static int | sse2_qos_pol_round (u64 numerator, u64 denominator, u64 *rounded_value, sse2_qos_round_type_en round_type) |
|
static int | sse2_pol_validate_cfg_params (sse2_qos_pol_cfg_params_st *cfg) |
|
static void | sse2_qos_convert_value_to_exp_mant_fmt (u64 value, u16 max_exp_value, u16 max_mant_value, sse2_qos_round_type_en type, u8 *exp, u32 *mant) |
|
static int | sse2_pol_convert_cfg_rates_to_hw (sse2_qos_pol_cfg_params_st *cfg, sse2_qos_pol_hw_params_st *hw) |
|
u64 | sse2_pol_get_bkt_max (u64 rate_hw, u64 bkt_max) |
|
u64 | sse2_pol_get_bkt_value (u64 rate_hw, u64 byte_value) |
|
static void | sse2_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 | sse2_pol_convert_cfg_burst_to_hw (sse2_qos_pol_cfg_params_st *cfg, sse2_qos_pol_hw_params_st *hw) |
|
static int | sse2_pol_convert_cfg_to_hw_params (sse2_qos_pol_cfg_params_st *cfg, sse2_qos_pol_hw_params_st *hw) |
|
u32 | sse2_qos_convert_pps_to_kbps (u32 rate_pps) |
|
u32 | sse2_qos_convert_burst_ms_to_bytes (u32 burst_ms, u32 rate_kbps) |
|
int | sse2_pol_compute_hw_params (sse2_qos_pol_cfg_params_st *cfg, sse2_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 (sse2_qos_pol_cfg_params_st *cfg, policer_read_response_type_st *hw) |
|
int | sse2_pol_logical_2_physical (sse2_qos_pol_cfg_params_st *cfg, policer_read_response_type_st *phys) |
|
static void | sse2_qos_convert_pol_bucket_to_hw_fmt (policer_read_response_type_st *bkt, sse2_qos_pol_hw_params_st *hw_fmt) |
|
static int | sse2_pol_convert_hw_to_cfg_params (sse2_qos_pol_hw_params_st *hw, sse2_qos_pol_cfg_params_st *cfg) |
|
u32 | sse2_qos_convert_kbps_to_pps (u32 rate_kbps) |
|
u32 | sse2_qos_convert_burst_bytes_to_ms (u64 burst_bytes, u32 rate_kbps) |
|
int | sse2_pol_physical_2_logical (policer_read_response_type_st *phys, sse2_qos_pol_cfg_params_st *cfg) |
|