Searched refs:spms_pl (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | switchx2.c | 907 char *spms_pl; in mlxsw_sx_port_stp_state_set() local 910 spms_pl = kmalloc(MLXSW_REG_SPMS_LEN, GFP_KERNEL); in mlxsw_sx_port_stp_state_set() 911 if (!spms_pl) in mlxsw_sx_port_stp_state_set() 913 mlxsw_reg_spms_pack(spms_pl, mlxsw_sx_port->local_port); in mlxsw_sx_port_stp_state_set() 914 mlxsw_reg_spms_vid_pack(spms_pl, vid, state); in mlxsw_sx_port_stp_state_set() 915 err = mlxsw_reg_write(mlxsw_sx->core, MLXSW_REG(spms), spms_pl); in mlxsw_sx_port_stp_state_set() 916 kfree(spms_pl); in mlxsw_sx_port_stp_state_set()
|
D | spectrum.c | 265 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() 3703 char *spms_pl; in mlxsw_sp_port_stp_set() local 3710 spms_pl = kmalloc(MLXSW_REG_SPMS_LEN, GFP_KERNEL); in mlxsw_sp_port_stp_set() 3711 if (!spms_pl) in mlxsw_sp_port_stp_set() [all …]
|