Lines Matching full:resources
6 * additional RDMA resources after a certain limit is reached.
34 * Need to add entries to it when more resources are
50 * resources. There are multiple instances of this object per cgroup,
56 struct rdmacg_resource resources[RDMACG_RESOURCE_MAX]; member
86 if (rpool->resources[index].max != S32_MAX) in set_resource_limit()
89 if (rpool->resources[index].max == S32_MAX) in set_resource_limit()
92 rpool->resources[index].max = new_max; in set_resource_limit()
158 * charging operation when there are no resources attached to
180 rpool->resources[index].usage--; in uncharge_cg_locked()
186 WARN_ON_ONCE(rpool->resources[index].usage < 0); in uncharge_cg_locked()
252 * Charger needs to account resources on two criteria.
286 new = rpool->resources[index].usage + 1; in rdmacg_try_charge()
287 if (new > rpool->resources[index].max) { in rdmacg_try_charge()
291 rpool->resources[index].usage = new; in rdmacg_try_charge()
310 * @device: pointer to rdmacg device whose resources need to be accounted.
314 * any user space application can start using the RDMA resources.
332 * IB stack must invoke this after all the resources of the IB device
333 * are destroyed and after ensuring that no more resources will be created
349 * all the rpool resources. in rdmacg_unregister_device()
508 value = rpool->resources[i].max; in print_rpool_values()
513 value = rpool->resources[i].usage; in print_rpool_values()
590 * marks all the resource pool entries to max value, so that when resources are