Lines Matching refs:guaranteed

315 	int allocated, free, reserved, guaranteed, from_free;  in mlx4_grant_resource()  local
330 guaranteed = res_alloc->guaranteed[slave]; in mlx4_grant_resource()
339 if (allocated + count <= guaranteed) { in mlx4_grant_resource()
344 if (guaranteed - allocated > 0) in mlx4_grant_resource()
345 from_free = count - (guaranteed - allocated); in mlx4_grant_resource()
385 int allocated, guaranteed, from_rsvd; in mlx4_release_resource() local
396 guaranteed = res_alloc->guaranteed[slave]; in mlx4_release_resource()
398 if (allocated - count >= guaranteed) { in mlx4_release_resource()
402 if (allocated - guaranteed > 0) in mlx4_release_resource()
403 from_rsvd = count - (allocated - guaranteed); in mlx4_release_resource()
428 res_alloc->guaranteed[vf] = num_instances / in initialize_res_quotas()
430 res_alloc->quota[vf] = (num_instances / 2) + res_alloc->guaranteed[vf]; in initialize_res_quotas()
436 res_alloc->guaranteed[vf] += dev->caps.reserved_mtts; in initialize_res_quotas()
531 res_alloc->guaranteed = kmalloc_array(dev->persist->num_vfs + 1, in mlx4_init_resource_tracker()
547 if (!res_alloc->quota || !res_alloc->guaranteed || in mlx4_init_resource_tracker()
601 res_alloc->guaranteed[t] = 2; in mlx4_init_resource_tracker()
607 res_alloc->guaranteed[t] = 2; in mlx4_init_resource_tracker()
613 res_alloc->guaranteed[t] = MLX4_MAX_VLAN_NUM / 2; in mlx4_init_resource_tracker()
619 res_alloc->guaranteed[t] = 0; in mlx4_init_resource_tracker()
624 res_alloc->guaranteed[t] = in mlx4_init_resource_tracker()
634 res_alloc->guaranteed[t]; in mlx4_init_resource_tracker()
636 res_alloc->res_reserved += res_alloc->guaranteed[t]; in mlx4_init_resource_tracker()
647 kfree(priv->mfunc.master.res_tracker.res_alloc[i].guaranteed); in mlx4_init_resource_tracker()
648 priv->mfunc.master.res_tracker.res_alloc[i].guaranteed = NULL; in mlx4_init_resource_tracker()
680 kfree(priv->mfunc.master.res_tracker.res_alloc[i].guaranteed); in mlx4_free_resource_tracker()
681 priv->mfunc.master.res_tracker.res_alloc[i].guaranteed = NULL; in mlx4_free_resource_tracker()