Searched refs:qpcr_pl (Results 1 – 3 of 3) sorted by relevance
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_policer.c | 159 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()
|
D | spectrum_trap.c | 1057 char qpcr_pl[MLXSW_REG_QPCR_LEN]; in mlxsw_sp_trap_cpu_policers_set() local 1069 mlxsw_reg_qpcr_pack(qpcr_pl, hw_id, MLXSW_REG_QPCR_IR_UNITS_M, in mlxsw_sp_trap_cpu_policers_set() 1071 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qpcr), qpcr_pl); in mlxsw_sp_trap_cpu_policers_set() 1582 char qpcr_pl[MLXSW_REG_QPCR_LEN]; in __mlxsw_sp_trap_policer_set() local 1590 mlxsw_reg_qpcr_pack(qpcr_pl, hw_id, MLXSW_REG_QPCR_IR_UNITS_M, false, in __mlxsw_sp_trap_policer_set() 1592 mlxsw_reg_qpcr_clear_counter_set(qpcr_pl, clear_counter); in __mlxsw_sp_trap_policer_set() 1593 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qpcr), qpcr_pl); in __mlxsw_sp_trap_policer_set() 1660 char qpcr_pl[MLXSW_REG_QPCR_LEN]; in mlxsw_sp_trap_policer_counter_get() local 1667 mlxsw_reg_qpcr_pack(qpcr_pl, policer_item->hw_id, in mlxsw_sp_trap_policer_counter_get() 1669 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(qpcr), qpcr_pl); in mlxsw_sp_trap_policer_counter_get() [all …]
|
D | spectrum.c | 2236 char qpcr_pl[MLXSW_REG_QPCR_LEN]; in mlxsw_sp_cpu_policers_set() local 2264 mlxsw_reg_qpcr_pack(qpcr_pl, i, ir_units, is_bytes, rate, in mlxsw_sp_cpu_policers_set() 2266 err = mlxsw_reg_write(mlxsw_core, MLXSW_REG(qpcr), qpcr_pl); in mlxsw_sp_cpu_policers_set()
|