Lines Matching refs:mac
105 struct mlx4_mac_table *table, u64 mac) in find_index() argument
111 (MLX4_MAC_MASK & mac) == in find_index()
142 int mlx4_find_cached_mac(struct mlx4_dev *dev, u8 port, u64 mac, int *idx) in mlx4_find_cached_mac() argument
152 if (mac == (MLX4_MAC_MASK & be64_to_cpu(table->entries[i]))) { in mlx4_find_cached_mac()
162 int __mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac) in __mlx4_register_mac() argument
170 (unsigned long long) mac, port); in __mlx4_register_mac()
180 if ((MLX4_MAC_MASK & mac) == in __mlx4_register_mac()
198 table->entries[free] = cpu_to_be64(mac | MLX4_MAC_VALID); in __mlx4_register_mac()
203 (unsigned long long) mac); in __mlx4_register_mac()
216 int mlx4_register_mac(struct mlx4_dev *dev, u8 port, u64 mac) in mlx4_register_mac() argument
223 err = mlx4_cmd_imm(dev, mac, &out_param, in mlx4_register_mac()
231 err = mlx4_cmd_imm(dev, mac, &out_param, RES_MAC, in mlx4_register_mac()
242 return __mlx4_register_mac(dev, port, mac); in mlx4_register_mac()
253 void __mlx4_unregister_mac(struct mlx4_dev *dev, u8 port, u64 mac) in __mlx4_unregister_mac() argument
266 index = find_index(dev, table, mac); in __mlx4_unregister_mac()
284 void mlx4_unregister_mac(struct mlx4_dev *dev, u8 port, u64 mac) in mlx4_unregister_mac() argument
290 (void) mlx4_cmd_imm(dev, mac, &out_param, in mlx4_unregister_mac()
297 (void) mlx4_cmd_imm(dev, mac, &out_param, RES_MAC, in mlx4_unregister_mac()
303 __mlx4_unregister_mac(dev, port, mac); in mlx4_unregister_mac()
1139 u64 mac, u64 clear, u8 mode) in mlx4_SET_MCAST_FLTR() argument
1141 return mlx4_cmd(dev, (mac | (clear << 63)), port, mode, in mlx4_SET_MCAST_FLTR()