Lines Matching refs:pos
22 #define mlx5_sd_for_each_dev_from_to(i, primary, ix_from, to, pos) \
24 (pos = mlx5_sd_primary_get_peer(primary, i)) && pos != (to); i++)
26 #define mlx5_sd_for_each_dev(i, primary, pos) \
27 mlx5_sd_for_each_dev_from_to(i, primary, 0, NULL, pos)
29 #define mlx5_sd_for_each_dev_to(i, primary, to, pos) \
30 mlx5_sd_for_each_dev_from_to(i, primary, 0, to, pos)
32 #define mlx5_sd_for_each_secondary(i, primary, pos) \
33 mlx5_sd_for_each_dev_from_to(i, primary, 1, NULL, pos)
35 #define mlx5_sd_for_each_secondary_to(i, primary, to, pos) \
36 mlx5_sd_for_each_dev_from_to(i, primary, 1, to, pos)