Lines Matching refs:spare

81  * @reserve: pool of memory from which devices reserve entitlement, incl. spare
82 * @excess: pool of excess entitlement not needed for device reserves or spare
83 * @spare: IO memory for device hotplug functionality
96 size_t spare;
138 * IO memory available to all devices. The spare pool used to service
158 /* If spare is not fulfilled, the excess pool can not be used. */
159 if (vio_cmo.spare >= VIO_CMO_MIN_ENT)
183 * The spare pool is replenished first from either memory pool, then
212 spare_needed = VIO_CMO_MIN_ENT - vio_cmo.spare;
215 * Replenish the spare in the reserve pool from the excess pool.
222 vio_cmo.spare += tmp;
229 * Replenish the spare in the reserve pool from the reserve pool.
231 * if needed, and gives it to the spare pool. The amount of used
237 vio_cmo.spare += tmp;
272 * Increases in entitlement will be used to fulfill the spare entitlement
291 /* Fulfill spare allocation */
292 if (vio_cmo.spare < VIO_CMO_MIN_ENT) {
293 tmp = min(delta, (VIO_CMO_MIN_ENT - vio_cmo.spare));
294 vio_cmo.spare += tmp;
399 /* Calculate minimum entitlement and fulfill spare */
402 cmo->spare = min_t(size_t, VIO_CMO_MIN_ENT, (cmo->entitled - cmo->min));
403 cmo->min += cmo->spare;
410 avail = cmo->entitled - cmo->spare;
773 tmp = vio_cmo.spare + vio_cmo.excess.free;
778 size, (vio_cmo.spare + tmp));
789 /* Use spare if excess pool was insufficient */
790 vio_cmo.spare -= size - tmp;
855 /* Replenish spare from freed reserve pool */
856 if (viodev->cmo.entitled && (vio_cmo.spare < VIO_CMO_MIN_ENT)) {
858 vio_cmo.spare));
859 vio_cmo.spare += tmp;
908 * later when spare is reserved.
919 vio_cmo.spare = VIO_CMO_MIN_ENT;
920 vio_cmo.reserve.size = vio_cmo.spare;
1025 viobus_cmo_rd_attr(spare);