Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlxsw/
H A Dswitchx2.c908 char *spms_pl; in mlxsw_sx_port_stp_state_set() local
911 spms_pl = kmalloc(MLXSW_REG_SPMS_LEN, GFP_KERNEL); in mlxsw_sx_port_stp_state_set()
912 if (!spms_pl) in mlxsw_sx_port_stp_state_set()
914 mlxsw_reg_spms_pack(spms_pl, mlxsw_sx_port->local_port); in mlxsw_sx_port_stp_state_set()
915 mlxsw_reg_spms_vid_pack(spms_pl, vid, state); in mlxsw_sx_port_stp_state_set()
916 err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(spms), spms_pl); in mlxsw_sx_port_stp_state_set()
917 kfree(spms_pl); in mlxsw_sx_port_stp_state_set()
H A Dspectrum.c265 char *spms_pl; in mlxsw_sp_port_vid_stp_set() local
268 spms_pl = kmalloc(MLXSW_REG_SPMS_LEN, GFP_KERNEL); in mlxsw_sp_port_vid_stp_set()
269 if (!spms_pl) in mlxsw_sp_port_vid_stp_set()
271 mlxsw_reg_spms_pack(spms_pl, mlxsw_sp_port->local_port); in mlxsw_sp_port_vid_stp_set()
272 mlxsw_reg_spms_vid_pack(spms_pl, vid, spms_state); in mlxsw_sp_port_vid_stp_set()
274 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(spms), spms_pl); in mlxsw_sp_port_vid_stp_set()
275 kfree(spms_pl); in mlxsw_sp_port_vid_stp_set()
3708 char *spms_pl; in mlxsw_sp_port_stp_set() local
3715 spms_pl = kmalloc(MLXSW_REG_SPMS_LEN, GFP_KERNEL); in mlxsw_sp_port_stp_set()
3716 if (!spms_pl) in mlxsw_sp_port_stp_set()
[all …]