Lines Matching refs:guaranteed
309 int allocated, free, reserved, guaranteed, from_free;
319 guaranteed = res_alloc->guaranteed[slave];
324 if (allocated + count <= guaranteed) {
328 if (guaranteed - allocated > 0)
329 from_free = count - (guaranteed - allocated);
380 res_alloc->guaranteed[vf] = num_instances / (2 * (dev->num_vfs + 1));
381 res_alloc->quota[vf] = (num_instances / 2) + res_alloc->guaranteed[vf];
387 res_alloc->guaranteed[vf] += dev->caps.reserved_mtts;
452 res_alloc->guaranteed = kmalloc((dev->num_vfs + 1) * sizeof(int), GFP_KERNEL);
460 if (!res_alloc->quota || !res_alloc->guaranteed ||
497 res_alloc->guaranteed[t] = res_alloc->quota[t];
502 res_alloc->guaranteed[t] = 2;
508 res_alloc->guaranteed[t] = MLX4_MAX_VLAN_NUM / 2;
514 res_alloc->guaranteed[t] = 0;
519 res_alloc->guaranteed[t] = 0;
529 res_alloc->guaranteed[t];
531 res_alloc->res_reserved += res_alloc->guaranteed[t];
542 kfree(priv->mfunc.master.res_tracker.res_alloc[i].guaranteed);
543 priv->mfunc.master.res_tracker.res_alloc[i].guaranteed = NULL;
574 kfree(priv->mfunc.master.res_tracker.res_alloc[i].guaranteed);
575 priv->mfunc.master.res_tracker.res_alloc[i].guaranteed = NULL;