Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum.c181 char mgpc_pl[MLXSW_REG_MGPC_LEN]; in mlxsw_sp_flow_counter_get() local
184 mlxsw_reg_mgpc_pack(mgpc_pl, counter_index, MLXSW_REG_MGPC_OPCODE_NOP, in mlxsw_sp_flow_counter_get()
186 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(mgpc), mgpc_pl); in mlxsw_sp_flow_counter_get()
190 *packets = mlxsw_reg_mgpc_packet_counter_get(mgpc_pl); in mlxsw_sp_flow_counter_get()
192 *bytes = mlxsw_reg_mgpc_byte_counter_get(mgpc_pl); in mlxsw_sp_flow_counter_get()
199 char mgpc_pl[MLXSW_REG_MGPC_LEN]; in mlxsw_sp_flow_counter_clear() local
201 mlxsw_reg_mgpc_pack(mgpc_pl, counter_index, MLXSW_REG_MGPC_OPCODE_CLEAR, in mlxsw_sp_flow_counter_clear()
203 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mgpc), mgpc_pl); in mlxsw_sp_flow_counter_clear()