Lines Matching refs:guaranteed

304 	int allocated, free, reserved, guaranteed, from_free;  in mlx4_grant_resource()  local
319 guaranteed = res_alloc->guaranteed[slave]; in mlx4_grant_resource()
328 if (allocated + count <= guaranteed) { in mlx4_grant_resource()
333 if (guaranteed - allocated > 0) in mlx4_grant_resource()
334 from_free = count - (guaranteed - allocated); in mlx4_grant_resource()
374 int allocated, guaranteed, from_rsvd; in mlx4_release_resource() local
385 guaranteed = res_alloc->guaranteed[slave]; in mlx4_release_resource()
387 if (allocated - count >= guaranteed) { in mlx4_release_resource()
391 if (allocated - guaranteed > 0) in mlx4_release_resource()
392 from_rsvd = count - (allocated - guaranteed); in mlx4_release_resource()
417 res_alloc->guaranteed[vf] = num_instances / in initialize_res_quotas()
419 res_alloc->quota[vf] = (num_instances / 2) + res_alloc->guaranteed[vf]; in initialize_res_quotas()
425 res_alloc->guaranteed[vf] += dev->caps.reserved_mtts; in initialize_res_quotas()
491 res_alloc->guaranteed = kmalloc((dev->persist->num_vfs + 1) * in mlx4_init_resource_tracker()
503 if (!res_alloc->quota || !res_alloc->guaranteed || in mlx4_init_resource_tracker()
557 res_alloc->guaranteed[t] = 2; in mlx4_init_resource_tracker()
563 res_alloc->guaranteed[t] = 2; in mlx4_init_resource_tracker()
569 res_alloc->guaranteed[t] = MLX4_MAX_VLAN_NUM / 2; in mlx4_init_resource_tracker()
575 res_alloc->guaranteed[t] = 0; in mlx4_init_resource_tracker()
580 res_alloc->guaranteed[t] = 0; in mlx4_init_resource_tracker()
591 res_alloc->guaranteed[t]; in mlx4_init_resource_tracker()
593 res_alloc->res_reserved += res_alloc->guaranteed[t]; in mlx4_init_resource_tracker()
604 kfree(priv->mfunc.master.res_tracker.res_alloc[i].guaranteed); in mlx4_init_resource_tracker()
605 priv->mfunc.master.res_tracker.res_alloc[i].guaranteed = NULL; in mlx4_init_resource_tracker()
637 kfree(priv->mfunc.master.res_tracker.res_alloc[i].guaranteed); in mlx4_free_resource_tracker()
638 priv->mfunc.master.res_tracker.res_alloc[i].guaranteed = NULL; in mlx4_free_resource_tracker()