• 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:reserve

87  * @reserve: pool of memory from which devices reserve entitlement, incl. spare
100 struct vio_cmo_pool reserve;
160 /* Determine the amount of free entitlement available in reserve */
190 * the reserve pool is used to reduce device entitlement, the excess
191 * pool is used to increase the reserve pool toward the desired entitlement
217 /* Spare is a subset of the reserve pool, replenish it first. */
221 * Replenish the spare in the reserve pool from the excess pool.
222 * This moves entitlement into the reserve pool.
227 vio_cmo.reserve.size += tmp;
235 * Replenish the spare in the reserve pool from the reserve pool.
253 * Increase the reserve pool until the desired allocation is met.
254 * Move an allocation freed from the excess pool into the reserve
257 if (excess_freed && (vio_cmo.desired > vio_cmo.reserve.size)) {
258 tmp = min(excess_freed, (vio_cmo.desired - vio_cmo.reserve.size));
261 vio_cmo.reserve.size += tmp;
303 vio_cmo.reserve.size += tmp;
386 * Upon completion sizes of the reserve and excess pools are calculated.
468 /* Calculate new reserve and excess pool sizes */
469 cmo->reserve.size = cmo->min;
475 /* Calculated reserve size above the minimum entitlement */
477 cmo->reserve.size += (viodev->cmo.entitled -
483 cmo->excess.size = cmo->entitled - cmo->reserve.size;
664 * any reserve memory in the change region to the excess pool.
667 vio_cmo.reserve.size -= viodev->cmo.entitled - desired;
670 * If entitlement moving from the reserve pool to the
742 * the reserve pool.
767 vio_cmo.reserve.size += tmp;
829 * Save min allocation for device in reserve as long
835 /* Replenish spare from freed reserve pool */
843 /* Remaining reserve goes to excess pool */
846 vio_cmo.reserve.size -= viodev->cmo.entitled;
870 * Set up the reserve and excess entitlement pools based on available
872 * require entitlement in the reserve pool.
901 vio_cmo.reserve.size = vio_cmo.spare;
902 vio_cmo.reserve.size += (vio_cmo_num_OF_devs() *
904 if (vio_cmo.reserve.size > vio_cmo.entitled) {
911 vio_cmo.excess.size = vio_cmo.entitled - vio_cmo.reserve.size;
913 vio_cmo.min = vio_cmo.reserve.size;
914 vio_cmo.desired = vio_cmo.reserve.size;
1007 viobus_cmo_pool_rd_attr(reserve, size);