Home
last modified time | relevance | path

Searched refs:mgpc_pl (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum.c176 char mgpc_pl[MLXSW_REG_MGPC_LEN]; in mlxsw_sp_flow_counter_get() local
179 mlxsw_reg_mgpc_pack(mgpc_pl, counter_index, MLXSW_REG_MGPC_OPCODE_NOP, in mlxsw_sp_flow_counter_get()
181 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(mgpc), mgpc_pl); in mlxsw_sp_flow_counter_get()
185 *packets = mlxsw_reg_mgpc_packet_counter_get(mgpc_pl); in mlxsw_sp_flow_counter_get()
187 *bytes = mlxsw_reg_mgpc_byte_counter_get(mgpc_pl); in mlxsw_sp_flow_counter_get()
194 char mgpc_pl[MLXSW_REG_MGPC_LEN]; in mlxsw_sp_flow_counter_clear() local
196 mlxsw_reg_mgpc_pack(mgpc_pl, counter_index, MLXSW_REG_MGPC_OPCODE_CLEAR, in mlxsw_sp_flow_counter_clear()
198 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mgpc), mgpc_pl); in mlxsw_sp_flow_counter_clear()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum.c182 char mgpc_pl[MLXSW_REG_MGPC_LEN]; in mlxsw_sp_flow_counter_get() local
185 mlxsw_reg_mgpc_pack(mgpc_pl, counter_index, MLXSW_REG_MGPC_OPCODE_NOP, in mlxsw_sp_flow_counter_get()
187 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(mgpc), mgpc_pl); in mlxsw_sp_flow_counter_get()
191 *packets = mlxsw_reg_mgpc_packet_counter_get(mgpc_pl); in mlxsw_sp_flow_counter_get()
193 *bytes = mlxsw_reg_mgpc_byte_counter_get(mgpc_pl); in mlxsw_sp_flow_counter_get()
200 char mgpc_pl[MLXSW_REG_MGPC_LEN]; in mlxsw_sp_flow_counter_clear() local
202 mlxsw_reg_mgpc_pack(mgpc_pl, counter_index, MLXSW_REG_MGPC_OPCODE_CLEAR, in mlxsw_sp_flow_counter_clear()
204 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mgpc), mgpc_pl); in mlxsw_sp_flow_counter_clear()

Completed in 15 milliseconds