Lines Matching refs:quota
324 if (allocated + count > res_alloc->quota[slave]) { in mlx4_grant_resource()
327 allocated, res_alloc->quota[slave]); in mlx4_grant_resource()
422 res_alloc->quota[vf] = (num_instances / 2) + res_alloc->guaranteed[vf]; in initialize_res_quotas()
429 res_alloc->quota[vf] += dev->caps.reserved_mtts; in initialize_res_quotas()
455 priv->mfunc.master.res_tracker.res_alloc[RES_QP].quota[pf]; in mlx4_init_quotas()
457 priv->mfunc.master.res_tracker.res_alloc[RES_CQ].quota[pf]; in mlx4_init_quotas()
459 priv->mfunc.master.res_tracker.res_alloc[RES_SRQ].quota[pf]; in mlx4_init_quotas()
461 priv->mfunc.master.res_tracker.res_alloc[RES_MTT].quota[pf]; in mlx4_init_quotas()
463 priv->mfunc.master.res_tracker.res_alloc[RES_MPT].quota[pf]; in mlx4_init_quotas()
502 res_alloc->quota = kmalloc((dev->persist->num_vfs + 1) * in mlx4_init_resource_tracker()
519 if (!res_alloc->quota || !res_alloc->guaranteed || in mlx4_init_resource_tracker()
570 res_alloc->quota[t] = in mlx4_init_resource_tracker()
578 res_alloc->quota[t] = MLX4_MAX_MAC_NUM; in mlx4_init_resource_tracker()
584 res_alloc->quota[t] = MLX4_MAX_VLAN_NUM; in mlx4_init_resource_tracker()
588 res_alloc->quota[t]; in mlx4_init_resource_tracker()
590 res_alloc->quota[t] = MLX4_MAX_VLAN_NUM / 2; in mlx4_init_resource_tracker()
595 res_alloc->quota[t] = dev->caps.max_counters; in mlx4_init_resource_tracker()
630 kfree(priv->mfunc.master.res_tracker.res_alloc[i].quota); in mlx4_init_resource_tracker()
631 priv->mfunc.master.res_tracker.res_alloc[i].quota = NULL; in mlx4_init_resource_tracker()
663 kfree(priv->mfunc.master.res_tracker.res_alloc[i].quota); in mlx4_free_resource_tracker()
664 priv->mfunc.master.res_tracker.res_alloc[i].quota = NULL; in mlx4_free_resource_tracker()