Lines Matching refs:guaranteed

307 	int allocated, free, reserved, guaranteed, from_free;  in mlx4_grant_resource()  local
322 guaranteed = res_alloc->guaranteed[slave]; in mlx4_grant_resource()
331 if (allocated + count <= guaranteed) { in mlx4_grant_resource()
336 if (guaranteed - allocated > 0) in mlx4_grant_resource()
337 from_free = count - (guaranteed - allocated); in mlx4_grant_resource()
377 int allocated, guaranteed, from_rsvd; in mlx4_release_resource() local
388 guaranteed = res_alloc->guaranteed[slave]; in mlx4_release_resource()
390 if (allocated - count >= guaranteed) { in mlx4_release_resource()
394 if (allocated - guaranteed > 0) in mlx4_release_resource()
395 from_rsvd = count - (allocated - guaranteed); in mlx4_release_resource()
420 res_alloc->guaranteed[vf] = num_instances / in initialize_res_quotas()
422 res_alloc->quota[vf] = (num_instances / 2) + res_alloc->guaranteed[vf]; in initialize_res_quotas()
428 res_alloc->guaranteed[vf] += dev->caps.reserved_mtts; in initialize_res_quotas()
504 res_alloc->guaranteed = kmalloc((dev->persist->num_vfs + 1) * in mlx4_init_resource_tracker()
519 if (!res_alloc->quota || !res_alloc->guaranteed || in mlx4_init_resource_tracker()
573 res_alloc->guaranteed[t] = 2; in mlx4_init_resource_tracker()
579 res_alloc->guaranteed[t] = 2; in mlx4_init_resource_tracker()
585 res_alloc->guaranteed[t] = MLX4_MAX_VLAN_NUM / 2; in mlx4_init_resource_tracker()
591 res_alloc->guaranteed[t] = 0; in mlx4_init_resource_tracker()
597 res_alloc->guaranteed[t] = in mlx4_init_resource_tracker()
601 res_alloc->guaranteed[t] = in mlx4_init_resource_tracker()
605 res_alloc->guaranteed[t] = 0; in mlx4_init_resource_tracker()
606 res_alloc->res_free -= res_alloc->guaranteed[t]; in mlx4_init_resource_tracker()
615 res_alloc->guaranteed[t]; in mlx4_init_resource_tracker()
617 res_alloc->res_reserved += res_alloc->guaranteed[t]; in mlx4_init_resource_tracker()
628 kfree(priv->mfunc.master.res_tracker.res_alloc[i].guaranteed); in mlx4_init_resource_tracker()
629 priv->mfunc.master.res_tracker.res_alloc[i].guaranteed = NULL; in mlx4_init_resource_tracker()
661 kfree(priv->mfunc.master.res_tracker.res_alloc[i].guaranteed); in mlx4_free_resource_tracker()
662 priv->mfunc.master.res_tracker.res_alloc[i].guaranteed = NULL; in mlx4_free_resource_tracker()