Home
last modified time | relevance | path

Searched refs:qpcr_pl (Results 1 – 3 of 3) sorted by relevance

/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_policer.c159 char qpcr_pl[MLXSW_REG_QPCR_LEN]; in mlxsw_sp_policer_single_rate_init() local
161 mlxsw_reg_qpcr_pack(qpcr_pl, policer->index, MLXSW_REG_QPCR_IR_UNITS_K, in mlxsw_sp_policer_single_rate_init()
163 mlxsw_reg_qpcr_clear_counter_set(qpcr_pl, true); in mlxsw_sp_policer_single_rate_init()
165 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qpcr), qpcr_pl); in mlxsw_sp_policer_single_rate_init()
290 char qpcr_pl[MLXSW_REG_QPCR_LEN]; in mlxsw_sp_policer_drops_counter_get() local
295 MLXSW_REG_ZERO(qpcr, qpcr_pl); in mlxsw_sp_policer_drops_counter_get()
296 mlxsw_reg_qpcr_pid_set(qpcr_pl, policer_index); in mlxsw_sp_policer_drops_counter_get()
297 mlxsw_reg_qpcr_g_set(qpcr_pl, family->qpcr_type); in mlxsw_sp_policer_drops_counter_get()
298 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(qpcr), qpcr_pl); in mlxsw_sp_policer_drops_counter_get()
302 *p_drops = mlxsw_reg_qpcr_violate_count_get(qpcr_pl); in mlxsw_sp_policer_drops_counter_get()
Dspectrum_trap.c1235 char qpcr_pl[MLXSW_REG_QPCR_LEN]; in mlxsw_sp_trap_cpu_policers_set() local
1247 mlxsw_reg_qpcr_pack(qpcr_pl, hw_id, MLXSW_REG_QPCR_IR_UNITS_M, in mlxsw_sp_trap_cpu_policers_set()
1249 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qpcr), qpcr_pl); in mlxsw_sp_trap_cpu_policers_set()
1759 char qpcr_pl[MLXSW_REG_QPCR_LEN]; in __mlxsw_sp_trap_policer_set() local
1767 mlxsw_reg_qpcr_pack(qpcr_pl, hw_id, MLXSW_REG_QPCR_IR_UNITS_M, false, in __mlxsw_sp_trap_policer_set()
1769 mlxsw_reg_qpcr_clear_counter_set(qpcr_pl, clear_counter); in __mlxsw_sp_trap_policer_set()
1770 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qpcr), qpcr_pl); in __mlxsw_sp_trap_policer_set()
1837 char qpcr_pl[MLXSW_REG_QPCR_LEN]; in mlxsw_sp_trap_policer_counter_get() local
1844 mlxsw_reg_qpcr_pack(qpcr_pl, policer_item->hw_id, in mlxsw_sp_trap_policer_counter_get()
1846 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(qpcr), qpcr_pl); in mlxsw_sp_trap_policer_counter_get()
[all …]
Dspectrum.c2552 char qpcr_pl[MLXSW_REG_QPCR_LEN]; in mlxsw_sp_cpu_policers_set() local
2580 mlxsw_reg_qpcr_pack(qpcr_pl, i, ir_units, is_bytes, rate, in mlxsw_sp_cpu_policers_set()
2582 err = mlxsw_reg_write(mlxsw_core, MLXSW_REG(qpcr), qpcr_pl); in mlxsw_sp_cpu_policers_set()