Lines Matching refs:guaranteed
313 int allocated, free, reserved, guaranteed, from_free;
328 guaranteed = res_alloc->guaranteed[slave];
337 if (allocated + count <= guaranteed) {
342 if (guaranteed - allocated > 0)
343 from_free = count - (guaranteed - allocated);
383 int allocated, guaranteed, from_rsvd;
394 guaranteed = res_alloc->guaranteed[slave];
396 if (allocated - count >= guaranteed) {
400 if (allocated - guaranteed > 0)
401 from_rsvd = count - (allocated - guaranteed);
426 res_alloc->guaranteed[vf] = num_instances /
428 res_alloc->quota[vf] = (num_instances / 2) + res_alloc->guaranteed[vf];
434 res_alloc->guaranteed[vf] += dev->caps.reserved_mtts;
510 res_alloc->guaranteed = kmalloc((dev->persist->num_vfs + 1) *
525 if (!res_alloc->quota || !res_alloc->guaranteed ||
579 res_alloc->guaranteed[t] = 2;
585 res_alloc->guaranteed[t] = 2;
591 res_alloc->guaranteed[t] = MLX4_MAX_VLAN_NUM / 2;
597 res_alloc->guaranteed[t] = 0;
603 res_alloc->guaranteed[t] =
607 res_alloc->guaranteed[t] =
611 res_alloc->guaranteed[t] = 0;
612 res_alloc->res_free -= res_alloc->guaranteed[t];
621 res_alloc->guaranteed[t];
623 res_alloc->res_reserved += res_alloc->guaranteed[t];
634 kfree(priv->mfunc.master.res_tracker.res_alloc[i].guaranteed);
635 priv->mfunc.master.res_tracker.res_alloc[i].guaranteed = NULL;
667 kfree(priv->mfunc.master.res_tracker.res_alloc[i].guaranteed);
668 priv->mfunc.master.res_tracker.res_alloc[i].guaranteed = NULL;