Lines Matching refs:vlan
371 int __mlx4_register_vlan(struct mlx4_dev *dev, u8 port, u16 vlan, in __mlx4_register_vlan() argument
393 (vlan == (MLX4_VLAN_MASK & in __mlx4_register_vlan()
409 table->entries[free] = cpu_to_be32(vlan | MLX4_VLAN_VALID); in __mlx4_register_vlan()
413 mlx4_warn(dev, "Failed adding vlan: %u\n", vlan); in __mlx4_register_vlan()
426 int mlx4_register_vlan(struct mlx4_dev *dev, u8 port, u16 vlan, int *index) in mlx4_register_vlan() argument
431 if (vlan > 4095) in mlx4_register_vlan()
435 err = mlx4_cmd_imm(dev, vlan, &out_param, in mlx4_register_vlan()
444 return __mlx4_register_vlan(dev, port, vlan, index); in mlx4_register_vlan()
448 void __mlx4_unregister_vlan(struct mlx4_dev *dev, u8 port, u16 vlan) in __mlx4_unregister_vlan() argument
454 if (mlx4_find_cached_vlan(dev, port, vlan, &index)) { in __mlx4_unregister_vlan()
455 mlx4_warn(dev, "vlan 0x%x is not in the vlan table\n", vlan); in __mlx4_unregister_vlan()
476 void mlx4_unregister_vlan(struct mlx4_dev *dev, u8 port, u16 vlan) in mlx4_unregister_vlan() argument
481 (void) mlx4_cmd_imm(dev, vlan, &out_param, in mlx4_unregister_vlan()
488 __mlx4_unregister_vlan(dev, port, vlan); in mlx4_unregister_vlan()