Lines Matching refs:smid_pl
776 char *smid_pl; in mlxsw_sp_smid_router_port_set() local
779 smid_pl = kmalloc(MLXSW_REG_SMID_LEN, GFP_KERNEL); in mlxsw_sp_smid_router_port_set()
780 if (!smid_pl) in mlxsw_sp_smid_router_port_set()
783 mlxsw_reg_smid_pack(smid_pl, mid_idx, in mlxsw_sp_smid_router_port_set()
785 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(smid), smid_pl); in mlxsw_sp_smid_router_port_set()
786 kfree(smid_pl); in mlxsw_sp_smid_router_port_set()
1408 char *smid_pl; in mlxsw_sp_port_smid_full_entry() local
1411 smid_pl = kmalloc(MLXSW_REG_SMID_LEN, GFP_KERNEL); in mlxsw_sp_port_smid_full_entry()
1412 if (!smid_pl) in mlxsw_sp_port_smid_full_entry()
1415 mlxsw_reg_smid_pack(smid_pl, mid_idx, 0, false); in mlxsw_sp_port_smid_full_entry()
1418 mlxsw_reg_smid_port_mask_set(smid_pl, i, 1); in mlxsw_sp_port_smid_full_entry()
1421 mlxsw_reg_smid_port_mask_set(smid_pl, in mlxsw_sp_port_smid_full_entry()
1425 mlxsw_reg_smid_port_set(smid_pl, i, 1); in mlxsw_sp_port_smid_full_entry()
1427 mlxsw_reg_smid_port_set(smid_pl, mlxsw_sp_router_port(mlxsw_sp), in mlxsw_sp_port_smid_full_entry()
1430 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(smid), smid_pl); in mlxsw_sp_port_smid_full_entry()
1431 kfree(smid_pl); in mlxsw_sp_port_smid_full_entry()
1439 char *smid_pl; in mlxsw_sp_port_smid_set() local
1442 smid_pl = kmalloc(MLXSW_REG_SMID_LEN, GFP_KERNEL); in mlxsw_sp_port_smid_set()
1443 if (!smid_pl) in mlxsw_sp_port_smid_set()
1446 mlxsw_reg_smid_pack(smid_pl, mid_idx, mlxsw_sp_port->local_port, add); in mlxsw_sp_port_smid_set()
1447 err = mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(smid), smid_pl); in mlxsw_sp_port_smid_set()
1448 kfree(smid_pl); in mlxsw_sp_port_smid_set()