Lines Matching refs:quota

321 	if (allocated + count > res_alloc->quota[slave]) {  in mlx4_grant_resource()
324 allocated, res_alloc->quota[slave]); in mlx4_grant_resource()
419 res_alloc->quota[vf] = (num_instances / 2) + res_alloc->guaranteed[vf]; in initialize_res_quotas()
426 res_alloc->quota[vf] += dev->caps.reserved_mtts; in initialize_res_quotas()
452 priv->mfunc.master.res_tracker.res_alloc[RES_QP].quota[pf]; in mlx4_init_quotas()
454 priv->mfunc.master.res_tracker.res_alloc[RES_CQ].quota[pf]; in mlx4_init_quotas()
456 priv->mfunc.master.res_tracker.res_alloc[RES_SRQ].quota[pf]; in mlx4_init_quotas()
458 priv->mfunc.master.res_tracker.res_alloc[RES_MTT].quota[pf]; in mlx4_init_quotas()
460 priv->mfunc.master.res_tracker.res_alloc[RES_MPT].quota[pf]; in mlx4_init_quotas()
489 res_alloc->quota = kmalloc((dev->persist->num_vfs + 1) * in mlx4_init_resource_tracker()
503 if (!res_alloc->quota || !res_alloc->guaranteed || in mlx4_init_resource_tracker()
554 res_alloc->quota[t] = in mlx4_init_resource_tracker()
562 res_alloc->quota[t] = MLX4_MAX_MAC_NUM; in mlx4_init_resource_tracker()
568 res_alloc->quota[t] = MLX4_MAX_VLAN_NUM; in mlx4_init_resource_tracker()
572 res_alloc->quota[t]; in mlx4_init_resource_tracker()
574 res_alloc->quota[t] = MLX4_MAX_VLAN_NUM / 2; in mlx4_init_resource_tracker()
579 res_alloc->quota[t] = dev->caps.max_counters; in mlx4_init_resource_tracker()
582 res_alloc->res_free = res_alloc->quota[t]; in mlx4_init_resource_tracker()
606 kfree(priv->mfunc.master.res_tracker.res_alloc[i].quota); in mlx4_init_resource_tracker()
607 priv->mfunc.master.res_tracker.res_alloc[i].quota = NULL; in mlx4_init_resource_tracker()
639 kfree(priv->mfunc.master.res_tracker.res_alloc[i].quota); in mlx4_free_resource_tracker()
640 priv->mfunc.master.res_tracker.res_alloc[i].quota = NULL; in mlx4_free_resource_tracker()