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