• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/powerpc/kernel/

Lines Matching refs:excess

88  * @excess: pool of excess entitlement not needed for device reserves or spare
101 struct vio_cmo_pool excess;
143 * Allocations come from memory reserved for the devices and any excess
145 * hotplug must be equal to %VIO_CMO_MIN_ENT for the excess pool to be
164 /* If spare is not fulfilled, the excess pool can not be used. */
166 excess_free = vio_cmo.excess.free;
175 vio_cmo.excess.free -= size;
190 * the reserve pool is used to reduce device entitlement, the excess
207 /* Amount of memory freed from the excess pool */
221 * Replenish the spare in the reserve pool from the excess pool.
226 vio_cmo.excess.size -= tmp;
254 * Move an allocation freed from the excess pool into the reserve
260 vio_cmo.excess.size -= tmp;
266 /* Return memory from the excess pool to that pool */
268 vio_cmo.excess.free += excess_freed;
281 * and the rest is given to the excess pool. Decreases, if they are
282 * possible, come from the excess pool and from unused device entitlement
307 /* Remaining new allocation goes to the excess pool */
309 vio_cmo.excess.size += delta;
310 vio_cmo.excess.free += delta;
317 avail = vio_cmo.excess.free;
338 /* Take entitlement from the excess pool first */
339 tmp = min(vio_cmo.excess.free, delta);
340 vio_cmo.excess.size -= tmp;
341 vio_cmo.excess.free -= tmp;
386 * Upon completion sizes of the reserve and excess pools are calculated.
468 /* Calculate new reserve and excess pool sizes */
470 cmo->excess.free = 0;
471 cmo->excess.size = 0;
479 /* Calculated used excess entitlement */
483 cmo->excess.size = cmo->entitled - cmo->reserve.size;
484 cmo->excess.free = cmo->excess.size - need;
664 * any reserve memory in the change region to the excess pool.
668 vio_cmo.excess.size += viodev->cmo.entitled - desired;
671 * excess pool is currently unused, add to the excess
675 vio_cmo.excess.free += viodev->cmo.entitled -
753 tmp = vio_cmo.spare + vio_cmo.excess.free;
763 /* Use excess pool first to fulfill request */
764 tmp = min(size, vio_cmo.excess.free);
765 vio_cmo.excess.free -= tmp;
766 vio_cmo.excess.size -= tmp;
769 /* Use spare if excess pool was insufficient */
843 /* Remaining reserve goes to excess pool */
844 vio_cmo.excess.size += viodev->cmo.entitled;
845 vio_cmo.excess.free += viodev->cmo.entitled;
870 * Set up the reserve and excess entitlement pools based on available
911 vio_cmo.excess.size = vio_cmo.entitled - vio_cmo.reserve.size;
912 vio_cmo.excess.free = vio_cmo.excess.size;
1008 viobus_cmo_pool_rd_attr(excess, size);
1009 viobus_cmo_pool_rd_attr(excess, free);