• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/mlx4/mlx4_core/

Lines Matching refs:entries

68 		table->entries[i] = 0;
82 table->entries[i] = 0;
105 if (index < 0 || index >= table->max || !table->entries[index]) {
120 (MLX4_MAC_MASK & be64_to_cpu(table->entries[i])))
128 __be64 *entries)
138 memcpy(mailbox->buf, entries, MLX4_MAC_TABLE_SIZE);
160 if (mac == (MLX4_MAC_MASK & be64_to_cpu(table->entries[i]))) {
216 if (((MLX4_MAC_MASK & mac) == (MLX4_MAC_MASK & be64_to_cpu(table->entries[i]))))
218 if (((MLX4_MAC_MASK & mac) == (MLX4_MAC_MASK & be64_to_cpu(dup_table->entries[i]))))
243 ((MLX4_MAC_MASK & mac) == (MLX4_MAC_MASK & be64_to_cpu(table->entries[index_at_dup_port]))))
262 (MLX4_MAC_MASK & be64_to_cpu(table->entries[i]))) {
267 u64 dup_mac = MLX4_MAC_MASK & be64_to_cpu(dup_table->entries[i]);
293 /* No free mac entries */
299 table->entries[free] = cpu_to_be64(mac | MLX4_MAC_VALID);
301 err = mlx4_set_port_mac_table(dev, port, table->entries);
305 table->entries[free] = 0;
314 dup_table->entries[free] = cpu_to_be64(mac | MLX4_MAC_VALID);
316 err = mlx4_set_port_mac_table(dev, dup_port, dup_table->entries);
320 dup_table->entries[free] = 0;
420 table->entries[index] = 0;
421 if (mlx4_set_port_mac_table(dev, port, table->entries))
429 dup_table->entries[index] = 0;
430 if (mlx4_set_port_mac_table(dev, dup_port, dup_table->entries))
501 table->entries[index] = cpu_to_be64(new_mac | MLX4_MAC_VALID);
503 err = mlx4_set_port_mac_table(dev, port, table->entries);
507 table->entries[index] = 0;
510 dup_table->entries[index] = cpu_to_be64(new_mac | MLX4_MAC_VALID);
512 err = mlx4_set_port_mac_table(dev, dup_port, dup_table->entries);
516 dup_table->entries[index] = 0;
537 __be32 *entries)
547 memcpy(mailbox->buf, entries, MLX4_VLAN_TABLE_SIZE);
566 be32_to_cpu(table->entries[i])))) {
607 /* No free vlan entries */
617 if (vlan == (MLX4_VLAN_MASK & be32_to_cpu(table->entries[i])))
619 if (vlan == (MLX4_VLAN_MASK & be32_to_cpu(dup_table->entries[i])))
643 (vlan == (MLX4_VLAN_MASK & be32_to_cpu(dup_table->entries[index_at_dup_port]))))
662 be32_to_cpu(table->entries[i])))) {
668 u16 dup_vlan = MLX4_VLAN_MASK & be32_to_cpu(dup_table->entries[i]);
699 table->entries[free] = cpu_to_be32(vlan | MLX4_VLAN_VALID);
701 err = mlx4_set_port_vlan_table(dev, port, table->entries);
705 table->entries[free] = 0;
712 dup_table->entries[free] = cpu_to_be32(vlan | MLX4_VLAN_VALID);
714 err = mlx4_set_port_vlan_table(dev, dup_port, dup_table->entries);
718 dup_table->entries[free] = 0;
799 table->entries[index] = 0;
800 if (mlx4_set_port_vlan_table(dev, port, table->entries))
807 dup_table->entries[index] = 0;
808 if (mlx4_set_port_vlan_table(dev, dup_port, dup_table->entries))
854 if ((t1->entries[i] != t2->entries[i]) &&
855 t1->entries[i] && t2->entries[i]) {
863 if (t1->entries[i] && !t2->entries[i]) {
864 t2->entries[i] = t1->entries[i];
867 } else if (!t1->entries[i] && t2->entries[i]) {
868 t1->entries[i] = t2->entries[i];
871 } else if (t1->entries[i] && t2->entries[i]) {
878 ret = mlx4_set_port_mac_table(dev, 1, t1->entries);
883 ret = mlx4_set_port_mac_table(dev, 2, t2->entries);
909 if (t1->entries[i] != t2->entries[i]) {
917 if (!t1->entries[i])
921 t1->entries[i] = 0;
926 t2->entries[i] = 0;
932 ret = mlx4_set_port_mac_table(dev, 1, t1->entries);
937 ret1 = mlx4_set_port_mac_table(dev, 2, t2->entries);
961 if ((t1->entries[i] != t2->entries[i]) &&
962 t1->entries[i] && t2->entries[i]) {
970 if (t1->entries[i] && !t2->entries[i]) {
971 t2->entries[i] = t1->entries[i];
974 } else if (!t1->entries[i] && t2->entries[i]) {
975 t1->entries[i] = t2->entries[i];
978 } else if (t1->entries[i] && t2->entries[i]) {
985 ret = mlx4_set_port_vlan_table(dev, 1, t1->entries);
990 ret = mlx4_set_port_vlan_table(dev, 2, t2->entries);
1016 if (t1->entries[i] != t2->entries[i]) {
1024 if (!t1->entries[i])
1028 t1->entries[i] = 0;
1033 t2->entries[i] = 0;
1039 ret = mlx4_set_port_vlan_table(dev, 1, t1->entries);
1044 ret1 = mlx4_set_port_vlan_table(dev, 2, t2->entries);
1341 /* change to MULTIPLE entries: number of guest's gids
1366 * entries in the port GID table