Home
last modified time | relevance | path

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

/linux-5.19.10/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.c1210 char qpcr_pl[MLXSW_REG_QPCR_LEN]; in mlxsw_sp_trap_cpu_policers_set() local
1222 mlxsw_reg_qpcr_pack(qpcr_pl, hw_id, MLXSW_REG_QPCR_IR_UNITS_M, in mlxsw_sp_trap_cpu_policers_set()
1224 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qpcr), qpcr_pl); in mlxsw_sp_trap_cpu_policers_set()
1735 char qpcr_pl[MLXSW_REG_QPCR_LEN]; in __mlxsw_sp_trap_policer_set() local
1743 mlxsw_reg_qpcr_pack(qpcr_pl, hw_id, MLXSW_REG_QPCR_IR_UNITS_M, false, in __mlxsw_sp_trap_policer_set()
1745 mlxsw_reg_qpcr_clear_counter_set(qpcr_pl, clear_counter); in __mlxsw_sp_trap_policer_set()
1746 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qpcr), qpcr_pl); in __mlxsw_sp_trap_policer_set()
1813 char qpcr_pl[MLXSW_REG_QPCR_LEN]; in mlxsw_sp_trap_policer_counter_get() local
1820 mlxsw_reg_qpcr_pack(qpcr_pl, policer_item->hw_id, in mlxsw_sp_trap_policer_counter_get()
1822 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(qpcr), qpcr_pl); in mlxsw_sp_trap_policer_counter_get()
[all …]
Dspectrum.c2481 char qpcr_pl[MLXSW_REG_QPCR_LEN]; in mlxsw_sp_cpu_policers_set() local
2509 mlxsw_reg_qpcr_pack(qpcr_pl, i, ir_units, is_bytes, rate, in mlxsw_sp_cpu_policers_set()
2511 err = mlxsw_reg_write(mlxsw_core, MLXSW_REG(qpcr), qpcr_pl); in mlxsw_sp_cpu_policers_set()