Lines Matching refs:sfd_pl

1228 	char *sfd_pl;  in mlxsw_sp_port_fdb_tunnel_uc_op()  local
1244 sfd_pl = kmalloc(MLXSW_REG_SFD_LEN, GFP_KERNEL); in mlxsw_sp_port_fdb_tunnel_uc_op()
1245 if (!sfd_pl) in mlxsw_sp_port_fdb_tunnel_uc_op()
1248 mlxsw_reg_sfd_pack(sfd_pl, mlxsw_sp_sfd_op(adding), 0); in mlxsw_sp_port_fdb_tunnel_uc_op()
1249 mlxsw_reg_sfd_uc_tunnel_pack(sfd_pl, 0, in mlxsw_sp_port_fdb_tunnel_uc_op()
1253 num_rec = mlxsw_reg_sfd_num_rec_get(sfd_pl); in mlxsw_sp_port_fdb_tunnel_uc_op()
1254 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in mlxsw_sp_port_fdb_tunnel_uc_op()
1258 if (num_rec != mlxsw_reg_sfd_num_rec_get(sfd_pl)) in mlxsw_sp_port_fdb_tunnel_uc_op()
1262 kfree(sfd_pl); in mlxsw_sp_port_fdb_tunnel_uc_op()
1271 char *sfd_pl; in __mlxsw_sp_port_fdb_uc_op() local
1275 sfd_pl = kmalloc(MLXSW_REG_SFD_LEN, GFP_KERNEL); in __mlxsw_sp_port_fdb_uc_op()
1276 if (!sfd_pl) in __mlxsw_sp_port_fdb_uc_op()
1279 mlxsw_reg_sfd_pack(sfd_pl, mlxsw_sp_sfd_op(adding), 0); in __mlxsw_sp_port_fdb_uc_op()
1280 mlxsw_reg_sfd_uc_pack(sfd_pl, 0, policy, mac, fid, action, local_port); in __mlxsw_sp_port_fdb_uc_op()
1281 num_rec = mlxsw_reg_sfd_num_rec_get(sfd_pl); in __mlxsw_sp_port_fdb_uc_op()
1282 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in __mlxsw_sp_port_fdb_uc_op()
1286 if (num_rec != mlxsw_reg_sfd_num_rec_get(sfd_pl)) in __mlxsw_sp_port_fdb_uc_op()
1290 kfree(sfd_pl); in __mlxsw_sp_port_fdb_uc_op()
1315 char *sfd_pl; in mlxsw_sp_port_fdb_uc_lag_op() local
1319 sfd_pl = kmalloc(MLXSW_REG_SFD_LEN, GFP_KERNEL); in mlxsw_sp_port_fdb_uc_lag_op()
1320 if (!sfd_pl) in mlxsw_sp_port_fdb_uc_lag_op()
1323 mlxsw_reg_sfd_pack(sfd_pl, mlxsw_sp_sfd_op(adding), 0); in mlxsw_sp_port_fdb_uc_lag_op()
1324 mlxsw_reg_sfd_uc_lag_pack(sfd_pl, 0, mlxsw_sp_sfd_rec_policy(dynamic), in mlxsw_sp_port_fdb_uc_lag_op()
1327 num_rec = mlxsw_reg_sfd_num_rec_get(sfd_pl); in mlxsw_sp_port_fdb_uc_lag_op()
1328 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in mlxsw_sp_port_fdb_uc_lag_op()
1332 if (num_rec != mlxsw_reg_sfd_num_rec_get(sfd_pl)) in mlxsw_sp_port_fdb_uc_lag_op()
1336 kfree(sfd_pl); in mlxsw_sp_port_fdb_uc_lag_op()
1380 char *sfd_pl; in mlxsw_sp_port_mdb_op() local
1384 sfd_pl = kmalloc(MLXSW_REG_SFD_LEN, GFP_KERNEL); in mlxsw_sp_port_mdb_op()
1385 if (!sfd_pl) in mlxsw_sp_port_mdb_op()
1388 mlxsw_reg_sfd_pack(sfd_pl, mlxsw_sp_sfd_op(adding), 0); in mlxsw_sp_port_mdb_op()
1389 mlxsw_reg_sfd_mc_pack(sfd_pl, 0, addr, fid, in mlxsw_sp_port_mdb_op()
1391 num_rec = mlxsw_reg_sfd_num_rec_get(sfd_pl); in mlxsw_sp_port_mdb_op()
1392 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in mlxsw_sp_port_mdb_op()
1396 if (num_rec != mlxsw_reg_sfd_num_rec_get(sfd_pl)) in mlxsw_sp_port_mdb_op()
1400 kfree(sfd_pl); in mlxsw_sp_port_mdb_op()