Searched refs:mgpc_pl (Results 1 – 1 of 1) sorted by relevance
/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum.c | 178 char mgpc_pl[MLXSW_REG_MGPC_LEN]; in mlxsw_sp_flow_counter_get() local 181 mlxsw_reg_mgpc_pack(mgpc_pl, counter_index, MLXSW_REG_MGPC_OPCODE_NOP, in mlxsw_sp_flow_counter_get() 183 err = mlxsw_reg_query(mlxsw_sp->core, MLXSW_REG(mgpc), mgpc_pl); in mlxsw_sp_flow_counter_get() 187 *packets = mlxsw_reg_mgpc_packet_counter_get(mgpc_pl); in mlxsw_sp_flow_counter_get() 189 *bytes = mlxsw_reg_mgpc_byte_counter_get(mgpc_pl); in mlxsw_sp_flow_counter_get() 196 char mgpc_pl[MLXSW_REG_MGPC_LEN]; in mlxsw_sp_flow_counter_clear() local 198 mlxsw_reg_mgpc_pack(mgpc_pl, counter_index, MLXSW_REG_MGPC_OPCODE_CLEAR, in mlxsw_sp_flow_counter_clear() 200 return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(mgpc), mgpc_pl); in mlxsw_sp_flow_counter_clear()
|