Lines Matching refs:num_vfs
312 if (slave > dev->num_vfs) in mlx4_grant_resource()
317 res_alloc->allocated[(port - 1) * (dev->num_vfs + 1) + slave] : in mlx4_grant_resource()
355 res_alloc->allocated[(port - 1) * (dev->num_vfs + 1) + slave] += count; in mlx4_grant_resource()
379 if (slave > dev->num_vfs) in mlx4_release_resource()
385 res_alloc->allocated[(port - 1) * (dev->num_vfs + 1) + slave] : in mlx4_release_resource()
400 res_alloc->allocated[(port - 1) * (dev->num_vfs + 1) + slave] -= count; in mlx4_release_resource()
418 res_alloc->guaranteed[vf] = num_instances / (2 * (dev->num_vfs + 1)); in initialize_res_quotas()
489 res_alloc->quota = kmalloc((dev->num_vfs + 1) * sizeof(int), GFP_KERNEL); in mlx4_init_resource_tracker()
490 res_alloc->guaranteed = kmalloc((dev->num_vfs + 1) * sizeof(int), GFP_KERNEL); in mlx4_init_resource_tracker()
493 (dev->num_vfs + 1) * sizeof(int), in mlx4_init_resource_tracker()
496 res_alloc->allocated = kzalloc((dev->num_vfs + 1) * sizeof(int), GFP_KERNEL); in mlx4_init_resource_tracker()
503 for (t = 0; t < dev->num_vfs + 1; t++) { in mlx4_init_resource_tracker()