Lines Matching defs:excess

82  * @excess: pool of excess entitlement not needed for device reserves or spare
95 struct vio_cmo_pool excess;
137 * Allocations come from memory reserved for the devices and any excess
139 * hotplug must be equal to %VIO_CMO_MIN_ENT for the excess pool to be
158 /* If spare is not fulfilled, the excess pool can not be used. */
160 excess_free = vio_cmo.excess.free;
169 vio_cmo.excess.free -= size;
184 * the reserve pool is used to reduce device entitlement, the excess
201 /* Amount of memory freed from the excess pool */
215 * Replenish the spare in the reserve pool from the excess pool.
220 vio_cmo.excess.size -= tmp;
246 * Move an allocation freed from the excess pool into the reserve
252 vio_cmo.excess.size -= tmp;
258 /* Return memory from the excess pool to that pool */
260 vio_cmo.excess.free += excess_freed;
273 * and the rest is given to the excess pool. Decreases, if they are
274 * possible, come from the excess pool and from unused device entitlement
299 /* Remaining new allocation goes to the excess pool */
301 vio_cmo.excess.size += delta;
302 vio_cmo.excess.free += delta;
309 avail = vio_cmo.excess.free;
330 /* Take entitlement from the excess pool first */
331 tmp = min(vio_cmo.excess.free, delta);
332 vio_cmo.excess.size -= tmp;
333 vio_cmo.excess.free -= tmp;
378 * Upon completion sizes of the reserve and excess pools are calculated.
460 /* Calculate new reserve and excess pool sizes */
462 cmo->excess.free = 0;
463 cmo->excess.size = 0;
471 /* Calculated used excess entitlement */
475 cmo->excess.size = cmo->entitled - cmo->reserve.size;
476 cmo->excess.free = cmo->excess.size - need;
667 * any reserve memory in the change region to the excess pool.
671 vio_cmo.excess.size += viodev->cmo.entitled - desired;
674 * excess pool is currently unused, add to the excess
678 vio_cmo.excess.free += viodev->cmo.entitled -
773 tmp = vio_cmo.spare + vio_cmo.excess.free;
783 /* Use excess pool first to fulfill request */
784 tmp = min(size, vio_cmo.excess.free);
785 vio_cmo.excess.free -= tmp;
786 vio_cmo.excess.size -= tmp;
789 /* Use spare if excess pool was insufficient */
863 /* Remaining reserve goes to excess pool */
864 vio_cmo.excess.size += viodev->cmo.entitled;
865 vio_cmo.excess.free += viodev->cmo.entitled;
889 * Set up the reserve and excess entitlement pools based on available
930 vio_cmo.excess.size = vio_cmo.entitled - vio_cmo.reserve.size;
931 vio_cmo.excess.free = vio_cmo.excess.size;
1030 viobus_cmo_pool_rd_attr(excess, size);
1031 viobus_cmo_pool_rd_attr(excess, free);