Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dswitchx2.c962 char *spms_pl; in mlxsw_sx_port_stp_state_set() local
965 spms_pl = kmalloc(MLXSW_REG_SPMS_LEN, GFP_KERNEL); in mlxsw_sx_port_stp_state_set()
966 if (!spms_pl) in mlxsw_sx_port_stp_state_set()
968 mlxsw_reg_spms_pack(spms_pl, mlxsw_sx_port->local_port); in mlxsw_sx_port_stp_state_set()
969 mlxsw_reg_spms_vid_pack(spms_pl, vid, state); in mlxsw_sx_port_stp_state_set()
970 err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(spms), spms_pl); in mlxsw_sx_port_stp_state_set()
971 kfree(spms_pl); in mlxsw_sx_port_stp_state_set()
Dspectrum.c457 char *spms_pl; in mlxsw_sp_port_vid_stp_set() local
460 spms_pl = kmalloc(MLXSW_REG_SPMS_LEN, GFP_KERNEL); in mlxsw_sp_port_vid_stp_set()
461 if (!spms_pl) in mlxsw_sp_port_vid_stp_set()
463 mlxsw_reg_spms_pack(spms_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_vid_stp_set()
464 mlxsw_reg_spms_vid_pack(spms_pl, vid, spms_state); in mlxsw_sp_port_vid_stp_set()
466 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(spms), spms_pl); in mlxsw_sp_port_vid_stp_set()
467 kfree(spms_pl); in mlxsw_sp_port_vid_stp_set()
4484 char *spms_pl; in mlxsw_sp_port_stp_set() local
4491 spms_pl = kmalloc(MLXSW_REG_SPMS_LEN, GFP_KERNEL); in mlxsw_sp_port_stp_set()
4492 if (!spms_pl) in mlxsw_sp_port_stp_set()
[all …]