Searched refs:res_alloc (Results 1 – 3 of 3) sorted by relevance
312 struct resource_allocator *res_alloc = in mlx4_grant_resource() local 313 &priv->mfunc.master.res_tracker.res_alloc[res_type]; in mlx4_grant_resource() 321 spin_lock(&res_alloc->alloc_lock); in mlx4_grant_resource() 323 res_alloc->allocated[(port - 1) * in mlx4_grant_resource() 325 res_alloc->allocated[slave]; in mlx4_grant_resource() 326 free = (port > 0) ? res_alloc->res_port_free[port - 1] : in mlx4_grant_resource() 327 res_alloc->res_free; in mlx4_grant_resource() 328 reserved = (port > 0) ? res_alloc->res_port_rsvd[port - 1] : in mlx4_grant_resource() 329 res_alloc->res_reserved; in mlx4_grant_resource() 330 guaranteed = res_alloc in mlx4_grant_resource() 383 struct resource_allocator *res_alloc = mlx4_release_resource() local 424 initialize_res_quotas(struct mlx4_dev * dev,struct resource_allocator * res_alloc,enum mlx4_resource res_type,int vf,int num_instances) initialize_res_quotas() argument 476 mlx4_calc_res_counter_guaranteed(struct mlx4_dev * dev,struct resource_allocator * res_alloc,int vf) mlx4_calc_res_counter_guaranteed() argument 526 struct resource_allocator *res_alloc = mlx4_init_resource_tracker() local [all...]
475 size = priv->mfunc.master.res_tracker.res_alloc[RES_QP].quota[slave]; in mlx4_QUERY_FUNC_CAP_wrapper() 480 size = priv->mfunc.master.res_tracker.res_alloc[RES_SRQ].quota[slave]; in mlx4_QUERY_FUNC_CAP_wrapper() 485 size = priv->mfunc.master.res_tracker.res_alloc[RES_CQ].quota[slave]; in mlx4_QUERY_FUNC_CAP_wrapper() 509 size = priv->mfunc.master.res_tracker.res_alloc[RES_MPT].quota[slave]; in mlx4_QUERY_FUNC_CAP_wrapper() 514 size = priv->mfunc.master.res_tracker.res_alloc[RES_MTT].quota[slave]; in mlx4_QUERY_FUNC_CAP_wrapper()
563 struct resource_allocator res_alloc[MLX4_NUM_OF_RESOURCE_TYPE]; member