Home
last modified time | relevance | path

Searched refs:res_alloc (Results 1 – 3 of 3) sorted by relevance

/drivers/net/ethernet/mellanox/mlx4/
Dresource_tracker.c306 struct resource_allocator *res_alloc = in mlx4_grant_resource() local
307 &priv->mfunc.master.res_tracker.res_alloc[res_type]; in mlx4_grant_resource()
315 spin_lock(&res_alloc->alloc_lock); in mlx4_grant_resource()
317 res_alloc->allocated[(port - 1) * (dev->num_vfs + 1) + slave] : in mlx4_grant_resource()
318 res_alloc->allocated[slave]; in mlx4_grant_resource()
319 free = (port > 0) ? res_alloc->res_port_free[port - 1] : in mlx4_grant_resource()
320 res_alloc->res_free; in mlx4_grant_resource()
321 reserved = (port > 0) ? res_alloc->res_port_rsvd[port - 1] : in mlx4_grant_resource()
322 res_alloc->res_reserved; in mlx4_grant_resource()
323 guaranteed = res_alloc->guaranteed[slave]; in mlx4_grant_resource()
[all …]
Dfw.c294 size = priv->mfunc.master.res_tracker.res_alloc[RES_QP].quota[slave]; in mlx4_QUERY_FUNC_CAP_wrapper()
299 size = priv->mfunc.master.res_tracker.res_alloc[RES_SRQ].quota[slave]; in mlx4_QUERY_FUNC_CAP_wrapper()
304 size = priv->mfunc.master.res_tracker.res_alloc[RES_CQ].quota[slave]; in mlx4_QUERY_FUNC_CAP_wrapper()
315 size = priv->mfunc.master.res_tracker.res_alloc[RES_MPT].quota[slave]; in mlx4_QUERY_FUNC_CAP_wrapper()
320 size = priv->mfunc.master.res_tracker.res_alloc[RES_MTT].quota[slave]; in mlx4_QUERY_FUNC_CAP_wrapper()
Dmlx4.h537 struct resource_allocator res_alloc[MLX4_NUM_OF_RESOURCE_TYPE]; member