Lines Matching refs:vfs
1094 int vfs; in mlx4_get_slave_num_gids() local
1122 vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; in mlx4_get_slave_num_gids()
1123 if (slave_gid <= ((MLX4_ROCE_MAX_GIDS - MLX4_ROCE_PF_GIDS) % vfs)) in mlx4_get_slave_num_gids()
1124 return ((MLX4_ROCE_MAX_GIDS - MLX4_ROCE_PF_GIDS) / vfs) + 1; in mlx4_get_slave_num_gids()
1125 return (MLX4_ROCE_MAX_GIDS - MLX4_ROCE_PF_GIDS) / vfs; in mlx4_get_slave_num_gids()
1133 int vfs; in mlx4_get_base_gid_ix() local
1160 vfs = bitmap_weight(slaves_pport.slaves, dev->persist->num_vfs + 1) - 1; in mlx4_get_base_gid_ix()
1161 if (slave_gid <= gids % vfs) in mlx4_get_base_gid_ix()
1162 return MLX4_ROCE_PF_GIDS + ((gids / vfs) + 1) * (slave_gid - 1); in mlx4_get_base_gid_ix()
1164 return MLX4_ROCE_PF_GIDS + (gids % vfs) + in mlx4_get_base_gid_ix()
1165 ((gids / vfs) * (slave_gid - 1)); in mlx4_get_base_gid_ix()