Lines Matching refs:sfd_pl
1650 char *sfd_pl; in mlxsw_sp_port_fdb_tun_uc_op4() local
1655 sfd_pl = kmalloc(MLXSW_REG_SFD_LEN, GFP_KERNEL); in mlxsw_sp_port_fdb_tun_uc_op4()
1656 if (!sfd_pl) in mlxsw_sp_port_fdb_tun_uc_op4()
1660 mlxsw_reg_sfd_pack(sfd_pl, mlxsw_sp_sfd_op(adding), 0); in mlxsw_sp_port_fdb_tun_uc_op4()
1661 mlxsw_reg_sfd_uc_tunnel_pack4(sfd_pl, 0, in mlxsw_sp_port_fdb_tun_uc_op4()
1664 num_rec = mlxsw_reg_sfd_num_rec_get(sfd_pl); in mlxsw_sp_port_fdb_tun_uc_op4()
1665 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in mlxsw_sp_port_fdb_tun_uc_op4()
1669 if (num_rec != mlxsw_reg_sfd_num_rec_get(sfd_pl)) in mlxsw_sp_port_fdb_tun_uc_op4()
1673 kfree(sfd_pl); in mlxsw_sp_port_fdb_tun_uc_op4()
1681 char *sfd_pl; in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write() local
1685 sfd_pl = kmalloc(MLXSW_REG_SFD_LEN, GFP_KERNEL); in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write()
1686 if (!sfd_pl) in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write()
1689 mlxsw_reg_sfd_pack(sfd_pl, mlxsw_sp_sfd_op(adding), 0); in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write()
1690 mlxsw_reg_sfd_uc_tunnel_pack6(sfd_pl, 0, mac, fid, in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write()
1692 num_rec = mlxsw_reg_sfd_num_rec_get(sfd_pl); in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write()
1693 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write()
1697 if (num_rec != mlxsw_reg_sfd_num_rec_get(sfd_pl)) in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write()
1701 kfree(sfd_pl); in mlxsw_sp_port_fdb_tun_uc_op6_sfd_write()
1784 char *sfd_pl; in __mlxsw_sp_port_fdb_uc_op() local
1788 sfd_pl = kmalloc(MLXSW_REG_SFD_LEN, GFP_KERNEL); in __mlxsw_sp_port_fdb_uc_op()
1789 if (!sfd_pl) in __mlxsw_sp_port_fdb_uc_op()
1792 mlxsw_reg_sfd_pack(sfd_pl, mlxsw_sp_sfd_op(adding), 0); in __mlxsw_sp_port_fdb_uc_op()
1793 mlxsw_reg_sfd_uc_pack(sfd_pl, 0, policy, mac, fid, vid, action, in __mlxsw_sp_port_fdb_uc_op()
1795 num_rec = mlxsw_reg_sfd_num_rec_get(sfd_pl); in __mlxsw_sp_port_fdb_uc_op()
1796 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in __mlxsw_sp_port_fdb_uc_op()
1800 if (num_rec != mlxsw_reg_sfd_num_rec_get(sfd_pl)) in __mlxsw_sp_port_fdb_uc_op()
1804 kfree(sfd_pl); in __mlxsw_sp_port_fdb_uc_op()
1829 char *sfd_pl; in mlxsw_sp_port_fdb_uc_lag_op() local
1833 sfd_pl = kmalloc(MLXSW_REG_SFD_LEN, GFP_KERNEL); in mlxsw_sp_port_fdb_uc_lag_op()
1834 if (!sfd_pl) in mlxsw_sp_port_fdb_uc_lag_op()
1837 mlxsw_reg_sfd_pack(sfd_pl, mlxsw_sp_sfd_op(adding), 0); in mlxsw_sp_port_fdb_uc_lag_op()
1838 mlxsw_reg_sfd_uc_lag_pack(sfd_pl, 0, mlxsw_sp_sfd_rec_policy(dynamic), in mlxsw_sp_port_fdb_uc_lag_op()
1841 num_rec = mlxsw_reg_sfd_num_rec_get(sfd_pl); in mlxsw_sp_port_fdb_uc_lag_op()
1842 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in mlxsw_sp_port_fdb_uc_lag_op()
1846 if (num_rec != mlxsw_reg_sfd_num_rec_get(sfd_pl)) in mlxsw_sp_port_fdb_uc_lag_op()
1850 kfree(sfd_pl); in mlxsw_sp_port_fdb_uc_lag_op()
1895 char *sfd_pl; in mlxsw_sp_mdb_entry_write() local
1899 sfd_pl = kmalloc(MLXSW_REG_SFD_LEN, GFP_KERNEL); in mlxsw_sp_mdb_entry_write()
1900 if (!sfd_pl) in mlxsw_sp_mdb_entry_write()
1903 mlxsw_reg_sfd_pack(sfd_pl, mlxsw_sp_sfd_op(adding), 0); in mlxsw_sp_mdb_entry_write()
1904 mlxsw_reg_sfd_mc_pack(sfd_pl, 0, mdb_entry->key.addr, in mlxsw_sp_mdb_entry_write()
1907 num_rec = mlxsw_reg_sfd_num_rec_get(sfd_pl); in mlxsw_sp_mdb_entry_write()
1908 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(sfd), sfd_pl); in mlxsw_sp_mdb_entry_write()
1912 if (num_rec != mlxsw_reg_sfd_num_rec_get(sfd_pl)) in mlxsw_sp_mdb_entry_write()
1916 kfree(sfd_pl); in mlxsw_sp_mdb_entry_write()