Lines Matching refs:qpcr_pl
1210 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()
1734 char qpcr_pl[MLXSW_REG_QPCR_LEN]; in __mlxsw_sp_trap_policer_set() local
1742 mlxsw_reg_qpcr_pack(qpcr_pl, hw_id, MLXSW_REG_QPCR_IR_UNITS_M, false, in __mlxsw_sp_trap_policer_set()
1744 mlxsw_reg_qpcr_clear_counter_set(qpcr_pl, clear_counter); in __mlxsw_sp_trap_policer_set()
1745 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(qpcr), qpcr_pl); in __mlxsw_sp_trap_policer_set()
1812 char qpcr_pl[MLXSW_REG_QPCR_LEN]; in mlxsw_sp_trap_policer_counter_get() local
1819 mlxsw_reg_qpcr_pack(qpcr_pl, policer_item->hw_id, in mlxsw_sp_trap_policer_counter_get()
1821 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(qpcr), qpcr_pl); in mlxsw_sp_trap_policer_counter_get()
1825 *p_drops = mlxsw_reg_qpcr_violate_count_get(qpcr_pl); in mlxsw_sp_trap_policer_counter_get()