Lines Matching refs:spare

79  * @reserve: pool of memory from which devices reserve entitlement, incl. spare
80 * @excess: pool of excess entitlement not needed for device reserves or spare
81 * @spare: IO memory for device hotplug functionality
94 size_t spare;
136 * IO memory available to all devices. The spare pool used to service
156 /* If spare is not fulfilled, the excess pool can not be used. */
157 if (vio_cmo.spare >= VIO_CMO_MIN_ENT)
181 * The spare pool is replenished first from either memory pool, then
210 spare_needed = VIO_CMO_MIN_ENT - vio_cmo.spare;
213 * Replenish the spare in the reserve pool from the excess pool.
220 vio_cmo.spare += tmp;
227 * Replenish the spare in the reserve pool from the reserve pool.
229 * if needed, and gives it to the spare pool. The amount of used
235 vio_cmo.spare += tmp;
270 * Increases in entitlement will be used to fulfill the spare entitlement
289 /* Fulfill spare allocation */
290 if (vio_cmo.spare < VIO_CMO_MIN_ENT) {
291 tmp = min(delta, (VIO_CMO_MIN_ENT - vio_cmo.spare));
292 vio_cmo.spare += tmp;
397 /* Calculate minimum entitlement and fulfill spare */
400 cmo->spare = min_t(size_t, VIO_CMO_MIN_ENT, (cmo->entitled - cmo->min));
401 cmo->min += cmo->spare;
408 avail = cmo->entitled - cmo->spare;
770 tmp = vio_cmo.spare + vio_cmo.excess.free;
775 size, (vio_cmo.spare + tmp));
786 /* Use spare if excess pool was insufficient */
787 vio_cmo.spare -= size - tmp;
852 /* Replenish spare from freed reserve pool */
853 if (viodev->cmo.entitled && (vio_cmo.spare < VIO_CMO_MIN_ENT)) {
855 vio_cmo.spare));
856 vio_cmo.spare += tmp;
905 * later when spare is reserved.
916 vio_cmo.spare = VIO_CMO_MIN_ENT;
917 vio_cmo.reserve.size = vio_cmo.spare;
1022 viobus_cmo_rd_attr(spare);